Orkestra
GitHub

All ork commands output JSON by default. Pass --pretty for human-readable output. Run ork --help or ork trak --help for inline usage.

Global flags

FlagDescription
--prettyHuman-readable output. Applies to all commands. Without this flag, output is JSON.
--versionPrint the installed version and exit.
--helpShow help for any command or subcommand.

ork trak

Trak management commands. ork task is an accepted alias for all ork trak subcommands.

ork trak list

List all Traks in the project. Bootstraps .orkestra/ on first run if it doesn’t exist.

ork trak list [--status <STATUS>] [--parent <PARENT_ID>] [--depends_on <TRAK_ID>]
FlagTypeDescription
--statusstringFilter by status: active, done, failed, blocked, or archived.
--parentstringList Subtraks of the specified parent Trak.
--depends_onstringList Traks that depend on the specified Trak.

ork trak create

Create a new Trak and start its first stage.

ork trak create -t <TITLE> -d <DESCRIPTION> [--flow <FLOW>] [--base_branch <BRANCH>]
FlagRequiredDescription
--title / -tYesTrak title.
--description / -dYesTrak description. Passed to the agent as its task.
--flowNoFlow to assign the Trak to. Defaults to default.
--base_branch / -bNoBranch to base the Trak’s worktree on. Defaults to the current branch.

ork trak show

Show the current state of a Trak.

ork trak show <TRAK_ID> [--iterations] [--sessions] [--git]
FlagDescription
--iterationsInclude iteration history (stages, outcomes, feedback).
--sessionsInclude stage session history (spawning, PIDs, state).
--gitInclude git state (branch, HEAD, dirty status).

ork trak approve

Approve the current stage’s output. The Trak advances to the next stage.

ork trak approve <TRAK_ID>

ork trak reject

Reject the current stage’s output with feedback. The feedback is sent to the agent, which retries.

ork trak reject <TRAK_ID> --feedback <FEEDBACK>
FlagRequiredDescription
--feedback / -fYesExplanation of what needs to change.

ork trak skip

Skip the current stage and advance to the next one without agent output.

ork trak skip <TRAK_ID> --message <MESSAGE>
FlagRequiredDescription
--message / -mYesExplanation of why the stage is being skipped.

ork trak send-to-stage

Route a Trak to a specific stage by name.

ork trak send-to-stage <TRAK_ID> --stage <STAGE> --message <MESSAGE>
FlagRequiredDescription
--stage / -sYesTarget stage name (must exist in the Trak’s flow).
--message / -mYesExplanation of why the Trak is being redirected.

ork trak restart

Restart the current stage with a fresh agent session.

ork trak restart <TRAK_ID> --message <MESSAGE>
FlagRequiredDescription
--message / -mYesExplanation of why the stage is being restarted.

ork trak retry

Retry a failed or blocked Trak.

ork trak retry <TRAK_ID> [--instructions <INSTRUCTIONS>]
FlagRequiredDescription
--instructions / -iNoOptional instructions for the agent on retry.

ork trak address-feedback

Resume a Trak to address CI failures or review feedback after the branch has been pushed.

ork trak address-feedback <TRAK_ID> [--guidance <GUIDANCE>]
FlagRequiredDescription
--guidanceNoOptional guidance for the agent.

ork trak merge

Merge a completed Trak’s branch directly into its base branch.

ork trak merge <TRAK_ID>

The Trak must be in the done state. See also ork trak open-pr if you prefer a pull request.

ork trak open-pr

Create a pull request for a completed Trak’s branch.

ork trak open-pr <TRAK_ID>

ork trak push-pr

Push updated changes to an existing open pull request.

ork trak push-pr <TRAK_ID>

ork trak pull-pr

Pull remote changes into the local worktree for an existing open pull request.

ork trak pull-pr <TRAK_ID>

ork trak retry-pr

Recover from a failed PR creation attempt. Transitions the Trak back to done so ork trak open-pr can be retried.

ork trak retry-pr <TRAK_ID>

ork logs

View agent and script logs for a stage.

ork logs <TRAK_ID> --stage <STAGE> [--type <TYPE>] [--limit <N>] [--offset <N>]
FlagRequiredDefaultDescription
--stageYesStage name to view logs for.
--typeNoFilter by entry type. See Log entry types below.
--limitNo100Maximum number of log entries to return.
--offsetNo0Number of entries to skip (for pagination).

Log entry types

TypeDescription
textPlain text output from the agent.
errorError output from the agent or scripts.
tool_useA tool call made by the main stage agent.
tool_resultThe result returned from a tool call by the main stage agent.
subagent_tool_useA tool call made by a subagent spawned during the stage.
subagent_tool_resultThe result returned from a tool call by a subagent.
process_exitScript or process exit event, including exit code.
user_messageA message sent to the agent by the user (e.g., rejection feedback).

ork play

Run a Trak through all workflow stages non-interactively. Useful for fully automated pipelines.

ork play <DESCRIPTION> [--title <TITLE>] [--flow <FLOW>] [--base_branch <BRANCH>] [--no_integrate] [--no_pr]

description is a required positional argument — pass it directly without a flag name.

FlagRequiredDescription
--title / -tNoTrak title. Defaults to the description if omitted.
--flowNoFlow to use. Defaults to default.
--base_branch / -bNoBase branch for the worktree.
--no_integrateNoSkip merging the branch after all stages complete.
--no_prNoMerge directly to the base branch instead of opening a pull request.

ork pair

Generate a pairing code for daemon access. Used to connect external tools or interfaces to a running Orkestra daemon.

ork pair