Manage iterations -- execution plans that group tasks into phases. Iterations let you
organize work into ordered phases for parallel or sequential execution.
Usage
gest iteration <COMMAND> [OPTIONS]
Subcommands
| Command | Aliases | Description |
|---|
add | | Add a task to an iteration |
advance | | Advance to the next phase |
cancel | | Cancel an iteration and all its non-terminal tasks |
create | new | Create a new iteration |
graph | | Display the phased execution graph |
link | | Create a relationship between entities |
list | ls | List iterations with optional filters |
meta | | Read or write metadata fields |
next | | Find or claim the next available task |
remove | rm | Remove a task from an iteration |
reopen | | Reopen a cancelled iteration and restore tasks |
show | view | Display an iteration's details |
status | | Display aggregated iteration progress |
tag | | Add tags to an iteration |
untag | | Remove tags from an iteration |
update | edit | Update an iteration's fields |
iteration add
Add an existing task to an iteration.
gest iteration add [OPTIONS] <ID> <TASK_ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
<TASK_ID> | Task ID or unique prefix to add |
Options
| Flag | Description |
|---|
-j, --json | Output the iteration as JSON after adding the task |
-q, --quiet | Output only the iteration ID |
Examples
gest iteration add iter123 task456
iteration advance
Validate that the active phase is complete and advance to the next phase. All tasks in the
current phase must be in a terminal state (done or cancelled) unless --force is used.
gest iteration advance [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
--force | Advance even if the current phase has non-terminal tasks |
Examples
gest iteration advance abc123
gest iteration advance abc123 --force
iteration cancel
Cancel an iteration and automatically cancel all its non-terminal tasks (open and
in-progress). Tasks already done or cancelled are not affected. This is a shortcut
for iteration update <ID> --status cancelled.
gest iteration cancel [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
-j, --json | Output as JSON |
-q, --quiet | Print only the ID |
Examples
gest iteration cancel abc123
gest iteration cancel abc123 --json
iteration create
Create a new iteration.
gest iteration create [OPTIONS] <TITLE>
Arguments
| Argument | Description |
|---|
<TITLE> | Iteration title |
Options
| Flag | Description |
|---|
-d, --description <DESCRIPTION> | Description text |
-j, --json | Output the created iteration as JSON |
-m, --metadata <METADATA> | Key=value metadata pair (repeatable, e.g. -m key=value) |
-q, --quiet | Print only the iteration ID |
-s, --status <STATUS> | Initial status: active, cancelled, or completed (default: active). failed is accepted but deprecated. |
--tag <TAG> | Tag (repeatable, or comma-separated) |
Examples
gest iteration create "Sprint 1"
gest iteration create "Auth Refactor" -d "Rewrite authentication layer" --tag "backend,q2"
gest iteration create "Sprint 2" --json
gest iteration create "Sprint 2" -q
iteration graph
Display the phased execution graph for an iteration. This shows tasks grouped by phase
with their statuses and dependencies.
gest iteration graph <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Examples
gest iteration graph abc123
iteration link
Create a relationship between an iteration and another entity.
gest iteration link [OPTIONS] <ID> <REL> <TARGET_ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
<REL> | Relationship type: blocked-by, blocks, child-of, parent-of, relates-to |
<TARGET_ID> | Target iteration or artifact ID or unique prefix |
Options
| Flag | Description |
|---|
--artifact | Target is an artifact instead of an iteration |
-j, --json | Output the iteration as JSON after linking |
-q, --quiet | Output only the iteration ID |
Examples
gest iteration link abc123 blocks def456
gest iteration link abc123 relates-to art789 --artifact
iteration list
List iterations, optionally filtered by status or tag.
gest iteration list [OPTIONS]
Options
| Flag | Description |
|---|
-a, --all | Include resolved (completed/cancelled) iterations |
--has-available | Only show iterations with at least one claimable task |
-j, --json | Output iteration list as JSON |
-s, --status <STATUS> | Filter by status: active, cancelled, or completed. failed is accepted but deprecated. |
--tag <TAG> | Filter by tag |
Examples
gest iteration list
gest iteration list --all
gest iteration list -s active
Read or write iteration metadata fields. Metadata uses dot-delimited key paths for nested values.
gest iteration meta <COMMAND>
Retrieve a single metadata value.
gest iteration meta get [OPTIONS] <ID> <PATH>
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
<PATH> | Dot-delimited key path (e.g. outer.inner) |
| Flag | Description |
|---|
--json | Output as a JSON object |
--raw | Output the bare value with no styling |
Set a metadata value. Strings, numbers, and booleans are auto-detected.
gest iteration meta set [OPTIONS] <ID> <PATH> <VALUE>
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
<PATH> | Dot-delimited key path (e.g. outer.inner) |
<VALUE> | Value to set |
| Flag | Description |
|---|
-j, --json | Output as JSON |
-q, --quiet | Print only the entity ID |
Examples
gest iteration meta set abc123 goal "Ship auth module"
gest iteration meta get abc123 goal
gest iteration meta get abc123 goal --json
gest iteration meta get abc123 goal --raw
iteration next
Find (or claim) the next available task in an iteration. The task is selected from the
active phase -- the lowest phase with incomplete tasks -- sorted by priority then creation
date.
gest iteration next [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
--claim | Set the task to in-progress and assign it |
--agent <AGENT> | Agent name for assignment (required with --claim) |
-j, --json | Output as JSON |
Exit Codes
| Code | Meaning |
|---|
| 0 | Task found (and claimed if --claim was used) |
| 1 | Error (invalid ID, missing --agent, etc.) |
| 2 | No available tasks in the active phase |
Examples
gest iteration next abc123
gest iteration next abc123 --claim --agent worker-1
gest iteration next abc123 --claim --agent worker-1 --json
iteration remove
Remove a task from an iteration.
gest iteration remove [OPTIONS] <ID> <TASK_ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
<TASK_ID> | Task ID or unique prefix to remove |
Options
| Flag | Description |
|---|
-j, --json | Output the iteration as JSON after removing the task |
-q, --quiet | Output only the iteration ID |
Examples
gest iteration remove iter123 task456
iteration reopen
Reopen a cancelled (or failed) iteration and restore all its cancelled tasks to open.
Tasks with done status are left unchanged. This reverses the effect of
iteration cancel.
gest iteration reopen [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
-j, --json | Output as JSON |
-q, --quiet | Print only the ID |
Examples
gest iteration reopen abc123
gest iteration reopen abc123 --json
iteration show
Display an iteration's details, task counts, and phase summary.
gest iteration show [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
-j, --json | Output iteration details as JSON |
Examples
gest iteration show abc123
gest iteration show abc123 --json
iteration status
Display aggregated progress for an iteration, including active phase, task counts,
blockers, and assignees.
gest iteration status [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
-j, --json | Output iteration status as JSON |
Examples
gest iteration status abc123
gest iteration status abc123 --json
iteration tag
Add tags to an iteration, deduplicating with any existing tags.
gest iteration tag [OPTIONS] <ID> [TAGS]...
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
[TAGS]... | Tags to add (space or comma-separated) |
Options
| Flag | Description |
|---|
-j, --json | Output the iteration as JSON after tagging |
-q, --quiet | Output only the iteration ID |
Examples
gest iteration tag abc123 sprint-1 backend
gest iteration tag abc123 sprint-1,backend
iteration untag
Remove tags from an iteration.
gest iteration untag [OPTIONS] <ID> [TAGS]...
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
[TAGS]... | Tags to remove (space or comma-separated) |
Options
| Flag | Description |
|---|
-j, --json | Output the iteration as JSON after untagging |
-q, --quiet | Output only the iteration ID |
Examples
gest iteration untag abc123 draft
iteration update
Update an iteration's title, description, status, tags, or metadata.
gest iteration update [OPTIONS] <ID>
Arguments
| Argument | Description |
|---|
<ID> | Iteration ID or unique prefix |
Options
| Flag | Description |
|---|
-d, --description <DESCRIPTION> | New description |
-j, --json | Output as JSON |
-m, --metadata <METADATA> | Key=value metadata pair, merged with existing (repeatable) |
-q, --quiet | Print only the iteration ID |
-s, --status <STATUS> | New status: active, cancelled, or completed. failed is accepted but deprecated. |
--tag <TAG> | Replace all tags (repeatable, or comma-separated) |
-t, --title <TITLE> | New title |
Examples
gest iteration update abc123 -s completed
gest iteration update abc123 -t "Sprint 1 - Revised" -m goal="deliver auth"
gest iteration update abc123 -s completed --json