Skip to content

Command reference

Every wrkq command with its usage line and flags, generated at build time from the CLI’s own --help output. Nothing here is written by hand, so it cannot drift from the binary you installed.

generated from v0.1.0-272-g7854f29

global flags

Accepted by every command below, so they are listed once here and never repeated. Each command also takes -h, --help.

    --as string              Alias for --principal-ref; accepts agent:<id> or a full agent ScopeRef    --db string              Path to database file (overrides WRKQ_DB_PATH)    --output string          Output mode: table, human, json, ndjson, porcelain, yaml, tsv, raw    --principal-ref string   Caller principal for write attribution: agent:<id> or full agent ScopeRef    --project string         Project to operate under (overrides WRKQ_PROJECT_ROOT)

files12

wrkq ls

alias list

List containers and tasks

$ wrkq ls [path...] [flags]
Flags for wrkq ls
flagdescription
-a, --allInclude archived and deleted items
--cursor stringstringPagination cursor from previous page
--jsonOutput as JSON
--limit intintMaximum number of results to return (0 = no limit)
--ndjsonOutput as newline-delimited JSON
-0, --nulNUL-separated output
-1, --oneOne entry per line
--porcelainMachine-readable output
--prettyForce human-readable table output even when not a TTY
-R, --recursiveList recursively
--reverseReverse sort order
--sort stringstringSort by field: slug, updated_at, created_at, id (default "slug")
--type stringstringFilter by type (p=project, t=task)

wrkq tree

Display containers and tasks in a tree structure

$ wrkq tree [path...] [flags]
Flags for wrkq tree
flagdescription
-a, --allInclude completed/archived/deleted tasks and empty containers
--fields stringstringFields to display (comma-separated)
--jsonOutput as JSON
-L, --level intintMaximum depth to display (0 = unlimited)
--ndjsonOutput as newline-delimited JSON
--openShow only open tasks
--porcelainMachine-readable output
--prettyForce human-readable tree output even when not a TTY
--state stringstringPromise leaf state: open (default) or all

wrkq cat

alias show

Print one or more tasks, containers, or promises.

JSON output is always array-shaped for compatibility, even with one selector. Singleton automation should use --json --one, which asserts exactly one explicit selector and one resolved resource and emits that object without an array wrapper. Shell expansion still counts toward the explicit-selector cardinality.

$ wrkq cat <path|id>... [flags]
Flags for wrkq cat
flagdescription
--exclude-commentsExclude comments from output
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--no-frontmatterPrint body only without front matter
--oneAssert one selector/result and emit one bare JSON object (requires --json)
--porcelainMachine-readable output
--prettyForce the styled task card even when not a TTY
examples
$ wrkq cat T-00001 --json$ wrkq cat T-00001 T-00002 --json$ wrkq cat T-00001 --json --one

wrkq stat

Print metadata for tasks or containers

$ wrkq stat <path|id>... [flags]
Flags for wrkq stat
flagdescription
--jsonOutput as JSON
-0, --nulNUL-separated output

wrkq touch

Create one or more tasks

$ wrkq touch <path>... [flags]
Flags for wrkq touch
flagdescription
--assigned-project stringstringAssignee project ID
--assignee stringstringAssignee principal ref or bare agent slug
--campaign stringstringEnroll the new task in a draft or active campaign by ID or path (the task keeps its own project)
--caused-by stringstringCausal lineage: comma-separated task IDs whose work caused this defect/rework (e.g. T-00012,T-00034)
-d, --description stringstringDescription for the task (use @file.md for file or - for stdin)
--due-at stringstringInitial task due date
--force-uuid stringstringForce specific UUID instead of auto-generating (must be valid UUIDv4)
--jsonOutput as JSON
--kind stringstringTask kind: task, subtask, spike, bug, chore (default: task)
--labels stringstringInitial labels (comma shorthand unless starting '[' for JSON array; empty/[] clears; JSON allows commas)
--meta stringstringInitial task metadata (JSON object or null)
--meta-file stringstringLoad task metadata from file (JSON object or null)
--parent-task stringstringParent task ID or path (for subtasks)
--priority intintInitial task priority (1-4) (default 3)
--requested-by stringstringRequester project ID (return-to target)
--resolution stringstringTask resolution (done, wont_do, duplicate, needs_info)
--specification stringstringSpecification for the task (use @file.md for file or - for stdin)
--start-at stringstringInitial task start date
--state stringstringInitial task state (idea, draft, open, in_progress, completed, blocked, cancelled, archived, deleted) (default "open")
-t, --title stringstringTitle for the task (defaults to slug)

wrkq mkdir

Create one or more containers

$ wrkq mkdir <path>... [flags]
Flags for wrkq mkdir
flagdescription
--kind stringstringContainer kind: project, directory, feature, area (default: directory)
-p, --parentsCreate parent containers as needed

wrkq mv

Move or rename tasks and containers

$ wrkq mv <src>... <dst> [flags]
Flags for wrkq mv
flagdescription
--dry-runShow what would be moved without applying
--if-match intintOnly move if etag matches
--nullglobZero matches is a no-op instead of error
--overwrite-taskAllow overwriting existing tasks
--type stringstringForce type: t (task), p (project/container)
--yesSkip confirmation prompts

wrkq cp

Copy tasks and containers

$ wrkq cp <source>... <destination> [flags]
Flags for wrkq cp
flagdescription
--0NUL-separated output
--1One per line
--continue-on-errorContinue on errors
--dry-runShow what would be copied
--if-match intintConditional copy based on source etag
-j, --jobs intintParallel workers (default 1)
--jsonOutput JSON
--ndjsonOutput NDJSON
--nullglobZero matches is not an error
--overwriteOverwrite existing tasks
--porcelainMachine-readable output
-r, --recursiveCopy containers recursively
--shallowSkip attachments entirely
--with-attachmentsCopy attachment files
--yesSkip confirmation prompts

wrkq rm

Archives (soft delete) or permanently deletes tasks and containers.

By default, performs soft delete (sets archived_at). Use --purge for hard delete. Container purge only removes empty containers; use rmdir --force for recursive deletion.

WARNING: --purge permanently deletes tasks and attachments. This CANNOT be undone!

$ wrkq rm <path|id>... [flags]
Flags for wrkq rm
flagdescription
--continue-on-errorContinue on errors
--dry-runShow what would be removed
-f, --forceForce removal
-j, --jobs intintParallel workers (default 1)
--jsonOutput JSON
--ndjsonOutput NDJSON
--nullglobZero matches is not an error
--porcelainMachine-readable output
--purgePermanently delete (CANNOT BE UNDONE)
-r, --recursiveRemove containers recursively
--yesSkip confirmation prompts

wrkq rmdir

Remove one or more containers

$ wrkq rmdir <path|id>... [flags]
Flags for wrkq rmdir
flagdescription
-f, --forceForce removal of non-empty containers
--yesSkip confirmation prompts

wrkq restore

Restores a deleted or archived task to active state.

The task must be in 'deleted' or 'archived' state. By default, restores to 'open' state. Subtasks are cascade-restored when their parent is restored.

$ wrkq restore <path|id|uuid> [flags]
Flags for wrkq restore
flagdescription
--assignee stringstringUpdate assignee on restore
--comment stringstringAdd comment explaining restoration
--description stringstringUpdate description on restore
--if-match intintConditional restore (etag)
--labels stringstringUpdate labels on restore (comma shorthand unless starting '[' for JSON array; empty/[] clears; JSON allows commas)
--priority intintUpdate priority on restore (1-4)
--state stringstringRestore to specific state (default: open)
--title stringstringUpdate title on restore
--to stringstringRestore to different container/slug (path)

wrkq rename-container

Rename a container by updating both its slug and title.

By default, the title is set to match the new slug. Use --title to specify a custom title.

Examples:
  # Rename both slug and title to "new-project"
  wrkq rename-container old-project new-project
  # Rename with custom title
  wrkq rename-container P-00001 new-project --title "New Project Name"
  # Rename a top-level container in canonical DB
  WRKQ_PROJECT_ROOT="" wrkq rename-container rex rex-control-plane
$ wrkq rename-container <path|id> <new-slug> [flags]
Flags for wrkq rename-container
flagdescription
--dry-runShow what would change without applying
--if-match intintOnly rename if etag matches
--title stringstringCustom title (defaults to new slug)

work10

wrkq set

alias edit

Update task fields; outcome is curated, comments are raw, and completion never requires outcome

$ wrkq set <path|id>... [flags]
Flags for wrkq set
flagdescription
--assigned-project stringstringUpdate assignee project ID
--assignee stringstringUpdate task assignee
--campaign stringstringEnroll in a draft or active campaign by ID or path; the task keeps its own project (empty string unenrolls)
--caused-by stringstringReplace causal lineage with comma-separated task IDs (empty string clears; omit to leave unchanged)
--continue-on-errorContinue processing on errors
-d, --description stringstringUpdate task description
--dry-runShow what would be changed without applying
--due-at stringstringUpdate task due date
--if-match intintOnly update if etag matches
-j, --jobs intintNumber of parallel workers (0 = auto-detect CPU count) (default 1)
--kind stringstringUpdate task kind
--labels stringstringUpdate labels (comma shorthand unless starting '[' for JSON array; empty/[] clears; JSON allows commas)
--meta stringstringUpdate task metadata (JSON object or null)
--meta-file stringstringLoad task metadata from file
--orderedPreserve input order (disables parallelism)
--outcome stringstringSet curated task outcome (use @file or - for stdin; blank clears)
--parent-id stringstringAlias for --parent-task
--parent-task stringstringSet parent task ID or path
--priority intintUpdate task priority (1-4)
--requested-by stringstringUpdate requester project ID
--resolution stringstringUpdate task resolution
--root stringstringSet a top-level project's checkout root (stored as ~/... when under $HOME; empty clears; consumers expand it)
--slug stringstringUpdate task slug
--specification stringstringUpdate task specification
--start-at stringstringUpdate task start date
--state stringstringUpdate task state
--title stringstringUpdate task title

wrkq apply

Update task description/specification from file or stdin

$ wrkq apply <PATHSPEC|ID> <FILE|-> [flags]
Flags for wrkq apply
flagdescription
--dry-runShow what would be changed without applying
--format stringstringInput format: md, yaml, json (auto-detected if not specified)
--if-match intintOnly apply if etag matches (0 = no check)
--with-metadataUpdate metadata fields (title, state, priority, due_at) in addition to description/specification

wrkq comment

Manage task comments

$ wrkq comment [flags]

wrkq comment add

Add a comment to a task or container.

Comment text can be supplied with -m/--message or as a positional argument. Use '-' as the comment-text argument to read the body from stdin. If comment-text is omitted, the body is also read from stdin.

$ wrkq comment add <task-or-container> [comment-text] [flags]
Flags for wrkq comment add
flagdescription
--jsonOutput as JSON
--kind stringstringJudgment kind: blocker, decision, postmortem, or digest
-m, --message stringstringComment text
--meta stringstringComment metadata as a JSON object

wrkq comment cat

Print comment details

$ wrkq comment cat <comment-id|c:token>... [flags]
Flags for wrkq comment cat
flagdescription
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--rawPrint raw comment bodies

wrkq comment ls

List comments for task(s)

$ wrkq comment ls <task>... [flags]
Flags for wrkq comment ls
flagdescription
--cursor stringstringPagination cursor
--humanHuman-readable output
--include-deletedInclude soft-deleted comments
--jsonOutput as JSON
--limit intintMaximum number of results (0 = no limit)
--ndjsonOutput as NDJSON
--porcelainMachine-readable output
--reverseReverse sort order
--sort stringstringSort field
--tsvOutput as TSV
--yamlOutput as YAML

wrkq comment rm

Remove comment(s)

$ wrkq comment rm <comment-id|c:token>... [flags]
Flags for wrkq comment rm
flagdescription
--dry-runPreview without deleting
--if-match intintOnly delete if comment etag matches (0 = skip check)
--purgeHard delete (remove from database)
--yesSkip confirmation

wrkq attach

Manage task attachments

$ wrkq attach [flags]

wrkq attach get

Get an attachment file

$ wrkq attach get <attachment-id> [flags]
Flags for wrkq attach get
flagdescription
--as stringstringOutput path (use '-' for stdout) (default "-")

wrkq attach ls

List attachments for a task

$ wrkq attach ls <task> [flags]
Flags for wrkq attach ls
flagdescription
--cursor stringstringPagination cursor
--jsonOutput as JSON
--limit intintMaximum number of results
--ndjsonOutput as NDJSON
--porcelainMachine-readable output

wrkq attach put

Attach a file to a task

$ wrkq attach put <task> <file|-|> [flags]
Flags for wrkq attach put
flagdescription
--mime stringstringMIME type (auto-detected if not specified)
--name stringstringFilename (defaults to basename of file)

wrkq attach rm

Remove attachment(s)

$ wrkq attach rm <attachment-id>... [flags]
Flags for wrkq attach rm
flagdescription
--yesSkip confirmation

wrkq relation

Manage task relations

$ wrkq relation [flags]

wrkq relation add

Created a relation between tasks

$ wrkq relation add <from-task> <kind> <to-task> [flags]

wrkq relation ls

List relations for a task

$ wrkq relation ls <task> [flags]
Flags for wrkq relation ls
flagdescription
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainMachine-readable output

wrkq relation rm

Removed a relation between tasks

$ wrkq relation rm <from-task> <kind> <to-task> [flags]

wrkq claim

Atomically claim a task for this session

$ wrkq claim <task> [flags]
Flags for wrkq claim
flagdescription
--jsonOutput JSON
--porcelainOutput compact machine-readable JSON
--scope stringstringTask-scoped sessionRef (defaults to the active runtime scope)
--take-overSupersede the current holder and bump generation
--yesSkip takeover confirmation

wrkq release

Release task holdership without changing task state

$ wrkq release <task> [flags]
Flags for wrkq release
flagdescription
--claim-generation intintCurrent claim generation
--claim-token stringstringClaim token returned by wrkq claim
--forceOperator force release without holder token
--jsonOutput JSON
--scope stringstringClaimed task sessionRef (defaults to active runtime scope)
--yesSkip force-release confirmation

wrkq ack

Acknowledge completed tasks

$ wrkq ack <task|id>... [flags]
Flags for wrkq ack
flagdescription
--forceAllow ack on non-completed tasks

wrkq check

Run pre-flight checks on tasks

$ wrkq check [flags]
Flags for wrkq check
flagdescription
--for stringstringPromise owner principal (bare agent slug or agent:<id>)
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY

wrkq check blocked

Check if a task is blocked by incomplete dependencies

$ wrkq check blocked <task> [flags]
Flags for wrkq check blocked
flagdescription
--jsonOutput blockers as JSON
--quietSuppress output, exit code only

wrkq diff

Compare two tasks or task versions

$ wrkq diff <A> [B] [flags]
Flags for wrkq diff
flagdescription
--jsonOutput as JSON
--unified intintLines of unified context (default 3)

find6

wrkq find

Search for tasks and containers

$ wrkq find [PATH...] [flags]
Flags for wrkq find
flagdescription
--ack-pendingFilter for ack-pending tasks (completed/cancelled, not yet acknowledged)
--assigned-project stringstringFilter by assignee project ID
--assignee stringstringFilter by assignee principal ref or bare agent slug
--campaign stringstringFind resident and enrolled members of a campaign
--caused-by stringstringFilter tasks whose caused_by lineage includes this task ID (e.g. T-00012)
--claimed-by stringstringFilter by claim holder principal ref
--claimed-node stringstringFilter by server-derived claim node
--cursor stringstringPagination cursor
--due-after stringstringFilter tasks due after date (YYYY-MM-DD)
--due-before stringstringFilter tasks due before date (YYYY-MM-DD)
--has-outcomeFilter for tasks with a curated outcome
--jsonOutput as JSON
--kind stringstringFilter by task kind: task, subtask, spike, bug, chore
--label stringArraystringArrayFilter by exact task label (repeatable; all must match)
--limit intintLimit number of results
--ndjsonOutput as newline-delimited JSON
--parent-task stringstringFilter subtasks of a specific parent task (ID or path)
--porcelainStable machine-readable output
--prettyForce human-readable table output even when not a TTY
-0, --print0NUL-separated output
--requested-by stringstringFilter by requester project ID
--reverseReverse sort order
--slug-glob stringstringFilter by slug glob pattern (e.g. 'login-*')
--sort stringstringSort by field: updated_at, created_at, id, path
--state stringstringFilter by state (or 'all' for everything)
--type stringstringFilter by type: t (task), p (project/container)

wrkq index

Inspect and rebuild the local search index

$ wrkq index [flags]

wrkq index pause

Pause background search indexing

$ wrkq index pause [flags]

wrkq index rebuild

Rebuild the local search index

$ wrkq index rebuild [flags]
Flags for wrkq index rebuild
flagdescription
--foregroundRun rebuild in the foreground

wrkq index resume

Resume background search indexing

$ wrkq index resume [flags]

wrkq index status

Show local search index status

$ wrkq index status [flags]
Flags for wrkq index status
flagdescription
--jsonOutput as JSON

wrkq index update

Index pending canonical changes

$ wrkq index update [flags]

wrkq index vacuum

Vacuum the local search index

$ wrkq index vacuum [flags]

wrkq log

Show change history for a task, container, or promise

$ wrkq log <PATHSPEC|ID> [flags]
Flags for wrkq log
flagdescription
--cursor stringstringPagination cursor from previous page
--jsonOutput as JSON
--limit intintLimit number of events (0 = unlimited) (default 50)
--onelineCompact one-line format
--patchShow detailed payload changes
--porcelainMachine-readable output with cursor on stderr
--since stringstringShow changes since date/time (YYYY-MM-DD or RFC3339)
--until stringstringShow changes until date/time (YYYY-MM-DD or RFC3339)

wrkq timeline

Show the container-neutral composite timeline.

Entries are ordered by durable event id. Outcome display collapses multiple task.outcome events to the latest text and marks tasks whose outcome was amended.

$ wrkq timeline <container> [flags]
Flags for wrkq timeline
flagdescription
--cursor stringstringContinue an event-id-fenced snapshot page
--limit intintMaximum entries in this page

wrkq usage

alias info

Displays the embedded WRKQ-USAGE.md documentation for agents and users.

$ wrkq usage [flags]
Flags for wrkq usage
flagdescription
--jsonOutput as JSON

watch2

wrkq monitor

Stream and query task events for agent observation via the Claude Monitor tool.

Subcommands:
  watch [TASK...]   Stream task events (Monitor feed)
  wait  [TASK...]   Block until condition is met, then exit
Examples:
  wrkq monitor watch T-04466 --state-only --until state=completed --timeout 30m
  wrkq monitor wait T-1 T-2 T-3 --until all-terminal --stall-after 30m
  wrkq monitor wait EN-00012 --until terminal --timeout 10m

Exit codes: 0=condition met, or a bounded follow with no --until ended on its --timeout/--stall-after clock; 1=--until left unmet by timeout/stall; 2=selector error; 3=stream error.

$ wrkq monitor [flags]

wrkq monitor wait

Block until the --until condition is satisfied for watched tasks, then exit. Shares the exact condition evaluator and exit-code contract with monitor watch --until.

Useful for scripted sequencing: wrkq monitor wait T-00001 --until state=completed An envelope group waits with: wrkq monitor wait EN-00012 --until terminal

$ wrkq monitor wait [TASK...] [flags]
Flags for wrkq monitor wait
flagdescription
--stall-after stringstringExit after this duration with no new events
--timeout stringstringMaximum wait duration (e.g. 30m)
--until stringstringCondition: state=<s>[,<s>...], all-terminal, acked, or terminal

wrkq monitor watch

Stream typed NDJSON events for watched tasks. Emits per-event lines and exactly one terminal line before exit. With no --until, follows until --timeout or --stall-after expires, if either is given, and otherwise indefinitely.

The feed starts at the current high-water mark: it tails what happens NEXT. Use --since <id> to start from an earlier event (--since 0 replays the whole log) or --last N to replay the last N events before following.

Selectors: T-XXXXX friendly IDs or container paths (e.g. inbox/my-task), plus R-XXXXX rooms and EN-XXXXX envelopes. A task selector also carries that task's room, so state changes and the conversation stream on ONE selector; --state-only still emits only task lifecycle changes. An EN- selector that is a fan-out group head covers every envelope of that group. Invalid selectors fail with exit code 2 before any streaming.

$ wrkq monitor watch [TASK...] [flags]
Flags for wrkq monitor watch
flagdescription
--event-type stringstringComma-separated event_type filter
--format stringstringOutput format: ndjson or compact
--last intintReplay last N events before following
--ndjsonOutput as NDJSON
--rawWhole-log unfiltered tail as NDJSON (honors --since, --timeout, --stall-after)
--scope stringstringFilter by scope ref
--since intintStart from event ID (overrides high-water default)
--stall-after stringstringExit after this duration with no new events; applies with or without --until
--state-onlyOnly emit lifecycle state-change events
--timeout stringstringMaximum follow duration (e.g. 30m); bounds the follow with or without --until
--until stringstringCondition: state=<s>[,<s>...], all-terminal, acked, or terminal

wrkq webhook

Manage global webhook subscriptions.

Global webhooks live on the internal root container and are inherited by every project, so a sink registered here fires for all projects without per-project duplication. Per-project or per-container webhooks are managed with 'wrkq container set --webhook-url'.

Examples:
  wrkq webhook list
  wrkq webhook add http://127.0.0.1:18451/api/webhooks/wrkq
  wrkq webhook rm  http://127.0.0.1:18451/api/webhooks/wrkq
$ wrkq webhook [flags]

wrkq webhook add

Add a global webhook URL

$ wrkq webhook add <url> [flags]

wrkq webhook list

List global webhook URLs

$ wrkq webhook list [flags]

wrkq webhook rm

Remove a global webhook URL

$ wrkq webhook rm <url> [flags]

agents8

wrkq agent-info

Displays a condensed quick reference of essential wrkq commands for coding agents.

$ wrkq agent-info [flags]
Flags for wrkq agent-info
flagdescription
--jsonOutput as JSON

wrkq agent-context

Resolve the active agent scope from --scope, AGENT_SCOPE_REF, ASP_SCOPE_REF, ASP_HANDLE, or ASP_AGENT_ID + ASP_PROJECT and print the result.

Useful for debugging agent runtime context. Works without a database connection — actor / container UUID lookups are best-effort extras.

Exits 0 on success, 2 when no scope is resolvable.

Output defaults to a human-readable table on a TTY and JSON when piped. Use --json or --human to force a mode.

$ wrkq agent-context [flags]
Flags for wrkq agent-context
flagdescription
--humanForce human-readable output
--jsonForce JSON output
--scope stringstringOverride scope (ScopeRef like agent:cody:project:wrkq or handle like cody@wrkq)

wrkq agent

Run a chat turn against the predefined agent "seshat".

This is a thin pass-through to 'hrcchat turn seshat'. The 'hrcchat' binary must be on PATH; wrkq does not depend on it at build time. Project context is resolved by hrcchat itself (ASP_PROJECT), exactly as for any other caller.

The prompt is taken from positional args (joined), --file, or stdin ("-"). All hrcchat output is streamed through unchanged.

Common 'hrcchat turn' flags are surfaced directly (--new, --format, --follow, --file). Anything after "--" is forwarded verbatim, so any other hrcchat flag remains reachable without a wrkq change:

  wrkq agent "summarize open risks"
  wrkq agent --follow 30s "work the inbox"
  echo "long prompt" | wrkq agent -
  wrkq agent "do X" -- --stall-after 20m --reply-to msg_01J...
$ wrkq agent [prompt] [-- extra hrcchat-turn args] [flags]
Flags for wrkq agent
flagdescription
--file stringstringRead prompt from file
--follow stringstringEmit bounded progress at the given interval (e.g. 30s)
--format stringstringOutput format: tree, compact, ndjson, json
--newClear context before dispatching (clean slate)

wrkq whoami

Displays the resolved external principal and runtime scope based on configuration and environment.

$ wrkq whoami [flags]
Flags for wrkq whoami
flagdescription
--jsonOutput as JSON

wrkq handoff

Manage agent session handoffs

$ wrkq handoff [flags]

wrkq handoff create

Create a new pending handoff for the resolved agent/project scope.

Exactly one body source must be explicitly selected: --body or --body-file.

$ wrkq handoff create [flags]
Flags for wrkq handoff create
flagdescription
--body stringstringInline Markdown body (mutually exclusive with --body-file)
--body-file stringstringPath to a Markdown body file, or '-' for stdin (mutually exclusive with --body)
--dry-runValidate inputs and print the prospective handoff without writing it
--humanForce human-readable output
--idempotency-key stringstringIdempotency key to safely retry create without producing duplicates
--jsonForce JSON output
--meta stringstringOptional JSON object of additional metadata
--ndjsonForce NDJSON output
--profile stringstringNamed profile to resolve scope/defaults from
--scope stringstringOverride scope (ScopeRef like agent:cody:project:wrkq or handle like cody@wrkq)
-t, --title stringstringHandoff title (required)

wrkq handoff get

Get a single handoff by ID

$ wrkq handoff get <handoff-id> [flags]
Flags for wrkq handoff get
flagdescription
--humanForce human-readable output
--jsonForce JSON output

wrkq handoff list

List handoffs for the resolved agent/project scope

$ wrkq handoff list [flags]
Flags for wrkq handoff list
flagdescription
--cursor stringstringPagination cursor from a previous page
--humanForce human-readable output
--jsonForce JSON output
--limit intintMaximum number of results (0 = server default)
--ndjsonForce NDJSON output
--porcelainEmit next_cursor=<token> on stderr (mirrors 'wrkq comment ls --porcelain')
--scope stringstringOverride scope (ScopeRef like agent:cody:project:wrkq or handle like cody@wrkq)
--status stringstringStatus filter: pending, acknowledged, or all (default: pending) (default "pending")

wrkq promise

Manage future-attention promises

$ wrkq promise [flags]

wrkq promise abandon

Deliberately abandon a promise after review

$ wrkq promise abandon <promise> [flags]
Flags for wrkq promise abandon
flagdescription
--etag intintAlias for --if-match
--if-match intintOnly mutate if the promise etag matches
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--note stringstringReview note (literal, @file, or - for stdin)
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY

wrkq promise add

Record a promise to revisit a subject

$ wrkq promise add [flags]
Flags for wrkq promise add
flagdescription
--campaign stringstringAlias for --container
--container stringstringAttach to a container
--for stringstringOwner principal (bare agent slug or agent:<id>)
--in stringstringRelative review duration resolved by the API (for example 7d or 36h)
--jsonOutput as JSON
--meta stringstringMetadata JSON object
--meta-file stringstringRead metadata JSON from a file or - for stdin
--ndjsonOutput as newline-delimited JSON
--on-behalfAssert the named owner requested this accepted promise
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY
--question stringstringReview question (literal, @file, or - for stdin)
--review-at stringstringAbsolute review timestamp (forwarded verbatim to the API)
--subject stringstringSubject snapshot (literal, @file, or - for stdin)
--task stringstringAttach to a task

wrkq promise attach

Attach a promise to a task or container

$ wrkq promise attach <promise> [flags]
Flags for wrkq promise attach
flagdescription
--campaign stringstringAlias for --container
--container stringstringAttach to a container
--etag intintAlias for --if-match
--if-match intintOnly mutate if the promise etag matches
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY
--task stringstringAttach to a task

wrkq promise detach

Detach a promise while preserving its subject snapshot

$ wrkq promise detach <promise> [flags]
Flags for wrkq promise detach
flagdescription
--etag intintAlias for --if-match
--if-match intintOnly mutate if the promise etag matches
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY

wrkq promise edit

Edit an open promise

$ wrkq promise edit <promise> [flags]
Flags for wrkq promise edit
flagdescription
--etag intintAlias for --if-match
--if-match intintOnly mutate if the promise etag matches
--in stringstringRelative review duration resolved by the API
--jsonOutput as JSON
--meta stringstringMetadata JSON object
--meta-file stringstringRead metadata JSON from a file or - for stdin
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY
--question stringstringReview question (literal, @file, or - for stdin; empty clears)
--review-at stringstringAbsolute review timestamp (forwarded verbatim to the API)
--subject stringstringSubject snapshot (literal, @file, or - for stdin)

wrkq promise list

List promises

$ wrkq promise list [flags]
Flags for wrkq promise list
flagdescription
--campaign stringstringAlias for --container
--container stringstringFilter by attached container
--for stringstringOwner principal (bare agent slug or agent:<id>)
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY
--state stringstringFilter by open, resolved, abandoned, or all
--task stringstringFilter by attached task

wrkq promise ready

List promises ready for review

$ wrkq promise ready [flags]
Flags for wrkq promise ready
flagdescription
--for stringstringOwner principal (bare agent slug or agent:<id>)
--include-globalInclude standalone owner-global promises
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY

wrkq promise renew

Record a review and choose the next review time

$ wrkq promise renew <promise> [flags]
Flags for wrkq promise renew
flagdescription
--etag intintAlias for --if-match
--if-match intintOnly mutate if the promise etag matches
--in stringstringRelative review duration resolved by the API
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--note stringstringReview note (literal, @file, or - for stdin)
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY
--review-at stringstringAbsolute review timestamp (forwarded verbatim to the API)

wrkq promise resolve

Resolve a promise after review

$ wrkq promise resolve <promise> [flags]
Flags for wrkq promise resolve
flagdescription
--etag intintAlias for --if-match
--if-match intintOnly mutate if the promise etag matches
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--note stringstringReview note (literal, @file, or - for stdin)
--porcelainStable machine-readable output
--prettyForce human-readable output even when not a TTY

wrkq check-inbox

List open tasks in the inbox

$ wrkq check-inbox [flags]
Flags for wrkq check-inbox
flagdescription
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--porcelainStable machine-readable output

projects7

wrkq projects

Lists all top-level projects (containers with no parent) in the database.

This command always shows all projects regardless of WRKQ_PROJECT_ROOT, making it easy to see what projects exist when working in a scoped context.

Examples:
  wrkq projects              # List all projects in table format
  wrkq projects --json       # Output as JSON
  wrkq projects -1           # One project slug per line
  wrkq projects -a           # Include archived projects
$ wrkq projects [flags]
Flags for wrkq projects
flagdescription
-a, --allInclude archived projects
--cursor stringstringPagination cursor from previous page
--jsonOutput as JSON
--limit intintMaximum number of results to return (0 = no limit)
--ndjsonOutput as newline-delimited JSON
-0, --nulNUL-separated output
-1, --oneOne entry per line
--porcelainMachine-readable output

wrkq container

Manage containers

$ wrkq container [flags]

wrkq container cat

Print container details

$ wrkq container cat <path|id> [flags]
Flags for wrkq container cat
flagdescription
--jsonOutput as JSON
--ndjsonOutput as newline-delimited JSON
--no-frontmatterPrint body only without front matter
--porcelainMachine-readable output

wrkq container set

Update container configuration fields.

A webhook subscription is either a bare URL (receives every event family) or a URL narrowed to one or more event classes: task, workflow, container — or an exact event name. --webhook-events narrows every URL passed with --webhook-url / --add-webhook-url in the same invocation; --webhook-urls takes the stored JSON form directly and may mix bare and narrowed entries.

Examples:
  wrkq container set inbox --webhook-urls '["http://localhost/hook/{ticket_id}"]'
  wrkq container set inbox --webhook-urls '[{"url":"http://localhost/hook","events":["container"]}]'
  wrkq container set P-00001 --webhook-url http://localhost/hook/{ticket_id}
  wrkq container set inbox --webhook-url http://localhost/hook --webhook-events container
  wrkq container set inbox --add-webhook-url http://localhost/hook2
  wrkq container set inbox --add-webhook-url http://localhost/hook2 --webhook-events task,workflow
  wrkq container set inbox --remove-webhook-url http://localhost/old-hook
  wrkq container set --all --remove-webhook-url http://localhost/old-hook
$ wrkq container set <container> [flags]
Flags for wrkq container set
flagdescription
--add-webhook-url stringArraystringArrayAdd webhook URL to existing list (repeatable)
--allApply to all containers
--if-match intintConditional update (etag)
--remove-webhook-url stringArraystringArrayRemove webhook URL from existing list, matched by URL (repeatable)
--webhook-events stringsstringsNarrow --webhook-url/--add-webhook-url to these event classes (task, workflow, container) or exact event names
--webhook-url stringArraystringArrayWebhook URL (repeatable)
--webhook-urls stringstringWebhook subscriptions JSON array; entries are "url" or {"url":...,"events":[...]}

wrkq campaign

Manage a container's campaign lifecycle.

Campaigns adorn ordinary containers; the container kind and archive state remain independent. Brief/specification edits are mechanically retained as full-body container.updated event snapshots. Use kind=decision container comments for the curated judgment behind a specification change.

$ wrkq campaign [flags]

wrkq campaign activate

Activate a draft campaign

$ wrkq campaign activate <container> [flags]
Flags for wrkq campaign activate
flagdescription
--if-match intintOnly activate if the campaign etag matches

wrkq campaign close

Declare campaign closure.

Completed close requires every resident or enrolled member to be completed, cancelled, archived, deleted, moved, or unenrolled first. Completed members without outcomes are displayed but never block close. Cancelled close is a wholesale abandonment and leaves open members unchanged.

$ wrkq campaign close <container> [flags]
Flags for wrkq campaign close
flagdescription
--if-match intintOnly close if the container etag matches
--state stringstringTerminal campaign state: completed or cancelled

wrkq campaign convert

Convert a plain container into a draft or active campaign

$ wrkq campaign convert <container> [flags]
Flags for wrkq campaign convert
flagdescription
-d, --description stringstringCampaign brief (literal, @file, or - for stdin)
--if-match intintOnly convert if the container etag matches
--labels stringstringCampaign labels (comma shorthand unless starting '[' for JSON array; empty/[] clears; JSON allows commas)
--specification stringstringCampaign specification (literal, @file, or - for stdin)
--state stringstringInitial campaign state: draft or active (default "active")

wrkq campaign edit

Edit campaign content.

The generic container.updated event snapshots BOTH complete bodies after every edit. Use a kind=decision container comment for curated amendment rationale.

$ wrkq campaign edit <container> [flags]
Flags for wrkq campaign edit
flagdescription
-d, --description stringstringCampaign brief (literal, @file, or - for stdin; empty clears)
--if-match intintOnly edit if the container etag matches
--labels stringstringCampaign labels (comma shorthand unless starting '[' for JSON array; empty/[] clears; JSON allows commas)
--specification stringstringCampaign specification (literal, @file, or - for stdin; empty clears)

wrkq campaign portfolio

Show the complete campaign portfolio aggregate

$ wrkq campaign portfolio [flags]
Flags for wrkq campaign portfolio
flagdescription
--include-archivedInclude archived campaign containers
--state stringsstringsCampaign states to include (repeatable or comma-separated)

wrkq server

Manage the wrkq daemon server

$ wrkq server [flags]
Flags for wrkq server
flagdescription
--addr stringstringListen/status address
--db-path stringstringDatabase path override
--token stringstringShared token for local auth
--unix stringstringListen/status Unix socket path
--unsafe-no-tokenAllow non-loopback listen without a token (dev only)

wrkq server health

Check wrkq daemon server health

$ wrkq server health [flags]

wrkq server restart

Restart the wrkq daemon server

$ wrkq server restart [flags]
Flags for wrkq server restart
flagdescription
--daemonRun as a background process when launchd is not loaded
--forceEscalate to SIGKILL if graceful shutdown times out
--foregroundRun in the foreground when launchd is not loaded
--timeout-ms intintShutdown/startup timeout in milliseconds (default 30000)

wrkq server serve

Run the wrkq daemon server in the foreground

$ wrkq server serve [flags]

wrkq server start

Start the wrkq daemon server

$ wrkq server start [flags]
Flags for wrkq server start
flagdescription
--daemonRun as a background process when launchd is not loaded
--foregroundRun in the foreground when launchd is not loaded
--timeout-ms intintStartup timeout in milliseconds (default 30000)

wrkq server status

Show wrkq daemon server status

$ wrkq server status [flags]
Flags for wrkq server status
flagdescription
--jsonOutput as JSON

wrkq server stop

Stop the wrkq daemon server

$ wrkq server stop [flags]
Flags for wrkq server stop
flagdescription
--forceEscalate to SIGKILL if graceful shutdown times out
--timeout-ms intintShutdown timeout in milliseconds (default 5000)

wrkq rpc

Serve wrkq/wrkf JSON-RPC over stdio

$ wrkq rpc --stdio [flags]
Flags for wrkq rpc
flagdescription
--stdioUse stdin/stdout JSON-RPC transport

wrkq completion

Generate the autocompletion script for the specified shell

$ wrkq completion [flags]

wrkq completion bash

Generate the autocompletion script for bash

$ wrkq completion bash
Flags for wrkq completion bash
flagdescription
--no-descriptionsdisable completion descriptions

wrkq version

Displays version, commit, and build date information.

$ wrkq version [flags]
Flags for wrkq version
flagdescription
--jsonOutput as JSON