Skip to content
Task
AGH RuntimeTask

agh task

Manage tasks and task runs

Audience
Operators running durable agent work
Focus
Task guidance shaped for scanability, day-two clarity, and operator context.

agh task

Manage tasks and task runs

agh task [flags]

Examples

  # Create durable task intent without starting execution
  agh task create --scope workspace --workspace checkout-api --title "Audit auth flow"

  # Explicitly enqueue execution for an existing task
  agh task start task-123 --channel coord-run-123

  # Let the current agent session claim work
  agh task next --wait

Options

  -h, --help   help for task

Options inherited from parent commands

      --json            Emit JSON output
  -o, --output string   Output format: human, json, jsonl, or toon (default "human")

Output Formats

Every AGH command supports -o, --output:

  • human for interactive terminal use
  • json for scripts and other machine-readable consumers
  • jsonl for wait or streaming commands that emit one JSON record per line
  • toon for compact agent-readable summaries

Example:

agh task -o json

Subcommands

CommandDescription
agh task approveApprove a task and enqueue its first run
agh task cancelCancel a task tree
agh task childManage child tasks
agh task completeComplete a claimed task run for the current agent session
agh task createCreate a task
agh task dependencyManage task dependencies
agh task failFail a claimed task run for the current agent session
agh task getShow one task with related detail
agh task heartbeatExtend a claimed task run lease for the current agent session
agh task listList tasks
agh task nextClaim the next task run for the current agent session
agh task publishPublish a draft task and enqueue its first run
agh task releaseRelease a claimed task run for the current agent session
agh task runManage task runs
agh task startEnqueue a run for an executable task
agh task updateUpdate mutable task fields

On this page