Context management for AI coding agents
aitodo assembles what an agent gets for a task: the ticket, the marked sections of its docs and gotchas, the decisions and the conventions of its groups, within {{BUDGET_DEFAULT}} tokens by default. The ticket carries the context: tkt ticket get PAY-001 returns it as a Context Bundle.
The context guard checks the bundle on every read. If a blocker is open, the repo anchor is missing, or a ref points to nothing, has_blockers is true and the agent does not start.
In a team, the server can provide the LLM, with no AI key of your own: Team AI. Coming soon: one command delivers the focus, ticket by ticket, up to the merge: autonomous delivery.
--- contextRefs: - anchor: '## Részleges összeg' kind: doc location: server ref: doc://refunds estimate: 3.0 groups: - payments id: PAY-001 priority: high status: todo title: Részleges visszatérítés type: feature value: 5 --- ## Acceptance Criteria - [ ] A részleges visszatérítés negatív sort ír az eredeti számlára - [ ] Az újraküldött webhook nem könyvel kétszer
Some fields omitted.
$tkt ticket get PAY-001INCOMPLETE_REPO_ANCHORbaseRef missingWhy
A coding agent works from what it receives with the task and what it finds in the repo. A project's conventions, earlier decisions and known gotchas usually live in a wiki or in old tickets, if they are written down at all. The agent knows about them only if someone puts them next to the task.
Too much context fails the other way: whole files and epic-level background push out the part the task needs. aitodo therefore hands over knowledge by section and within a budget.
The measure comes from the context guard specification: a bundle is complete when the agent can write the diff and verify it citing only the bundle. The maintenance commands keep it that way over time.
Install
The installer adds uv if it is missing, the tkt CLI of this server's version, and the Claude Code skill in ~/.claude/skills/aitodo-tickets.
AITODO_NO_SKILL=1 skips the skill, AITODO_DRY_RUN=1 only prints the steps.
Check in a new terminal
{{TERM:version}}First project
In the repo root:
{{TERM:first-project}}tkt init with --pin writes .aitodo.yaml. Commit it and the .tickets/ folder with the project.
What it is and what it is not
What it is
- A command-line tool (
tkt) that works on a store in the repo. - A Claude Code skill that describes the work loop to the agent.
- A server for this page, the guide and the installers. For project coordination, see Team server.
What it is not
- Not a web ticket tracker. In the browser,
tkt board golive --htmlandtkt graph --all --htmlopen. - Not a code analyser. People or agents write code locations into the ticket; the context guard checks that they exist and resolve.
- Not an agent runner. The agent is your own tool, for example Claude Code; aitodo adds the task and its context.