aitododocs Coming soonAutonomous delivery

Quick start

Markdown

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.

Tutorialabout 4 min
On this page

Every command runs as written, and the output shown is what the docs test checks.

  1. Check the install (Install).

    Terminal
    $ tkt --version
  2. Create a store in the .tickets/ subfolder and pin it to the folder: --pin writes .aitodo.yaml, so every tkt command run here uses this store.

    Terminal
    $ tkt init demo --workspace-dir .tickets --pin
    Workspace 'demo' initialized
  3. Create a group with the PAY prefix. Without the group's repo anchor (--repo, --branch, --base-ref) no ticket can start.

    Terminal
    $ 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
  4. Write a short spec doc and store it. The ticket will point at its ## CSV export section.

    spec.md
    # Payments spec
    
    ## CSV export
    
    Export the refunds of a day as CSV, one row per refund.
    Terminal
    $ tkt doc new payments-spec --file spec.md --description 'What the CSV export delivers'
    Doc saved doc://payments-spec
  5. Create a ticket in the todo status. It needs a description (--details, the body's ## Description) and, as a feature, an acceptance criterion (--ac). tkt already suggests the doc from the words they share.

    Terminal
    $ 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
  6. Link the doc's section to the ticket: in the bundle the agent gets exactly this section, not the whole doc.

    Terminal
    $ tkt ticket ref add PAY-001 doc://payments-spec --anchor "## CSV export"
    Added doc://payments-spec on PAY-001
  7. Read it the way the agent will. The context guard hints say what is missing: UNSCOPED_TICKET only notes that there is no ## In Scope section.

    Terminal
    $ tkt ticket get PAY-001
    UNSCOPED_TICKET
  8. Add one more acceptance criterion.

    Terminal
    $ tkt ticket ac add PAY-001 "The CSV has one row per refund"
    Added 2 to PAY-001
  9. Run the context guard again. Only info hints are left, so the exit code is 1 (0: clean, 2: a warning, 3: a block).

    Terminal
    $ tkt ticket lint PAY-001
    [INFO] UNSCOPED_TICKET
    exit code: 1
  10. The first step of the loop: the agent claims the next startable ticket and moves it to in_progress.

    Terminal
    $ tkt next --claim --assignee me
    Claimed PAY-001
  11. While working it writes back what it learned: a dated note in the ticket's ## Notes section.

    Terminal
    $ tkt ticket note PAY-001 "Exported with the csv module"
    Created ## Notes on PAY-001
  12. At the end it hands the ticket over for review; done is your call. An agent can do all of this: give it the skill or /llms.txt (The skill and machine resources).

    Terminal
    $ 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.

Generated from the registry: src/aitodo/api/selfdoc_entries/guide.py · guide.quickstartv0.1.298