Quick start
Your first agent ticket in five minutes, in an empty folder: a store, a group, a spec doc, a ticket that points at one section of it, and the three steps of the loop.
Every command runs as written, and the output shown is what the docs test checks.
Check the install (Install).
$ tkt --version
Create a store in the
.tickets/subfolder and pin it to the folder:--pinwrites.aitodo.yaml, so everytktcommand run here uses this store.$ tkt init demo --workspace-dir .tickets --pin Workspace 'demo' initialized
Create a group with the
PAYprefix. Without the group's repo anchor (--repo,--branch,--base-ref) no ticket can start.$ tkt group new Payments --kind project --prefix PAY --repo https://example.com/shop.git --branch main --base-ref main --description 'Card payments and refunds' Created group payments
Write a short spec doc and store it. The ticket will point at its
## CSV exportsection.# Payments spec ## CSV export Export the refunds of a day as CSV, one row per refund.
$ tkt doc new payments-spec --file spec.md --description 'What the CSV export delivers' Doc saved doc://payments-spec
Create a ticket in the
todostatus. It needs a description (--details, the body's## Description) and, as a feature, an acceptance criterion (--ac).tktalready suggests the doc from the words they share.$ tkt ticket new "CSV export" -g payments --status todo --description "Export payments as CSV" --details "Finance needs the payments in a spreadsheet." --ac "The CSV has one row per payment" Created ticket PAY-001
Link the doc's section to the ticket: in the bundle the agent gets exactly this section, not the whole doc.
$ tkt ticket ref add PAY-001 doc://payments-spec --anchor "## CSV export" Added doc://payments-spec on PAY-001
Read it the way the agent will. The context guard hints say what is missing:
UNSCOPED_TICKETonly notes that there is no## In Scopesection.$ tkt ticket get PAY-001 UNSCOPED_TICKET
Add one more acceptance criterion.
$ tkt ticket ac add PAY-001 "The CSV has one row per refund" Added 2 to PAY-001
Run the context guard again. Only info hints are left, so the exit code is 1 (0: clean, 2: a warning, 3: a block).
$ tkt ticket lint PAY-001 [INFO] UNSCOPED_TICKET exit code: 1
The first step of the loop: the agent claims the next startable ticket and moves it to
in_progress.$ tkt next --claim --assignee me Claimed PAY-001
While working it writes back what it learned: a dated note in the ticket's
## Notessection.$ tkt ticket note PAY-001 "Exported with the csv module" Created ## Notes on PAY-001
At the end it hands the ticket over for review;
doneis your call. An agent can do all of this: give it the skill or/llms.txt(The skill and machine resources).$ tkt ticket update PAY-001 --status in_review Updated ticket PAY-001
Details1 items
Next: the steps of the loop one by one, the parts of the Context Bundle, and an example that turns a plan doc into an epic and its stories in one go.