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 deleteDelete a task
agh task dependencyManage task dependencies
agh task failFail task runs through a session-bound lease or operator override
agh task getShow one task with related detail
agh task heartbeatExtend a claimed task run lease for the current agent session
agh task inspectInspect a task or run with diagnostics
agh task listList tasks
agh task nextClaim the next task run for the current agent session
agh task notificationManage task terminal notifications
agh task pausePause new runs for one task
agh task profileManage task execution profiles
agh task publishPublish a draft task and enqueue its first run
agh task recoverRecover one needs_attention task run
agh task rejectReject a pending approval task
agh task releaseForce release claimed task runs back to the queue
agh task resumeResume new runs for one paused task
agh task retryRetry one failed task run
agh task reviewManage task-run reviews
agh task runManage task runs
agh task startEnqueue a run for an executable task
agh task updateUpdate mutable task fields

On this page