Hledger, VS Code and GitHub Copilot works well together

Copilot (with model Claude Sonnet 4) looked at the files and understood enough hledger to find my tags

1 Like

Thanks for sharing your experiments.

I could see this being acceptable for non-private data, possibly..

I'm guessing you could get better results, even without a dedicated "MCP" or "tool" for hledger, by writing some instructions in CLAUDE.md like

- `hledger` lists available commands
- `hledger CMD -h` shows the usage and full help for any command

and something about how to find other important docs such as: file formats, queries, options, period expressions, directives etc. Currently that requires either visiting a web page, or running hledger help; but one thing help doesn't support yet is printing just the requested doc section and nothing else - that would be a useful thing.

1 Like