English
Use the docs with your agent
Your coding agent (Claude Code, Codex or any other) can write Alta content as well as you can, if it reads the same docs and uses the same checks. This page gives it both.
Before you begin 5 minutes
- The
altacommand on your path: see Install the CLI. - An agent that can run commands or connect to an MCP server.
Point it at the docs
The docs are published for agents too.
https://docs.os.altasystem.ai/llms.txtlists every public page with one line each, andllms-full.txtholds the whole site in one file. Every page is also served as plain Markdown: add.mdto its address.Give your agent the address of
llms.txtand let it pick the pages it needs.PrompttextRead https://docs.os.altasystem.ai/llms.txt, then the pages you need. Write Alta content in ./my-pack. Run `alta lint my-pack` after every change, and fix every problem it reports before you stop.Connect the author MCP
alta mcp --author --root <dir>starts an MCP server on standard input and output. It gives your agent tools to create, read, write and check content inside one folder, and nothing else: no command, no network, no file outside the root.Its tools:
genres(what can be made),docs(the guides, standards and examples),schema,executorsandchecks(the closed lists of actions and proofs),step(check steps on their own while writing them),scaffold,list,read,write,checkandpack(a dry run that writes nothing).Terminalshclaude mcp add alta-author -- alta mcp --author --root .Or let it use the CLI
Without MCP, the agent runs
altalike you do. Two outputs are made for it:alta help --jsondescribes every command, its options, examples and exit codes, and the versions of every standard;alta lint --jsongives each problem with its rule, field, fix and the link to its section of the errors page.Terminalshalta help --json alta lint my-pack --jsonCheck its work
Whatever the agent wrote,
alta lintis the judge: what it accepts, the game plays. Then look at it yourself in the game.Terminalshalta lint my-pack alta dev my-pack
Pitfalls
| Do | Avoid |
|---|---|
| Give the agent one folder as its root | A root that holds other projects or secrets |
Ask it to run alta lint until it passes | Trusting a pack that was never checked |
Let it read the examples through docs | Fields invented from memory |
The author tools never touch a player's world. An agent working in a world can only propose actions; the player agrees in the game. See The plan card and the player's consent.