CLI Reference
This reference describes Tycho v0.16.0, released at commit ec3cbd49a3f5ba58f9ec6b83b505328955c3ae3c. Command forms were checked against the exact release tag. Run tycho <group> <command> --help for registered command options; the top-level help omits some registered commands. In this release, serve restart --help prints usage but exits with an error, and deprecated restart --help rejects the argument. Use the documented forms below.
General Commands
Section titled “General Commands”tychotycho --helptycho --versiontycho -vtycho doctortycho doctor --claudetycho doctor --claude --run-agenttycho updatetycho doctor --server vps --jsontycho update --server vps --jsonRunning tycho without a command opens the TUI. doctor --claude --run-agent creates a disposable diagnostic agent; plain doctor inspects readiness. update upgrades a Homebrew install and restarts running local services. Update source installs through Git and bin/setup.
Local Harness Catalogs
Section titled “Local Harness Catalogs”tycho harness list [--harness KEY] [--model MODEL] [--discover] [--json]tycho harness list --harness claude --model claude-opus-5-5 --jsonThis command is local-only: no --server or remote forwarding. The offline default reads built-in fallbacks and configured harness_catalogs, including custom harnesses, without tool execution, authentication checks, or provider contact. Both filters are exact and case-sensitive. A missing model is absent from the catalog; provider availability is not checked.
--discover runs local catalog commands used by Settings. They can need tools, credentials, and network/provider access. catalog_source records the source or fallback. Tycho adds no provider API query or authentication check of its own. Discovery does not prove live entitlement or validate a model/reasoning pair.
Unknown defaults are JSON null or text unknown; harness decides. Harness suggestions do not prove model effort support. For claude-opus-5-5, low, medium, high, xhigh, and max are harness suggestions; model support and defaults remain unknown. Model-specific lists appear only with source evidence. Project/template overrides are not listed. See Harness Catalogs.
Projects
Section titled “Projects”tycho project create my-project --path ~/Code/my-project --name "My Project"tycho project listtycho project show my-projecttycho project update my-project --group Personal --harness codextycho project archive my-projectCreate and update accept --name, --group, --harness (--agent is an alias), --model, --reasoning-effort, --response-style, --pr-url, --hidden, and --json. Create also accepts --path. Update accepts empty strings to clear optional group, model, effort, and PR URL values. Archive archives the project and its sessions.
Projects must be created explicitly. tycho project my-project no longer creates one and fails without changing the registry.
Agent Sessions
Section titled “Agent Sessions”tycho agent create my-project "Refactor the auth module" --runtycho agent listtycho agent list my-projecttycho agent status my-project-agent-3tycho agent logs my-project-agent-3 --type conversationtycho agent send my-project-agent-3 "The tests still fail. Try a smaller change."tycho agent stop my-project-agent-3tycho agent archive my-project-agent-3tycho agent clone my-project-agent-3 --runtycho agent clone my-project-agent-3 --handoff --runCreate accepts --harness, --model, --name, --template, and --run. Built-in harness choices are Codex, Claude, OpenCode, Pi, experimental agy, and dsh; custom profiles can add a configured key. Clone supports --handoff for concise source context. Ordinary CLI clones retain their source; Remote UI context replacement archives its source and transfers schedule ownership at its safe lifecycle point. Logs support --type raw|conversation|system and --follow.
Create an explicit child session:
tycho agent create my-project "Check the API boundary" \ --parent-agent my-project-agent-3 \ --runTycho never infers a parent from TYCHO_AGENT_KEY. A managed agent must pass --parent-agent "$TYCHO_AGENT_KEY" explicitly. Omitting it creates an unrelated root; --root makes that intent explicit.
The same relationship can be attached to an idle existing session before its next run:
tycho agent send child-agent-key "Continue the delegated check" \ --parent-agent parent-agent-keytycho agent run child-agent-key --parent-agent parent-agent-key--parent-agent and --root are mutually exclusive. Both parent and child must exist on that target server. See Delegating Work Between Agents.
For CLI manual archive, stop a running session first. Manual archive cancels unresolved inquiries and records queued work without executing it: undelivered user work is declined with a reason, protected reports are superseded with a reason in read-only history, and delivered or in-flight work is marked aborted with uncertainty. Context replacement has different guards; see Lifecycle.
Inspect archived sessions without mixing them into active polling:
tycho agent list --archivedtycho agent list --include-archivedAgent Focus
Section titled “Agent Focus”tycho agent focus <agent-key> --jsontycho agent focus <agent-key> --file /absolute/path/focus.json --revision 0 --jsontycho agent focus <agent-key> --server vps --jsonFocus stores current actions separately from Summary and Conversation. Read it first, preserve unrelated items, then replace it with the returned revision. The input file contains the sections array. A stale different write fails; an exact retry is safe. An empty array clears Focus. Archive keeps its history; clones start empty. File links must refer to existing agent attachments. See Focus format and limits.
Backdrop Images
Section titled “Backdrop Images”tycho appearance images list --jsontycho appearance images upload scene /absolute/path/scene.png --name "Scene"tycho appearance images remove scene --server vps --jsonThese commands manage the server’s shared PNG image library. Upload does not select an image in the browser. Each command supports --server and --json. See appearance limits.
Schedules
Section titled “Schedules”tycho schedule create weekday-maintenance \ --cron "0 9 * * 1-5" --timezone local --project-key my-project \ --agent-name "Weekday maintenance" --message "Run the maintenance check."tycho schedule update weekday-maintenance --agent codex --model gpt-6-astra --reasoning-effort mediumtycho schedule listtycho schedule list --include-archivedtycho schedule archive weekly-reviewtycho schedule validatetycho schedule run weekly-reviewtycho schedule pause weekly-reviewtycho schedule resume weekly-reviewtycho schedule restarttycho schedule daemontycho schedule daemon --oncetycho schedule daemon --dry-runtycho schedule daemon --interval 30Create and update accept --name, --cron, --timezone (local or UTC), --project-key, --agent-name, --agent-key, --agent, --model, --reasoning-effort, --system-message, --message, --ends-at, --server, and --json. Adopt an existing session with --agent-key.
The dedicated daemon owns the clock; the TUI and Remote UI only manage it. See Schedules.
Remote UI
Section titled “Remote UI”tycho servetycho serve --host 127.0.0.1 --port 7373tycho serve daemontycho serve restarttycho serve restart --server vps --jsontycho schedule restart --server vps --jsonThe authenticated GET /diagnostics/serve endpoint reports request timing and worker admission data. Use it to inspect service load; it does not expose prompt or credential contents. See Serve diagnostics.
Check the installed version with tycho --version or tycho -v. tycho update upgrades a Homebrew installation and restarts running local services through their stable launcher; source checkouts update through Git instead.
When Tailscale is available, Tycho can expose a MagicDNS URL and terminal QR code for checking agent state from another device on your tailnet.
See Remote UI for localhost, bearer-token, tailnet, multiserver, and browser workspace boundaries.
Second Brain Memory Handoffs
Section titled “Second Brain Memory Handoffs”tycho memory handoffstycho memory handoffs --server vps --jsonSuccessful runs may return a semantic memory_handoff. Tycho stores it with run-owned provenance and exposes it locally or from one configured peer. This command does not search raw conversations or failed runs.
Remote Servers
Section titled “Remote Servers”After adding a server under remote_servers in ~/.tycho/config/hq.yml, store and verify its credential without placing the token on the command line:
tycho server login vpstycho server status vpstycho server verify vpstycho server logout vpstycho server migrate vpstycho server migrate --alllogin verifies before saving unless --no-verify is set. status reports metadata and never prints the token. migrate moves legacy inline hq.yml tokens into the private credential store.
Target that server with the same project and agent commands:
tycho project list --server vpstycho project show my-project --server vps --jsontycho agent list my-project --server vpstycho agent status my-project-agent-3 --server vps --jsontycho agent create my-project "Inspect the failing build" --server vpstycho agent run my-project-agent-3 --server vpstycho agent send my-project-agent-3 "Try the smaller reproduction" --server vpstycho agent stop my-project-agent-3 --server vpstycho agent archive my-project-agent-3 --server vpsProject list and show, the remote agent lifecycle above, and metrics support --json. Local-only agent logs and agent clone do not accept --server.
Usage Metrics
Section titled “Usage Metrics”tycho metrics query \ --from 2026-08-01 \ --to 2026-08-16 \ --timezone Asia/Jakartatycho metrics query --server vps --from 2026-08-01 --to 2026-08-16 --timezone UTC --jsonThe range starts at --from and ends before --to. Offset-free boundaries use the named IANA timezone; values with Z or an explicit offset are absolute. Query filters accept comma-separated --group, --project, --agent, --harness, --model, and --status values.
Tycho normalizes finalized managed runs and native sessions across harnesses. Missing telemetry, session baselines, models, or prices remain unknown rather than becoming zero; costs are API list-price equivalents, not subscription charges or invoices. The embedded GPT-6 rate card includes cache-write accounting; cache writes replace the corresponding ordinary input cost. Missing rates or token counts remain explicitly unpriced. Agent and project archives mark matching records as archived without moving them out of the global query path.
Qualified custom Codex model names such as openai.gpt-5.4 use the canonical OpenAI price table when known. Unknown models keep token telemetry and remain unpriced.
Queue Work and Recovery
Section titled “Queue Work and Recovery”tycho agent send <agent-key> "Continue after the external check" --delay 60tycho queue <agent-key> --jsontycho queue-work complete <agent-key> <batch-id> --dispositions-json '<outcomes-json>'tycho queue-work discard <agent-key> --reason "The failed work is obsolete"tycho queue-work process <agent-key> --entry-ids <id-1,id-2> --expected-entry-ids <fifo-snapshot-ids>tycho queue-work remove <agent-key> --entry-ids <id-1> --expected-entry-ids <fifo-snapshot-ids> --reason "Obsolete request"All queue commands accept --server <key> and --json. queue consumes pending entries into one durable batch; repeated reads return that same open batch. It is not a read-only queue preview. agent status --json reports queue count and dispatch errors. Use the Remote UI queue controls to inspect entry IDs and the exact snapshot before an operator recovery action.
Process and remove require comma-separated stable IDs and the exact FIFO snapshot. To act on all entries, pass every ID in that snapshot. Stale snapshots fail without applying the requested action. Remove records an audited disposition and cannot remove protected delegation callbacks. Discard applies to an eligible failed claimed batch; retry protected callbacks instead.
For complete, replace <outcomes-json> with a JSON array containing every entry’s entry_id and outcome. User outcomes are completed, needs_input, or declined_with_reason. Report outcomes are incorporated or superseded_with_reason. Reason outcomes require reason. Identical completion is idempotent; missing, unknown, duplicate, or conflicting entries keep the batch open.
Success, no-action success, and Partial automatically settle delivered work with completed and incorporated. Failed, blocked, and input-required results keep unresolved work. See Agent Session Lifecycle.
Queue migration receipts
Section titled “Queue migration receipts”tycho queue-work cleanup-migrationstycho queue-work cleanup-migrations --applyThis local-only command reports eligible empty migration audit receipts by default. --apply retains 100 and removes at most 1,000 per call. Queue records and completion evidence stay intact. Use --apply only with explicit operator approval for the target store. This command does not accept --server or --json. See receipt retention.
Pull-Request Diff Catalogs
Section titled “Pull-Request Diff Catalogs”tycho agent pr-diff add <agent-key> https://github.com/example/project/pull/123tycho agent pr-diff remove <agent-key> https://github.com/example/project/pull/123Both commands accept --server <key> and --json. Remove accepts a catalog ID or PR URL. Detach preserves source attachments and shared immutable snapshots. Diff reads use the local authenticated gh credential.
Store Recovery and Finalization
Section titled “Store Recovery and Finalization”tycho agent store backups --jsontycho agent store restore /absolute/path/to/validated-backup.json --jsontycho agent finalize <agent-key>These commands are local-only. Backups lists validated rolling snapshots with time, record count, hash, and path. Restore validates the snapshot and retains a pre-restore safety artifact. Review the selected backup before restoring state. The detached runner normally calls finalize; it finalizes a completed run and delivers eligible delegation callbacks.
Removed and Deprecated Commands
Section titled “Removed and Deprecated Commands”| Old form | Behavior and replacement |
|---|---|
tycho project <key> |
Unsupported; use explicit project create or project show. |
tycho github login, status, logout |
Removed; use an authenticated local gh CLI for PR diff reads. |
tycho restart |
Deprecated alias for tycho serve restart. |
tycho schedule reload |
Deprecated alias for tycho schedule restart. |
tycho metrics backfill |
Deprecated and no longer runs; use tycho metrics query. |
tycho debug claude [--run-agent] |
Deprecated; use tycho doctor --claude [--run-agent]. |
The old FRED automation and its experimental configuration were removed in v0.12.0. Legacy records stay hidden. Do not add it to new configurations. The FRED mascot expressions in the v0.16.0 Now empty state are separate from that removed automation.