aitododocs Coming soonAutonomous delivery

tkt doctor, reorg, index, store, config, export, git, worktree

Markdown

The 21 commands of tkt doctor, tkt reorg, tkt index, tkt store, tkt config, tkt export, tkt git and tkt worktree, generated from the running code.

Referenceabout 4 min
On this page
[L]local[R]read[W]write[A]admin write· the grey tag is the REST counterpart
Every option is described by tkt <command> --help. The full machine-readable form: /openapi.json and tkt meta --json.

tkt doctor

1 commands
tkt doctor [R] read

Check the whole store's integrity; exit 0 clean · 1 info · 2 warning · 3 error · 4 could not run (no workspace)

--strict--fix-index--fix-times
Guide: Doctor and the index

tkt reorg

5 commands

Migrate an old store: propose what brings it up to this tkt's rules, and apply the accepted proposals (all-or-nothing, with a backup)

--group--since--only--plan--interactive/--no-interactive--yes--impact--accept-context-loss--worktree-dir
Guide: Store migration

Apply a plan file all-or-nothing: every chosen option, or nothing at all

--dry-run--no-backup--accept-context-loss--worktree-dir
Guide: Store migration

List reorg backups, oldest first

Never propose this again (stored in reviews/_store.yaml); the last migration proposal dismissed raises the store's data level

Put the store back to a reorg backup (every later change to tickets, groups, docs is lost)

tkt index

2 commands
tkt index rebuild POST /v1/index:rebuild[L] local

Rebuild the SQLite index from scratch (full scan of Markdown store) and re-check every review: an edit outside tkt, a git merge or a new tkt version may have changed what an item builds on (tkt review)

tkt index status GET /v1/index/status[L] local

Show index health (row counts, db path)

tkt store

2 commands
tkt store init POST /v1/projects/{project_id}/store[L] local

Create the project's store on the server and point this directory at it (.aitodo.yaml: store: server)

--server--project--register--name--as--operator
Guide: A store on the server
tkt store move POST /v1/projects/{project_id}/store:import[L] local

Move the store between this repo and the server; it lives in one place at a time (#153)

--to--dir--force-claims--force-decompositions
Guide: Moving a store

tkt config

4 commands
tkt config get <key>GET /v1/workspace/config[L] local

Print a key's value; a key not in the file prints its default with (default)

tkt config list GET /v1/workspace/config[L] local

Every known key with its value and source (file / default)

tkt config set <key> <value>PATCH /v1/workspace/config[L] local

Write a key; only its line in config.yaml changes

tkt config unset <key>PATCH /v1/workspace/config[L] local

Remove a key from config.yaml, so its default applies again

tkt export

1 commands
tkt export [L] local

Export the store for other tools; the store itself is not changed

--okf--describe--llm-cmd--llm-provider--refresh
Guide: Export to OKF

tkt git

4 commands

Set up the merge drivers in the repo that holds the store, for every worktree at once

The counters.json merge driver git runs: the per-key maximum, and the shared counter raised to it

The review-file merge driver git runs

Remove exactly what tkt git install added for this store: its attributes block, its hook blocks, and the merge.aitodo-* config once no store's block is left

tkt worktree

2 commands

Give the ticket's claim back (from any worktree); --remove also removes its worktree once clean, else refuses (ERR_WORKTREE_REFUSED) and says why

--remove--assignee--force
Guide: Parallel work

Branch (worktreeBranch, default feat/{id}-{slug}) + worktree (worktreeDir, default ../{repo}-{id}) + the claim there, in one step; then the worktreeSetup script

--base--assignee--no-setup
Guide: Parallel work
Generated from the Click tree, COMMAND_CLASSES and REST_COUNTERPARTSv0.1.298