Skip to Content
ReferenceCLI Commands

CLI Commands

The agentteams CLI manages platform entities — plans, reports, co-actions, and more — from your terminal.

agentteams <command> <action> [options] agentteams --help # all commands agentteams <command> --help # actions/options per command

Command list

CommandDescription
initInitialize the CLI via OAuth (creates .agentteams/)
syncForce-sync conventions and skills, no change check
sessionSession-start sync (session sync) and its hook (session hook)
guideRead platform guides (guide list / get)
doctorDiagnose convention reachability, install worktree hook
planManage plans
taskManage plan tasks
commentManage plan comments
reportManage completion reports
coactionManage co-actions (session context)
postmortemManage post-mortems
code-reviewManage independent code reviews
conventionManage project conventions
documentManage project documents
dependencyManage plan dependencies
change-setManage cross-repository change sets and merge order
agent-configManage agent configurations
attachmentManage runner request and document attachments
feedbackManage platform feedback
configManage CLI configuration
searchSearch across all entity types
resolveDetect an entity reference’s type and resolve it
linearRead/comment on Linear issues
mcpRun the MCP server and register clients
worktreeReport Orca worktree lifecycle events

Action pattern

Most commands take an <action>. The common actions are list, get, create, update, delete, with domain-specific actions added per command.

# Plans: start, finish, quick, assign, download, link-document, etc. on top of CRUD agentteams plan list agentteams plan start --id <planId> agentteams plan finish --id <planId> --report-title "..." --report-file <path> \ --runner-type CLAUDE_CODE --model <model-id> --quality-score 90 --report-status COMPLETED # Completion reports agentteams report create --plan-id <planId> --title "..." --file <path> \ --runner-type CLAUDE_CODE --model <model-id> # Unified search agentteams search --query "<keyword>" agentteams search --query "<keyword>" --types BITBUCKET_ISSUE,BITBUCKET_PR

See Plans for plan lifecycle rules and Code Review for review workflow.

Session-start hook

session hook install adds a SessionStart hook to your Claude Code settings file so that agentteams session sync runs automatically every time a Claude Code session starts. session hook uninstall removes only the AgentTeams hook and leaves the settings file and every other setting in place.

agentteams session hook install # project scope: .claude/settings.json agentteams session hook install --scope user --yes # user scope: ~/.claude/settings.json agentteams session hook install --dry-run # print the target file and change without writing agentteams session hook uninstall agentteams init --session-hook # install at project scope while initializing

install and uninstall take the same options.

OptionDescription
--client <id>Target client. claude-code (default)
--scope <scope>project (default) or user
--yesApproves editing the user-level settings file. Required for --scope user
--dry-runPrints the target file and the change without writing anything
--cwd <path>Explicit directory for --scope project (default: detected project root, or current directory)

init --session-hook installs the hook at project scope only when Claude Code is detected. If it is not detected, no settings file is written and the manual install command (agentteams session hook install) is shown instead.

The hook runs agentteams session sync --hook claude-code. --hook claude-code prints the sync result in the format Claude Code takes in as session context. For how the scopes differ and what happens when you share the hook with a team, see CLI — Automate session-start sync.

Linking plans and documents

Use plan link-document to link a document from the document library to a plan, and plan unlink-document to remove the link. List the links from the plan side with plan list-documents, or from the document side with document list-plans.

agentteams plan link-document --id <planId> --document-id <documentId> --note "Design rationale" agentteams plan list-documents --id <planId> agentteams document list-plans --id <documentId> agentteams plan unlink-document --id <planId> --document-id <documentId>

Linking a document that is already linked finishes without an error as Document already linked (skipped). Unlinking does not delete the document.

Document attachments

Use --document-id with the attachment command to add files to a document or list its attachments. Use an attachment ID from the list to download or delete the file.

agentteams attachment create --document-id <documentId> --file ./guide.pdf agentteams attachment list --document-id <documentId> agentteams attachment download --id <attachmentId> --dest ./downloads/ agentteams attachment delete --id <attachmentId>

For create, use exactly one of --document-id, --code-review-id, or --completion-report-id. For list, use exactly one of --document-id, --trigger-id, --code-review-id, or --completion-report-id.

download works for attachments on documents, runner requests, code reviews, and completion reports. Without --dest, the file is saved in the current directory under its original name. If --dest is an existing directory, the file is saved inside it; any other path is used as the file path. If a file with the same name already exists, the command stops with File already exists; add --force to overwrite it.

delete removes document attachments only. Attachments on other targets are rejected with Only document attachments can be deleted.

Last updated on