# Reference

The exact facts: every command, flag, variable, tool, error code and provider. The command, error, tool and provider pages are generated from the command line, the protocol and the template catalogue that ship together, so they say what the `mehen` named in the footer does.

- [The mehen command line](https://docs.mehen.dev/reference/cli.md): what does each command do, and what are its flags, variables and exit codes?
- [MCP tools](https://docs.mehen.dev/reference/mcp.md): what are the `vault_*` tools and their inputs?
- [Errors and exit codes](https://docs.mehen.dev/reference/errors.md): what does each error mean, and what do I do?
- [Providers and templates](https://docs.mehen.dev/reference/providers.md): which providers can an agent name, and what does each allow, hold and refuse?
- [The ask object](https://docs.mehen.dev/reference/ask.md): what is the shape a harness draws a card from?
- [mehen.toml](https://docs.mehen.dev/reference/mehen-toml.md): what goes in the project manifest?
- [HTTP surfaces](https://docs.mehen.dev/reference/http.md): what does a client see on the wire?

## For agents

- [The short guide](https://docs.mehen.dev/guide.md): what `mehen guide` prints, as markdown at [`/guide.md`](https://docs.mehen.dev/guide.md).
- [The skill](https://docs.mehen.dev/skill.md): what Claude and pi agents load, at [`/skill.md`](https://docs.mehen.dev/skill.md).
- [`/llms.txt`](https://docs.mehen.dev/llms.txt) lists every page, and [`/llms-full.txt`](https://docs.mehen.dev/llms-full.txt) is all of them in one file.

Every page is also markdown: add `.md` to its address. The same facts are JSON at [`/reference/cli.json`](https://docs.mehen.dev/reference/cli.json), [`/reference/errors.json`](https://docs.mehen.dev/reference/errors.json), [`/reference/mcp.json`](https://docs.mehen.dev/reference/mcp.json) and [`/reference/providers.json`](https://docs.mehen.dev/reference/providers.json).
