CLI reference

Bare tm opens the interactive agent. tm -p "<prompt>" runs one prompt to completion and exits (exit code 0 on a reply, 2 when the agent failed the task, 4 when it ran out of budget, 64 for a malformed command line). Run tm --help or tm <command> --help for every flag.

Global flags: --json, --quiet, --no-color, --plain, and --project <root>. --continue resumes the most recent conversation and --resume <id> a saved one.

CommandWhat it does
tm initCreate a project (.tm/) in the current directory
tm attachBring an existing repository into a new or existing project
tm genesisTurn a natural-language prompt into a running project
tm status“Since you left” report: what changed and what needs attention
tm statsUsage rollups by ticket, day, model or tool
tm doctorInvariants, hash-chain check, index health, permission probes
tm ticketTicket lifecycle: list, show, new, dispatch, edit, activate, accept, reject, retry, close, cancel, reopen
tm ticketsOpen the tickets view (or print tickets with --json)
tm dep, tm milestone, tm decisionDependency edges, milestones, durable decision records
tm sched, tm leaseScheduler loop and ticket/resource leases
tm run <ticket>Execute one ticket to completion in the foreground
tm search, tm symbol, tm historyCode index search, symbol-level intelligence, git history queries
tm docsDocumentation as project state: staleness check and reconciliation
tm providerdetect, list, status, default, test, reset
tm authInteractive login for a provider credential
tm harnessHarness configuration and epoch history
tm benchRepository-local benchmark tasks
tm workflowReusable parameterized recipes that expand into a ticket graph
tm mirrorExternal tracker mirrors (GitHub, Linear, Jira, GitLab)
tm templatesProject scaffolding templates
tm serveHTTP/SSE API, optionally serving the web client at /app/
tm mcp, tm acpServe the project over MCP or Agent Client Protocol on stdio
tm eventsTail, inspect, replay and verify the durable event log
tm browser, tm computerDrive a headless browser or the real desktop
tm projectShow where project state lives; list global projects
tm wikiGenerate wiki pages from live project state

Slash commands (in the chat)🔗

CommandWhat it does
/helpKeyboard shortcuts
/clear, /resume, /compactFresh chat, continue a past one, summarize to free context
/model [name]Show or switch the model
/level fast|deepChoose the fast or deep chat role (deep needs a configured coder.deep route)
/connect, /provider, /configSet up providers, inspect routing, view harness settings
/statusModel, provider, directory, mode and ticket
/costTokens used this session, turn by turn
/initWrite an AGENTS.md for this project
/bg [task]Hand work to a background worker as a ticket
/contextToken use by section
/todosToggle the task checklist
/ticketsBackground tickets and workers
/attach <ticket>, /detachTie this chat to a ticket, or untie it
/decide <text>Record a project decision
/exitQuit