CLI Commands
AI-DLC has two user-facing command planes. Harness chat commands drive a
workflow through /aidlc (or $aidlc on Codex); the installed native
aidlc command initializes projects and provides machine lifecycle,
diagnostic and lifecycle routes.
Invocation prefix differs by harness. On Claude Code, Kiro IDE, Kiro CLI, Cursor, opencode, and GitHub Copilot you type
/aidlc; on Codex CLI it is$aidlc(or/skills→ aidlc). The flags and behaviour below are identical either way — only the prefix changes. The examples use/aidlc; substitute$aidlcon Codex. See the Kiro, Kiro CLI (V2), Codex CLI, Cursor, opencode, and GitHub Copilot harness guides.Cursor shortcuts. Cursor also exposes
/aidlc-status,/aidlc-jump --stage <slug|#>(or--phase <name|#>), and/aidlc-scope <name>as native skills. They package the matching/aidlcforms below and use the same engine; they are aliases, not alternate state paths.
Quick Reference
| Command | Description |
|---|---|
/aidlc [scope] |
Start a new workflow with an explicit scope |
/aidlc [description] |
Start a new workflow; the agent proposes a plan from your description (or offers to compose one when none fits) |
/aidlc compose "<task>" |
Force the adaptive composer: propose a tailored EXECUTE/SKIP plan for the task |
/aidlc compose --report <path> |
Compose from a scan report (triage findings into a compact fix-and-ship run) |
/aidlc --new-scope '<task>' |
Force the composer to synthesize a custom plan even when a stock scope matches |
/aidlc |
Resume the open workflow; with no work yet, the agent asks what you want to build |
/aidlc park |
Park the active workflow at the current stage boundary for a later session or another person |
/aidlc team-board [--snapshot] [--space <name>] [--intent <name>] |
Read-only Team Construction board (Unit progress, claims, merge readiness) |
/aidlc intent [name] |
List intents in the active space (--all includes archived), or switch to an existing intent |
/aidlc intent archive <name> |
Retire an in-flight or completed intent without deleting its record; unarchive <name> brings it back |
/aidlc intent add-repo <name> [--path <folder>] [--url <address>] |
Add a repo to the active piece of work at any stage, from where repos.json puts it or the folder you name, cloning it first when it is not here yet; remove-repo <name> takes one out (the last one only when the work goes back to the workspace folder: a git submodule of the project at any stage, any other repo before Construction) |
/aidlc intent set-repos <name,...> |
Set exactly which sibling repos the active piece of work covers; --all keeps every recorded repo |
/aidlc intent add-checkout <path> |
Have the review cover code kept in a worktree in the harness folder or outside the project; remove-checkout <path> takes it out |
/aidlc space [name] |
List spaces, or switch to an existing space |
/aidlc space-create <name> |
Create a new space that starts from the default space's org rules and empty team and project practices |
/aidlc knowledge <verb> |
Index and read your own documents (onboard, sync, list, show, associate, dissociate, rebind, summarize) |
/aidlc <plugin command> [args] |
Run a command an installed plugin adds (aidlc <name> in a terminal); aidlc --help lists them under their plugin |
/aidlc --status |
Display a read-only status summary |
/aidlc --config [section] |
Configure project policy conversationally, then land exact deterministic config flags |
/aidlc --claim <unit> [--team <label>] [--rhythm <per-stage\|unit-end>] |
Atomically claim an open team-owned Unit and bind this checkout to that attempt |
/aidlc --release <unit> |
Release a live Unit claim from unscoped main by publishing a tombstone |
/aidlc unit assign --here <unit> |
At the lead's project, build a Unit here: its claim is taken for the lead's project, like any take |
/aidlc unit take <unit> --plan <work id> --from <address> |
Take a Unit of the lead's plan, shared in the code repository at that address, as your team's own piece of work, or carry its build on |
/aidlc unit push [--later] [--remote <repo>=<name>] [--branch <name>] [--commit-message-file <file>] [--finish-merge] [--merge-main [--put-aside]] [--undo-merge] [--replace] [--to-fork] |
In a Unit's build, commit and push exactly its files on its branch in each repo, and send the result back to the lead's project |
/aidlc unit send-back <unit> |
At the lead's project, send a taken Unit back from Build and Test in the failure's words |
/aidlc unit propose --input <file> |
In a Unit's build, send the lead a change to an input the Unit was approved with |
/aidlc unit rebase |
In a Unit's build started early, move it onto the branch the Unit it waited on merged into |
/aidlc unit amend <unit> --input <file> --answer <approve\|reject> |
At the lead's project, answer a builder's proposed change, in your own words |
/aidlc unit lead-sign-off on\|off |
At the lead's project, make each taken Unit's result wait for your sign-off, or not (off by default) |
/aidlc unit plan-change keep\|take-out --tip <commit> |
At the lead's project, answer the question about a change on the shared plan that was not made here: keep it, or put the plan back as you last had it at your next write to it |
/aidlc unit lead-here [--off] |
In a checkout that did not make the plan (the lead on another machine), record the lead's own word that they lead the work there, so the lead's questions are put there; --off takes that word back |
/aidlc unit sign-off <unit> |
At the lead's project, sign a Unit's result off, in your own words |
/aidlc unit turned-down <unit> --repo <repo> |
At the lead's project, send one repo of a team's Unit back to the team, with your words |
/aidlc unit merged <unit> --repo <repo> [--pull-request <n>] |
At the lead's project, count one repo of a team's Unit as merged where the board does not see it, in your words; with --pull-request <n>, name that pull request as the Unit's build there |
/aidlc unit adopt <unit> |
Adopt the checked-out live claim branch in a fresh clone |
/aidlc unit participate |
Mark this clone for the guided Unit-claim picker |
/aidlc unit catch-up |
At the lead's project, before Build and Test, bring each repo here that lacks a merged Unit up to date with its remote, a fast-forward only |
/aidlc unit share [--plan [--repo <name or address>] [--carry-words] [--stands <unit>=here\|plan[,...]] [--visible \| --off-branch [--tip <plan commit>]] [--main]] [--branch \| --back] [--commit-message-file <file>] |
Commit the work here and push the integration branch so its Units can be taken, or a landed one seen; --plan commits AI-DLC's record only, and at work whose Units are each built in the workspace of whoever takes it puts the plan in one code repository instead (the work's first, or the one --repo names; once it is shared, --repo moves it there) and commits nothing here; --visible puts the plan there on a branch people can open, --off-branch takes it off that branch again; --main, where the plan lives in this repository and no Unit's code is built here, then also commits AI-DLC's record and pushes the integration branch; --branch pushes the share's commit on a branch of its own for a pull request; --back switches back to the integration branch once that commit is in it |
/aidlc unit commit-record [--update [--leave <path>]...] [--commit-message-file <file>] |
Commit AI-DLC's record in aidlc/ (and a repos.json still at the project root) on this branch, nothing else, and push nothing; with --update, AI-DLC's own files an update changed instead |
/aidlc unit publish <unit> [--commit [--include <path>]...] |
CAS-publish the scoped checkout's clean committed candidate onto its claim ref; --commit commits the Unit's own work first, and --include puts in a new file or folder it left out |
/aidlc unit pin <unit> |
Pin and validate one completed candidate OID from unscoped main |
/aidlc unit gate <unit> ... |
Record the merge decision against the pinned OID and generation |
/aidlc unit land <unit> ... |
Run the resumable git → state → audit landing transaction |
/aidlc unit merge-status <unit> |
Read the local pinned-merge transaction journal |
/aidlc unit status |
Read the current claimable, claimed, and dependency-blocked Unit sets |
/aidlc --doctor [--check-updates] |
Run a health check; the explicit flag refreshes update metadata |
/aidlc --doctor --export |
Run a fresh health check, then write a small, redacted diagnostic report for sharing |
/aidlc --stage <slug\|#> |
Jump to a specific stage |
/aidlc --stage <slug> --single |
Run one stage in isolation, without advancing your workflow |
/aidlc --phase <name\|#> |
Jump to the start of a phase |
/aidlc --scope <name> |
Change the active scope; to generate a start command with a scope, settings and stage changes, use the Interactive Composer |
/aidlc --depth <level> |
Override depth level (minimal, standard, comprehensive) |
/aidlc --test-strategy <level> |
Override test strategy (minimal, standard, comprehensive) |
/aidlc --project-type <type> |
Say whether this work is a new project or existing code (greenfield, brownfield); mid-workflow it scans again and runs Reverse Engineering for existing code |
/aidlc --review <class> |
Set stage reviews for this run, replacing the scope cap (adversarial, advisory, none) |
/aidlc --guard-policy <value> |
Set how far the guards stand aside for this piece of work (strict, relaxed, off); --change-control is its retired name |
/aidlc --sensors <on\|off> |
Set automatic Sensor execution and blocking-sensor checks for this intent |
/aidlc --learnings <on\|off> |
Set the learning diary and learning-gate ceremony for this intent |
/aidlc --summary-confirmation <on\|off> |
Set the consolidated-summary confirmation checkpoint for this intent |
/aidlc --plan-approval <on\|off> |
Set whether each code plan is shown for approval before it is built, for this intent (only the person turns it off) |
/aidlc --collaborators <on\|off> |
Set whether stages bring in their support agents or run with the lead agent only, for this intent |
/aidlc --statusline <on\|off> |
Show AI-DLC's progress in the status line, or give yours back (Claude Code: for you only; Codex: for everyone in the project) |
/aidlc config get <key> |
Print active workflow config (depth, test-strategy, review, guard-policy, sensors, learnings, summary-confirmation, plan-approval, collaborators, guard.<fence>) |
/aidlc config set <key> <value> [--key value ...] |
Change intent settings through the shared setter; the agent runs it for a setting typed as a flag or asked for in plain words |
/aidlc config set guard.<fence> <on\|off> |
Turn one fence off for this piece of work, or back on above the policy word (review-freeze, state-transition, reviewer-scope; guard.plan-approval is another name for plan-approval) |
/aidlc config list |
List all thirteen active workflow settings (--json for structured output) |
/aidlc plugin select [names] |
Show or set the enabled plugin list for this install |
/aidlc plugin list |
List installed plugins and enabled state |
/aidlc plugin sync |
Compose installed plugin roots into the current install |
/aidlc plugin validate [path] |
Validate an authored plugin (--with <base-root> checks a base plugin's agents; --json for structured findings) |
/aidlc plugin build <harness> [outDir] |
Build a host plugin projection (--plugin-root <path> selects the source) |
aidlc plugin test [path] --install <project-root> |
From a terminal: test that an authored plugin composes into a copy of a project, which is never changed (--harness <name>, --with <base-root>, --json) |
/aidlc --version |
Print the framework version |
/aidlc --help |
Display usage information |
bun .claude/tools/aidlc-utility.ts select-plugins [names] |
Direct utility form of plugin selection |
aidlc engine worktree restore --slug <slug> [--parked <stamp>] [--raw] |
Recover files from a set-aside Bolt attempt in a separate checkout |
aidlc engine worktree purge --slug <slug> [--parked <stamp> \| --older-than <days>] |
Remove selected local recovery refs once their restored checkouts are gone |
--status, --doctor, --help and --version run on their own or beside
other flags. Inside a description they are part of what you asked for:
/aidlc add a --version flag that prints the version from package.json starts
that work, and prints no AI-DLC version.
Terminal Color
The six public terminal commands (config, doctor, version, update,
use, and uninstall) use restrained color only on human output. JSON, quiet
output, files, audit records, and non-TTY streams remain uncolored.
Color selection uses this precedence:
--no-colordisables color.- A set
NO_COLORenvironment variable disables color, regardless of value. - A non-empty
FORCE_COLORvalue other than0enables color. - Otherwise, color is enabled only for a TTY stream when
TERMis notdumb.
The decision is made independently for stdout and stderr. Use --no-color for
one command, NO_COLOR=1 for a shell or process environment, and
FORCE_COLOR=1 when a terminal wrapper supports ANSI color but does not expose
TTY detection.
Command Decision Tree
flowchart TD
START(["What do you want to do?"])
Q1{"Start a new\nworkflow?"}
Q2{"Check or manage\nan existing workflow?"}
Q3{"Verify the\nproject?"}
A1["/aidlc feature"]
A2["/aidlc Build a payments API"]
A3["/aidlc"]
A4["/aidlc --status"]
A5["/aidlc --stage code-generation"]
A6["/aidlc --phase construction"]
A8["/aidlc --doctor"]
START --> Q1
START --> Q2
START --> Q3
Q1 -->|"Know the scope"| A1
Q1 -->|"Describe what you want"| A2
Q2 -->|"Resume where I left off"| A3
Q2 -->|"See progress"| A4
Q2 -->|"Jump to a stage"| A5
Q2 -->|"Jump to a phase"| A6
Q3 -->|"Verify setup"| A8
style START fill:#e1bee7,stroke:#7b1fa2,color:#000
Detailed Reference
/aidlc [scope] — Start with explicit scope
Start a new workflow with one of the enabled scopes. Core ships 11 named scopes; plugins can add more, and select-plugins can hide disabled plugin/core scopes from runtime.
Syntax:
/aidlc enterprise
/aidlc feature
/aidlc mvp
/aidlc poc
/aidlc bugfix
/aidlc refactor
/aidlc infra
/aidlc security-patch
/aidlc classic
/aidlc workshop
/aidlc express
Behavior: The framework recognizes the scope keyword and asks what you want to build (nothing is created until you say), then runs the Initialization phase on that plan with your words as the request and begins the first domain stage. If a workflow is already active, a scope keyword on its own carries on with that work, and one followed by a description asks whether the description is new work. A keyword that is also the first word of a longer description (/aidlc classic car rental website) is read, not assumed: the assistant works out which you meant and may ask you once, so the word is never spent on a plan you did not choose. A keyword and one word (/aidlc feature flags, /aidlc bugfix typo) is read the same way, so feature flags stays your request and bugfix typo still starts bugfix work on the typo. A colon says it is the plan and nothing else does (/aidlc bugfix: Fix duplicate todos), and --scope says the same (/aidlc --scope bugfix Fix duplicate todos). See Workflow Profiles for a practical comparison of all 11 choices.
Example:
/aidlc bugfix
> I'll use the bugfix plan. What should I work on? Tell me in your own words and I'll start it.
> The login API returns 500 when email contains a plus sign
/aidlc [description] — Start from a description
Describe what you want to build and the agent proposes the plan that fits it; the engine asks you to confirm it.
Syntax:
/aidlc Build a REST API for inventory management
/aidlc Fix the login timeout bug
Behavior: The agent reads your description and proposes the plan that fits it (a bug report usually gets bugfix); the engine asks a one-line confirm naming that plan and its effective ceremony (stage count, approval-gate count, and any per-unit fan-out, all from the compiled grid). Greenfield work excludes reverse engineering, and a per-unit clause appears only when units-generation runs and creates a Unit DAG. When no ready-made plan fits, you get the compose offer (see /aidlc compose below) instead of a silent default. You confirm or override before the workflow begins. A description that opens with a plan's name keeps every word (/aidlc classic car rental website is about a car rental website): the agent reads whether that word names the plan.
Example (a new project; on an existing codebase bugfix also runs Reverse Engineering, so the line says 6 stages and 6 approval gates):
/aidlc Fix the ProfileSerializer null pointer
> I'd run the "bugfix" plan for: "Fix the ProfileSerializer null pointer" - 5 stages, 5 approval gates. Do you want me to go ahead with it, use a different plan, or tailor one to this task?
A request no shell can carry. On Windows, cmd.exe ends a command at a line
break and replaces a %NAME% or !NAME! pair even inside quotes, and the aidlc
launcher is read by cmd.exe again. A request holding one of those reaches the
engine through a file instead of the command line (on Kiro IDE the agent also
sends a request holding a double quote, a typographic one such as “ or ’,
one of &, |, <, >, ^, or a trailing backslash this way, since Windows
PowerShell or cmd.exe can change them): the agent writes it to
aidlc/.aidlc-engine/request-text/request.txt and runs aidlc engine orchestrate next
--request-file aidlc/.aidlc-engine/request-text/request.txt with any other flags. On
Kiro (Kiro IDE and Kiro CLI on its v3 engine) the agent sends a request this way
on every shell when it holds $, a backtick, >, <, &, @(, @{ or a line
break, since Kiro asks you to approve an AI-DLC command holding one of them. The
engine reads only a plain file directly inside aidlc/.aidlc-engine/request-text/,
through no link, up to 128 KiB, uses its words exactly as written, and removes
the file once the command goes ahead.
/aidlc compose - The adaptive composer
Force the composer even when a stock scope would match. Works in three moments:
/aidlc compose "harden the deployment pipeline and add observability"
/aidlc compose --report sonar.json
/aidlc compose (mid-workflow: re-shape the pending stages)
Behavior: the conductor dispatches the composer agent, which reads your task (or the scan report, or the running workflow's state), runs the read-only detect scan, estimates the five implementation-entropy components (intent ambiguity, structural uncertainty, verification entropy, risk, unresolved assumptions - grounded in CodeKB MCP analysis when configured, the workspace scan otherwise), and proposes the minimum viable EXECUTE/SKIP grid with the score breakdown and a reason for every EXECUTE and SKIP. You approve, edit, or reject at a gate. On approve: AI-DLC creates the workflow directly for a stock match; for a custom plan, it creates the workflow on the nearest stock scope (for a new project, the nearest one meant for new work when one fits) with the plan's own stage changes (--skip / --add), in the same turn, and writes no scope file: the plan belongs to this piece of work. A custom plan's gate also offers Approve and save as scope, which asks for a name and keeps the plan as a reusable scope when the work is created (the save scope save does); saying "save this plan as scope save itself. Every front/report proposal carries a nonblank creationDescription: exact original task text when supplied, otherwise a report/plan-grounded description. For a composition started from a task, the creation passes the gate's --request <id> and the engine retrieves the original description; a report-driven or task-less composition passes the description after -- as one shell-safe argument with that request id. A compose approval cannot continue with only a scope and no description. An in-flight proposal lands as pending-stage suffix flips via the recompose verb (under the audit lock, strict-validated, RECOMPOSED audited). Over finished work no composer runs: AI-DLC names the plans that reopen it after its last stage, with the stages each runs, and the one you pick reopens the work there. --new-scope forces synthesis; --report <path> seeds the triaged findings into the intent. The /aidlc-compose skill is a typeable shortcut over the same path. Mid-workflow you can also just say it in chat: an open-ended request ("what else can we cut?") is recognized and routed through the same gate and verb, no literal compose needed, while naming the stages ("can we skip market research?") changes the plan at once and names the undo (on the non-Claude harnesses the literal verb remains the documented reliable path).
See Scopes and Depth - The Adaptive Composer for the full flow.
/aidlc — Resume existing workflow
Run with no arguments when a state file exists to resume.
Syntax:
/aidlc
Behavior: Reads aidlc-state.md, then carries on from the saved checkpoint, the same as /aidlc --resume. Say redo, jump to a stage, or start fresh to do something else. See Session Management for details.
/aidlc --resume continues directly from the saved checkpoint too. Words typed after it (/aidlc --resume redo the scan) are read the same way as with /aidlc alone, after a parked workflow is unparked. Add --stage <slug> when the explicit target should win and route through the normal jump behavior.
If no state file exists, the framework treats this as a new workflow and asks for scope/description.
Workflow Initialization — automatic
For manual-copy installs, there is no scaffold command. The versioned
runtime/<harness>/ shell from the Bun-shaped
aidlc-copy-runtime-X.Y.Z.tar.gz arrives pre-built and does not require the native
aidlc executable (the .claude/ engine plus
aidlc/spaces/default/memory/),
and the engine creates the first intent when you describe what to build and
confirm the plan it proposes (a bare /aidlc with no work asks what you want to
build, and a scope alone asks what the work is for). Creation runs the three Initialization stages
(Workspace Scaffold, Workspace Detection, State Init) as a single deterministic
tool call: it creates the intent's record dir at
aidlc/spaces/<space>/intents/<YYMMDD>-<label>/ (the audit/ shard dir, an
artifact dir for each phase the scope runs, verification/) and the empty space-level
aidlc/spaces/<space>/knowledge/ directory, runs a rule-based workspace scan, and writes that
intent's aidlc-state.md with the scope plan.
It logs the init-sequence events (WORKFLOW_STARTED, WORKSPACE_SCAFFOLDED,
WORKSPACE_SCANNED, WORKSPACE_INITIALISED, plus per-stage
STAGE_STARTED/STAGE_COMPLETED). Naming a scope (/aidlc --scope feature)
seeds the initial scope; absent one it resolves the real AWS_AIDLC_DEFAULT_SCOPE
environment variable, then the recorded aidlc config flags --default-scope value,
then classic. To add team knowledge
or guardrails before the first run, edit the shipped aidlc/spaces/default/memory/
files; the space-level aidlc/spaces/<space>/knowledge/ directory is created (empty) once the
first intent exists, and you add free-form files to it from there.
The native config command is the preferred project installation and refresh
path. Framework developers may generate the ignored Bun-shaped dist/
projection locally with bun scripts/package.ts; release users should not copy
from a checkout.
For native machine installs, run aidlc config once before opening the harness.
That command lays down the same shell and records a refresh baseline; workflow
intent birth remains automatic on the first chat invocation.
On Claude Code the welcome message is rendered at session start via the
companyAnnouncements entry in .claude/settings.json; the other harnesses
ship no welcome message, and /aidlc --status ($aidlc --status on Codex)
shows where the work stands.
Multi-repo workspaces. When your workspace root holds more than one sibling
code repo (each an immediate child directory with a .git), the creation step
records the set of repos the intent touches in its intents.json row. By default
it auto-discovers every sibling repo, except a git submodule of a project that
has code of its own beside it: that project is a one-repo project and is the
work's repo (a project made only of submodules records them). To scope an intent
to a specific subset, or to name a submodule as the work's repo,
the creation tool accepts --repos a,b (a comma-separated list of repo directory
names). These are flags of the deterministic aidlc-utility intent-create step the
engine runs for you — not /aidlc flags you type. During Construction, each git
operation (worktree, swarm, Bolt) targets one repo; the conductor passes
--repo <name> to anchor it, required only when an intent spans more than one
repo. An intent with no recorded repos is the single-repo default (git runs in the
workspace/project dir). Work with recorded sibling repos is asked who builds its
Units, as other work is, when the workspace is the top of a git repository:
Several teams or people records where the lead's project is, and whoever takes a
Unit builds it as work of its own (Teams across repos).
When the workspace is not a git repository, it is not asked: the first
Construction step says in one line that this session builds the Units and to
put the workspace in git first, and set-unit-ownership team refuses with the
same line before changing state. A workspace in a folder inside a bigger
repository is not asked either: its line says where it sits and to start the
work in a workspace of its own beside that repository, with repos.json giving
its path, and set-unit-ownership team refuses with that line. See
Artifacts Reference.
/aidlc park - Park the workflow
Stop cleanly at the current inter-stage boundary so the workflow can be picked up in a later session, or by someone else after the aidlc/ tree is committed and pulled.
Syntax:
/aidlc park
Behavior: The engine routes the verb to aidlc engine orchestrate park --person-asked (the engine's own park, covered by the engine commands AI-DLC pre-approves, so the agent runs it without a permission prompt), which emits WORKFLOW_PARKED, records the park marker in the state file, and reports the stage it parked at. No stage is advanced and nothing is marked complete. Parking is refused when no workflow is active or the workflow is already Completed. In a Unit-scoped team checkout (a Construction worktree carrying a Unit scope stamp) the same command parks that Unit locally instead: it writes a checkout-local Unit park marker, leaves the shared workflow state untouched, and emits a parked directive through the routed command; the next /aidlc in that checkout reports the Unit as parked there. Resume with /aidlc --resume, which clears whichever marker applies and continues. The verb is sole-token: park inside a longer sentence is treated as a description of work, so ask the conductor to park in prose or type the bare verb.
The per-user cursor aidlc/spaces/<space>/intents/active-intent is gitignored, so a teammate who pulls a parked workflow selects it with /aidlc intent <name> before /aidlc --resume.
/aidlc team-board - Team Construction board
Read-only view of a team-owned Construction: Unit progress, observed claims, pinned merge readiness, claimable Units, and blockers. The same board /aidlc --status appends under Unit Ownership: team.
Syntax:
/aidlc team-board
/aidlc team-board --snapshot
/aidlc team-board --space <name> --intent <name>
Behavior: The engine routes the verb to aidlc team-board and prints its output verbatim without touching state, cache, or audit. Only --snapshot, --space <name>, and --intent <name> are accepted; any other token is a usage error. Requires Unit Ownership: team.
/aidlc intent [name] — List or switch intents
Bare /aidlc intent lists the in-flight and completed intents in the active
space; add --json for structured output (every row, archived included) and
--all to show archived intents in the human listing. /aidlc intent <name>
switches the per-user active-intent cursor to an existing intent by unambiguous
slug or full record-dir name. It never creates an intent or advances a workflow.
A name typed alone after /aidlc (/aidlc auth) selects that intent the same
way when it is exactly one intent's name here, and the switch line names the
intent you were on and the command that goes back.
A word after intent that is neither a verb nor an existing intent's exact name
(a typo, or something intents cannot do) is handed to the agent with the verbs
and the recent intent names, to read what you meant or ask you once; anything
you type after a name (a request, or a setting such as --guard-policy relaxed)
is handed to the agent whole, to act on for the intent just selected.
/aidlc intent archive <name> — Retire an intent you will not finish
/aidlc intent archive <name> [--reason '<text>'] moves an in-flight or
completed intent to the archived status. Nothing is deleted: the record dir, its
artifacts, and its audit shards stay exactly where they are, and the archive
itself is recorded in that intent's audit trail as WORKFLOW_ARCHIVED (with
your --reason when you give one). The registry row flips to archived, the
state file's Status flips to Archived, and the default /aidlc intent
listing hides the row. If the archived intent was the active one, the per-user
cursor is cleared, so the next /aidlc asks which intent to work on (or creates
new work when none is left) instead of resuming retired stages.
A completed intent archives too, which is how you hide finished work from the
default listing. An intent with Bolt worktrees archives as well: the output
names the worktrees, and they stay on disk untouched until you bring the intent
back. Archiving is refused only for a team-owned intent on the workspace's own
repository with claimed Units, because those Units are still being worked in
other checkouts. Team work led here whose plan is shared archives with Units
under way: its plan says closed (Written on the plan: <work> is closed.), the
output names each Unit under way and who has it as this computer last read
them, and no notice is sent. unarchive opens the plan again (Written on the
plan: <work> is open again.). A write the plan's repository does not take goes
at your next step in that workspace, whichever work you are on.
/aidlc intent unarchive <name> reverses it: the row and Status return to
what they were (in-flight and Running at the stage it stopped on, or
complete and Completed for finished work), and WORKFLOW_UNARCHIVED is
recorded. Only archive records a reason; a --reason given to unarchive is
not recorded, and the output says so. It does not move the cursor; switch to
the revived intent with /aidlc intent <name> when you want to continue it.
/aidlc intent add-repo <name>: add a sibling repo to work already under way
A piece of work records the sibling repos it touches when it is created (the
.git children of the workspace at that moment, or an explicit --repos). When
it turns out later that the work also changes another repo, the agent runs
intent add-repo <name> with its reason and tells you in one line, or you say
so and it runs it for you. A repo the work only reads is not added. The repo is
recorded, the change lands in the audit trail as INTENT_REPOS_CHANGED, and
you read one line saying what happens next. If Reverse Engineering has already
run, it and the stages that read the code knowledge show as behind for the new
repo until you revisit them; if it has not run yet, it covers the new repo when
it does. A team that wants to be asked before a repo joins says so in one line
under ## Mandated in its space memory.
When the repo is not in the workspace yet, it is cloned first, beside the other
repos, with the same code aidlc system workspace-sync uses and your own git
setup (your credential helpers and insteadOf rules apply as at your own shell). The
address is the one you give with --url, else the url of the repo's
repos.json entry. A repo that repos.json lists by name alone, with no url,
is not cloned: the line says to add its url there or give it with --url.
The agent never passes --url on its own, so a name it found in a
code search is cloned only when repos.json lists it. The clone runs in a
staging folder and is moved into place under
the workspace lock; then the repos.json entry is written (your comments and
layout kept), the managed .gitignore block and aidlc.code-workspace are
refreshed, and only then is the change recorded. The line names the address,
with the user part of an address such as https://user:token@host/... shown
as ***; repos.json, which your team commits, gets the address without its
credentials. With no repos.json, a
hosted --url (a host, an owner and a name) creates one that lists the repo,
and the line says so; the next step offers once to commit it with AI-DLC's
record (unit commit-record). A local path, or
an address of another shape, adds the repo without creating the file. When the
clone fails, nothing is recorded or changed, and the line gives git's reason
and the git clone command to run by hand. A repo no repos.json lists, added
without --url, is not cloned: the line asks for its address.
When the repo is already cloned somewhere else, beside the workspace say, and
you tell the agent where ("the code is in ../billing"), it passes that folder
with --path. The folder must be a Git checkout before anything is written;
then repos.json lists the repo with that path (a new file when there is none,
your comments and layout kept otherwise, with the managed .gitignore block and
aidlc.code-workspace refreshed), and the repo is recorded. A path written on
Windows (..\billing) reads the same on every platform. The line says what
repos.json now lists, and, for a path on this machine only, that on a computer
that has it elsewhere its path there goes in aidlc/repos.local.json. A repo
repos.json already puts somewhere else is refused with where it is, and how to
change it.
The name must be a single folder name, and a folder already there must be a Git
checkout (a real .git entry): a folder merely shaped like a repository is
refused, as is a name with separators.
Work that records no repos works on the workspace folder itself. Until
Construction has started, its first repo is recorded together with the workspace
folder itself, so the work covers both. repos.json lists the new repo and the
workspace, the workspace as "." under the name its code knowledge already has
(its folder's name) and with its origin's address, and the line says so once:
"Added billing (at ../billing) to this piece of work's repos. The work still
covers shop, the workspace folder itself, and repos.json lists both." While
nothing is built, removing that repo again takes the work back to the workspace
folder. Once Construction has
started, the Units' files are already recorded against the workspace folder, so
the work records no repos from there: the line names
/aidlc intent add-checkout <folder> instead, which has the review and its
checks cover the other folder as well, and the agent runs it for you. Removing
the last recorded repo is refused otherwise, unless it is a git submodule of the
project (listed in its .gitmodules, the project folder a Git checkout itself):
the work then records none and works on the workspace folder again, at any
stage. Removing a repo from work that records none changes nothing.
There is no cut-off: after Units Generation is approved the repo is still added
(or removed), and what that means for the approved Units follows the work's
Guard Policy. Under strict the next step asks you once whether the Units still
stand with the change, or whether to go back to Units Generation. Under
relaxed or off the work carries on with the approved Units, recorded as
CHANGE_ACCEPTED, and the line says "Units Generation was approved before this
change: carrying on with its Units and
/aidlc intent remove-repo <name> is the undo. It takes the repo out of this
piece of work and leaves its folder, and its repos.json line, where they are:
repos.json is the workspace's list, not the work's, and the line says how to
take it off by hand. Removing a repo you added after Units Generation was
approved leaves nothing more to decide.
/aidlc intent set-repos <name,...>: say exactly which repos the work covers
In a workspace of many repos, say which ones this work needs ("only orders
and payments") and the agent runs /aidlc intent set-repos orders,payments:
the work then covers exactly those, each name checked the way add-repo
checks it, and one line says what changed and that the rest can be added back.
/aidlc intent set-repos --all keeps every repo the work records. Either way
the set is then yours, as one named with --repos when the work was created.
When a work records ten or more repos AI-DLC found on disk and you never named
them, Reverse Engineering asks once, before it reads any, whether to read all
of them or only some, since reading many can take a long time and use many
tokens. A set you named, and an unattended run, are not asked: the step says
the cost once and reads every repo. When your request already said which
repos (all of them, or named ones), the agent sets them for you instead of
asking. A name that is not cloned here is refused with the intent add-repo
command that clones it; set-repos itself never clones. After Units Generation
is approved the change lands and follows the Guard Policy, as for add-repo.
/aidlc intent add-checkout <path>: have the review cover code kept in another checkout
AI-DLC's review covers the code in the project folder, including worktrees and
clones nested in it. When the code for this piece of work is kept in a worktree
in the harness folder (Claude Code's .claude/worktrees/<name>) or in one
outside the project, the review does not see it, so the approval question says
"AI-DLC found no source changes" and a change there after the review goes
unnoticed. /aidlc intent add-checkout <path> records that checkout for the
piece of work: from then on the review covers it, a change there after the
review is caught as it is anywhere in the project, and the approval records
where the code was found. The agent runs it for you when it keeps the code
there, and a Unit whose source list names a path in a worktree of the harness
folder records it on its own.
The path is the worktree or clone itself, relative to the project or absolute,
and needs a .git entry. The line printed names it as <label>@checkout,
which is how a Unit's source list names code in a checkout outside the project.
It never asks a question, and the record stays on this machine: a teammate's
copy of the project does not get it. /aidlc intent remove-checkout <path>
takes it out again.
/aidlc space [name] — List or switch spaces
Bare /aidlc space lists spaces; add --json for structured output.
/aidlc space <name> switches the per-user active-space cursor and writes that
space's method files into aidlc/.aidlc-engine/active-memory/, the git-ignored copy
the harness-native method include reads. No tracked file changes. It never
creates a space or advances an intent. As for intents, a word that is neither a
verb nor a space's exact name goes to the agent with the verbs and the space
names, and words typed after a name travel with the switch for the agent to act on.
/aidlc space-create <name> — Create a space
Creates a new team space with the full memory/, knowledge/, codekb/, and
intents/ shape. It starts from a copy of the default space's org.md and the
framework's phase rules, with empty team.md and project.md, rather than
another team's learned practices. It does not switch spaces automatically. See
Spaces and Intents for the workspace model,
switching examples, and what is committed.
/aidlc knowledge <verb> — Index and read your own documents
Put your documents (PDFs, Word and Excel files, HTML pages, Markdown, plain text, CSV) under
aidlc/spaces/<space>/knowledge/documents/, organised however you like, then index
them so agents can cite them instead of guessing.
| Command | What it does |
|---|---|
/aidlc knowledge onboard [path ...] |
Add one or more files or folders from anywhere in your project (one outside documents/ is copied in first, and the result says where; a path that cannot be added is named with why, and the others still go in), or sweep every not-yet-indexed file under documents/ when no path is given |
/aidlc knowledge sync |
Reconcile the catalog with what is on disk; rebuild an index that was deleted |
/aidlc knowledge list [--json] |
The catalog — every document with its state |
/aidlc knowledge show <id> |
One document's full record plus its extracted text |
/aidlc knowledge associate <id> --intent [slug] |
Scope a document to one intent |
/aidlc knowledge dissociate <id> --intent [slug] |
Remove that scoping |
/aidlc knowledge rebind <id> --to <path> |
Repair a row whose original moved and changed |
/aidlc knowledge summarize <id> --text-file <path> --source-revision <sha256> [--tags <csv>] |
Persist an LLM-authored summary (and optional tags) — the tool never generates the text itself |
--space <name> targets a space other than the active one. onboard is idempotent:
re-running it on an unchanged file reports already rather than writing a second
row, so sweeping is always safe to repeat. A file that changed at a path that is
already indexed reports edited and refreshes that row in place, so one path never
carries two live rows — the outcomes are fresh, already, and edited, and they
are worth reading, because "no output changed" and "nothing happened" are different
results.
Batch limits. A pathless onboard and sync apply the 20-document/256 MiB
limits to new and changed work, not to already-current catalog rows. Rows sync
reads again unchanged (an extractor installed, a reader added) take the room the
limits leave, and the rest are read by the following runs of sync. An
already-reconciled catalog can be larger. When a work batch exceeds a cap, onboard
the affected files individually before syncing again. Nothing is indexed when a cap
is hit, so the refusal is never half-finished. A single document over 32 MiB is
refused without being read at all; the message says so, because "refused" and "read,
then refused" have very different costs on a large file.
Scoping. Omit --intent and the document is space-wide — every intent can see
it. Bare --intent means the active intent, and fails rather than guessing when
there is no cursor. --intent <slug> names one explicitly, and fails if the slug
matches zero or more than one intent (slugs can repeat across finished intents; the
stored association is always the UUID, so renaming a slug never re-points a
document). Scoping to an intent that has finished is refused unless you add
--allow-inactive, which exists for back-filling evidence onto a closed record.
Text extraction: Markdown, plain text and CSV are read as they are, and Word
(.docx) and Excel (.xlsx) files are read by AI-DLC itself, with nothing to
install: a Word file's paragraphs and tables, and every sheet of a workbook as a
table, with each formula's last saved result (dates and numbers as the file stores
them; images, charts, comments and headers are not read). HTML pages (.html,
.htm) are read by AI-DLC itself too: their text, without markup, styles, scripts or
embedded images, and their tables as tables, read as UTF-8 when the bytes are UTF-8,
otherwise in the charset the page declares, otherwise as Windows-1252. To keep a
page's markup instead (a UI mockup), add a copy of it saved with a .txt name. A project can configure
its own extractor for any type, and a configured one wins. PDF gets a default
extractor (pdftotext) if none is configured; any other type is catalogued and
citable as unsupported_type; after configuring an extractor, run sync to retry
unchanged rows of that detected type. A Word or Excel file AI-DLC cannot open (one
that is password-protected, damaged, or in the older .doc or .xls format saved
under the new name) is catalogued as extraction_failed with the reason. A Word or
Excel file or an HTML page added before AI-DLC read them gets its text on the next
sync (up to 20 a run, see Batch limits). If a CONFIGURED extractor is not installed the
document is catalogued as extractor_unavailable — visible in list, and fixed by
installing the tool and running /aidlc knowledge sync. Re-running onboard on the
same unchanged path reports already and does NOT retry extraction — only sync
re-probes rows in this state. Nothing is silently skipped.
Extraction is capped: 50 pages for PDF with the default extractor
(pdftotext -l 50, then a check for a page 51) and 200,000
characters of extractor output (a Word, Excel or HTML file's text too). Past a cap the text is cut and the row records
truncated — show prints a truncated yes line above the content (after
page 50 when the page cap cut it) and the --json payload carries the flag
inside extraction, with pages_kept for a page cut. Treat a truncated
extraction as a partial view: "the document does not mention X" is not a safe
conclusion from one.
Each extractor probe has a five-minute backstop; extraction has fifteen minutes
per document. A configured extractor's timeoutMs overrides the extraction
budget. An extraction timeout records extraction_failed; it does not establish
that the document was read successfully. These time budgets do not change the
byte, page, or output caps above.
Where pdftotext is missing (Windows and macOS out of the box), AI-DLC reads a
PDF itself, with nothing to install (show --json names that reader
builtin-pdf). pdftotext still runs first wherever it is on PATH, and a PDF
AI-DLC read itself is read again by pdftotext on the next sync after you install
it. A project's own configured PDF extractor is never replaced: when it is
missing the document is extractor_unavailable, as above. AI-DLC's reader runs as
its own process under the same extraction budget and the same 50-page and
200,000-character caps. A PDF that only restricts printing or copying is read; one
that needs a password to open is extraction_failed with that reason. Known
limits, where pdftotext does better: words in Thai, Hindi and other scripts whose
letters combine can come out with spaces inside them, a PDF encrypted with AES-256
or with its text compressed the older LZW or RunLength way is extraction_failed
with the reason, and a PDF whose fonts carry no text mapping gives unreadable text. A scanned PDF has no text for either reader (no_extractable_text;
there is no OCR).
A configured extractor's argv must contain exactly one $IN — the placeholder
the document's path is substituted into. A configuration without it is refused when
the tool starts, rather than accepted: a process that never receives the file would
otherwise record whatever it printed as the extracted text of every document routed
to it, which looks like successful extraction and is not. More than one $IN is
refused for the same reason — the intent is ambiguous, so it fails closed.
There is deliberately no remove. Deleting a document means deleting your own
file and then running sync, so the tool never holds a destructive verb over files
you own. A deleted original leaves a tombstoned row — the catalog's record that this
was removed on purpose, which is distinct from source_unavailable, meaning a linked
original is temporarily unreachable.
Document text is data, not instructions.
showships that warning inline with the content. An imperative sentence inside a customer's contract addresses that customer's engineers — it never redirects an AI-DLC workflow, grants permission, or authorises a command.
The /aidlc-knowledge skill is the same surface, typed as a command.
/aidlc --status — Read-only status
Display current workflow progress without modifying anything.
Syntax:
/aidlc --status
Behavior: Reads the active intent's aidlc-state.md and displays: the scope (or, for a plan composed for this piece of work, its Plan: line instead), whether the work is a new project or existing code (Project Type: existing code (you said so)), and for existing code when Reverse Engineering last scanned it, also when it ran on its own (, scanned 2026-10-03 23:17 UTC), the depth with where it came from (Depth: Standard (from scope feature), or set for this piece of work; for a plan composed for this piece of work, a setting that came with the stock scope it runs on reads (from the approved plan), on the depth, Guard Policy and setting lines alike) and the test strategy when it differs, current phase, current stage, how many of the plan's stages are done, counted as the plan offer counted them, without setup (a stage you skipped is counted out and named, Completion: 4/4 stages (100%), skipped: Deployment Pipeline, and when the work ended on that stage the status says Completed (Deployment Pipeline skipped); paused work says so and how to pick it up, Paused at Deployment Pipeline (you stopped it); pick it back up with /aidlc --resume), the reviewers setting with where it came from (Reviewers: advisory (from scope bugfix), or off (set for this piece of work) once you turned them off for this work), the intent's Guard Policy value with where it came from (Guard Policy: strict (from project.md), off (from scope classic), strict (set by you), or strict (not set) for an older intent without the field), a Checks off: line only when you or an environment switch turned a check off, naming each with why (Checks off: state-transition (set by you); the checks a lower Guard Policy turns off go with the Guard Policy line), the stage progress list, and, when other work in this space is still open, an Also open: line naming it, and you can ask to switch to it (Also open: 261003-lunch-poll (ask to switch to it)); in team work it names only work that is yours to switch to: a teammate's build a pull brought is left out, and so is the lead's plan in a teammate's clone. A build of your own made on another computer under another git name and email is left out too; you can still name it to switch to it. In teams' work by git, a Checked in: yes, aidlc/ is in main on origin line shows once your record is in the branch the work merges into, as this clone last fetched it (by a merge, a squash or a rebase), Checked in: pushed on <branch>, not in main yet while it is pushed only on a branch of its own (a pull request not merged yet; main reads as the branch the work merges into), Checked in: no, git ignores aidlc/ here where git ignores aidlc/ and none of it is committed, and nothing when it is not pushed or git cannot tell; when a squash or rebase merge left your own copy of that branch ahead and behind it with all of your work in it, a line under it says so and names the command that brings it level (Your main: origin/main already has your work, merged as commits of its own, so yours is 1 ahead and 1 behind. aidlc unit share --back brings it level; nothing of yours is lost.), and the next look offers once to do it for you, and nothing when a reset would lose or refuse something of yours; at the lead's project in teams' work across repos, once Build and Test has run, a Not committed: line names what git shows changed and not committed in your clones of the work's repos (Not committed: The changes here in web are not committed or pushed, so main there does not have them: the 1 changed file here (changed: src/app.ts).) and a Not pushed: line the commits there not pushed yet (Not pushed: In web, 1 commit here is not pushed, so main there does not have it.), each only while git shows it, and Build and Test's gate says the same once in a chat; and in a Unit's build, a Yours: line names your own other finished builds of the same lead's plan with where each stands, in the words From others uses (Yours: u5-checkout-field (merged); (pushed) when a repo of it is not in this workspace or cannot be reached just now), with no line for your first build, at the lead's project or in work without teams. An invalid Guard Policy field is shown as unavailable with the validation error and the repair command. It also inspects completed-stage validation receipts: when a finished stage's inputs changed since it was approved, it says so in the line the next step uses and asks whether to redo it (Something Practices Discovery used changed after it finished. I'm carrying on with it as it is. Do you want me to redo Practices Discovery with the change?, or Practices Discovery ran before the code was here. I'm carrying on with it as it is. Do you want me to redo Practices Discovery with the code? once the work became existing code, or, when only its own documents were edited, requirements.md changed after Requirements Analysis finished. I'm carrying on with it as it is. Do you want me to redo Requirements Analysis with your change instead?), and names any later stage it affects (Also affected: ...). A finished stage that AI-DLC itself now does differently, with nothing of yours changed, is named on its own line and is not behind (AI-DLC now does Functional Design differently from when yours ran; your work stands, and /aidlc --stage functional-design goes back to it (the stages after it reopen too).). The check is advisory and does not change routing; receipts it cannot read, and completions without one, are not shown. When the current stage is awaiting approval, status says since when, in plain time (waiting since 2026-10-04 12:24 UTC, about 2 minutes). If no workflow is active, reports that no workflow is in progress; when work is here but none is selected in this conversation (a teammate's clone, for example), it names each piece of work and where it stands (finished, or the stage it is at) and says how to carry on with one or start new work.
Status also shows separate Sensors, Learnings, and Summary Confirmation
rows with each effective value and its source, for example Sensors: on (from
scope classic), Learnings: off (set by a command), Summary Confirmation: off
(set by you), or Summary Confirmation: off (from env
AIDLC_DISABLE_SUMMARY_CONFIRMATION). A missing saved setting falls back to
the current scope, then on (from default); see the ceremony controls below.
Under Unit Ownership: team, it appends a clearly labeled Team Construction
Snapshot with the same board unscoped main renders: Unit Progress, locally
observed claim refs (owner, generation, and observed movement rather than a push
time), pinned merge readiness, claimable Units, and blockers. Scoped and
unscoped checkouts render the same board. The command does not fetch or mutate
state, cache, or audit. Explicit --space and --intent selectors bind the
header, Unit DAG, claims, and merge journals to the same selected identity.
The board ends with concrete next actions for claiming available or released
work, recording a pinned merge gate, or resuming aidlc unit land.
Each Unit command below prints its usage for --help and changes nothing
(-h too, typed at a terminal: aidlc unit share -h). A word it does not
take (a misspelt option, a second Unit name) is named with that usage before
anything is committed, pushed or written.
/aidlc --claim <unit> and /aidlc unit claim <unit> — Claim a team Unit
Atomically claim one open Unit in a team-owned, unit-major Construction workflow.
The claim registry is the git ref claim/<intent-id8>/<unit>: the command writes
a unique claim commit with compare-and-swap semantics, verifies the winning
nonce, and then writes a gitignored checkout-local scope stamp. Exactly one
concurrent claimant succeeds.
Syntax:
/aidlc --claim user-profile-api
/aidlc --claim user-profile-api --team "Alice"
/aidlc --claim user-profile-api --rhythm unit-end
/aidlc unit claim user-profile-api --team "Alice"
--team supplies the human-readable holder label. With /aidlc --claim, the
command AI-DLC runs for the claim carries the label in a file it writes
(--request-file), so no shell on the way changes it: O'Brien or Ops & QA
is recorded as given in PowerShell, Git Bash and cmd.exe. --rhythm optionally pins
this claim to per-stage or unit-end; when omitted, the workflow's affirmed
Unit gate rhythm is used. Claims are refused until dependencies and any required
walking skeleton are complete, and a checkout with a live claim routes only its
stamped Unit. While main is back at Units Generation changing the Unit plan, a
claim still goes ahead, and its result says once that if the approved plan
changes that Unit's own entry, pin asks for a rebase onto main. A step you
skipped on main for every Unit before this claim stays skipped for the claimed
Unit: its walk goes on past it, and the merge question says it was skipped.
/aidlc unit assign --here - Build a Unit at the lead's project
At the lead's project, once teams are chosen and Home Location is recorded,
every Unit is open for anyone to take, and the lead's project builds the walking
skeleton (when on) and a Unit only when you say so. The agent runs this from
your own words ("build reporting here"); you can also run it yourself:
/aidlc unit assign --here reporting
It is a take like any other: the Unit's claim is written at the lead's project's
remote (in the lead's project's own repository when it has none) with a
compare-and-swap, held for the lead's own work by your git user.name, so no
teammate takes it meanwhile, and the lead's walk builds it. A Unit someone took
first stays theirs, and the command says who builds it. When the claim cannot be
written, the Unit is built here all the same and the line says, with git's
words, that someone else could still take it meanwhile. unit release <unit> there opens it again. The
agent writes the words it came from to the request file the command names
(--request-file aidlc/.aidlc-engine/request-text/unit-assign.txt), and they go into
the UNITS_ASSIGNED audit row when a turn of yours stands behind them.
In a checkout that does not lead the work (a teammate's clone of the lead's workspace), the same words are the take of that Unit, as a teammate takes one from the Units offer, one Unit at a time: the first one named is taken, and the line says where the others stand.
A Unit someone else built and merged, named here (the lead's Build and Test
asked to fix it at the lead's project), is taken back as a new attempt and built
here on top of what they merged, and the line says so ("
/aidlc unit take <unit> --plan <work id> --from <address> - Take a Unit as your team's own work
In a team member's workspace, take one Unit of the lead's plan (the work
--plan names, shared in the code repository at the address --from names)
and start its build as a piece of work of its own in the space you are working in (your
team's space, or the default space), or in the space --space <name> names
when you ask for one: a space not here yet is made as /aidlc space-create
makes it, with its name rule, and you are switched to it. AI-DLC offers it when
you run /aidlc with no work of your own selected; you can also run it
yourself:
/aidlc unit take refunds --plan 3f9c2a1b --from git@example.com:shop/checkout-api.git
/aidlc unit take refunds --plan 3f9c2a1b --from git@example.com:shop/checkout-api.git --space payments
The plan is read where the lead shared it: its ref (refs/aidlc/plans/<work
id>) in that code repository is fetched once, by the address and with your
own sign-in, into a copy in your workspace's own repository. Nothing is added
to a code clone, no remote is added and no setting changes. The build records
the plan's repository as its Home Location and the plan's commit, and each
later step reads the plan from there. An address that starts with - is
refused before any git call. --home <record> (with --home-space <space>)
takes a Unit of solo work whose record is in this clone, for a second person
building it one Unit at a time; for work whose Units are taken from a plan it is refused with the
way to the plan.
The take is the Unit's claim where the plan is shared, with a compare-and-swap
like any claim: its
owner is the space the build goes in and taken_by your git user.name; the
lead's project's own take of a Unit also records "lead_builds": true. The
first take wins; a Unit someone took, or the lead's project builds, is refused
with who builds it and where. The take says its way back once: /aidlc unit
release <unit> in the Unit's build gives it back, open again, and sets the
build aside with the engine's archive, nothing deleted; you stay in your space.
A Unit that
waits on another is refused until that Unit is done at the lead's project. The build
records the lead's repos. The build copies what the lead approved at its pushed commit,
records UNIT_TAKEN_IN, and is selected for this chat. Its WORKFLOW_STARTED row records the person's own
words of the take when the agent hands them (--request-file or --person-words), and otherwise
Taken from the lead's plan: <unit>. Taking a Unit whose
build is already in this workspace carries that build on, and says whose build it
is when someone else took it. The take's record goes to the repository the plan
names for the Unit, by its address, from this workspace's own repository. A
repository that takes no push from here: the take goes on, says git's reason
once, and is recorded there when a push next goes through, and an early start
waits for it, with git's reason and the way on, which is push access
from the lead. Before any Unit is taken, a lead's project out of
reach at its recorded address while this clone's own remote holds the lead's
plan records the take at that remote, said once.
--early starts a Unit that waits on others once each of them has pushed: its
branch starts at their pushed heads in each repo, and the line says it may
still change before it merges.
/aidlc unit push - Send a Unit's build back to the lead's project
In a Unit's build, once its stages are approved. AI-DLC offers it at the end of the build; you can also run it yourself, for example after a review fix:
/aidlc unit push
/aidlc unit push --later
/aidlc unit push --remote billing=team
/aidlc unit push --branch feature/refunds
/aidlc unit push --commit-message-file aidlc/.aidlc-engine/request-text/unit-push-message-<record>.txt
/aidlc unit push --finish-merge
/aidlc unit push --merge-main
/aidlc unit push --merge-main --put-aside
/aidlc unit push --undo-merge
/aidlc unit push --replace
/aidlc unit push --to-fork
The commit message: with --commit-message-file, the Unit's commit takes the
message in that file whole (a ticket key, a Signed-off-by: line), through
git's own cleanup; the file sits directly in aidlc/.aidlc-engine/request-text/
and is spent once the push is done. Without it, the message is <unit>: <work>,
as before. The push question shows the message it will carry, which the agent
drafts first in the style the repos' own commits follow; your own words replace
it whole. When your hook or your host refuses the message, the line says so in
their words and offers once to take the message to use; the retry puts it on the
commit AI-DLC made there and could not push (an amend), never on a commit of
yours or one a remote holds, and a message their hook will not take on such an
amend leaves that commit as it was.
In each repo the Unit's Code Generation recorded writing to (its
source-manifest.json), it switches to a branch named after the Unit (new
ones start from the fetched integration branch when your working tree allows,
else from where you are, and the line names your unpushed commits that come
along), commits exactly those files with git commit (your identity, signing,
pre-commit and commit-msg hooks; in a file you had changed too, only the Unit's
change; a Unit file you committed yourself and haven't pushed goes on the branch
as you committed it, and your commit stays where it is), and once every repo is
committed runs git push -u <remote> <unit>:
no force, no --no-verify. The remote is the one git would push to
(branch.<unit>.pushRemote, remote.pushDefault, the branch's remote, then
origin or the one remote); --remote <repo>=<name>[,...] names it instead,
and with several and none set the push offer lists each. Your other
uncommitted work comes along uncommitted and is never committed; the line says
where you are and the way back. What your host prints about your branch after
the push, with a link in it, such as GitHub's link to create a pull request or
GitLab's to create or view a merge request, comes with the line, as the host
printed it. A refused push is said once, in the host's or
hook's own words, and nothing retries. The result (each repo's branch, base,
every head pushed, each changed file's blob and patch-id, and the Unit outputs
the lead's project's later stages read) goes onto the Unit's claim at the lead's project, and
UNIT_PUSHED is recorded; until the lead's project takes it (Unit Push: unsent), the
next step offers to send it again. Not now to that offer says the Unit's record has no result
until it is sent, and nothing offers it again; unit push sends it when you ask. A refusal by a rule of the lead's host (git's
[remote rejected]) is said once, in the host's words, with what to ask its owner for,
and that chat is not offered the send again; while the take itself is not recorded
there, the offer waits until a look records it, and the build's end says once per chat
that the lead's project has not taken the result yet. A repo the Unit changed that the lead's plan
did not list is added to the build's repos first (intent add-repo), said once.
A merge, rebase, cherry-pick or revert left under way in a repo is never
committed over: the push says so with git's way to finish it or put it aside.
A merge on the Unit's own branch with nothing left to resolve (a redo that
merged the newer integration branch, say) is offered instead: Finish the
merge and push runs --finish-merge, which concludes it with your own
git commit --no-edit and then pushes.
--later pushes nothing and only records that you said not now.
When the push had to start the Unit's branch in a code repository from where
you were, and main (the branch the Unit merges into, your team's Integration
branch where one is set) changed one of the Unit's own files, the next step
offers once to bring main in. On yes, --merge-main fetches main, merges it into
the Unit's branch with your own git (your hooks, signing and identity; git's own
merge message, or yours when you give one) and pushes the branch again; nothing
is rewritten or forced. A clash is left for you to resolve, and --merge-main
then finishes and pushes it, as a plain push does once it is resolved (with git's
own merge message, or yours when you give one); --undo-merge takes the waiting merge back out. A
change of yours in a file main changes, or a file of yours where main adds one,
stops it before anything is merged, with the way on. On the workspace's own
repository, a file of AI-DLC's record (a rules file, repos.json) that has a
change here not committed and that main changes too stops it the same way, with
an offer: on yes, --merge-main --put-aside keeps that change in git, puts the
file back to its committed copy, brings main in, and puts the change back on top
of main's at every end of the step (merged, a clash waiting, a merge undone, a
push refused), still uncommitted; the finish of a clash never takes it into the
merge commit. Where it does not go back cleanly, a file people and workers read
(rules, knowledge, stage documents) holds both with git's marks. repos.json is put together where both sides only add different
repositories; where one repository is listed differently, the line names it and
asks which to keep; otherwise it stays as main has it, the change kept in git
for now (not for good: git may drop it after a while) under the id the line
names. A file a tool reads (any JSON file, a state file, the audit), or a file
git cannot merge as text, is tried first without touching anything; where its
change would not go back, the step does not start, and the line offers to show
both so the two can be settled.
When the Unit's branch on the remote still holds the build pushed before and
this build is not on top of it (a redo from the newer main after a turn-down,
a build moved onto what merged), the push asks whether to replace that branch
or push a new one, <branch>-2. A pull request open from the branch stays the
same one after a replace; the new branch needs a pull request of its own.
--replace reads each repository's branch on its remote first and pushes with
--force-with-lease on what this build's last push left there (on the
workspace's own repository, with AI-DLC's record commit on top; or a clean merge
of main the offer above made), so a commit anyone else put there, in any
repository, replaces nothing anywhere. The branch a repository merges into is
never replaced. The push line names the commit the branch was at before.
When the branch on the remote is ahead of yours instead (your host's Update
branch merged main into its pull request, or a suggestion was committed there),
the push first brings those commits into your branch with your own git (a
fast-forward, never a stash, a merge commit or a force) and then pushes on top
of them, so nothing is replaced. Where they cannot come in that way (they
change a file the Unit changes too, or a change of yours is in the way), it
stops before anything is pushed, names the commit and the file, and offers to
bring them in: --merge-main then merges your branch on the remote into yours
with your own git (a clash is left for you to resolve, --merge-main again
finishes it, --undo-merge takes it back out) and pushes as usual, so the pull
request stays the same one. The other way is a new branch, without those
commits. The replace stays for a build rewritten here (a redo, a rebase).
When the repository a Unit's record goes to takes no push from you, and your
clone of it has one remote that is not at the plan's address (your fork), the
step after the take offers once to push a branch for the Unit there early, for
a pull request of your own, with one empty commit on it (its message drafted
for you; yours replaces it). On yes, --to-fork fetches the plan's main with
your own git, makes the Unit's branch from it without tracking the plan's
remote, makes the empty commit only where the branch has nothing of its own,
and pushes it to the fork with its upstream there, so the Unit's own push later
goes there too. Opening the pull request stays with you. A refused push takes
the empty commit back. Not now (--to-fork --later) pushes nothing and removes
the draft. A later replace of that branch (after a rebase onto the plan's main,
say) is leased on what the early push left there; that is known on this
computer only, so from another computer of yours the push offers a new branch.
You can ask for the early push in your own words too; --to-fork --remote
<repo>=<name> names the remote that is your fork where your clone has several
(never the one at the plan's address). Where that repository is not cloned here
yet, the take's clone offer also offers to clone your fork by the address you
give, with plain git, so the team's repos.json never takes a fork's address.
When the Unit's own push is refused and the host names no rule of its own, the
line offers to push to your fork instead: give its address (added to your clone
as one remote on your word) or the name of a remote you have for it.
The branch is named after the Unit unless you name it: when your team's
branches follow a rule of their own (a pre-push hook, or the host, wants
feature/...), say the name and the agent passes it with --branch <name>.
From then on the Unit's branch goes by that name: in a repo where it was made
under the Unit's name and not pushed yet, it is renamed, as git branch -m
would; every later push, the push offer and the result the lead's project reads use it.
/aidlc unit <verb> --help prints that verb's usage and changes nothing.
/aidlc unit propose and /aidlc unit amend - Change a shared input
In a Unit's build, propose --input <file> [--file <changed text>] sends the
lead your change to one of the files the Unit was approved with (your edited
copy, or the text in --file), with your words in the request file its command
names (--request-file); the build carries on, and
offers it once when your copy changed. At the lead's project, the owner of the shared
plan is asked once, with the path of the team's version (after a "Not now" it
is not put again, and the board offers the choice once in each later chat), and
the agent runs
amend <unit> --input <file> --answer <approve|reject> --request-file <file>
(--input the change's file as its record path, or a file name only one change
waiting on that Unit ends with; otherwise nothing is recorded, and the refusal
names each change that waits with its path)
with their reply written to that file: their own words after the question was
shown, not empty and not the agent's. The record keeps their reply as they typed
it, from the message it came in (the agent names another with --message <id>).
A change made on an older copy is put onto
the text approved since; where the two do not fit together, nothing changes and
both are shown, and the text the lead puts together from them is approved as
written with --file <that text>. An approved change is written into the lead's project's
record with SHARED_INPUT_AMENDED for each stage there that used it, and goes
onto the claim of every Unit whose stages read it; a team it did not reach is
named.
/aidlc unit send-back - Send a taken Unit back from Build and Test
At the lead's project, when Build and Test finds a Unit someone took wanting,
send-back <unit> --request-file <file> sends it back to whoever built it in the
failure's own words (written to the file first): its result and its done come
off its claim, the board shows it back with whoever built it, who hears it once
with the words, and the lead's project records it again once it merges again
(UNIT_SENT_BACK, which keeps the lead's own words to send it back and the
message they came in, beside the failure). Nothing of it is rebuilt at the
lead's project. To fix it at the lead's project instead, the agent takes it
back (unit assign --here <unit>) and reopens its Code Generation there.
/aidlc unit catch-up - Bring this checkout up to date before Build and Test
At the lead's project, once every Unit is merged on its remote, Build and Test
asks once when this checkout does not have them yet. catch-up moves each such
repo's branch (the one the Units merged into, when it is checked out) forward
to its remote's copy: it tries the move first in a copy of the index, then
fast-forwards, never over a file git ignores. Where a squash or rebase merge
left the branch ahead and behind with all of its work in the remote's copy, it
brings it level with git reset --keep instead and names the commit it was at;
it never stashes, merges or forces. A move git
refuses (a file of yours in the way) changes nothing and says so in git's
words; Build and Test then runs on what is here.
/aidlc unit rebase - Move an early build onto what merged
In a Unit's build that started early on another Unit's pushed branch, once
that Unit is done at the lead's project the build asks once whether to move onto the
branch it merged into, unless the build's own Unit is done there too. rebase does it in each repo the build started early
in: it fetches that branch and moves only the build's own commits onto it, with
your own git (a plain rebase where the repo merged the other Unit with its
commits kept, a rebase from the head the build started on after a squash or a
host's rebase; a build with no commits of its own yet moves and keeps your
uncommitted work). Nothing is pushed; for a build you had pushed, its next push
asks whether to replace the branch it went on or to push a new one (--replace). The line says where you are now and the way back to your
branch. A conflict is undone at once: the line gives git's words and says the
build is where it was in that repo (only when git cannot undo it does the line
name git rebase --abort). A rebase, merge, cherry-pick or revert of yours
already under way there is never touched: the line says how to finish it or put
it aside, and the move is offered again once it is done, as it is when your own
changes kept git from making it.
/aidlc unit lead-here - Lead the work from another checkout
In a checkout that did not make the work's plan (a fresh clone on another machine), the lead's own questions (a sign-off,
an answer to a builder's proposed change) are not put: the step shows the board and the Units to take, as a
teammate's clone does. A worktree you make of the checkout that made the plan, on the same computer (git worktree
add, or a tool's own per-session worktree), counts as that checkout: it gets the lead's view with nothing said, and
unit lead-here --off there takes that back for that worktree only. When you say you lead this work, whether or not
you ask to carry it on there, the agent runs unit lead-here with your words and shows the lead's view in the same
turn; it records LEAD_HERE_SET in that checkout's own audit, and from then on the lead's questions are put there.
When you say you do not lead this work there, the agent runs
unit lead-here --off with your words: it records the same row with Lead Here: off, and from then on that checkout
gets a teammate's view again, whatever the lead's work did there in between. Nothing is written on the plan either way:
anything the checkout wrote to the plan while it was the lead's stays, for the lead's own look to ask about.
In a checkout that does not lead the work, the lead's own words write nothing: a sign-off, a repo turned down, a merge
counted in your words, a pull request named as a build, an answer on a builder's proposed change, the sign-off setting,
the approval setting for the Units, a Unit freed, a send-back from Build and Test, the plan's share, its move to another
repository, and taking it off its branch. You are asked once, in that clone for that piece of work, whether you lead the work from there. Yes records it,
shows where the work stands, then does what you asked, and from then on the lead's questions come there; no
leaves it with the lead (unit lead-here --off), and a later one of the lead's words there says so, with the way on if
you do lead it after all. A practice kept there stays there and is not written on the plan.
/aidlc unit lead-sign-off and /aidlc unit sign-off <unit> - The lead's sign-off
lead-sign-off on|off records Lead Sign-off in the work's state at the lead's project;
it is off by default. While it is on, a taken Unit counts as done only once the
lead signed its result off and every repo it changed merged. A Unit with no result at
the lead's project that you count merged in your own words is done on that word: there
is nothing to sign off. The lead's project asks
once as a result arrives, and past the Unit stages a move kept, at the step that
records its merge while a stage is left (after the last one, the work's end says
it waits); the answer counts, so after a "Not now" the question is not
put again and the board offers the choice once in each later chat; the
agent runs sign-off <unit> --request-file <file> with their reply written to
that file, under the same rules as any answer of theirs (their own words, after
the question was shown, not the agent's). The record keeps their reply as they
typed it, from the message it came in (the agent names another with
--message <id>).
/aidlc unit turned-down <unit> --repo <repo> - Send a repo back
At the lead's project, when a team's pull request in one repo is turned down. The agent
runs it with your words in the request file its command names
(--request-file aidlc/.aidlc-engine/request-text/unit-turned-down.txt). Your words go onto
the Unit's claim, beside your words as you typed them in the message you said
them in (the agent names another with --message <id>), and the team hears them
once at its next step; its build asks
once whether to take the Unit back to Code Generation so it can be changed and
pushed again. A repo that already merged stays merged.
/aidlc unit merged <unit> --repo <repo> - Count a repo merged
At the lead's project, when a repo merged a team's Unit in a way the board does not see (the
change made again by hand, or merged through another branch). The agent runs it
with your words in the request file its command names
(--request-file aidlc/.aidlc-engine/request-text/unit-merged.txt). Your words, as you
typed them in the message you said them in (the agent names another with
--message <id>), go onto the Unit's claim, and the Unit's
done record keeps them ("by your word"). Once every repo the Unit changed is merged, by the board's
check or by your word, it is recorded at once:
"
With --pull-request <n>, your words name pull request <n> in that repo as the Unit's
build (a partner team that can only push to its fork, say). The number goes on the plan,
and the Unit counts as merged once git shows that pull request's last head merged in the
repo (refs/pull/<n>/head on GitHub, refs/merge-requests/<n>/head on GitLab); AI-DLC
reads no other pull request. The board then reads "its build is pull request 7 in
reports". Naming another number for the same repo replaces it; where the Unit was already
counted merged through the earlier one (or by your word), that merge is taken back and the
Unit counts once the new one merges. /aidlc unit release <unit> takes the naming off and
opens the Unit for a person or a team to take again; a merge counted through it, or by your word alone,
is taken back the same way. Each take-back is one change on the plan and one
UNIT_MERGE_TAKEN_BACK row in the audit; a Unit taken meanwhile stays taken.
/aidlc unit adopt <unit> — Adopt a teammate's live claim
In a fresh clone, fetch and check out the exact local claim branch, then run:
git fetch origin refs/heads/claim/<intent-id8>/user-profile-api:refs/heads/claim/<intent-id8>/user-profile-api
git switch claim/<intent-id8>/user-profile-api
/aidlc unit adopt user-profile-api
Adoption verifies the checked-out claim OID and payload against the live ref,
including space, intent UUID, Unit, generation, nonce, and bound audit shard,
before writing the checkout-local scope stamp. Subsequent audit writes retain
the claim's existing shard, and publish continues the same attempt. The
owner's local audit record comes with the claim (publish's handover commit
carries it beside the owner's commit, outside what main lands) and joins any
rows this checkout already wrote, so the questions the person already answered
stay answered and the work resumes without asking them again.
/aidlc --release <unit> and /aidlc unit release <unit> — Release a claim
Release a live claim from the unscoped main checkout. Release publishes a generation-advancing tombstone rather than deleting the ref, so stale stamped attempts fail closed at claim-sensitive boundaries and claim history remains inspectable.
/aidlc --release user-profile-api
/aidlc unit release user-profile-api
/aidlc unit release user-profile-api --expect-nonce <current-claim-nonce>
After a Unit has been released and re-claimed, a later release must include
--expect-nonce from aidlc-unit.ts status; this binds the command to the
successor attempt and prevents a lost-output retry from tombstoning it.
In a Unit's build (a team's take of the lead's Unit), unit release <unit> is
the way back from the take: the lead's project's claim is released, open again,
and the build is archived with its record and audit kept. At the lead's project,
unit release <unit> opens a Unit someone took, or one the lead built here,
again. In a checkout that does not lead the work, unit release <unit> of a Unit you took there is the way back from
your take, and for any other Unit it is one of the lead's words (see unit lead-here above).
/aidlc unit participate — Enable the guided picker
Write the gitignored participant marker for this clone. A subsequent bare
/aidlc on unscoped main emits the typed Unit picker with claimable, already
claimed, and dependency-blocked rows. A fresh clone of the shared work does not
need it: its /aidlc offers the Units open to take on its own. A facilitator
checkout without the marker receives the terminal fan-out notice instead.
/aidlc unit participate
/aidlc unit share - Share main
Run from a checkout of team work that holds no Unit claim, on the integration branch:
/aidlc unit share
It commits what git shows changed here (files git does not track included,
ignored files and AI-DLC's own part of .gitignore, .gitattributes, AGENTS.md
and opencode.json left out), then pushes the integration branch to the remote
with a plain push, never forced, so Units can be taken from the plan, and a
Unit that landed is seen. Once it has pushed, it names what it committed: how
many files and, by name as changed, new or deleted, up to ten outside
aidlc/, with how many more. With Home Location recorded (the plan shared
as a ref of its own), it commits only AI-DLC's record, with the code of a Unit
built here, never your other changes, and names no files; with no Unit's code
built here and the plan not shared yet, it says the plan was not shared by it and offers to share it. After it, this checkout shows the board instead of
building Units. A push the remote refuses keeps the commit and says why. When it
takes no direct push to the branch (a host's rule), it says so in the host's
words and exits 0 with "shared": false, and the next step offers once to put
the plan on its own branch (when the plan is already shared with the teams, the
line says so and the offer puts AI-DLC's notes on the work on their own branch
instead; with Home Location recorded, no Unit's code built here and the plan
not shared yet, the next step asks whether to share the plan, and the offer for
those notes comes once it is shared). Otherwise, pull the branch, then share
again.
--branch puts the share's own commit on a branch of its own,
aidlc-plan-<work> (-2, -3 when taken), pushes it with its upstream and
passes on the host's link to open the pull request; only then does the checkout
go onto it and the integration branch go back where it was. A branch the host
refuses too changes nothing. --back, once that commit is in the integration
branch, brings that branch level with the remote's (fast-forward only) and
switches to it; when git refuses, it says git's reason and the checkout stays where it is. A checkout on another branch
commits the plan (aidlc/) there and pushes nothing, says it is not on the
branch: push it on a branch and get it merged your usual way, and exits 0 with
"shared": false; /aidlc asks once there whether to commit the plan, and its
yes runs this. On the plan's own
branch it pushes that branch, so its pull request has the newer plan. /aidlc offers this step itself when it is due:
before a Unit would start on the lead's checkout, and after a land the remote
does not have yet. Its commit takes the message in the file
--commit-message-file names, whole (Share the plan, or
Record the <unit> landing after a land, without one); each offer that ends in
it shows the message the agent drafted for it in the repo's own style, and your
own words replace it. The file goes once the share is done; a push that did not
go keeps it, so the same command runs again as written.
At work whose Units are each built in the workspace of whoever takes it (Home
Location recorded), unit share --plan shares the plan as a git ref of its
own, refs/aidlc/plans/<work id>, in one code repository everyone who takes a Unit can read:
the first of the work's repositories with an address, or the one --repo <name
or address> names. The ref holds plan.json (the Units, the repositories each
is built in, the stages and settings), the inputs your stages wrote, each with
when you approved it (a file you changed after approving it goes as changed,
with no time), and your team's practices and project rules. It is pushed with your own git as a commit on the
ref's tip, never forced, and nothing is committed or pushed in the workspace:
no branch is made, and no code clone gains a remote or a setting. It says where
the plan is and the address anyone taking a Unit needs; run again with nothing new, it writes
nothing. A repository that cannot be reached, refuses the push or has no address
here is said in git's or the host's words, and nothing is written. When what is
at the ref is not a plan this AI-DLC can read, the share writes the plan over it
as a new commit on top, carrying the decisions on each Unit from the newest plan
of this work in that ref's history, else from this computer's copy, and says
when there were none to carry. A plan written by a newer AI-DLC is never written
over. Once the plan is shared, --repo naming another repository moves it
there: one commit on the plan's own history, with only where it lives and its
version changed, then a note on the old repository's ref saying where it went,
which a team reading the plan there follows; the plan's earlier versions stay
readable in both repositories. When the old repository does not take the note,
the plan stays in the new one. AI-DLC says that the old one holds no note of
where the plan went, so that you give everyone who takes a Unit the new address. In three cases
the copy just written is taken back instead and the plan stays where it was: the
old repository could not be reached for the note, its plan kept changing
meanwhile, or the old plan was written with a commit message of your own (a rule
on messages is likely there). In that last case, give the commit message for the
note and ask for the move again. Your other computers follow the note at their next look or share; one that holds words of yours the plan there
lacks lists them, and --carry-words writes them on the plan as you gave them. Where the plan there has the
opposite decision on a Unit, or another turn-down of it, the line asks which stands, or offers this computer's in
its place; --stands <unit>=here writes this computer's word there and --stands <unit>=plan keeps the plan's,
and where the line asked which stands, that Unit's other words go on with either answer. Nothing of the answer is remembered: --carry-words works it out
again whenever you ask, and a second move by this computer into the same repository asks again. With a walking
skeleton's code built in the workspace's own repository, the share also commits
that code and AI-DLC's record and pushes them as above (--branch for a pull
request). Its JSON output carries plan: { repo, address, commit }.
On your own words for a branch people can open, unit share --plan --visible
puts the plan on the branch aidlc/plans/<work id>-<label> in that repository
instead of the ref (a plan already shared as the ref goes there with its
history, and the ref is deleted). It is not for merging: a job that runs on
every branch there (a check, a clean-up) can leave it alone by the pattern
aidlc/**. Where a host refuses the plan's ref by a rule, the share offers the
branch beside the way in for your own commit message. Once the plan is on its
branch, every share, word and move goes on that branch; unit share --plan
--off-branch puts it back in the ref there as it is, with its history, and
deletes the branch, and after the plan is closed you are asked once whether to
take the branch down.
On your own words for the plan on main too, unit share --plan --main shares the
plan as above, then commits AI-DLC's record (nothing else of yours) and pushes
the integration branch, as unit share without --plan does: one step, where
the plan lives in the workspace's own repository and no Unit's code is built
here. A plan that lives in another repository has no such step. On a branch of
your own it commits there and pushes nothing; where the branch takes no direct
push, it says so once, and the next step on your word is unit share --branch.
/aidlc unit commit-record - Commit AI-DLC's record on this branch
/aidlc unit commit-record [--update [--leave <path>]...] [--commit-message-file <file>]
Commits everything in aidlc/ that git does not ignore, and a repos.json at
the project root that git does not ignore, on the branch this checkout is on,
and pushes nothing. A file you staged outside aidlc/ stays staged and out of
the commit; a file staged under aidlc/ goes in as it is in your working tree.
Your own git hooks and signing run, and a hook that refuses the commit is said
in git's words. It names the commit and how many files went in, or says there
is nothing new to commit (exit 0). It commits nothing and exits 1 outside a git
repository, while a rebase, merge, cherry-pick or revert of yours is under way
(with how to finish it or put it aside), on no branch, and in a Unit's build in
a clone of a workspace that holds the lead's work too, where aidlc/ holds the
lead's record. In a Unit's build in your team's own workspace it commits that
build's own record: its own folder, and its space's own folders while git has
none of that space yet, never another work's folder. /aidlc offers it once when
the repo list changed and is not committed yet.
With --update it commits AI-DLC's own files an update changed instead, in a
Unit's build too: each one that still holds exactly what AI-DLC wrote, as its
install record (<harness folder>/tools/data/aidlc-manifest.json) says, with
nothing of yours changed in it since your last commit (a file it shares with
you, such as AGENTS.md or .gitignore, only when your own part is as last
committed), a file the update removed, and the move of a repos.json git
tracks at the project root into aidlc/, made by this commit; nothing else of
aidlc/. A settings file AI-DLC merges with your own settings, and that move,
go in only when the offer after the update drafted the commit's message; a
commit that does not go through leaves the list at the root. --leave <path>, once for each settings file
that held changes of yours before the update (the offer writes the whole command),
leaves that file out; a path that starts with - or is not inside the project is
refused before git is asked anything. Without a message file the commit says
Update AI-DLC to <version>. Every file of AI-DLC's it leaves
is in its output.
The commit takes the message in the file --commit-message-file names (a
file directly in aidlc/.aidlc-engine/request-text/), whole, and Update
AI-DLC's record without one. Each offer that ends in this commit shows the
message the agent drafted for it in the repo's own style, and your own words
replace it. A hook of yours that refuses the commit is said in git's words,
with the way on: tell AI-DLC the message to use, and it commits with it. The
file goes once the commit is made.
/aidlc unit publish <unit> — Publish a completed candidate
Run from the scoped team checkout after committing its artifacts, source, state
mirror, and audit shard, or with --commit to commit them first; /aidlc
offers that step itself when the Unit is complete and approved. --commit
commits the Unit's own work: every change to a tracked file, the record under
aidlc/, and the new files the Unit's source manifest lists (what its Code
Generation says it wrote). Other new files, such as AI-DLC's own install or a
node_modules your .gitignore does not list, stay on disk uncommitted, and
the publish says once how many it left out. It names what it committed the
same way the share does. --include <path> puts a new file
or folder in as well (give it once for each, or . for all of them); run it
after a publish to publish again with them:
/aidlc unit publish user-profile-api
/aidlc unit publish user-profile-api --commit
/aidlc unit publish user-profile-api --commit --include docs/diagrams --include README.md
The command requires a clean tracked worktree and CAS-updates the live claim ref
to a candidate commit that preserves both claim and implementation history.
AI-DLC's own part of .gitignore, .gitattributes, AGENTS.md and opencode.json
(written when a session starts in a fresh clone) does not count, here or at landing; it stays
uncommitted, and any other change still stops both.
A change to a record outside the Unit's construction/<unit>/ folder (an Inception
artifact such as contract-summary.md, say) is still published, but pin will refuse
that candidate, so publish names the file and says to take it out of the branch,
change it on main instead, and publish again. Pin and land refuse it too and
say to take it out in the checkout where the Unit is claimed.
A claimed checkout keeps its own audit rows (sessions, turns, answers) in a
local record under the intent record's .aidlc-engine/audit/, which AI-DLC's
.gitignore keeps out of commits, and the claim's tracked shard takes only the
Unit's evidence that pin accepts. So the candidate is the commit as it is, and
after the Unit lands, a plain pull of main in the claiming checkout
fast-forwards with every row it wrote kept.
/aidlc unit pin <unit> — Pin candidate evidence
Run from unscoped main:
/aidlc unit pin user-profile-api
Pinning fetches the claim ref, records its exact OID/generation and a fresh pin
transaction ID, and reads
artifacts, Unit receipts, team gates, reviewer verdicts, Plan Approval, state,
and audit-shard transport directly from that commit. It does not merge into main
or create a worktree; it tries the merge with git merge-tree, and a candidate
that conflicts with main is refused before the merge question, with the files
and the step for the Unit's owner (merge main in the claimed checkout, resolve,
publish again). When main here has commits the remote's integration branch does
not have yet (a landing not pushed), the step says to push main first, since
the owner's merge reads the remote. The claim-bound team shard may carry only that Unit's attempt
receipts; main-authority rows, another Unit's record/receipt paths, extra shards,
and other workflow-record paths are refused. Pin also compares the candidate
base's entry for the Unit (its kind and dependencies) and the active per-Unit
stage columns with live main; a changed Construction contract requires rebase
and republish. A Unit the plan adds, drops or changes elsewhere does not.
Product-source paths outside the Unit record tree are listed in the evidence for the human
merge gate.
A rule kept in the claimed checkout (the space's memory/project.md or
memory/team.md) is listed there too and lands with the Unit.
Pin and land also refuse a Unit until every Unit it depends on has landed on main.
/aidlc unit gate <unit> — Decide the pinned merge
/aidlc unit gate user-profile-api \
--decision approve \
--user-input "Approve pinned candidate"
Accepted decisions are approve and reject. The command records the
person's answer when a typed human turn follows the pin (pin's output names this
command for each answer). The person's words may come in a file instead of
--user-input: --request-file aidlc/.aidlc-engine/request-text/<name>.txt, which
AI-DLC writes when it prints the command for you (after pin, the agent writes
your reply to the file pin's commands name), so no shell reads them on the way;
the file goes once the decision is recorded. A pinned Unit lands with a
regular merge into the integration branch pin fetched, so the reviewed OID
remains a direct parent. A moved ref, changed generation, or HOLD-MERGE marker
requires an explicit re-pin before approval. On approve, its output names the
land command (land), which the agent runs in the same turn.
The gate's audit row keeps what the person said after the pin and the message it
came in (Person Reply, Message Id) beside the agent's account, as a stage
gate's row does. When a line of their own words typed in that chat before the
pin has not been used by a decision, the row names the message after the pin and
leaves the words in its record; with the human-presence guard off it keeps
neither.
/aidlc unit land <unit> — Land the pinned transaction
/aidlc unit land user-profile-api --target main
Landing first fetches the current integration branch and revalidates the approved evidence against the Unit's live entry in the Unit DAG (its kind and dependencies) and the active per-Unit stage columns. Contract drift refuses before Git mutation and requires rebase, republish, re-pin, and a new merge gate. It then merges pinned content while retaining main-owned engine metadata, folds the Unit row, and finalizes the transported audit receipts. For crash recovery, run the idempotent steps separately:
The content policy is candidate-exact. If main and the candidate both changed a shared file, even a clean automatic merge is refused before commit unless the result equals the pinned candidate blob. Rebase the team branch onto the current target, resolve there, and republish for a new pin.
/aidlc unit land user-profile-api --step git
/aidlc unit land user-profile-api --step state
/aidlc unit land user-profile-api --step audit
/aidlc unit merge-status user-profile-api
Gate and land fail closed while the claim registry is unavailable. If the exact
claim attempt is released only after --step git has landed its reviewed merge
commit, inspect that commit and acknowledge the exceptional completion:
/aidlc unit land user-profile-api --step state \
--accept-released-attempt \
--user-input "I inspected the landed commit and accept completing this tombstoned attempt"
The command accepts only the immediate tombstone whose predecessor is the pinned OID, records the acknowledgment in the main audit and transaction journal, and refuses a successor claim.
/aidlc unit status — Inspect Unit claims
Read the current integration state and claim registry, then print the claimable, claimed, and waiting Unit sets as JSON. This is a claim-time/status surface and may contact the configured git remote.
Team mode reads the integration branch from one line under ## Way of Working,
- **Integration branch**: <name> (or plain Integration branch: <name>), in
project.md, then team.md, then org.md: the first file with the line wins,
whatever the branch is called, and the prose around it is not read. Practices
Discovery writes the line into team.md for the branch you affirm; a line you
add by hand takes effect at once. AI-DLC's org.md ships main. A file whose
Way of Working has words but no line (written before the line existed) is read
by the agent before the first team step that needs the branch: it records the
branch the words name as the line
(aidlc engine state practices-branch --file <file> --branch <name>), or, when
they name none, that they name none (--none, kept in AI-DLC's own git-ignored
record, so the same words are not read again) and the broader files answer. You
are asked only when one sentence names two branches. A named branch that git
cannot use, or that is not on the remote, is reported with the file it came
from instead of being replaced by another layer's choice.
Beside it, - **Changes reach main**: by pull request (or by merge request)
or - **Changes reach main**: by direct push says how changes reach the branch
on the Integration branch line, whatever that is called. It is read the same
way, project.md first, and puts the matching share choice first, marked
Recommended. With the line in no file it is by pull request, as AI-DLC's
org.md says; Way of Working words with no line are no line, never read; a
line with another value marks neither choice. Practices Discovery writes it
into team.md only when your answer says how your changes reach the branch.
/aidlc unit status
/aidlc --config [section] - In-session project configuration
Configure one of models, runtime, providers, trust, flags, or
project without leaving the harness conversation. With no section, the
conductor asks which sections you want to consider. With a section, it always
asks what you want to change there, offering that section's choices and leaving
it unchanged, even when the section is already clean.
The conductor reads current state with
aidlc config <section> --show --json (aidlc config --show --json reads every
section at once), asks for changes conversationally, and
uses the native question picker for enumerable choices. Saying "leave it"
skips that section. Every accepted change lands through one exact
aidlc config <section> <explicit value flags> --yes command; the command and
its output are shown. The alias never invents values and never runs bare
aidlc config --yes.
This is terminal configuration work. After the change lands, or after you
decline, the conductor stops without running next, advancing, resuming, or
running a workflow stage.
/aidlc --doctor — Health check
Validate that all of this implementation's prerequisites, configuration, and
stage-graph integrity are in place. Clean and warnings-only reports exit 0; a
failed check exits 1. The full report writes to stdout in all cases so the
orchestrator surfaces it either way. Core doctor checks change no file of yours.
They do bring AI-DLC's own copy of the active space's memory up to date
(aidlc/.aidlc-engine/active-memory/, and on Kiro IDE its steering copies), as every session
start does, so the command is safe to run before the first intent is created;
once an intent exists it also records a HEALTH_CHECKED audit row. Plugin checks execute installed plugin code: plugin authors are required by convention to keep those scripts read-only, but the runtime cannot enforce that property.
When a workflow has issues, --doctor also lists the structured findings in its Project section, one warn [<id>] <summary> row with a fix: line each (e.g. runtime-graph-missing), for a missing runtime graph, cold hooks, and similar "it will not advance" causes. The live report and --export share one analysis, so the findings are identical either way.
Syntax:
/aidlc --doctor
What it checks:
| Check | What it validates |
|---|---|
| Prerequisites | Self-contained binary, or bun on PATH for a copy install |
| Installed runtime | Active machine version and installed harness distributions, when using the binary channel |
| Project stamp | Project distribution/version compared with the engine that serves the project: the release .aidlc-version pins, or else the running release |
| Hook presence | Every framework hook wired by settings.json exists in .claude/hooks/; a wired-but-missing hook fails loudly. AI-DLC's status line is checked from your own .claude/settings.local.json when you turned it on; it only shows progress, so an aidlc-statusline.ts nobody wired is never reported as enforcement that is off. Sourcing the expected roster from settings.json means adding a hook there auto-checks it |
| Hooks enabled (Claude Code) | disableAllHooks: true is not the resolved value across Claude Code's settings layers (enterprise managed file plus alphabetical managed-settings.d/ fragments → .claude/settings.local.json → .claude/settings.json → ~/.claude/settings.json, highest-precedence definition wins). A resolved true silently skips every present hook, so it fails loudly and names the layer |
| Project structure | .claude/settings.json exists (file presence only, no content validation) |
| Kiro hooks switched off | On the Kiro harness: every AI-DLC hook file in .kiro/hooks/ (aidlc-*.json) that carries "enabled": false, which Kiro IDE writes when you switch a hook off under Agent Hooks (a committed file can carry it too). The guard hook (aidlc-guard-tool-call), the reply recorder (aidlc-record-human-turn) and the older guard files a project may still hold fail, each naming what is no longer protected; any other AI-DLC hook switched off is one warning. The fix is to turn the hook back on under Agent Hooks in Kiro IDE, or in Kiro CLI to change "enabled": false to true in the hook's file, then quit Kiro and start kiro-cli --v3 again in the folder |
| Kiro ignore sources | On the Kiro harness with the Markdown conductor (.kiro/agents/aidlc-aidlc.md, used by Kiro IDE and Kiro CLI v3): evaluates git's global excludes file (in a git repo), ~/.kiro/settings/kiroignore, the project .gitignore, and .kiroignore independently against the reads the engine sends the agent to make through fs_read: for every stage harness.json selects in the compiled graph, the stage file and the persona and knowledge the conductor holds inline (the engine's own roster at Standard and Minimal depth, within the directive's 8 KiB inline_context_paths cap), plus stage-protocol.md and its stage-protocol-<name>.md modules and the files beside each skill's SKILL.md. Contributor-only protocol files such as stage-definition.md are not loaded, so they are not counted. Plugins count however they were composed. SKILL.md files, the conductor agent (agents/aidlc-aidlc.md), aidlc-common/conductor.md, and tools/, sensors/, hooks/, scopes/, and steering/ are loaded by Kiro itself or the engine, not through fs_read, and are not counted. A rule that hides only some of them is reported with a count and the framework folders it touches. Global-source rules that hide .kiro/ fail, naming the source and line, because Kiro's fs_read guard (Kiro IDE and Kiro CLI v3) then denies every stage, agent, and protocol read. Workspace-source matches warn, because doctor cannot tell which Kiro runs: in Kiro IDE they apply only when kiroAgent.agentIgnoreFiles names the file (the default includes .gitignore; [] disables workspace sources), and doctor cannot read that IDE setting; Kiro CLI v3 applies .kiroignore (so a match there denies those reads) and not .gitignore, and the warning says which. A source doctor cannot evaluate (for example, git is not on PATH, which in a git repository also hides a custom core.excludesFile, or git refuses a repository that exists on disk) warns as not evaluated rather than passing. Rows name sources by fixed names such as ~/.config/git/ignore and .gitignore, never by path, rule text, or git error text. A !.kiro/ in another file does not undo a deny |
| Workspace shell | .claude/ + aidlc/spaces/default/memory/ are present (the shipped shell) |
| Active space method copy | aidlc/.aidlc-engine/active-memory/ (the git-ignored copy every harness include reads) holds the active space's memory/ files; the check writes it first, as every session start does, so a difference left is a file that cannot be written there (warn) |
| VS Code agent request cap | Copilot only: .vscode/settings.json sets chat.agent.maxRequests to 100 or more. Unset (VS Code's default of 50), lower, not a number (a number in quotes included), or unreadable warns, because VS Code then stops a long stage to ask "Continue to iterate?" and the chat waits until someone answers. The fix names the line to write in the file |
| Submodules | If a .gitmodules is present, reports how many submodule paths are declared and how many are uninitialized, naming git submodule update --init --recursive when any are (advisory - never fails) |
| Env scope | AWS_AIDLC_DEFAULT_SCOPE (if set) names a valid scope |
| Synced folder | Only when the project sits in a synced folder: a Google Drive, OneDrive, Dropbox or Box folder under macOS ~/Library/CloudStorage, iCloud Drive (~/Library/Mobile Documents), a Windows OneDrive folder, or a Dropbox folder that Dropbox's own info.json names. Says that sync can change files AI-DLC checks, and to move the project out of the synced folder or pause sync for it; the strict refusals for a document, plan or source that changed after its review or approval say the same. Silent otherwise (advisory - never fails) |
| Hook heartbeats | .aidlc-engine/hooks-health/ contains timestamps from hook executions (for a record with none of its own, the beat of the turn that created it, written just before the record existed, counts for its first five minutes). No heartbeat is advisory only before workflow progress; once work advances it fails, and a newest heartbeat more than five minutes behind the newest stage/gate event fails as stopped, with the harness's own step to get its hooks running (on Claude Code, "disableAllHooks": false in .claude/settings.local.json, or the organization policy; when .claude/settings.json is missing, not valid JSON or registers none of AI-DLC's hooks, that file's repair instead). Heartbeats stay in the clone whose hooks wrote them, while audit records travel in git, so when only other clones' audit records show the progress (a teammate's work you pulled) it is a warning instead, This workflow was run in another clone (<machine>); this clone has no hook record for it yet, with nothing to fix in this clone |
| Claude managed hook policy | On the Claude harness only, uses the existing managed-settings resolver (AIDLC_MANAGED_SETTINGS_PATH, current and legacy Windows paths, macOS, Linux/WSL) plus alphabetical managed-settings.d/ fragments and fails when effective allowManagedHooksOnly is true |
| Your replies are not being recorded | When stage/gate events exist but the audit has no HUMAN_TURN, warns that the person's replies are not being recorded (so the next approval will be refused), with the harness's own hook step as the fix |
| Hook drops | Surfaces any .aidlc-engine/hooks-health/<hook>.drops telemetry - each records a failure a hook swallowed to avoid breaking your tool call - with the drop count, last timestamp, and most frequent reasons per hook, and the remediation (inspect, then delete the file). A hook whose latest failure is under 24 hours old is a warning shown without --verbose (Hook failures, the latest within the last day), counting every failure; it clears a day later or when the file is deleted. Each reason is shown only up to its first colon, the hook's own summary, with secrets redacted; the detail after it stays in the file. Older failures, and [advisory] lines from the plugin compose hook, are a passing advisory row. A hook's normal decisions (the Stop hook letting a turn end because you have to answer first) go to <hook>.trace instead and are never counted. Only a [degraded] drop (a half-applied plugin compose) fails |
| Workspace source boundary binds | Only when workflow state exists: runs the same workspace source walk Plan Approval binds a plan to. Passes with the first 12 hex characters of the fingerprint; fails naming the reason code and path (for example budget-entries at ., dangling-symlink at linked/src, excluded-path at node_modules/pkg), says what the plan question does under the settings in force, and gives the repair text: add the offending path to the exclude list in .aidlc-source-paths.json, declare real source under an excluded directory in its paths list, or remove the broken symlink, then run next. Under Guard Policy strict with plan approval on it says Plan Approval decisions are refused and adds the last resort, only on your own word: ask the assistant in chat to build the plan anyway, and it is recorded as your approval with no check of the project's files. Otherwise it says the plan question is asked as usual (with plan approval off, the plan is built as written) and the build starts without a check of the project's files |
| Current step out of date | Only while it lasts: the step the assistant was working from went out of date (the chat was compacted, or the workflow state changed after the step was issued). Says when and why, and, when known, which state lines changed and which AI-DLC command wrote them; the fix is next as its own command, which hands the current step out again and keeps an approval that still matches (warning - never fails) |
| State drift | the active intent's aidlc-state.md matches the last WORKFLOW_COMPLETED in the audit |
| Pending approval | When the current stage has waited at an organic approval gate for more than 24 hours, identifies it as waiting for a human rather than stuck and points to /aidlc --status (advisory - never fails) |
| Background subagents | Reports fresh and stale session-scoped entries in aidlc/.aidlc-engine/sessions/subagent-inflight.json. Fresh entries are advisory; stale or malformed entries fail with the exact removal step, run at your own terminal. Silent when absent |
| Set-aside Bolt attempts | Informational list of saved attempts: slug, stamp, age in days, mode (snapshot, branch-tip, or legacy for saved heads; evidence-only when only reviewed source refs remain), restored checkout ownership, and typed restore/purge operations with optional safe display commands or rendering errors (purge only for evidence-only entries). These entries are neither warnings nor failures |
| Cycle detection | stage-graph.json has no cycles |
| Orphan stage files | Every slug in the graph has a matching <phase>/<slug>.md on disk |
| Uncompiled stage files | Surfaces any stage .md on disk whose slug is not in the compiled graph. Plugin-owned files name plugin sync; other authored stages name aidlc-graph.ts compile (advisory, never fails) |
| Plugin selection | Enabled plugin list, per-plugin enabled-stage counts, full-graph enabled:false flag agreement, and torn-selection recovery hints |
| Plugin composition | Offline installed-versus-composed version/hash state, including sync or repair remediation |
| Composed plugin surface | Enabled plugin-owned stage files are compiled; every enabled-plugin contribution sidecar is readable and valid, every recorded target stage exists, and every recorded structural addition or prose fragment is still present and unchanged |
| Plugin checks | Runs optional tools/<plugin>-doctor.ts scripts only for enabled plugins. Error findings fail doctor; advisory findings are visible and exported without changing the exit code |
| Scope validation | All enabled scopes (from .claude/scopes/*.md after plugin selection) walk cleanly (advisories for scope-truncation gaps are expected) |
| Composed scope durability | Every composer-authored scope resolves to a real plan. Fails on a scope file with no grid column (it would resolve as an empty all-SKIP plan), a durable aidlc/scopes/<name>.md record not yet projected into the harness tree, or a runnable workflow whose recorded Scope has no resolvable definition. Names aidlc-graph.ts compile as the remedy where compile can reach the cause. A missing column with no record behind it is reported apart, because compile emits a column only for a scope some stage declares in its scopes: frontmatter — that row names restoring the record, finishing the scope's stage tagging, or deleting the scope file. Does not compare a record's descriptive frontmatter against its projected file — the grid always comes from the record, and compile leaves an existing scope file alone rather than overwrite a hand-edit |
| Schema validation | Every stage's YAML frontmatter passes validateStageFrontmatter |
| Graph references | Every consumes[].artifact and requires_stage[] target resolves |
| Duplicate producers | Every consumed artifact has a single producer; multiple producers are reported with their stage slugs and resolved first by graph load order (advisory - never fails) |
| Keyword overlap | A hint more than one plan has is a warning, naming the plans (the plan proposal lists it under each) |
| Rule drift | Surfaces live team/project headings that overlap populated org policy for contradiction review, and reports lifecycle-stale overlaps in a separate stale-suppressed row (advisory — never fails) |
| Rules some stages can't see | Warns when a rules file in aidlc/spaces/default/memory/ (such as team.md or project.md) is not reaching some of AI-DLC's stages, so the work in those stages does not follow it, and gives the command that puts it right (a warning, never counted as a problem) |
| Paired sensor coverage | Confirms every rule that names a paired Sensor resolves to a Sensor some stage actually fires (advisory — never fails) |
| Workspace records | Reports uncommitted changes under aidlc/ so shared records are not left only in one checkout, leaving out aidlc/.aidlc-engine/request-text/, the forwarding latch earlier Kiro CLI (V2) releases wrote as aidlc/.aidlc-forwarding-latch, and this clone's own audit log when its only change is the entries each look and each doctor run add after what is committed, none a decision of yours (when those are all there is, the row passes and says so); while git tracks or shows a request file or the latch, or holds a removed one its ignore rules do not cover, it gives no commit command, since git add aidlc/ would take your request in; while a Setup git does not track row stands, it gives no command either, since git add aidlc/ alone would leave that setup out (advisory - never fails) |
| Setup git does not track | One row for each installed harness while git neither holds nor ignores its install record and lists files AI-DLC wrote for it: the line aidlc config says once when it first sets that harness up, naming the folders and files to commit so teammates who use that tool get the same setup. Silent while a request file or the forwarding latch keeps the records row from giving a command (advisory - never fails) |
| Request folder | Only when git can see files in aidlc/.aidlc-engine/request-text/: they hold your own requests, so it names the steps, never running them: add the line aidlc/.aidlc-engine/request-text/ to the project folder's .gitignore when the folder is not ignored yet (and check no later rule of yours un-ignores it), and, in the project folder, git rm --cached -r -f -- aidlc/.aidlc-engine/request-text/ (the files stay) when git tracks them, then commit and push the removal and the .gitignore change (a refresh may have left it uncommitted) so teammates' clones drop it too; a removal not committed yet keeps the row (advisory - never fails) |
| Forwarding latch | Only when git can see aidlc/.aidlc-forwarding-latch, a file earlier Kiro CLI (V2) releases left: it holds the words of a request of yours (the first call the hook named for it), and a git add aidlc/ before the .gitignore part listed it took it in (the hook no longer writes it): the same steps as the request folder, for that one file: the ignore line aidlc/.aidlc-forwarding-latch when it is not ignored yet, git rm --cached -f -- aidlc/.aidlc-forwarding-latch (the file stays) when git tracks it, then commit and push (advisory - never fails) |
| Declared workspace repos | When repos.json exists, compares its declared set with the sibling repos runtime discovery sees on disk (advisory - never fails) |
| Workspace gitignore | When repos.json exists, checks that the managed .gitignore block matches the declared repo set (advisory - never fails) |
Example output:
AI-DLC doctor
Machine
warn Runtime hook PATH: bun is on this shell's PATH (/home/user/.bun/bin/bun) but not on the system-wide PATH
fix: Nothing needs changing when you start Claude Code from a terminal: it hands that terminal's PATH to AI-DLC's hooks. If you start it from a desktop icon, the dock, or a service and AI-DLC's hooks do not run, add /home/user/.bun/bin to the PATH line in /etc/environment, ENV_PATH in /etc/login.defs, or a PATH= line in ~/.config/environment.d/*.conf, then restart Claude Code. Editing .bashrc or .zshrc does not change this check.
warn Update: update check unavailable while offline
fix: run `bun .claude/tools/aidlc.ts update --check`
ok 4 checks passed
Project (.claude, Claude Code)
warn Instruction file: block or file missing (.claude/CLAUDE.md)
fix: run `bun .claude/tools/aidlc.ts config`
ok 43 checks passed
Framework integrity
ok all 12 checks passed
0 problems, 3 warnings.
Warnings are advisory - if everything works, ignore them.
Add --verbose to see every check.
Use --verbose to expand every Machine, Project, graph, schema, stage, scope,
and sensor row. Every warning or failure carries a following fix: action.
/aidlc --doctor --export — Write a diagnostic report
Add --export to --doctor to write a small, redacted diagnostic report so a
misbehaving workflow can be debugged without sharing your whole project
directory. It runs a fresh doctor pass first (the report never reflects a
cached diagnosis), then writes the report. The report write never changes
doctor's exit code.
Syntax:
/aidlc --doctor --export
/aidlc --doctor --export --output <dir>
--output <dir> overrides the output location; the default is
aidlc/diagnostics/ under the project.
What it produces: a timestamped .tar.gz, written by AI-DLC itself, so
it needs no system tar and its entries carry no user or group name; if the
archive cannot be written, the report directory is retained with instructions
to compress it yourself before sharing. The report contains:
| File | Contents |
|---|---|
report.md |
Human-readable workflow timeline plus findings |
report.json |
Machine-readable timeline, findings, and summary |
manifest.json |
Report schema version, AI-DLC version, harness, hashed intent id, per-file SHA-256 checksums, applied redactions, truncation notices, and the excluded list |
evidence/normalized.json |
Allowlisted, normalized fields only — never raw files |
What it diagnoses: the report reconstructs the workflow timeline from the
audit trail (stage durations, gates, revisions, gaps, and long-duration,
incomplete or skipped flags; a skipped stage shows its skip time as Completed),
then runs deterministic condition→remedy rules (no LLM) for the
common "it will not advance" causes: state/audit drift, and a missing runtime
graph / cold or frozen hook heartbeats. A stage waiting at its approval gate is
shown in the timeline's Gate column and is no warning.
Findings come from the same run and the same shared DoctorFinding model the
live --doctor uses. The report's text is redacted as described under Safety,
and it names no folder of a stale project pin registration. A remedy
that names a recovery bypass (for example an AIDLC_DISABLE_* env var or an
"archive your workspace" instruction) is always flagged as not safe to automate.
DOCUMENT_INDEXED/DOCUMENT_UPDATED/DOCUMENT_REMOVED live in the space-level
audit shard. --doctor --export reads that shard explicitly and combines it with
the active intent's shards, so the report includes document history after a
workflow starts while workflow-authority readers remain intent-scoped. list and
show continue to read the DocumentKB catalog directly.
Safety. The report never includes workspace source, raw state/audit/
runtime-graph files, artifact/contribution/question/memory bodies, environment
variables, or command output. Every emitted string is redacted: your home dir
becomes ~, the project root becomes <project>, intent ids and Unit names are
hashed, and secret-like values are scrubbed. The project pin registry row gives
only how many stale registrations there are, not those other projects' folders.
Inputs whose real path escapes the project root
are refused (a symlinked leaf or parent is not followed out of the tree),
per-file and total size are capped (truncations are recorded in the manifest),
and files are created owner-only where the platform supports it.
Example output:
Diagnostic report created:
aidlc/diagnostics/aidlc-diagnostic-report-20260714-153000-3f9a1c22.tar.gz
Findings:
WARNING runtime-graph-missing
No source files or artifact bodies were included.
/aidlc --stage <slug|#> — Jump to stage
Jump directly to a specific stage by slug or number.
Syntax:
/aidlc --stage code-generation
/aidlc --stage 3.5
/aidlc --stage requirements-analysis
/aidlc --stage 2.3
Behavior: If a workflow is active, jumps to the target stage (skipping intervening stages with warnings); a --scope, --depth, --test-strategy or --guard-policy typed with the jump is applied first, then the jump is made in the work as changed (set --review and the ceremony switches such as --sensors on their own first). If no workflow exists, you can combine with --scope to start one there:
/aidlc --stage code-generation --scope bugfix
A stage your plan skips is not a dead end. When it comes after the current stage, the jump puts it back on the plan first (a recompose --add, recorded with the jump as its reason) and then jumps, and one line says so and how to go back. With no workflow yet, the stage runs as any other jump target does, with one line saying it is not part of the scope's plan. When it comes before the current stage, or is the current stage, going back would run every stage after it again, so the jump is refused with the way to run it now without touching the plan or your progress: /aidlc --stage <slug> --single.
/aidlc --stage <slug> --single — Run one stage in isolation
Add --single to run a single stage on its own without moving your main
workflow. The stage runs, writes its documents where your work keeps that
stage's, and stops; your workflow's Current Stage is never advanced (the engine
enforces this, not convention). Use it to apply one piece of methodology (a
requirements analysis, a reverse-engineering scan) without committing to a full
lifecycle.
When your work already holds files for that stage (a stage it approved, or a
Unit's step), the run first keeps a copy of them in the work's record, under
archive/<time>-<stage>/, and one line says so with the folder: your work goes
on from what the run writes, and the copy is the way back. Each run keeps its
own copy.
A stage your scope skips runs too: one line says it is not part of the plan, and
the plan stays as it is.
The isolated run still uses the stage's configured agents and reviewer, but it
does not run workflow learnings or ask for a workflow approval. Its synthetic
completion is recorded in the audit log, then the command stops.
A --depth or --test-strategy typed with it applies to that run only; your
workflow's settings stay as they are. --review, --guard-policy, a
--guard.<check> switch and the ceremony switches (such as --sensors) are
refused with --single; run the stage without them.
/aidlc --stage requirements-analysis --single
/aidlc --stage reverse-engineering --single
Every runnable stage also ships a typeable one-word runner — /aidlc-<slug>,
which packages /aidlc --stage <slug> --single. The full runner family (scope
runners, stage runners, /aidlc-init, and the session views) is documented in
Skills and Runner Commands.
/aidlc --phase <name|#> — Jump to phase
Jump to the first stage of a specific phase.
Syntax:
/aidlc --phase construction
/aidlc --phase 3
/aidlc --phase ideation
/aidlc --phase 1
Behavior: Same as --stage but targets the first stage of the named phase. Can be combined with --scope.
/aidlc --scope <name> — Change scope
Change the active scope of a running workflow.
Syntax:
/aidlc --scope bugfix
/aidlc --scope enterprise
Behavior: Updates the scope configuration in aidlc-state.md, recalculates which stages should execute and which should be skipped, and logs a SCOPE_CHANGED audit event. Can be combined with --depth, --test-strategy, --review, --guard-policy, --sensors, --learnings, --summary-confirmation, and the --guard.<fence> switches. When the agent adds a setting you asked for in your own words, it adds --message <id> too, naming the message you asked in, and the setting reads set by you as it does for config set. Scope-sourced Guard Policy follows a stricter new default automatically. A lower default follows when the agent names the message you asked for the scope change in (--message <id>); otherwise the running workflow keeps its policy and the output says so in one line. Ceremony values follow the new scope's defaults, while explicit human overrides and absent legacy rows are preserved. Memory strict still controls the effective policy. Explicit flags retain human provenance and follow the same lowering rule as config-change. Selecting the current scope still applies supplied settings through the same configuration applier, without a spurious scope-change event. Invalid or unknown flags, or an unauthorized --guard-policy relaxed or --guard-policy off, refuse the whole CLI update. Stage checkboxes carry over unchanged, including an open approval ([?]) and a revision ([R]), except where the new scope skips a stage that is waiting for approval, or skips the current stage before it has started: those stages are skipped with the change ([S], one STAGE_SKIPPED row and one output line each, naming /aidlc --stage <slug> --single to run one on its own). On running work, when nothing waits on you (the stage was simply running), the agent carries on in the same turn, into the next stage the new scope runs when it no longer runs that one. When an approval, a question or a Unit's checkpoint or summary waits on you, the turn ends, and the agent says where the work picks up when that stage stays on the new plan and the work is not going Unit by Unit. When the same message also answered an approval that waits for you on a stage the new plan still runs, with the work neither paused nor going Unit by Unit ("approve, and switch back to the poc plan"), the agent records that answer right after the switch, so the work goes on from the new plan; at Practices Discovery's gate a change request is recorded the same way, while an approval, which waits for the practices you approved to be saved, waits for your next message. On finished work (Status: Completed), a new scope that runs a stage after the last one reopens the work at that stage in the same write (Status: Running, the stage [-], one STAGE_STARTED row, the intents.json row back to in-flight), and the agent carries on into it in the same turn, saying the switch line and any setting the new scope changed with the stage's first line; what you approved before stays approved, and doctor reads the reopened run as a run, not as drift from the earlier completion. A new scope that adds nothing after the last stage leaves the work finished. A stage you skip with the switch (/aidlc --scope feature --skip ci-pipeline on finished poc work) is taken off the plan before the reopen picks its stage, so the work reopens at the first stage after it that you did not skip, and the agent says what was skipped and how to run it on its own (/aidlc --stage <slug> --single); with every stage the switch adds skipped, the work stays finished with those skips on its plan. A change never refuses for Unit work in flight, with solo or team Unit Ownership: Units that Units Generation already made carry on per Unit when the new scope skips Units Generation, and a Unit approval or Unit work at a stage the new scope drops is named in one line (for example, "The beta Unit's NFR Requirements approval is no longer part of the plan."). The other way round, a new scope that runs Units Generation, chosen after the work passed it without running it, makes no Units: its Construction stages run once for the whole work, an open gate stays open with its work, and going back to Units Generation (/aidlc --stage units-generation) splits the work into Units.
The reply's first line gives the stages the work runs on the new plan (those done, and those from the current stage on; a stage the new plan adds behind the current stage runs only if you go back to it), how many are done, and its approval gates, and says how to go back (/aidlc --scope <old scope>) when switching back gives back the same stages still to run: after a plan tailored to the work, it does not. Then comes one line per stage the change skipped, one naming the Unit work it dropped, and one per setting whose value changed; a default the new scope leaves as it was is not listed, while a setting you typed with the scope is always reported, changed or not.
A switch typed in the same reply that confirms the summary of the stage the work is on, to a plan without that stage ("1. also can you switch this to the express plan?"), first has the agent write that stage's documents from what you confirmed, and nothing else of the stage; the switch then skips the stage as above, saying the new plan does not include it, and later stages read those documents. Before you confirm, or once the documents are written, the switch goes as above.
Under autonomous Construction (Construction Autonomy Mode: autonomous, the person chose "Continue automatically"), a scope change the person asked for goes through like any other, and the remaining work keeps running automatically. A change with no request of theirs on record, or run with AIDLC_UNATTENDED=1, is refused (nobody is there to approve the new plan), and the refusal names bun .claude/tools/aidlc-bolt.ts set-autonomy --mode gated, which switches to stopping for approval at each Bolt so the change can go through. recompose (/aidlc --skip or --add, or an approved compose proposal) follows the same rule.
On a fresh project with no workflow yet, --scope <name> starts one instead: it behaves exactly like /aidlc <name>. Named with what to build, the workspace is initialized with the named scope and the workflow begins at its first stage; named alone, it first asks what the work is for.
/aidlc --depth <level> — Override depth
Override the depth level of the current or new workflow.
Syntax:
/aidlc --depth minimal
/aidlc --depth standard
/aidlc --depth comprehensive
Behavior: When a workflow is active, updates the Depth field in aidlc-state.md and logs a DEPTH_CHANGED audit event. When combined with --scope, overrides the new scope's default depth. When combined with --stage or --phase, sets the depth for the jump target's execution context. Typed in a chat before any work exists, it is kept for the piece of work the chat starts next, and the agent says so in one line.
Valid values: minimal, standard, comprehensive (case-insensitive).
Examples:
/aidlc --depth minimal Change depth of active workflow
/aidlc --scope bugfix --depth comprehensive Bugfix with comprehensive analysis
/aidlc --stage code-generation --depth minimal Jump with minimal depth
/aidlc --test-strategy <level> — Override test strategy
Override the test volume strategy independently of depth.
Syntax:
/aidlc --test-strategy minimal
/aidlc --test-strategy standard
/aidlc --test-strategy comprehensive
Behavior: Defaults to the current depth level when not specified, unless the scope declares its own override. When set independently, allows combinations like Standard depth (full artifacts) with Minimal testing (Nyquist model). Updates the Test Strategy field in aidlc-state.md and logs a TEST_STRATEGY_CHANGED audit event.
Valid values: minimal, standard, comprehensive (case-insensitive).
Test strategy models: - Minimal (Nyquist): 1 test per requirement, happy-path floor, unit tests only (~5-15 total) - Standard: 5-8 tests per component, unit + integration - Comprehensive: 10-15 tests per component, all test types
See Scopes, Depth, and Test Strategy for full details on each level, defaulting behavior, and common combinations.
Examples:
/aidlc --test-strategy minimal Minimal testing for active workflow
/aidlc --depth standard --test-strategy minimal Full artifacts, minimal tests
/aidlc --scope bugfix --test-strategy comprehensive Bugfix with thorough testing
/aidlc --project-type <type> - New project or existing code
Say what this piece of work is, instead of leaving it to the workspace scan.
Syntax:
/aidlc --project-type brownfield "add the hover tooltip" Start on existing code
/aidlc --project-type greenfield "scaffold the new service" Start as a new project
/aidlc --project-type brownfield Mid-workflow: this is existing code
You can also say it in plain words at any point ("this is existing code, the frontend is in ui-repo"); the agent runs the same command.
Behavior: At the start, the type you give replaces the scan's verdict, while the scan still fills in languages, frameworks, and build system. Mid-workflow it runs aidlc engine workspace reclassify --project-type <type>, which scans the folder again, sets Project Type, records Project Type Source: you, and refreshes ## Workspace State. For existing code it also records repos added to the folder since the work started (when none were recorded and Construction has not started), and puts back the Reverse Engineering a new-project scan left out, or that a plan composed for the empty folder left out (a scope that never runs Reverse Engineering, such as infra, keeps it out). When the workflow is already past Reverse Engineering, it runs next and the workflow then returns to the stage you were on; finished stages stay finished, and the reply names the ones that were done before the code was known so you can redo one. For a new project, a Reverse Engineering that has not finished is skipped, including one waiting at its approval gate: that question closes as skipped and the documents it wrote stay. Once Construction has started the plan stays as it is, and the reply says how to run Reverse Engineering on its own (the agent runs it when you also asked to scan the code now). When the type changes, the reply ends with how to undo it. Logs WORKSPACE_RECLASSIFIED.
When the scan set the work up as a new project and the folder gains code before Construction, next asks you once whether it is existing code. Either answer records the type as yours, so it is not asked again. The type you give holds for that piece of work only; the next piece of work scans the folder again.
Valid values: greenfield, brownfield (case-insensitive).
/aidlc --review <class> - Set stage reviews for this run
Set the per-run review override: the ceiling on how heavyweight the §12a stage
reviews run for the active workflow, replacing the scope's review_cap.
Syntax:
/aidlc --review adversarial
/aidlc --review advisory
/aidlc --review none
Behavior: Each reviewer-bearing stage declares a review class in its
frontmatter — adversarial (the reviewer refutes the artifact and the lead
fixes findings across up to reviewer_max_iterations passes) or advisory
(one normal-flow review pass; the approval gate shows its findings from the
engine-owned findings list for you to triage). The effective class per stage is the stage's declaration,
lowered by one ceiling: this override when it is set, otherwise the scope's
review_cap (bugfix, poc, classic, and workshop cap to advisory; express
caps to none). So --review advisory turns every remaining adversarial loop
into a single normal-flow decision-support pass, --review none skips gated
stage reviewer dispatch, and --review adversarial runs each stage's own
class, even on a capped scope. Setting the scope's own level (for example
--review advisory on bugfix, or --review adversarial on feature) clears the
override instead: the scope's cap applies again and follows later scope
changes. No override raises a class above the stage's declaration or adds a
reviewer a stage does not declare.
Without an override, classic runs one advisory pass per reviewer-bearing stage
in the gated flow, with the findings presented at the approval gate. Reviews of
Units a swarm builds are exempt: they keep the stage's own class, including
under classic. Neither the scope cap nor the ceremony switches disable those reviews.
Updates the Review Override field in aidlc-state.md and logs a
REVIEW_CLASS_CHANGED audit event. It can be supplied when a workflow is
created or alongside --scope; a same-as-current scope applies the review
override as a config change instead of discarding it. For either class, a later
output write that invalidates a terminal receipt permits one bounded recovery
request at the next ordinal.
Valid values: adversarial, advisory, none (case-insensitive).
Examples:
/aidlc --review advisory Single normal-flow pass, findings at the gate
/aidlc --review none No gated stage reviews this run
/aidlc --review adversarial Each stage's own review class, above any scope cap
/aidlc --review advisory On bugfix: back to bugfix's normal reviews
Workflow configuration — one atomic setter
All twelve intent settings (thirteen keys, because guard.plan-approval is another name for plan-approval) share one CLI setter, config-change.
Flags from different settings can be combined in one atomic CLI command; do not
split companion settings into successive setters.
For a typed lowering command, the agent runs this setter with the switch and
its companion intent settings in one transaction; the hook only records the message.
This is active-intent configuration, distinct from native project configuration
through aidlc config flags.
| Config key / slash flag | Values | State field |
|---|---|---|
depth / --depth |
minimal, standard, comprehensive |
Depth |
test-strategy / --test-strategy |
minimal, standard, comprehensive |
Test Strategy |
review / --review |
adversarial, advisory, none |
Review Override |
guard-policy / --guard-policy |
strict, relaxed, off |
Guard Policy |
sensors / --sensors |
on, off |
Sensors |
learnings / --learnings |
on, off |
Learnings |
summary-confirmation / --summary-confirmation |
on, off |
Summary Confirmation |
plan-approval / --plan-approval |
on, off |
Plan Approval |
collaborators / --collaborators |
on, off |
Collaborators |
guard.plan-approval / --guard.plan-approval |
on, off |
Plan Approval (another name for plan-approval) |
guard.review-freeze / --guard.review-freeze |
on, off |
Guards Off / Guards On |
guard.state-transition / --guard.state-transition |
on, off |
Guards Off / Guards On |
guard.reviewer-scope / --guard.reviewer-scope |
on, off |
Guards Off / Guards On |
The retired key change-control and the retired flag --change-control still
resolve to guard-policy for one release and print one deprecation line. On the
config-change and scope-change utility paths, naming both spellings in one
command is refused when their values differ, and accepted when they agree.
In orchestrate next, the last of the two flags wins when both values are valid.
In validate-grid, --guard-policy takes precedence over --change-control
regardless of their order; the first occurrence of the chosen flag is used.
Either flag overrides the scope object, where a string guardPolicy takes
precedence over a string changeControl.
Each line below combines settings. The setter the agent runs applies all listed intent settings together, lowering included:
/aidlc --depth minimal --review none --guard-policy relaxed --sensors off
/aidlc config set depth standard --test-strategy minimal --review advisory --guard-policy strict --sensors on --learnings on --summary-confirmation off
/aidlc --scope bugfix --guard-policy relaxed --sensors off --learnings on
The native dispatcher form is aidlc engine config set <key> <value> followed
by the other setting flags; typed at a terminal, aidlc config set <key> <value>,
aidlc config get <key> and aidlc config list reach the same verbs without
engine. Every key routes to the same utility command; the
first setting becomes --<key> <value>, with the remaining flags forwarded.
When the agent runs it for something you asked in your own words, it adds
--message <id>, the id of your message that asked for it. The engine checks
that the message is yours, came through this chat, and has not been used up by
a decision after it (the one approval or answer that same message gave leaves
it standing); the setting then reads set by you, and a setting turned off
keeps your whole message on its audit row as Person Reply. A message that
does not check out is refused, and the refusal says why, unless you typed that
setting yourself (on your own line in the chat, or at your own terminal): then
the setting goes ahead as it does without --message. Without --message, the
setting reads set by you only when you typed it on your own line or ran the
command at your own terminal, and set by a command otherwise (it is applied
either way); a lowering (a check off, plan approval or summary confirmation off,
Guard Policy relaxed or off) is refused instead. --person-words '<words>'
and --person-words-file <file> are still taken but prove nothing: the engine
keeps those words as the agent's own text (Conductor Summary), and the setting
reads set by a command.
aidlc engine config set guard-policy relaxed --sensors off --intent login-fix --space platform
bun .claude/tools/aidlc-utility.ts config-change --depth minimal --review none --guard-policy relaxed --sensors off --intent login-fix --space platform --project-dir /work/shop
config-change accepts only the thirteen setting flags (and the retired --change-control spelling), --message,
--person-words or --person-words-file (still taken, but they prove nothing and are kept as the agent's own text),
and the --intent, --space, and --project-dir selectors. At least one setting is required.
Selectors pin the state file, memory policy, and audit shard to the same target;
omitted intent/space selectors use the active workflow selection. They do not
switch the active intent or space. Use scope-change (the /aidlc --scope
route), not config-change --scope, when also changing the scope.
For a typed lowering switch, both
/aidlc config set guard-policy relaxed --intent <name> --space <name> and
/aidlc --guard-policy relaxed --intent <name> --space <name> ... name the
piece of work the agent's setter applies it to.
The trailing ... in the flags form stands for an optional task description.
Omitted selectors use the session's workflow selection; a nonexistent named
intent is refused, and with no work selected the setter keeps the setting for
the work the chat picks up or starts next: picking existing work (the pick
question, /aidlc intent <name>, or a space switch that lands on its one piece
of work) applies it there and says so once after the line naming the work.
The setter validates all recognized companion intent settings before mutation.
Malformed commands, unknown flags, missing values, and invalid companion values
change nothing; the CLI route reports its normal validation error.
The CLI validates all flags and values before mutating state. Invalid values
and unknown flags refuse that entire update; an unknown flag is named in the error. If an
explicit --guard-policy relaxed or --guard-policy off is refused by a memory
layer's Mode: strict, none of the companion settings or scope changes are
applied. The error names
the memory file to edit. Explicit strict and unrelated settings remain allowed.
One lock covers reading the target state, applying all
settings, appending the audit batch, and writing state once. Audit failure leaves
state untouched. Changes and output follow the key order in the table; Last
Updated changes only when stored state changes. Repeating an already stored
choice is a no-op, but changing a scope-sourced value to an explicit override
records that provenance even if the value is the same.
config get accepts every key in the table, and config list returns all thirteen
in that order. Guard Policy, fence, and ceremony reads include effective values
and sources, just like status:
/aidlc config get guard-policy
/aidlc config get plan-approval
/aidlc config get summary-confirmation
/aidlc config list
/aidlc config list --json
The additional read-only guard.human-presence lookup reports on (default) or
off (env AIDLC_SKIP_HUMAN_PRESENCE_GUARD); it is not a per-work setting and is
not included in config list.
Native read equivalents are aidlc engine config get <key> and
aidlc engine config list; aidlc engine config --help lists every config
verb. The following sections explain the Guard Policy,
fence, and ceremony policies managed by this same setter.
/aidlc --guard-policy <value> - Guard Policy for this piece of work
Set the intent's Guard Policy value: how far the framework's guards stand aside for the work in front of you. It decides two things. What happens when something a human already approved or confirmed turns out to have changed underneath (source files moved after a code plan was approved, a reviewed document edited after its review, an output saved without the current summary confirmation), and which of the five fences hold against an action no step of the running workflow calls for.
Syntax:
/aidlc --guard-policy strict
/aidlc --guard-policy relaxed
/aidlc --guard-policy off
Behavior: on a changed input, strict reopens the approval: the run stops
with a plain sentence naming what changed and asks for the approval again.
relaxed and off record the change once as a CHANGE_ACCEPTED audit row, tell
you in one line, and continue. Code that moved after you approved a code plan is
the exception: the build continues with that line and row, and only an edit to
the plan or its test instructions asks again under strict. A build of Units in
parallel under strict is the one case that also asks again for a change of
yours (an edit, a commit, a git pull), and it stops the next Unit from landing
until you undo it or set relaxed (see
Guard Policy). On the fences, strict leaves all five up,
relaxed lowers plan-approval (plan re-approval: an edited plan is not asked
about again) and review-freeze, and off lowers those two
plus state-transition and reviewer-scope. human-presence is never lowered
by the policy word.
Setting guard-policy relaxed or guard-policy off from chat is the person's
move. When they type /aidlc --guard-policy relaxed (use off for that value),
the conductor's first next names the setter and the conductor runs it in the
same turn: it writes the state line and audit row and says what changed, as
asked in the chat; the hook only records the message.
When they ask in plain words, the conductor runs
config-change --guard-policy <strict|relaxed|off> with the value they asked
for, which lowers when a reply from them is on record since the last decision,
prints its output verbatim, and stops.
If the harness has said this Kiro IDE build delivers no prompt text, say that
active work cannot be lowered on that build (its adapter refuses the lowering
setter too); update Kiro IDE or start new work from a lower-default scope.
In either the config or flags-first form, --intent <name> and --space <name>
select the piece of work; omitted selectors use the hook payload session's
workflow selection.
A nonexistent named intent is refused. A Guard Policy relaxed or off
switch typed before the work exists is kept for the piece of work this chat
starts next: Guard Policy relaxed for the piece of work you start now (set by you).
Where other work is there to pick up, it goes to whichever work the chat picks
up or starts next (... for the work you pick up or start next (set by you).);
a later strict takes back a check typed off before it.
Typed with a request, it goes with that request
(Guard Policy relaxed for the work you are asking for (set by you).): new work
takes it at creation, and continuing open work applies it there; the message
alone never changes open work. The off form names off instead of relaxed.
A fence switch (guard.<fence> off) works the same way:
The review freeze check is off for the piece of work you start now (set by you).
before the work exists, and
The review freeze check is off for the work you are asking for (set by you).
typed with a request. The one exception is while the code plan question
is open and the person is not editing the plan files: then a setting typed with
words is for this work, and the words are the reply to that question
(/aidlc --guard-policy off approve the plan). Words after an unquoted --
still describe new work.
Hooks run on Windows too, so the typed switch works on every harness that
forwards the prompt without a setter-side session lookup.
An unrelated reply opens nothing, and AIDLC_UNATTENDED=1 suppresses prompt-time
application and refuses CLI lowering.
Scope defaults apply without asking.
An already-off fence or an identical policy word already marked set by you
needs no key because the CLI update is a no-op.
After memory-strict and unattended checks, a CLI setter lowers without the
person's prompt in two cases only: you typed it at your own terminal (both ends a
terminal, no chat identity on the command, and no mark of a host that opens
terminals for its agent), which is your own act; or fenceKeyBypassed recognizes
the fixture or harness-launch presence bypass, not an inline environment
assignment.
The session-start hook keeps its presence-bypass-<session> stamp in the Plan
Approval runtime directory for an attended harness launched with
AIDLC_SKIP_HUMAN_PRESENCE_GUARD=1.
Model tools cannot invoke hooks or write aidlc/.aidlc-engine/sessions/ or any
.aidlc-plan-approval/ or <record>/.aidlc-engine/gate-words/ directory, as enforced by the
state-transition guard.
Memory-held strict refuses first and overrides both the policy word and any
fence lowered earlier, which /aidlc --status shows as
on (guard policy strict (from <layer>.md)) unless a machine-wide kill switch
takes precedence.
A typed config set lowering switch accepts config set <key> <value>
optionally followed by other setting flags (--depth minimal --sensors off)
and --intent <name> and --space <name> pairs; an unknown flag or invalid
value refuses the whole command, naming it. See
Customization.
Codex uses $aidlc, and its refusals name $aidlc instead of /aidlc.
A setter that would change the policy to relaxed, run without the message the
person asked in (--message <id>), refuses with:
Setting Guard Policy relaxed lowers fences, which is the person's call. Run it with --message
, the message they asked in, when they ask for it.
Direct scope change --guard-policy relaxed|off uses the same rule. Direct
intent create --guard-policy relaxed|off from chat is carried out when the
person has asked for it in this chat, the way the setter is on work already under
way: their message is the authority behind it, and the new work records
Guard Policy: <value> (set by you) when the flag is on their own typed line
(or their terminal ran it), and (set by a command) when the agent added it. Before any work exists that message is the
one the hook kept as it arrived; once work exists it is their turn since the last
decision. A command the person runs at their own terminal carries itself. Typed by the person before the work exists, or in the same message as new work, Guard Policy relaxed or off is kept for the piece of work this chat starts next and answers that request: intent create --request <id> for it records Guard Policy: <value> (set by you), with or without the flag, and any open work keeps its own policy. Naming the scope's own default at creation records the scope's
value without another prompt. A running workflow moving to a scope with a lower
default takes it when the person asked for the scope change; otherwise it keeps
its stricter policy and says so in one line. With no message of theirs on record
in this chat, creation refuses with:
Setting Guard Policy relaxed lowers fences, which is the person's call. Run it with --message
, the message they asked in, when they ask for it.
The off refusals use off in place of relaxed; unattended runs also receive
the driver guidance. When the person picks a guard-recovery lower-fence
choice, the agent runs config set guard.<fence> off for them and says in one
line what changed; they never have to type it.
Compose creation reads Guard Policy from the scope the plan runs on, and no
scope file is written: a matched plan keeps its stock scope's default or a
stricter value you asked for, and a custom plan runs on a stock scope whose
default is the approved value or lower.
The conductor passes --guard-policy for strict or relaxed, which raises a
lower scope default, and never for off. If you flip a matched plan below its
stock default at the compose gate, the composer treats it as an edit: the
proposal becomes a custom plan on a stock scope that carries the value, and the
intent is created from it. A flip above the default keeps the plan matched.
Nothing is left for you to type afterwards. The
composer never changes an in-flight intent's value.
No value removes a gate: the conductor must still ask every approval question;
a lowered fence does not enforce that prose obligation. A reviewer's verdict
is never changed, no evidence is deleted, and an agent can never answer for a
human. Each pass through a lowered fence writes one GUARD_STOOD_ASIDE row;
delivery of its one-line notice depends on the harness, as described in
Customization.
The shared config-change --guard-policy <value> setter, which the agent runs
for a typed switch or a plain-words request (the human-turn hook only records
the message), rewrites the Guard Policy line in aidlc-state.md as
<value> (set by you) (or (set by a command) when nothing on record shows the
person asked) and add a GUARD_POLICY_SET row to the audit batch.
Any write of the policy line removes the retired Change Control line, retaining only Guard Policy.
If both lines exist with different policy words, status shows
strict (from conflicting state lines) until the next next keeps one of them
(see where the value lives), unless
memory holds strict.
If both agree, the Guard Policy line is used and the next policy write removes
the retired one. A record carrying only a retired relaxed or off line is
renamed at your next message: the value is kept and written as Guard Policy,
with no policy audit row. Where that has not happened, every /aidlc run
carries a notice; /aidlc config set guard-policy relaxed keeps the value and
/aidlc config set guard-policy strict raises the fences, and either stops it.
Displaying this notice does not rewrite the line, and a retired strict line alone gets no notice. The value is
committed with the intent, survives sessions, and is visible to teammates. The
same setter repairs an invalid line and records the old text. A plain-chat
request for a policy, such as "stop asking me to re-approve when files change",
is carried out by the conductor: it runs the setter with the value you asked
for, which lowers when a reply from you is on record since the last decision.
The typed switch (/aidlc --guard-policy relaxed, say) is the same setter, run
by the conductor from its first next.
For configuration and scope changes, the row's Old Value is the previously
saved intent value (raw text if invalid; strict when no line existed), not
the memory-effective value. Governed-checkpoint observations still record
effective old/new values.
An older intent without the line stays strict until it is set; a new intent
starts from its scope's default, or from a memory layer's Mode: relaxed or
Mode: off when one is set. When a memory layer's ## Guard Policy
section says Mode: strict, an explicit relaxed or off refuses the whole
command, including any other supplied settings, and names that file: edit the
memory line there to relax it for everyone. An explicit strict setting is still
allowed. At creation the flag can be given with the scope
(/aidlc --scope poc --guard-policy strict "..."); under a memory
Mode: strict, a relaxed or off value given there is left off, and the
work starts at strict with the sentence naming that file said once.
The retired flag --change-control and the retired config key change-control
still resolve for one release and print one deprecation line naming their removal
in the next minor version. On the config-change and scope-change paths,
passing both spellings in one command is refused when their values differ, and
accepted when they agree; in orchestrate next the last of the two wins.
Valid values: strict, relaxed, off.
Examples:
/aidlc --guard-policy relaxed Record and announce input changes, keep going
/aidlc --guard-policy strict Approve again whenever an approved input changes
/aidlc --guard-policy off Lower the four lowerable fences too (each pass-through logged)
/aidlc config set guard.<fence> <on|off> - one fence, one piece of work
Turn a single fence off for the work in front of you without touching the policy
word, and turn it back on even when that word lowers it. The three per-work
switches are review-freeze, state-transition, and reviewer-scope.
guard.plan-approval is another name for the plan-approval setting (see
Plan approval), so it writes no Guards Off entry. Human presence
is the key holder and has no per-work switch.
Syntax:
/aidlc config set guard.review-freeze off
/aidlc config set guard.review-freeze on
Behavior: switching a fence off writes - **Guards Off**: <comma list> (set
by you) into aidlc-state.md and one GUARD_DISABLED audit row carrying
Guard, Scope, and Source; switching it back on removes it from that list and
writes GUARD_RESTORED. Setting on raises a policy-lowered fence, records it in
- **Guards On**: <comma list> (set by you), and writes GUARD_RESTORED with the
same fields. Setting the Guard Policy word yourself clears the line that goes
against it (except a fence the same command names), writing the same rows for
each fence that changes: off clears Guards On, strict clears Guards Off,
and relaxed clears neither; a single-fence
switch after it still applies. Repeating a setting already in force is a no-op that says so;
setting on for a policy-lowered fence is not a no-op. Neither state line accepts
human presence, and a persisted human-presence entry is ignored.
/aidlc --status prints a Checks off: line naming each one you or an
environment switch turned off, and why; the ones a lower Guard Policy turns
off go with its Guard Policy: line, which says where the policy came from. Precedence is the environment kill
switch, then per-work off unless memory holds strict, then per-work on, then the Guard Policy word, then on
by default. Four of the five have a kill switch; state-transition has none,
so the policy word and this switch are its only controls.
To set guard.<fence> off from chat, the person types
/aidlc config set guard.<fence> off or /aidlc --guard.<fence> off, and the
agent runs that setter in the same turn; it records the audit row and says
what changed.
Asking in your own words, or picking a guard's lower-fence choice, works too:
the agent runs the setter for that fence and says in one line what changed.
Both forms accept --intent <name> and --space <name>; omitted selectors use
the hook payload session's workflow selection.
A nonexistent named intent is refused. With no state file yet, the switch is
kept for the piece of work this chat starts next; typed with a request
(/aidlc --guard.<fence> off <description>), it goes with that request and
never changes the open work.
The CLI setters lower a fence when a person's turn is on record since the last
decision (an empty ledger does not count); an already-off fence is a no-op and
needs no key.
Hooks run on Windows too, so every harness that forwards the prompt supports
the typed switch without a setter-side session lookup.
AIDLC_UNATTENDED=1 suppresses prompt-time application and refuses CLI lowering.
After memory-strict and unattended checks, only fenceKeyBypassed permits CLI
lowering without the person's prompt through the fixture or harness-launch
presence bypass; an inline environment assignment does not establish it.
Memory-held strict refuses first and overrides a fence lowered earlier, which
/aidlc --status shows as on (guard policy strict (from <layer>.md)) unless a
machine-wide kill switch takes precedence. Its persisted Guards Off entry
remains and takes effect again only after the memory line no longer holds strict.
A setter that would turn the review-freeze fence off, run by the agent on your behalf without naming the message you asked in, refuses with:
Turning the review-freeze check off is the person's call. Run it with --message
, the message they asked in, when they ask for it.
The other fence refusals substitute that fence's name; unattended runs also
receive the driver guidance. The same command typed by you at your own terminal
is never refused for that reason: it is your own act, so it is carried out, said
in one line ("The review freeze check (it stops edits to work you already
approved) is off for this piece of work, set by you. You can turn it back on any
time."), and recorded as set by you. A terminal your editor opens for its own
agent (Copilot in VS Code, Kiro IDE, Cursor) is not your terminal: there the
refusal reads "To turn the review-freeze check off, ask for it in your Kiro
chat.", naming your tool. This command controls the three switchable fences,
including any the policy word leaves up. A switchable fence's main-session
refusal names the command; a human-presence refusal names no switch. While the
prompt hook is running for this work (its heartbeat is fresh), it says the
person has not answered yet and the agent ends its turn, with nothing for the
person to hear. Otherwise it says what happened to a reply the person already
sent: on a harness that runs hooks only after the person acts, the steps that
turn them on; elsewhere, one line for the person: "Your answer didn't reach
AI-DLC. Please give it once more. If
it happens again, type /aidlc --doctor." In Kiro CLI, where a reply typed to
another agent picked in /agent is never recorded, that line starts "Your
answer didn't reach AI-DLC. Type /agent and pick aidlc, then give it once
more." and goes on, for when aidlc is not in that list (Kiro CLI on its v3
engine with the agent files not upgraded), with Kiro's own upgrade
(/upgrade-agent, choosing the workspace agents, then kiro-cli --v3 again),
the switch to Kiro and a start with kiro-cli --v2 --agent aidlc, then ", and
give it there." The
agent is told never to offer to turn a check off for them.
A log answer for a question the agent logged after the person's reply is
recorded, on that reply unless another answer already recorded it: the person
is not asked again.
Only AIDLC_SKIP_HUMAN_PRESENCE_GUARD=1 lowers human presence, set machine-wide
or recorded with aidlc config flags --bypass (AI-DLC then says it is off).
AIDLC_UNATTENDED=1 separately withholds human-turn minting; it does not lower
the fence. Any attempt to set guard.human-presence refuses the whole update
with a non-zero exit and this message:
Human presence cannot be switched off: it is how AIDLC knows an approval or an answer came from a real person, so reply in the chat yourself. For a supervised session where nobody can reply, launch the CLI with AIDLC_SKIP_HUMAN_PRESENCE_GUARD=1 set.
Valid values: on, off.
/aidlc --sensors, --learnings, --summary-confirmation — Ceremony controls
Set these three independent policies to on or off for the active intent:
/aidlc --sensors off
/aidlc --learnings on
/aidlc --summary-confirmation off
| Flag / config key | State and status row | What off skips |
|---|---|---|
--sensors / sensors |
Sensors | Automatic Sensor dispatch and blocking-sensor checks; explicit sensor fire remains available for diagnostics |
--learnings / learnings |
Learnings | The learning diary and learning-gate ceremony |
--summary-confirmation / summary-confirmation |
Summary Confirmation | Only the consolidated-summary Looks correct checkpoint declared by stage frontmatter; Assumption Confirmation in intent-capture remains a separate human decision, as do required questions and stage approvals |
Defaults and precedence: a kill switch set to 1 forces its policy off;
otherwise the explicit per-intent setting wins, then the current scope default,
then on when the scope has no setting. In short: environment → per-intent →
scope → on. Every shipped scope declares all three explicitly: classic sets
sensors and learnings to on and summary confirmation to off, bugfix sets
sensors to on and learnings and summary confirmation to off, express sets all
three to off, and the other eight set all three to on. A scope file that omits
a key still falls back to on. A new intent stores
the scope defaults as, for example, on (from scope classic) for Sensors.
Changing scopes carries scope-sourced values to the
new defaults while preserving explicit values (set by you or set by a
command). Older intents without these fields resolve from their scope, then on.
An explicit ceremony flag alongside a scope choice writes an explicit override,
rather than a scope-sourced default.
These flags can be combined with each other and with depth, test strategy,
review, Guard Policy, and the fence switches in one configuration transaction,
with or without a scope change.
An isolated --single run uses its selected scope's policy, recorded on its
synthetic stage-start event, through completion; it does not inherit the main
intent's ceremony overrides. An open isolated attempt cannot be resumed under
a different scope: complete the attempt or resume with its recorded scope.
Legacy isolated starts without a recorded scope retain summary confirmation
and do not enforce this scope comparison.
An explicit ceremony setting writes <value> (set by a command) to the
corresponding state line, or <value> (set by you) when the setter applies the
person's typed switch or carries out what they asked for in the chat and the
agent names the message they asked in (config set <key> <value> --message
<id>, for example after "lead agent only from here"), which the engine proves
is theirs from this chat, and adds a CEREMONY_SET row to the shared
audit batch with Key, Old, New, Source, and Person Reply (their
whole message) and Message Id when they asked for an off.
Old is the previously saved value (raw text if invalid; the scope default
when no line existed), not a value forced off by an environment kill switch.
The audit keys are sensors, learnings, and summary_confirmation; a command
records Source: command and the person's typed switch records Source: you.
A command that repeats the person's own choice is a no-op and keeps set by
you. A creation flag such as intent-create --learnings off also records
set by a command, unless the person typed that setting with the request in
their chat (/aidlc --learnings off <request>, or before any work exists),
which records set by you. The saved override is committed with the intent
and survives sessions. An environment kill switch takes precedence without
overwriting that saved choice. Turning a ceremony off does not uninstall or
remove hooks, remove required stage gates, or disable the reviews of Units a swarm
builds.
Turning summary confirmation off removes the person's Looks correct
checkpoint, so it follows the fence rule: the person types
/aidlc config set summary-confirmation off or /aidlc --summary-confirmation
off, and the agent runs that setter. Beside a description (/aidlc
--summary-confirmation off build the export) the flag is the new work's and
rides its creation, so the work already under way keeps its checkpoint. When the person asks in their own words, the agent runs the setter (config
set, config-change, or scope-change); run without naming the message the
person asked in, it refuses with:
Turning summary confirmation off skips the person's
Looks correctcheck before a stage writes its output, so it is their call. Run it with --message, the message they asked in, when they ask for it.
An off already saved as an explicit choice is a no-op. A scope-owned off (for
example off (from scope classic)) still needs the person, because saving it
as explicit would outlive a later scope change. Turning it on, a scope's own
default, and a creation flag need no typed turn. A composer suggestion to turn
it off is the person's once they approve the plan that carries it: the
conductor then runs the setter itself. As for fences, AIDLC_UNATTENDED=1 refuses the change and only
the fixture or harness-launch presence bypass permits it without the person.
The configuration commands expose these same three keys alongside depth, test strategy, review, Guard Policy, and the fence switches. For example, the following sets all three ceremonies and Guard Policy together:
/aidlc config set guard-policy relaxed --sensors off --learnings on --summary-confirmation off
Environment kill switches:
| Variable | Policy forced off when its value is exactly 1 |
|---|---|
AIDLC_DISABLE_SENSORS |
Sensors |
AIDLC_DISABLE_LEARNINGS |
Learnings |
AIDLC_DISABLE_SUMMARY_CONFIRMATION |
Summary Confirmation |
AIDLC_DISABLE_PLAN_APPROVAL_GUARD |
Plan Approval (also over a memory Guard Policy strict lock) |
Any other value does not force the policy off. These switches can also be recorded explicitly through the native config bypass interface:
aidlc config flags --bypass AIDLC_DISABLE_SENSORS --local --yes
aidlc config flags --bypass AIDLC_DISABLE_LEARNINGS --local --yes
aidlc config flags --bypass AIDLC_DISABLE_SUMMARY_CONFIRMATION --local --yes
aidlc config flags --show
Use --project instead of --local to share the recorded switch with the
project. Real environment variables take precedence over recorded config flags.
Where a switch's variable is set to anything but 1 (the editor or CLI the
check runs in), the switch you record does not turn its check off there; when it
is set where you run config flags --bypass, the command says so for each check
but sensors, learnings and usage tracking, instead of saying the check is off.
Recording or clearing a switch changes only that settings file (and AI-DLC's
gitignored note of how it was set,
aidlc/.aidlc-engine/sessions/recorded-switches.json) and refreshes no harness files,
so it also works while a workflow is running: the next check reads it, with no
restart. AI-DLC's managed .gitignore block already lists
aidlc.settings.local.json; on an install from before that, the first --local
record keeps the file out of git through the clone's own .git/info/exclude
instead of editing .gitignore. Neither settings file counts as your code, so
recording one mid Code Generation does not stop the stage from completing.
The command asks nothing (--yes is optional), needs no --harness in a
project with several harnesses, and prints what it recorded or cleared with the
command that undoes it. With no --local, --project, or --global, a
--bypass goes to your own aidlc.settings.local.json, and a --clear-bypass
typed at your own terminal clears the switch from every file that records it.
Run by the agent from a chat, the same clear turns the check back on the way the
setter does (below): your own entry is cleared, and the project's shared
aidlc.settings.json and this machine's file are named, never changed. A switch
is on while any of the files records it. An unattended run (AIDLC_UNATTENDED=1) records no
--bypass, since nobody is there to ask for it; a --clear-bypass is always
done. Run by the agent in a chat, a --bypass of one of the nine checks that
take a check away from you (below) is recorded only when you asked for it, by
the rule every setter that turns a check off follows: the agent names the
message you asked in with --message <id>, and the engine proves it, before
any work exists too.
Otherwise it records nothing and says it is your call, for example "Turning the
human presence check off is the person's call. Run it with --message --download, or the update a project pinned to another release needs first).
A switch counts the moment it is recorded, however it was set: this command, a terminal, or an edit to the file. The nine that take a check away from you (plan approval, review freeze, reviewer read scope, human presence, summary confirmation and its check, the stage output check, the revision backstop, and the pipeline handoff check) are always said. The next step the agent relays carries one line naming the check, what it is for, since when, how it was set, and an offer to turn it back on, for example:
The review freeze check (it stops edits to work you already approved) is off for this project since 10:42, because you said: "turn the review freeze check off for this project". Do you want it back on?
Right after you turn a check off yourself, that line states the way back instead of asking about what you just decided: "You can turn it back on any time." When a wider place would change something, it then offers that place, once: "Do you want it off for the whole project instead?" after this piece of work, "Do you want it off for this whole machine instead?" after this project. Asking for a check that is already off there says so, with the same offer. This machine, a check with no project switch, and the Guard Policy have nowhere wider to go, so nothing is asked, and nothing is asked of a command you run at your own terminal. Nothing is asked after a switch for this piece of work either while you keep its summary confirmation and its learnings step off yourself, which is how the agent records "do not ask me anything"; turn either back on and the offer comes back.
When the engine cannot tie it to a message of yours in the chat, the line says
only that the check is off and since when. Every new chat opens with the
same line while the check stays off (except on opencode, which shows no
session-start context), and config flags --show and the doctor Flags row (a
warning, which does not change doctor's exit code) list it. Answer that offer in
your own words and the agent runs the command; if the environment variable still
keeps the check off, the command says so. A yes in the chat never changes the
project's shared aidlc.settings.json or this machine's settings file, so while
either records the switch the line ends by naming it instead of asking, for
example "The project's shared
settings in aidlc.settings.json keep it off for everyone on this project.
Changing that file changes it." --show and the doctor row name a command that
does it where they run: the clear with no file named at your own terminal, and
anywhere else (an IDE's terminal included) one clear for each file that records
the switch, with its --local, --project, or --global. When the switch is cleared but the
open piece of work keeps the check off on its own (its scope or its Guard
Policy), the line says so and offers to turn it on for that work too, for
example:
The review freeze check (it stops edits to work you already approved) switch is cleared for this project, but it stays off for this piece of work: guard policy off (set by you). Do you want it on for this piece of work too?
The other way round, when you turn a check back on for this piece of work while
a switch still keeps it off, your own aidlc.settings.local.json entry for it is
cleared and the line says so in place of the setting's own line, for example:
The review freeze check (it stops edits to work you already approved) is back on: aidlc.settings.local.json had kept it off for this project, and that entry is cleared.
The project's shared aidlc.settings.json and this machine's settings file are
not changed from that request: the line names the file and says that changing it
changes it, for example:
The project's shared settings in aidlc.settings.json keep the review freeze check (it stops edits to work you already approved) off for everyone on this project. Changing that file changes it.
At your own terminal that line names the command that clears it instead, and
when the editor or CLI was started with the variable it says to start it
without. Sensors and learnings read the same way, and so does the agent's
config flags --clear-bypass for this project from a chat. When you ask for the
shared file or this machine's to be changed, the agent clears it there with
--project or --global.
config get names where a switch keeps a check off: off (AIDLC_DISABLE_REVIEW_FREEZE_HOOK in aidlc.settings.local.json)
when a settings file records it, or off (env AIDLC_DISABLE_REVIEW_FREEZE_HOOK)
when the editor or CLI was started with the variable. During a plan-approval lockout the agent's own config flags
--bypass passes once you have spoken since the last decision (never from an
unattended run), and --clear-bypass always passes.
/aidlc --plan-approval - Plan approval
Set whether each code plan is shown for approval before code generation builds it, for the active intent:
/aidlc --plan-approval off
/aidlc config set plan-approval on
| Flag / config key | State and status row | What off skips |
|---|---|---|
--plan-approval / plan-approval (also guard.plan-approval) |
Plan Approval | The Plan Approval question. Once a plan is written the person hears one line naming it and the build starts; a PLAN_APPROVAL_SKIPPED row records the fingerprint handed over to be built |
Express and poc ship with it off, and every other shipped scope with it on.
Precedence matches the other ceremonies, with one addition: a memory
## Guard Policy section holding Mode: strict keeps it on even where the
scope or the intent says off, and AIDLC_DISABLE_PLAN_APPROVAL_GUARD=1 turns
it off on the machine and wins over that memory lock. The variable counts only
when the harness session started with it, when it is recorded with
config flags --bypass, or when no harness session is recorded in the project;
set inline on one command inside a session, it is ignored. Status then reads, for
example, Plan Approval: on (guard policy strict (from project.md)) or
Plan Approval: off (from env AIDLC_DISABLE_PLAN_APPROVAL_GUARD) when the
session started with it, or Plan Approval: off (from AIDLC_DISABLE_PLAN_APPROVAL_GUARD in aidlc.settings.local.json)
when config flags --bypass recorded it.
It is the person's call: they type /aidlc --plan-approval off or
/aidlc config set plan-approval off (the agent runs the setter), or say
so in their own words ("skip plan approval for this work") and the agent runs
the setter. A setter run without naming the message the person asked in
refuses with:
Turning plan approval off lets code generation start without the person approving the plan, so it is their call. Run it with --message
, the message they asked in, when they ask for it.
With memory holding strict, the refusal names the memory file instead. Said
before the work exists (at the compose gate or the scope confirmation), the
person's words answer that request: intent create --request <id> for it
records Plan Approval: off (set by you), with or without the flag, and the
next creation in that chat spends them whatever it creates. A flag with no
such turn, or a creation that names another request or none, is refused or
keeps the scope's value. Turning it on needs no typed turn. A scope change carries a scope-sourced value to the
new scope's default in both directions and keeps a value set for this intent.
guard.plan-approval names the same setting, so
/aidlc config set guard.plan-approval off writes the Plan Approval line
rather than a Guards Off entry. Asking to review the plan while it is off
shows that one plan for approval without changing the setting. See
Plan approval for the full behavior.
/aidlc --statusline <on|off> - AI-DLC's status line
On Claude Code and Codex CLI, show AI-DLC's progress in the status line at the
bottom of your terminal, or give the status line you set up yourself back. It
runs aidlc config --statusline <on|off>, asks nothing, and prints one line
saying what changed and how to switch back. Nothing about your work moves.
- Claude Code: your own choice. AI-DLC's status line goes into, or comes
out of, your own
.claude/settings.local.json(git ignores it), so teammates are not affected. A status line of yours in that file comes back when you turn AI-DLC's off. - Codex CLI: the project's choice, because Codex has no per-person
settings file in a project. It adds or removes only AI-DLC's
status_lineline in the shared.codex/config.toml, for everyone working in the project. Each person can add task progress to their own status line with Codex's/statuslineinstead.
First-run setup asks the same question once; a setup that asks nothing adds no status line. See Status line.
/aidlc --statusline off
aidlc config --statusline on
On the other harnesses it says that the tool has no status line and that
/aidlc --status shows where the work stands.
/aidlc --version — Framework version
Print the framework version (aidlc <X.Y.Z>) and exit. Read-only — works without a workflow and never prompts to resume one.
In a project pinned with aidlc config --pin to this release or a later one,
the answer names the pinned release, which runs the workflow, and this
machine's active release when it is a different one: this project is pinned
to aidlc 2.10.0, which runs its workflow (machine active: 2.9.0). A pin to an
earlier release answers with this machine's version line.
Syntax:
/aidlc --version
/aidlc --help — Usage information
Display a summary of available commands and flags.
Syntax:
/aidlc --help
In a project whose plugins add commands, aidlc --help at a terminal lists
them under PLUGIN COMMANDS, by plugin.
/aidlc <plugin command> - Run a command a plugin adds
A plugin can add commands of its own, such as a report or a dashboard. Run one the way you run AI-DLC's own:
/aidlc test-pro-report --since 7d # in the chat ($aidlc in Codex)
aidlc test-pro-report --since 7d # in a terminal, native install
bun .claude/tools/aidlc.ts test-pro-report --since 7d # in a terminal, copy install (your harness folder)
AI-DLC starts the plugin's script itself, with its own runtime, so the command works on native and copy installs and in PowerShell, cmd, and POSIX shells; everything after the name goes to the script, and its output and exit code come back as they are. Your tool applies its own permission settings to it, as to any command: AI-DLC does not pre-approve plugin commands.
- Only a plugin that is installed and on in this project runs. When it is off,
the command says so in one line and names the
aidlc config project --pluginscommand that turns it back on. - AI-DLC's own commands always keep their names. A plugin command named like
one of them, like a plan, or like another plugin's command is not added; the
plugin sync that meets it says so once, naming both, and
aidlc doctor --verboseshows it again. - When the name opens a longer sentence (
/aidlc test-pro-report on the login bug), the agent reads whether you meant the command or a request, and asks you only if it cannot tell.
Deterministic CLI Tools
The native dispatcher exposes stable public routes for user operations.
Versioned release runtimes use those routes. A locally generated source
projection implements the same operations with Bun/TypeScript tools under the
harness directory, and direct tool calls remain useful for plumbing that has no
public route. Prefer aidlc whenever a route is documented below.
Read Earlier Questions and the Audit Timeline
Agents use these commands to read earlier answers and the timeline. You can run
them to inspect a workflow, but like every aidlc engine route they are
harness machinery, not a stable interface for your own scripts.
aidlc engine log answers --stage requirements-analysis
aidlc engine audit history
log answers returns JSON with paired answers, open questions, and the rare ambiguous answer (one with no question before it, or two writers tied at one second). One reply closes every question logged for the menu it answered.
audit history returns a JSON timeline of events and free-form notes.
aidlc engine audit turns is for you: it lists each of your turns with what
you sent, read from this machine's message record, since the committed audit
keeps no words. Records stay on the machine that wrote them for a day, so an
older turn, or one from another clone, says its words are not here.
An answer whose text holds a character a shell acts on ($, a backtick, a quote,
%, &, |, <, >, ^, !, or a line break) reaches log answer through
a file instead of the command line: the agent writes it to
<record>/.aidlc-engine/answer-text/answer.txt and passes --details-file
.aidlc-engine/answer-text/answer.txt. The same file named from the project folder, or by
its full path, is read too. The engine reads only that folder, through no link,
up to 64 KiB, and removes the file once read. log decision takes the question the
same way with --decision-file, and its choices, one a line, with --options-file
(a choice holding a comma can also go as its own --option '<choice>'), and learnings surface a correction with
--correction-file. A file the agent wrote for next --request-file works for an
answer too: log answer --request-file aidlc/.aidlc-engine/request-text/request.txt reads
it as next does and removes it once the answer is taken, so a refused answer
keeps it; it is not passed beside --details or --details-file.
A plain log answer needs a reply of the person's in this chat that no
decision has used yet, sent before or after the question was logged: which
question it answers is the agent's reading. For a question with choices,
--details is the choice the agent read from the reply, and their reply itself
where no hook kept their words or the reply answers several questions. The answer's row keeps every such
reply's words (Person Reply), except one an earlier answer already recorded
unless it is the latest and the question was logged before it, and names the latest (Message Id), and every one of
them, oldest first, when there are several (Message Ids); when the engine
cannot name the chat, it keeps only the id where one chat replied and neither
where more did, and records the answer either way. log decision --message <id> and log answer --message <id> name
one message instead, such as one sent while another engine question was open.
The engine proves the record exists, came through this chat or was sent on this
work in another, and is not spent by a later approval or decision, and reads
none of its words. The id is
engine-to-agent text and is never shown to the person.
See Hooks and Tools for pairing rules, ordering, and filters.
aidlc engine log install - a system install the person asked for
aidlc engine log install <package>... --message <id>
A system package install (sudo apt-get install, brew install, winget
install and the like) waits for the person unless they asked for it. When they
asked in a message an approval or another decision has already used ("Approve.
Then install shellcheck and run it."), the install check's refusal names this
command with their messages. The agent names the one that asked; the engine
proves it as it proves any request (it exists, came through the person's own
prompt on this work, carries their words, and no later decision has spent it),
reads none of its words, and records the packages as SYSTEM_INSTALL_REQUESTED.
The install of those packages then runs, its SYSTEM_INSTALL_ALLOWED row naming
that message and their words, until the next decision of theirs.
aidlc engine log change - a change to a built Unit the person asked for
aidlc engine log change --message <id>
Once a Unit's Code Generation is approved, its code changes only when the person
asks. When they asked in the same message that approved it ("Approve, and move
the page files into shop-web"), the approval has already used that message: the
approval's return and the refusal of the change name this command with their
messages. The agent names the one that asked; the engine proves it as it proves
any request, reads none of its words, and records it as UNIT_CHANGE_REQUESTED
with the Unit. The change then runs, its ASKED_CHANGE_ALLOWED row naming that
message and their words, until the next decision of theirs. Where no Unit is
built and approved here, it records nothing and says so.
aidlc engine bolt set-autonomy - change Construction approvals
During Construction, explicitly ask to continue automatically or review each
checkpoint. The conductor records Continue automatically as autonomous
and Review each checkpoint as gated:
aidlc engine bolt set-autonomy --mode autonomous --message <id>
aidlc engine bolt set-autonomy --mode gated
Both update Construction Autonomy Mode and emit AUTONOMY_MODE_SET. Granting
autonomy needs --message <id>, the id of the person's message that chose it,
and the grant uses that message up; an approval
in that same message ("approve the plan, and run Construction on its own from
here"), or the answer they gave the agent's own question in it, leaves it standing. Revocation needs no message. New checkpoint
workflows offer the choice at Construction entry with skeleton-off, or after
the first working integrated Unit has passed its skeleton checkpoint with
skeleton-on. A known choice is not asked again; on-demand changes remain valid.
Autonomy controls ordinary completion approvals. Every Unit still needs Plan
Approval while plan approval is on (with it off, each Unit's plan is built after
one line and recorded as skipped), and verification command selection and skeleton checkpoint approval
always need the human. Pre-generation summary confirmation needs the human only when
directive.ceremony.summary_confirmation === "on". Failures halt. Existing
workflows without Construction Checkpoints retain their legacy first-stage
and late stage approvals; team-owned Unit gates retain their own policy.
Checkpoint verification timeout
aidlc engine bolt checkpoint --unit <unit> --kind unit --action verify
runs the approved project check with a default limit of 30 minutes. For a
longer check, add --timeout-ms 3600000 (one hour). The value must be an integer
from 1 through 2,147,483,647 milliseconds and is accepted only with
--action verify. Each execution, including an evidence-refresh retry, uses
that budget.
A timeout retires the owned process group on POSIX or process tree on Windows before recording a failed verification, reporting incomplete cleanup if it cannot confirm termination. On POSIX, stopping verification with SIGINT, SIGTERM or SIGHUP forwards that signal to the owned group; processes that ignore it are killed after a short grace period. Cleanup can add up to four seconds. A watcher in the owned POSIX group also retires it if the verifier is killed with SIGKILL, which cannot be forwarded. An interrupted verifier cannot record a passing proof; a hard kill leaves its started proof unfinished and unverified. Independently detached POSIX processes are outside that group.
Construction order and execution
New source-producing solo Unit workflows with Unit decomposition in scope record
Construction Checkpoints: enabled, Construction
Iteration: unit-major, and Construction Execution: serial. One Unit runs
through its applicable design stages and Code Generation before the next.
Design-only and no-Unit workflows keep their existing stage flow; team-owned
Units keep their own gate rhythm. Existing workflows and explicit iteration
choices are preserved. To choose swarm execution explicitly, select stage-major
first:
aidlc engine state set-construction-iteration stage-major
aidlc engine state set-construction-execution swarm
To opt an existing workflow into verified checkpoints, preferably before Unit
work begins, use aidlc engine state set-construction-checkpoints enabled.
disabled retains the legacy checkpoint flow. These typed setters update
runtime preferences. Generic state set refuses Construction Checkpoints,
Construction Execution, Construction Iteration, and Construction Verification
Command; use set-construction-checkpoints, set-construction-execution,
set-construction-iteration, or the receipt-bound
set-construction-verification-command, respectively.
During Construction you change any of these in your own words ("turn
checkpoints off", "from here on, build one unit at a time", "run the Units in
parallel"). The agent does it in that turn, with no question first, and says one
line with what changed and that you can switch back, for example "Construction
checkpoints (a stop after each Unit for you to check and approve it) are off for
this work now (they were on). You can switch back any time." The change is recorded as CONSTRUCTION_POLICY_SET with your words.
The setter makes the change only when the agent names the message you asked in
(<value> --message <id>, proved as for config set), or you picked the change
when the agent offered it, so the agent cannot change these on its own, and an
unattended run never changes them. A change that needs another first (parallel Units need
stage-major and checkpoints on) makes both, and says both.
Switching to unit-major or turning checkpoints on in the middle of a stage
keeps the Units already finished: /aidlc carries on with the next Unit that
still has work, and the change is recorded as CONSTRUCTION_POLICY_SET.
Going the other way, to stage-major with checkpoints off (switching iteration
back, or turning checkpoints off while stage-major), keeps them too. A Unit you
reopened before the switch (a jump back, Redo, or a checkpoint's Request Changes)
still gets its redo, and keeps it once it is done.
Switching to serial after a side-by-side build was prepared (for example "build them one at a time instead" after the parallel start stopped) keeps the plans you approved: each Unit is built from its plan in the project itself, with no new plan question. The worktrees that build prepared stay where they are; their Bolts are recorded as closed.
Execution is separate from approval: swarm works with guided (gated) or
automatic (autonomous) completion. Unit-major stays serial and refuses a
contradictory swarm setting; run aidlc engine state set-construction-execution serial before
returning to unit-major. Preserve existing explicit choices. Workflows without
the execution field retain legacy autonomy-based swarm routing.
For checkpoint-enabled solo work with a real non-empty Unit DAG and an included source-producing stage, skeleton-on always builds the first DAG Unit as the smallest working integrated slice before later Units, even with stage-major selected. A first design-stage review alone does not prove a working skeleton. Already approved inline Units are excluded from later swarm batches.
aidlc engine swarm prepare - prepare a reproducible batch
Before initial protected Code Generation prepare, commit the already-approved
parent application source so the selected base can reproduce it. This includes
approved inline skeleton source before switching to a parallel batch. Files Git
ignores and does not track, such as a .env or a log, are not part of it unless
you registered them as source in .aidlc-source-paths.json: they stay where they
are, and a Unit's worktree, like any Git checkout, does not have them. Nor is what
such an ignored link leads to, and a submodule's files are read by the
submodule's own ignore rules. A change to one of those files (a test run's log
written after you approved the plans, a dev server's log during the build) never
asks for the plans' approval again, and the landings and the stage's completion
do not count it as a change to the main checkout. The rule applies to legacy
autonomy and new checkpoint workflows alike; an autonomy grant never authorizes
an automatic commit.
aidlc engine swarm prepare --batch <N> --units "<exact emitted Units>"
The tool performs a read-only source/approval preflight for all Units before creating any child worktree. If the source is uncommitted, it returns a commit-and-retry instruction with no child left behind by that refusal. Commit only with explicit authorization, then retry with current approval evidence. If the application source or plan changed, re-present any required Plan Approval. The requirement concerns application source, not a blanket commit of unrelated framework records or other files. Git on Windows doesn't allow some file names (CON, AUX, NUL, COM1 and a few others, with any extension), so it can't check out a file named that way. If your code has one, AI-DLC can't build your Units at the same time on Windows: it tells you which file and offers to build them one after another.
The same preflight names nested repositories whose source files would become
empty folders in a Unit worktree because their gitlinks have no .gitmodules
entry in the commit the Unit actually starts from. Register them as Git submodules
and choose a starting commit with those entries, or build that Unit serially. This
refusal creates no child worktrees and makes no parent commit. Registered
submodules are copied from the main checkout without network access; gitlinks
outside the selected source boundary do not block preparation. If the selected
base needs the approved parent source, preparation starts at that parent commit
and checks its registrations. Recovery after an explicit discard instead checks
the recorded Approval Source Commit, even if the parent has since changed.
Construction verification command — record human authorization
For checkpoint-enabled work, Delivery Planning proposes a real project check from
the project scan, such as bun test, pytest, or make check. The structured
Approve / Request Changes question asks Use this command to verify each
completed Unit? Before presenting the command, write it as UTF-8 text to
<record>/verification-command.txt with the harness's
file-write tool (Write/edit), never a shell echo or heredoc. Repo-derived command
text must never be interpolated into a shell line: shell substitutions could
execute before approval. Pass only the record-relative path; the command finds
the session it runs in by itself:
aidlc engine log decision --stage "<directive.stage>" --checkpoint verification-command --command-file verification-command.txt --decision "Use this command to verify each completed Unit?" --options "Approve,Request Changes"
command field in the
decision tool's JSON output into the question's code span; never abbreviate or
substitute a summary, prefix, or digest. Use a code-span delimiter long enough to
preserve any backticks in the command. The human can also open
<record>/verification-command.txt.
Wait for the human's Approve / Request Changes reply, in that chat
or a new one while it is the newest question asked. Only Approve authorizes
the receipt; an unrelated reply, Request Changes, or a reply to another
question does not. Never write
--details "Approve" unless the human chose it. Only then run:
aidlc engine log answer --stage "<directive.stage>" --checkpoint verification-command --command-file verification-command.txt --details "Approve"
aidlc engine state set-construction-verification-command --command-file verification-command.txt
These are the aidlc-log decision/answer checkpoint forms. Both require the same
--stage, --checkpoint verification-command, and canonical command; each finds
the session it runs in, and --session <id> overrides that only when it reports
it cannot tell which session this is. Each accepts exactly one of --command-file <path>
or --command; both or neither are refused. Use the file form for conductor
shell calls; the direct argument is only safe when passed without shell
interpolation. The file is a regular file in the work's record, named from the record
(verification-command.txt), from the project folder
(aidlc/spaces/<space>/intents/<intent>/verification-command.txt, either slash)
or in full; a name outside the record, a .. part, or a symlink in the chain is
refused, and the file is no larger than 16 KiB. The file is decoded
as UTF-8 and canonicalized exactly like the direct argument.
Leading/trailing whitespace is trimmed before recording, hashing, and execution.
The resulting command must be nonblank, at most 1024 characters, and a single
line. The tools refuse control characters (including newline, CR, tab, or NUL)
and display-spoofing characters: Unicode format characters (including zero-width
and bidi controls), line/paragraph separators, and no-break space (U+00A0). Put
multiline checks in a script and record its invocation.
decision records DECISION_RECORDED with Checkpoint: Construction Verification
Command and Command SHA-256. Its JSON output includes the full canonical
command and command_sha256 alongside challengeId and challengeFile;
answer also prints command_sha256. answer requires a matching pending
decision and the human-turn hook's record that the person replied to that command and
session's current challenge, even with AIDLC_SKIP_HUMAN_PRESENCE_GUARD=1; --details
names the choice the agent read from their reply, and the receipt carries their exact
words. A later HUMAN_TURN alone is insufficient. Recording a new decision
replaces the session's prior challenge and response; a successful answer appends
the audit event before consuming both. An append failure leaves the same response
retryable; stale, mismatched, and successfully consumed responses are refused.
A reply that approves (the agent reads the person's reply and passes
--details "Approve"; a bare number or another word is refused as naming no
choice) emits the tool-owned
VERIFICATION_COMMAND_RECORDED receipt; one that asks for changes records only
QUESTION_ANSWERED and means propose another command without setting state. A reply
that picks neither is refused with the one follow-up to ask. The receipt
carries the stage, checkpoint, session, SHA-256 of that canonical command, the
complete canonical command as Command Label (never truncated), and the human's
exact choice.
aidlc-audit append cannot mint this reserved receipt.
The typed setter accepts --command-file <path> (named the same ways) or one positional
command argument, never both. It writes - **Construction Verification Command**: <cmd>
under ## Runtime State in aidlc-state.md only when the latest current-workflow
approval receipt matches its digest. Its JSON output includes command_label
(the full canonical command) and command_sha256. It does not ask for another human turn:
the receipt, not the state field, authorizes execution. Verification checks the
same binding; older-workflow and isolated-stage receipts do not authorize it,
and a later receipt for a different command supersedes the earlier one. A field
without its matching receipt, or a receipt without the matching field, is not
authorization. Do not write this field directly or through generic state set.
The recorded command is reused at every Unit/batch checkpoint in this intent. Selection and later changes always require this decision/answer/setter flow, even under autonomous completion. If no runnable check exists yet (greenfield), the human may defer during Delivery Planning; leave the field unset and the first checkpoint will ask. Never invent or auto-approve a placeholder command.
aidlc engine bolt checkpoint - verify and approve a completed Unit
The engine names the Unit and checkpoint kind (unit or skeleton). The body,
reviews, and receipts already exist; follow the checkpoint instead of rebuilding.
When the Unit's code or documents changed after their review, the checkpoint's rereview names
the one re-check request, and the agent runs it before verifying. That happens
under Guard Policy strict; under relaxed and off the change is accepted
instead, an approved Unit stays approved, and verify returns its one line as
change_notices. The same holds with reviews off: the next Unit's verify, or
the Construction stage's own check, returns the line. When the Unit's own review
did not finish (no verdict yet, or NOT-READY with a pass left), rereview carries
unfinished and names the request that finishes it. If the person says to approve
the Unit as it is, add --over-unfinished-review --message <id> to verify, with <id> the message
they said it in: under Guard Policy off, relaxed, or a strict set for the work, with that message
proved and a review that was asked for, the Unit is verified and their words are its
approval (review_not_finished.approved_in_words: approve asks nothing more),
recorded with the review as not finished, as at a stage gate. A verdict for that review that comes in later is
recorded and leaves the Unit approved. Under a team's locked strict the review finishes
first, without asking the person. When the Unit's check ran and did not pass (every test green and a
coverage floor not met, say) and the person says to approve it as it is, add --over-failed-check --message <id>
to verify the same way: the check runs again, and if it still does not pass the record keeps Verified: false
with Check Not Passed: approved in words, the result carries check_not_passed.approved_in_words and a
next_step naming the approve to run with no question, and the person hears "Approved. <command>, did not pass."; under a team's locked strict the check has to pass, and verify says so in one
line. Each flag lifts only what it names; pass both when both apply. A Unit whose review ended in the NOT-READY
fallback the conductor records when a retried review still wrote no whole review is asked
about once (review_not_finished.question) and approved the same way, with no
option to pass. A Unit review never asked
for in this run of the Unit's work (after a jump back or a reopen, a review from
before does not count) is required under every Guard Policy: rereview carries
first and names that run's first request:
aidlc engine bolt checkpoint --action status --unit "<Unit>" --kind <unit|skeleton>
aidlc engine bolt checkpoint --action verify --unit "<unit>" --kind <unit|skeleton>
aidlc engine bolt checkpoint --action verify --unit "<unit>" --kind <unit|skeleton> --over-unfinished-review --message <id>
aidlc engine bolt checkpoint --action verify --unit "<unit>" --kind <unit|skeleton> --over-failed-check --message <id>
aidlc engine bolt checkpoint --action verify --unit "<unit>" --kind <unit|skeleton> --override-blocking-sensors --user-input "Override blocking sensors"
Verification runs the recorded, human-authorized Construction Verification
Command and stores proof bound to current artifacts, source, and attempt. It
does not accept a command argument. If construction_checkpoint.command_authorized
is false, do not run verify: complete the
recorded-command flow,
then re-run next. A skeleton's command must prove the integrated slice end to
end and check ordinary Units' working results. In solo work built Unit by Unit, verify first runs
the blocking gate checks of the checkpoint's stages on the Unit's own outputs; a
failing one refuses with the Unit named for the check's Fix or Override question,
and the person's Override is retried with --override-blocking-sensors --user-input
"Override blocking sensors" (blocking checks at a Unit's checkpoint). Approval requires a current
verified proof, or the person's "approve it as it is" over a check that ran and did not pass
(--over-failed-check, above). Show "Verified with <full command> (exit 0)" in the human
approval question, copying the complete verification_command from the current
tool output into a code span without abbreviation. This display label is the full
canonical command, not a prefix. Only after verify reports verified: true and
the current checkpoint has ready: true, run ask; it refuses an unready or
unverified checkpoint. Before presenting Approve / Request Changes, open
the one-shot question for the current Unit, kind, fingerprint, verification proof
ID, and authorized command digest. Each checkpoint action finds the session it
runs in by itself; --session <id> overrides that only when it reports it cannot
tell which session this is:
aidlc engine bolt checkpoint --action ask --unit "<unit>" --kind <unit|skeleton>
When ask returns earlier_reply, the person already answered in that session
while the Unit's review ran: their words typed after the review was asked for
and before any other question was asked (such as the learnings question) are
this question's reply.
Read them and run the action they chose, with no question shown; when they
answer nothing, present the question and wait as below. When ask returns
left_out, what the person asked to leave out of the Unit's build, it is said just
before the question, for example "Left out of this build: AC2.1.1 and AC2.2.1."
So is changed_files, the files the person brought that the Unit's build
changed or deleted, with the way back: "The build changed README.md, a file you
had before this work started. To put it back, run git checkout HEAD -- README.md."
So is check_offer, when a stage's review passes are spent and its reviewed work
changed after the last review: "Do you want me to have the new approach checked
before you decide?"
Wait for the human's Approve / Request Changes reply to this checkpoint
question, in that chat or a new one: with no question of its own, a new chat's
reply is kept for the checkpoint question another chat asked, while it is the
newest question asked and still open. It authorizes only the matching action;
an unrelated reply, the agent's own words, or a reply to a different question
does not. Never pass --user-input the human did not choose. Run only the action
they chose:
# Only after the human chose Approve:
aidlc engine bolt checkpoint --action approve --unit "<unit>" --kind <unit|skeleton> --user-input 'Approve'
# Only after the human chose Request Changes and supplied feedback:
aidlc engine bolt checkpoint --action reject --unit "<unit>" --kind <unit|skeleton> --user-input 'Request Changes' --reason '<human feedback>'
When the person, as they decide, asks for a review finding to be fixed or
rejects one, add --fix-finding "<review-artifact>#R-NN" to approve, or
--reject-finding '<review-artifact>#R-NN=<their reason>' to reject
(--reopen-finding for one the reviewer marked fixed that they say is not),
once per finding, as at a stage's gate.
When the person answered while another engine question was on screen (where
their words belong, a new-work offer), their reply is not kept for the checkpoint;
the refusal names that message, and --message <id> on approve or reject records
it as their reply. The action consumes the response. Re-running verify withdraws every open
checkpoint question and captured checkpoint response for this intent, in any
session; ask again only after the new verification reports verified: true.
A response to an older proof cannot approve a newer one, even if its fingerprint
and command are unchanged. A verified ordinary Unit with human_required: false
is approved without --user-input and needs no ask; human rejection always
needs the verified question-and-answer flow above. A skeleton always requires
the human. Missing or stale evidence is explained in errors: repair the named
review/receipt, consulting the human as needed, without inventing verification
or opening a checkpoint approval question early. Re-run next after verification, approval, or rejection, never report
one Unit's checkpoint as approval of the whole Code Generation stage.
The verifier records a tool-owned CHECKPOINT_VERIFICATION_RECORDED receipt
alongside the proof file, and approval requires that receipt; a hand-written
proof file cannot verify a Unit. On a checkout with no proof file at all (a
fresh clone, another machine), that receipt stands in for the proof of a Unit
already approved whose evidence is unchanged, so nothing runs again.
Only one protected question may be open per session. Ask protected questions one at a time and wait for the answer before anything else.
The version-4 proof and CLI JSON retain command_sha256 and the full canonical
command in command_label, plus exit status, full captured stdout/stderr byte
counts and SHA-256 digests, and the last 2 KiB of each stream in stdout_tail and
stderr_tail. Tails are decoded as UTF-8 after dropping a leading partial
multibyte sequence; control characters other than newline and tab are replaced
with U+FFFD. Full output is not retained; the check writes it to temporary files
rather than memory, so a long-running suite's output never fails a passing check.
A check that changes the Unit's files while it runs (a formatter, a generator)
runs once more against the files as they are then; if it changes them again, the
proof's error says to use a check that leaves the files as they are. Project
check commands must not print secrets: these diagnostic tails are not
secret-redacted. Approval binds Verification Command SHA-256 on GATE_APPROVED
to the proof's command_sha256. A Unit approved under an earlier authorized
command keeps its approval when the person approves a new one; the new command
verifies the Units still to be approved, and the setter returns the line
Using <command> from here on. as notice.
Use the tails to explain a failure; if more diagnostics are needed, use the same
authorized project check, not a newly chosen command. Version-1 through version-3
proofs are unverified after upgrading; authorize the recorded command and run
checkpoint --action verify again before approval.
aidlc engine swarm check / finalize - verify native worktrees
Both commands run the intent's recorded, human-authorized Construction Verification Command in each prepared Unit worktree, with or without Construction Checkpoints:
aidlc engine swarm check <Unit> [--test-file <protected spec>] [--show-output] [--timeout-ms <milliseconds>]
aidlc engine swarm finalize --batch <N> --units "<all Units>" --claimed "<converged Units>" [--timeout-ms <milliseconds>]
Each run stops the command after 30 minutes. For a longer project check, add
--timeout-ms (3600000 is one hour) to check and to finalize; the value
must be an integer from 1 through 2147483647, as for checkpoint --action
verify. A run stopped at its limit reports "reason": "error" with a detail
that says the command was stopped before it finished, so it never reads as a
failing project check.
--check-cmd is optional, with or without checkpoints; if supplied, its
canonical digest must match the authorized command. A missing authorization
refuses execution: complete the recorded-command flow
and set-construction-verification-command, rather than substituting a passing
command. With no workflow, both commands refuse. check --show-output sends the
command's own output to stderr as it runs; stdout keeps the one verdict line. In a
side-by-side build each worker's brief and each reviewer's review request
(test_command) name check <Unit> --show-output, run from the project's main
folder, so the tests you approved run through AI-DLC's own
command. check is advisory; finalize reruns the command and validates
review evidence before merging each claimed Unit. Re-running finalize withdraws
every open checkpoint question and captured checkpoint response for this intent,
in any session; ask again only after fresh verification, source landing, and a
batch status of ready: true. Only verified native passes
receive SWARM_UNIT_CONVERGED, with the authorized Command SHA-256 (rows
from an earlier release may lack it). Land their source through the native worktree merge before next.
Edits the person made to the main checkout while the batch built stop that merge
under a strict Guard Policy (the refusal names the step: when they asked for the
change, swarm allow-change with their message, then the same merge keeps it;
otherwise undo them and run the merge again, or say guard policy relaxed to keep
them); under relaxed or off they are kept, recorded once as CHANGE_ACCEPTED
(swarm-batch), and the merge prints one note: line. The same holds for edits
made after the last merge when the stage completes.
aidlc engine swarm allow-change - a change the person asked for in the main checkout
aidlc engine swarm allow-change <file>... --message <id>
Under a strict Guard Policy, while the Units are built in parallel, the main
checkout changes only by their landings, so each landing can check it. When the
person asks for another file there ("also fix the typo in the README"), the
plan-approval guard's refusal of that write names this command with the message
they asked in. It proves the message, records the files with their words as
MAIN_CHECKOUT_CHANGE_ALLOWED for the current Code Generation attempt, and prints
one notice line for them; the write then goes in, and the landings, the next
batch's prepare and stage completion keep the change, each recorded as
CHANGE_ACCEPTED with that message. It refuses AI-DLC's own files and a file a
Unit being built names in its plan (that change goes through the Unit's own
checkpoint). Under a strict Guard Policy the team holds in memory it changes
nothing and says in one line where that is set.
aidlc engine swarm take-over - build in this chat the Units another chat started
aidlc engine swarm take-over --batch <n> --message <id>
While Units are built side by side from one chat, next in another chat on the
same machine says "Your other chat started building these Units." and hands out
nothing to run for them. When the person asks that second chat to build them
instead, next names their message for this command, which proves it, records
it with this chat as SWARM_TAKEN_OVER, and next then hands this chat the
batch; the first chat is then told "Your other chat took over building these
Units." A batch the person sent back at its checkpoint is held for no chat until
it is prepared again. Only a message sent since the other chat started or last
took over the build can take it over, so words from before it changed hands do
not move it back. It refuses
where the tool cannot tell its chats apart (there nothing holds the batch for
another chat) and when the batch is not being built from another chat.
aidlc engine bolt swarm-checkpoint - approve a completed batch
After a swarm batch settles, the engine may return swarm_checkpoint before
another batch starts. Use exactly its batch number and Unit list:
aidlc engine bolt swarm-checkpoint --action status --batch <N> --units "<comma-separated Units>"
Only after status reports ready: true, run swarm-checkpoint --action ask;
it refuses an unready batch. Before presenting Approve / Request Changes,
open the one-shot question for the current batch, exact Unit set, fingerprint,
and per-Unit Command SHA-256 set. Like checkpoint, it finds its own session;
--session <id> is only an override:
aidlc engine bolt swarm-checkpoint --action ask --batch <N> --units "<Units>"
<full command> (exit 0)" in the approval question. Copy the
complete canonical command from the verification-command tool output into a
code span without abbreviation, preserving any backticks with a longer delimiter.
Wait for the human's Approve / Request Changes reply to this checkpoint
question, in that chat or a new one: with no question of its own, a new chat's
reply is kept for the checkpoint question another chat asked, while it is the
newest question asked and still open. It authorizes only the matching action;
an unrelated reply, the agent's own words, or a reply to a different question
does not. Never pass --user-input the human did not choose. Run only the action
they chose:
# Only after the human chose Approve:
aidlc engine bolt swarm-checkpoint --action approve --batch <N> --units "<Units>" --user-input 'Approve'
# Only after the human chose Request Changes and supplied feedback:
aidlc engine bolt swarm-checkpoint --action reject --batch <N> --units "<Units>" --user-input 'Request Changes' --reason '<human feedback>'
The finding flags (--fix-finding, --reject-finding, --reopen-finding) work
as at a Unit checkpoint; a batch's rejection records them on each Unit's row.
The action consumes the response; a changed checkpoint needs a new question and
answer. As for a Unit checkpoint, --message <id> records a reply the person
sent while another engine question was on screen. Re-running finalize withdraws every open checkpoint question and captured
response for this intent, in any session; after fresh verification and source
landing, confirm ready: true and ask again. A response captured before finalize
cannot approve the new evidence. Automatic completion omits --user-input and
needs no ask when human_required: false; human rejection always needs this
ready question-and-answer flow. Readiness
comes from the completed batch's current evidence, including each Unit's native
Command SHA-256 matching the current
authorized Construction Verification Command. Batch approval binds that digest
too: a batch already approved keeps its approval when the person approves a new
command, a batch not yet approved needs fresh verification with it, and older
native receipts without the digest require fresh verification. A batch not yet
approved that was checked with an earlier approved command reports
checked_with_earlier_command: true; when that, or a change after the check,
is its only error (send_back_only: true), ask offers the person Request
Changes only, and sending it back rebuilds it from its landed source, so it is
checked with the current command even after its worktrees were removed.
finalize refuses a claimed Unit whose source already landed in the batch and
whose worktree is gone, and records nothing. When the batch's
claimed files or outputs changed after it was checked, a strict Guard Policy
makes it unready with changed_after_check: true, and ask then offers the
person Request Changes only; under relaxed or off the change is kept, recorded
once as CHANGE_ACCEPTED (swarm-batch), and ask / approve return its line
in notices, except a Unit's line whose every file a landing of the batch made
on this clone settled by hand: that landing's own line named them, so only the
row is written. The row of a landing that settled more than 20 files by hand
names 20 and then how many more, so the lines about its files are returned.
Under strict, what the person's own git (a pre-commit hook, a
filter) did to a Unit's files as they landed is not such a change: the landing
told the person once, and the batch stays ready. The same holds for a fix staged
for a landing their hook refused, and for a file their hook changed and left
uncommitted. A change made to those files after the landing still makes the
batch unready, and so does a file settled by hand when the landing clashed, or
one git merged from both sides. Resolve errors
rather than rebuilding the whole batch or inventing a pass. Re-run next after
approval or rejection; a batch approval is not whole-stage
approval. Later completion-only stage directives settle bookkeeping without
another body, reviewer, or human learnings/approval question.
After Request Changes, an invoke-swarm directive with resume_existing: true
uses the same batch and exact Unit set. If rejection retired the prior approval,
obtain fresh Plan Approval for that revision before preparation:
aidlc engine swarm prepare --resume-existing --batch <N> --units "<exact emitted Units>"
If a worktree survives, the tool preserves its source and archives old metadata.
If native source landing removed it, the tool can create a fresh child from the
already-landed parent source after validating that landing evidence. Both paths
retain the rejection revision and its actual approval evidence. Once approval
exists for the same intent, target, and attempt, retrying setup does not require
another answer: testing-posture verify with execution_allowed: true (exit 0)
also permits postapproval continuation under a lowered fence when ok: false.
That allowance never revives an older attempt's approval. A missing child
without that evidence is refused. Do not assume every merged child survives, or
replace a refused resume with ordinary prepare. Source that differs from the
approved starting point must be reconciled and approved before work resumes.
Grouped Code Generation Plan Approval
When several Units of a swarm batch have plans ready at once, next asks about
them in one question: each Unit's summary and plan path, then Approve all,
Request Changes, and I'll edit the files. The person answers in their own
words and the agent records the choice they made with aidlc engine log answer
--stage code-generation --checkpoint plan-approval --details "Approve Plan" (or
'Request Changes: <what they asked>', or "I'll edit the files"), adding --units
"<unit>,<unit>" for some of the Units and then recording the rest: "approve
all" approves every Unit, and a change that names a Unit ("change billing: use
Stripe") sends just that Unit back with those words and approves the rest. A
pick of "Approve all" in a question box is recorded as soon as it is made; a
typed "Approve all" is the agent's to record like any reply. Every Unit still gets its
own approval record bound to its own plan. The older recorded-batch commands
(aidlc engine log decision|answer --stage code-generation --checkpoint
plan-approval --batch-file <manifest>) remain only so a grouped approval
started before an update can finish; while the engine's question is open they
refuse with "Plan Approval is asked by the engine now. Run next, show the person
the question it returns, and end the turn."
When some approved Units have landed, the remaining prepared workers retain
their original approval as next narrows the pending set. Continue their
existing worktrees when testing-posture verify reports execution_allowed:
true (exit 0), including when ok: false truthfully reports that edited content
was not approved. For that continuation, reason says to continue without a
new approval; approval_reason holds the detailed stale binding reason, which
does not block execution. Existing workers use the live plan-approval fence
of their verified parent intent, including later lowering or raising.
A partial batch does not require another approval answer or a fresh prepare. This also applies
after a checkpoint revision has been prepared. An interrupted revision setup
can retry with its existing current approval; successful preparation removes
the revision-preparation signal from subsequent next directives. After initial
approval, plan, test instruction, and Testing Contract edits for the same target
and attempt continue without reapproval under Guard Policy relaxed or off.
Under strict the edited plan is asked about again; a new attempt still needs its own approval. Keep the original
approval evidence without describing the edited content as approved.
When a human Retry explicitly discards a worker, its native discard can retain
the committed approved baseline for recreation. The replacement can keep the
same approval while other batch members continue or have already landed.
Missing directories and unrelated old discard records do not authorize this
recovery.
Per-Unit approval remains mandatory however the question is presented.
See Construction Execution.
aidlc engine worktree restore — recover files from a set-aside attempt
Run from the main project checkout:
aidlc engine worktree restore --slug <slug> [--parked <stamp>] [--raw] [--repo <name|.>] [--intent <intent>] [--space <space>]
This recovers files saved by worktree discard or an authorized
bolt abort --discard. Without --parked, it selects the latest saved /head
for the selected intent's Bolt; with it, it selects that exact stamp. Stamps are UTC
YYYYMMDDTHHMMSSZ with an optional numeric -N collision suffix, ordered
numerically for latest selection (-10 follows -2). An exact stamp present in
only one repository selects that repository before generic slug ambiguity.
If selection remains ambiguous, --repo <name> selects an existing sibling Git
repository and --repo . selects the project root. Recovery admits valid Git
repositories named in the same slug's WORKTREE_CREATED or
WORKTREE_DISCARDED audit Repo fields even when those sibling names are
symlinks: the framework may recover exactly where it recorded the attempt's
worktree or parking. That admission is slug-scoped; records for other slugs
never widen this slug's repository set. Membership in a current or historical
intent's repo list alone cannot admit a symlink. Intent-list candidates and
unrecorded discovered siblings must be real immediate child directories whose
canonical paths remain directly under the canonical workspace root
(isWorkspaceRepoDir); arbitrary paths and symlink aliases without the same-slug
audit provenance are refused. Restore and purge resolve this selector independently of the
current intent's repo list; this does not change the selectors for live worktree
create/discard commands. Use --intent / --space when needed to resolve
workspace context. Both recovery commands reject unknown flags and duplicate
flags before selection or mutation. --raw is a bare restore-only flag and is
not accepted by purge.
When the human asks to recover an attempt, the conductor uses the successful
discard abort's saved restore_operation, not a command string. This typed
EngineInvocation has route worktree and args
["restore", "--slug", slug, "--parked", stamp, "--repo", repo ?? ".", "--intent", recordDirName, "--space", space] when the
stamp is known. Invoke aidlc engine worktree <args...> (the installed
aidlc engine worktree route), passing each listed arg exactly as a
separate argv argument; never join args into a shell command or rebuild a
slug-only selection. The repository selector is always present: the sibling
name or . for the root. The final selectors pin the owning intent, even after
the active intent changes; keep every returned argument.
restore_hint is optional human display text rendered from that operation by
renderEngineInvocation, with native/source selection, harness-directory
validation, and shell-safe argument quoting. If rendering throws (for example,
for an invalid harness directory), the hint is omitted and restore_hint_error
contains the reason; the operation remains available. Offer restoration based
on restore_operation, never on the presence of a rendered hint. The hint is
not the conductor's execution input, and its absence does not establish an
evidence-only attempt. This changes no abort arguments, guard admission, or
human-consent requirement.
worktree discard retains parked_ref and parked_commit and adds
parked_stamp, parked_mode (snapshot, branch-tip, or evidence-only), and
parked_repo (null for the project root, otherwise the sibling name).
bolt abort retains reason: "aborted" and echoes the supplied --reason text
in the additive abort_reason field. It always includes parked_ref, which is
null when nothing was parked. Only a non-null parked_ref adds parked_stamp,
parked_mode, and parked_repo. When only review evidence remained, discard reports
parked_mode: "evidence-only" and parked_commit: "-"; abort keeps its four
descriptor fields but omits restore_operation, restore_hint,
restore_hint_error, and parked_excludes.
For snapshot, abort reports
parked_excludes: ["ignored files", "eol/text=auto normalization"]. For
branch-tip, it reports ["uncommitted files (no working tree existed)"]:
only committed work could be kept. If a saved namespace is known but its
discard descriptor is unavailable, the fallback derives parked_stamp from
parked_ref only when its stamp parses strictly, otherwise reporting null.
It sets parked_mode and parked_repo to null and omits restore_operation,
restore_hint, restore_hint_error, and parked_excludes: neither the saved
mode nor repository is known. Instead, recovery_hint asks the human to run
doctor to list set-aside attempts and their exact restore commands. The hint is
plain guidance, not an executable operation.
This fallback does not establish what files were saved or justify a restoration
offer. If no namespace was saved, including without --discard, parked_ref
is null; parked_stamp, parked_mode, parked_repo, restore_operation,
restore_hint, restore_hint_error, parked_excludes, and recovery_hint are absent.
Restore creates .aidlc/restored/bolt-<id8>_<slug>-<stamp> on branch
restore/bolt-<id8>_<slug>-<stamp>. It never touches a live
.aidlc/worktrees/bolt-<id8>_<slug> checkout or bolt-<id8>_<slug> branch, resumes the
aborted lifecycle, or reinstates review authority. If the restore path or branch
already exists, it refuses rather than overwriting it. Selecting evidence-only
recovery refs, with no /head, refuses even with --raw:
no restorable files were parked for <slug> <stamp>; only review evidence was kept
Legacy restores retain their recorded name and require the selected intent's
exact WORKTREE_DISCARDED Parked ref provenance. See
Bolt identity.
| Selection | Behavior |
|---|---|
Bare --raw |
Write stored blobs byte-for-byte, overriding markers and legacy classification; restore_mode is raw-requested |
/snapshot marker |
Write stored working-tree blobs byte-for-byte; restore_mode is snapshot |
/branch-tip marker |
Use Git's ordinary checkout, including filters and encoding conversions; restore_mode is branch-tip |
| No marker (legacy) | Recognize the tool-authored snapshot commit identity; use raw bytes for legacy-snapshot, ordinary checkout for legacy-branch-tip |
Selection follows the table's order. Raw materialization bypasses smudge/process
filters and working-tree-encoding; it does not reverse earlier
eol/text=auto normalization or recover ignored untracked files. Raw-restored
paths may show as modified under their own filters. Executable modes are
preserved. Symlinks follow core.symlinks; raw submodule gitlinks become empty
directories, not restored submodule checkouts. A required failing checkout
filter fails an ordinary restore. Before retrying with --raw, explicitly
remove any remaining restore checkout and its restore branch; a failed raw
restore leaves its partial checkout in place and reports its path.
Success JSON includes restored: true, slug, parked_ref, worktree_path,
branch, reviewed_source_refs, raw_bytes, and restore_mode.
reviewed_source_refs counts retained recovery evidence, not reactivated refs.
materialized appears only when raw_bytes is true and counts regular files
plus symlinks, excluding submodule gitlinks. Open the returned worktree_path
to inspect or copy the files you need.
For a Bun-based copy install, replace aidlc engine worktree with
bun .claude/tools/aidlc-worktree.ts, substituting your harness directory for
.claude. See getting the files back
for the recovery walkthrough and State Machine
for the snapshot contract.
aidlc engine worktree purge — remove recovery refs
aidlc engine worktree purge --slug <slug> [--parked <stamp> | --older-than <days>] [--repo <name|.>] [--intent <intent>] [--space <space>]
Purge compare-deletes local recovery refs, including snapshot/branch-tip markers
and reviewed source refs. With no selector it removes all saved stamps for the
selected intent's Bolt; --parked <stamp> selects one exact stamp. --older-than <days> accepts
nonnegative finite days, including fractions, and selects only stamps strictly
older than that threshold. Age is computed from the UTC YYYYMMDDTHHMMSSZ
portion of the stamp, ignoring any -N collision suffix; commit dates do not
affect it. --parked and --older-than cannot be combined.
The shared strict calendar parser rejects impossible dates and times rather
than normalizing them. With --older-than, unparseable stamps survive and
appear in skipped_unparseable; an attempt exactly at the threshold also
survives. Exact-stamp or all-stamp purge can remove unparseable stamps.
Purge refuses while any selected attempt has a restored checkout, including a
checkout moved elsewhere. Remove that checkout explicitly first. It never
removes a live Bolt checkout or branch. Success JSON is
{purged: <number-of-refs>, slug, stamps: [...], skipped_unparseable: [...]};
the count is refs, not attempts. skipped_unparseable is always present, empty
unless --older-than skips unparseable stamps.
Restore and purge add no audit events.
/aidlc --doctor and aidlc doctor show a Parked attempts informational
section when saved /head entries or actual reviewed source refs exist, in both
ordinary and verbose output. Each entry includes slug, exact stamp, age in days,
mode (snapshot, branch-tip, legacy, or evidence-only), canonical restored
checkout existence, and typed recovery operations. In JSON, every entry has
purge_operation; only restorable entries have restore_operation. Each is an
EngineInvocation with route worktree and args beginning with purge or
restore, followed by ["--slug", slug, "--parked", stamp, "--repo", repo ?? ".", "--intent", recordDirName, "--space", space].
Conductors invoke that route with each arg exactly as argv, never by joining
strings for a shell. Optional restore_command and purge_command are safe
renderings for human display only. If rendering throws, the corresponding
command is omitted and restore_command_error or purge_command_error
explains why while the operation remains. Evidence-only entries have only the
purge operation and its command-or-error fields. Doctor uses the same
slug-scoped recovery repository candidate set described above. A moved checkout may not show as
restored in doctor, but purge still checks its Git registration.
Namespaced attempts resolve their owner through the intent registry UUID;
legacy attempts require an exact discarded Parked ref in the owner's audit.
Unknown or ambiguous owners and unattributed legacy parks are omitted.
Doctor uses the same strict stamp parser: impossible dates and times have
age_days: null in JSON and show unknown in human-readable output.
These entries do not produce warnings or failures. Use the copy-install prefix
documented for restore when running purge without the native command.
aidlc engine workspace codekb - resolve the code knowledge directory
Use the public read-only query:
aidlc engine workspace codekb --repo <repo>
It prints the active space's deterministic
aidlc/spaces/<space>/codekb/<repo>/ path. Add --json for
{space, repo, dir, record, intent, stage, staged}: also the active record, its
intent's slug, the repo's Reverse Engineering staging folder and the files
already in it (record and intent are null when no work is selected), every
path relative to the project. The query writes nothing, creates no directory, and emits no audit
event; reverse-engineering stage prose invokes the same route so paths are never
derived by hand.
aidlc-utility codekb-snapshot - bind a scan to source and store generations
This is a direct utility invocation, not an /aidlc codekb-snapshot command:
bun .claude/tools/aidlc-utility.ts codekb-snapshot \
--repo <repo> --paths src/payments/,src/catalog/ --json
Immediately before a reverse-engineering scan, this command captures the
complete shared CodeKB generation plus a source fingerprint over the paths the
scan will inspect. The source token uses the Git working-tree fingerprint when
available and a byte-exact tree fallback outside Git. Below each requested
path, both leave out .NET bin/, obj/, and out/ beside a .csproj,
.fsproj, or .vbproj file, and the fallback also skips dependency and cache
directories such as node_modules/ and tool byproduct files such as
.DS_Store, so a dotnet build during the scan does not invalidate it. A path
named in --paths is always read. When the workspace root is the repository
root, both also leave out AI-DLC's own files, as codekb-scope-diff does
(below). A space+repo lock keeps
the two values from straddling a concurrent publication. The returned
store_generation, source_fingerprint, and paths are inputs to
codekb-publish; head_commit is the commit the knowledge base's Run Record
names (unknown outside Git or before the first commit).
aidlc-utility codekb-publish - guarded all-artifact publication
This is a direct utility invocation, not an /aidlc codekb-publish command:
bun .claude/tools/aidlc-utility.ts codekb-publish \
--repo <repo> \
--staged <record>/.aidlc-engine/codekb-stage-<repo>/ \
--paths src/payments/,src/catalog/ \
--expect-store <generation> \
--expect-source <fingerprint> \
--json
The staged directory must contain exactly the nine CodeKB artifacts.
Publication acquires the same space+repo lock, rechecks both snapshot values,
validates the timestamp's final scope fingerprint, and swaps the complete
candidate into the shared store with rollback and crash recovery. A concurrent
CodeKB publication returns CODEKB_STORE_CHANGED, publishes nothing, and
requires a fresh re-merge rather than a last-writer-wins overwrite. Source
movement under a strict Guard Policy returns CODEKB_SOURCE_CHANGED (or
CODEKB_CANDIDATE_STALE) and publishes nothing until a fresh scan. Under
relaxed or off the scan is published as captured, with one line
(change_notices in --json) that asks whether you want the code scanned
again.
After a successful publication the utility renames the staged directory aside
in one step, then checks each of the nine files against the bytes it just
published and removes it at once, and finally removes the emptied directory
without recursion; the JSON result reports "staged_removed": true. If
anything changed after it was read, or a removal fails, the utility rebuilds
the files it had removed from those published bytes and puts the directory
back whole (or, when the staged path was recreated meanwhile, keeps the renamed
copy beside it), reports "staged_removed": false, and names the kept
directory on stderr.
aidlc-utility codekb-scope-diff - check the code knowledge base before a rerun
This is a direct utility invocation, not an /aidlc codekb-scope-diff command:
bun .claude/tools/aidlc-utility.ts codekb-scope-diff --repo <repo>
bun .claude/tools/aidlc-utility.ts codekb-scope-diff --repo <repo> --compare <timestamp.md>
bun .claude/tools/aidlc-utility.ts codekb-scope-diff --repo <repo> --mint --paths src/payments/,src/billing/
bun .claude/tools/aidlc-utility.ts codekb-scope-diff --repo <repo> --check <timestamp.md>
The reverse-engineering rerun guard. The codekb store is space-level and shared across intents; a full rescan replaces it, while a focused scan merges new knowledge into it cumulatively, so the stage checks first:
- Status mode (default) reads the store's
reverse-engineering-timestamp.mdScope of Analysis block and recomputes a content fingerprint over its analyzed paths. Verdicts:NO_STORE(first scan),CURRENT(analyzed paths unchanged - reuse is safe),STALE(analyzed paths changed),UNVERIFIED(no computable fingerprint - e.g. not a git work tree),UNKNOWN_SCOPE(store predates scope tracking),SCANNED(this run of the stage already scanned the repo and published the store: its whole link chain is on record since the stage last started, was jumped to or was asked to change; nothing to reuse or rescan). - Compare mode (
--compare <incoming timestamp.md>) answers whether the incoming run's scope covers the store's:COVERS, orNARROWERplus the exact paths and components no longer claimed as deep coverage.COVERSis the focused-merge backstop: it means the merged scope preserved the store's verified coverage. Akind: fullscope must include repository root (./), and only another full scope can cover a full store without aNARROWERwarning. On a stale or unverified focused merge, prior prose is preserved while unverifiable analyzed paths are demoted toshallow.paths. - Mint mode (
--mint --paths <a,b,...>) prints the fingerprint the architect pastes into the scope block at synthesis time (unknownoutside a git work tree or when a pathspec is invalid). - Check mode (
--check <timestamp.md>) reads a timestamp written for publication, such as the staged candidate, and printsVALIDwith what its scope block records and whether its fingerprint matches the source now (current,stale, orunknown), orINVALIDwith the parser's reason. It needs no store, so a first scan can check its candidate before publishing.
Add --json for the structured shape. Always exits 0 with the verdict in the
output (except usage errors); writes nothing and records no audit event, with
one exception: when the compared file is the stage's own
scope-draft-<repo>.md for the compared repo in the active intent record's
inception/reverse-engineering/, the compare removes it, whatever the verdict,
and says so ("The scope draft has been removed.", or "draft_removed": true
with --json). The fingerprint
is a git write-tree over a temporary index restricted to the analyzed paths,
with a temporary object store beside it: nothing is written into the
repository's own .git, so it works where a harness sandbox keeps .git
read-only, and it leaves no objects behind.
When the workspace root is the repository root it leaves out AI-DLC's own
files, which the scan never reads: the aidlc/ workspace, the harness
directories (.claude/, .kiro/, .codex/, .cursor/, .opencode/,
.aidlc/), the aidlc-named agents, hooks and skills and the generated stage
runners under .github/ and .agents/, every root file an installed
harness's projection writes into (such as .gitignore, AGENTS.md,
.mcp.json, .vscode/settings.json, opencode.json, and Cursor's
install.ts), and aidlc.settings.json and aidlc.settings.local.json. So
an AI-DLC update, a setting change, or committing the install leaves the store
CURRENT; only a change to the project's own files makes it STALE. It tracks
source working-tree content without invalidating itself when codekb/state
artifacts are written; rebases or squashes that rewrite history do not fool
it, and reverting an edit restores the original fingerprint.
aidlc-utility detect - read-only workspace scan
bun .claude/tools/aidlc-utility.ts detect --json prints the workspace scan (project type, languages, frameworks, build system, and a submodules array of any declared git submodules with their initialized state) plus the resolved scopes dir and scope-grid path, and proposalPath: the project-relative file (aidlc/spaces/<space>/intents/.aidlc-engine/composer-proposal.json, ignored by git) where the composer writes its grid before validate-grid checks it. Pure read; the composer runs it to learn where scope data lives on the current harness.
aidlc engine workspace reclassify - new project or existing code
aidlc engine workspace reclassify --project-type <greenfield|brownfield> [--intent <slug>] [--space <name>] [--message <id>] [--then-rerun] is the command behind a mid-workflow /aidlc --project-type and the answers to the "this folder now has code" question. It scans the folder again and records the type as the person's in one locked write, audited first as WORKSPACE_RECLASSIFIED. The step next prints names --message <id> for the agent to fill with the id of the person's message that said the type, with the ids and times of the messages it can name; the engine proves that message as it does for config set, and the audit row records it as Message Id, with its words as Person Reply. No words file is written. It never moves the workflow itself: when it puts Reverse Engineering back behind the current stage, the next next names the redo jump that runs it. On finished or archived work it records the type and leaves the plan as it is. Its reply is a done directive that continues the workflow (with --then-rerun, used when the same request asked for more, a print that runs the same next again). What you hear is said with the next step the agent speaks from: the new type and what was found, any stage that ran before the code was there and how to redo it, and, when the type changes, how to undo it. That the code gets documented next is said by the redo jump when it runs ("Once you approve the code's documentation, we're back at Practices Discovery."), so a skip of Reverse Engineering asked for in the same breath never hears it.
aidlc-workspace-sync - clone and reconcile the declared repo set
This is a direct tool invocation, not an /aidlc workspace-sync command. It
reconciles a multi-repo workspace against the optional repo list,
aidlc/repos.json (or a repos.json at the workspace root that a release before
2.12 wrote; see
Declaring the repo set):
aidlc system workspace-sync [--force]
aidlc system workspace-sync --write-manifest
--write-manifest writes the repo list (in aidlc/ when the workspace has that
folder) from the repos found here (each child
repo, or the workspace itself as "path": "." when it is the one code repo),
with the address each one's origin points to, read and never changed; it
writes nothing when repos.json already exists, except the one
intent add-repo made for the workspace folder itself ("path": "."), unchanged
since, which gains the repos found here; it leaves a user or token in an origin
address out. AI-DLC offers to run it once per clone, at a stage
boundary (when Units are built one at a time, a Unit's first step of a stage
is one), the first time the work records repos or teams are chosen; one
person's work on one repo is never offered it. A repos.json that
intent add-repo made for the workspace folder itself does not stop the offer,
which then asks to add the repos found here to it.
If your shell has no aidlc command (a copied project, or a teammate's clone
of one), run bun .claude/tools/aidlc-workspace-sync.ts instead, with your
harness folder in place of .claude.
It serializes reconciles with a workspace lock whose live owner is never reaped
for age, then runs a read-only preflight before staging clones and generated
files. Generated outputs are installed with no-replace links and reversible
same-filesystem renames. If .gitignore or aidlc.code-workspace changes during
staging, or if repos.json changes after the plan is read, sync aborts rather
than applying stale state or overwriting the edit. Prior generated files that
are replaced successfully remain under the ignored
.aidlc-workspace-sync-recovery-* directory for inspection; a staging
.aidlc-workspace-sync-txn-* folder left by a run that was cut off is ignored
too and can be deleted. The tool clones
repos declared in repos.json but missing on disk into the folder each one's
path gives (yours from aidlc/repos.local.json when you set one; a clone into a
path outside the workspace is staged beside that folder, so another drive works,
and a .aidlc-workspace-sync-clone-<repo>-* staging folder there that could not be
removed, or that a cut-off run left, is named once in one line and left for you to
delete),
rewrites the managed block in the workspace .gitignore to one /{path}/ line
per repo whose checkout sits inside the workspace (never the workspace itself,
plus its two own folder patterns), and writes an aidlc.code-workspace VSCode
multi-root file listing the root plus each repo's folder. A repo with no url
to clone it from is left as it is, with one line on how to add its url (exit
2; an org in repos.json is read and ignored), and a line of repos.local.json that is not read is said
once. In a Copilot project that file also carries VS Code's agent request cap,
"settings": { "chat.agent.maxRequests": 200 }, added once to a file with no
settings yet; the keys and values already in its settings are kept (the file
is rewritten, so comments in it are not). A declared
branch is checked out for a new clone. Repos already on disk
are never re-cloned or switched; a mismatch there remains an advisory.
An orphan checkout (a child folder with its own .git that repos.json neither
names nor places by path) blocks the run and is
removed from the active sibling set only when you pass --force and the tool
can prove it has no local-only state. That proof overrides configurable status
defaults, includes untracked and ignored files and directories (including empty
directories), hidden index state, stashes, refs and reflogs, unreachable Git
objects, linked worktrees, submodules, and LFS object stores. It queries each
real remote instead of trusting cached remote-tracking refs, then fetches
matching object graphs into an isolated probe so an advertised-but-unservable
OID cannot authorize removal. A local remote whose storage or object alternates
depend on the checkout cannot count as recovery.
After the live-remote proof, the checkout moves into transaction quarantine and
receives the full local and live-remote proof again. Its quarantined copy is
retained under an ignored .aidlc-workspace-sync-recovery-* directory rather
than recursively deleted, so a process that already holds the directory open
cannot lose a late write between proof and cleanup. Inspect retained checkout
and generated-file backups, then delete the recovery directory manually when it
is no longer needed. Any uncertainty blocks for manual review. Exit codes: 0
fully in sync, 1 blocked or error (live paths unchanged), 2 synced but
advisory warnings remain (e.g. an existing checkout's branch mismatch).
The manifest is optional and never overrides disk: intent creation still
auto-discovers whatever sibling repos are actually present, so this tool only
reproduces and tidies the declared set. --doctor carries three advisory rows
about it (uncommitted aidlc/ records, repos.json vs on-disk drift, and a
stale managed .gitignore block); like all advisory rows they never change the
doctor exit code.
Plugin state
/aidlc plugin list prints installed plugin names and whether each is enabled.
/aidlc plugin select [names] is the public command. select-plugins is its
direct utility form; it is not an /aidlc select-plugins command.
bun .claude/tools/aidlc-utility.ts select-plugins prints the current selection
(all enabled (no selection) when the plugins key is absent) and the known
plugin names. Pass a comma-separated list to set it:
bun .claude/tools/aidlc-utility.ts select-plugins test-pro
bun .claude/tools/aidlc-utility.ts select-plugins aidlc,test-pro
In a project with more than one harness installed, --harness-dir <dir> names the
install to change (aidlc engine plugin select aidlc --harness-dir .kiro), as it
does for plugin sync below; without it the native aidlc changes the install of
the tool whose chat runs it, and from your own terminal the first one (.claude
when it is there).
The command validates names, writes .claude/tools/data/harness.json, strips a newly disabled plugin's merged contributions from core stage source (structural adds via the compose-written sidecar, spliced prose via its sentinel markers; re-enabling restores them on the next session start, or on Kiro CLI and opencode when you run aidlc engine plugin sync --plugin-root <folder> with the plugin's folder), recompiles the full graph with disabled nodes marked enabled:false, prunes/regenerates stage and scope runners, and refreshes the generated scope and stage tables (tables.md, beside the orchestrator skill) in one transaction. aidlc is core; omitting it disables core surfaces except the always-on Initialization stages. A change that would strand an active workflow (its scope, or a pending EXECUTE stage in its plan, owned by a plugin the new selection disables) is refused with each dependency named - complete or archive the workflow first (a parked workflow still needs its plugin when it resumes), or keep the plugin enabled. Leaving a base plugin out while keeping a plugin built on it pauses that plugin: the list is written as typed, one line says so once with the command that turns the plugin off as well, nothing the plugin adds runs while its base is off, plugin list shows it as paused, and turning the base back on brings it back at the next session start (on Kiro CLI and opencode, when you run aidlc engine plugin sync --plugin-root <folder> with the plugin's folder); the select that turns the base on says which, once.
/aidlc plugin sync (aidlc engine plugin sync) runs installed plugin compose
hooks from the host's plugin inventory, and prints plugin sync complete: <n>
plugin(s) when it is done. It is safe to run repeatedly. It composes base
plugins first, then the plugins built on them (a plugin builds on core and at
most one base, named in its manifest's dependencies). A plugin it cannot
compose on its base (not installed, outside the plugin's version range, built
on another plugin, or two bases named), or that needs AI-DLC in a version
range this project is outside (a core@<range> dependency, such as
core@>=2.11.4, checked against the AI-DLC version the project runs), is
held: sync says why once, in one line
after the complete line (a sync a session start runs keeps that line for the
next step the agent speaks from in that chat), composes every other plugin and exits 0, and --json
lists it in data.held. aidlc engine plugin list and doctor keep the line
until a sync composes it; a held plugin composed before stays as it was. A plugin installed twice (its old aidlc-<name> copy beside the rebuilt one) composes from the rebuilt one, and sync prints one line naming the old copy's remove command each time it runs, listed in --json as data.superseded. On a
host whose session-start hook names only its own plugin, the hook composes that
plugin's installed base first. An inventory with an
invalid entry, or a plugin root with no hooks/compose.ts, refuses the whole
sync and names what is wrong, so nothing is half composed. --plugin-root <dir>
names the installed plugin to compose, as AIDLC_PLUGIN_ROOT does; Kiro IDE's
folder-dropped hook passes the plugin's own folder, ./.kiro/aidlc-plugins/<name>.
--harness-dir <dir>
names the harness folder to compose into, as AIDLC_HARNESS_DIR does, for a
project with more than one harness installed. Kiro CLI, Kiro IDE, Cursor,
Copilot and opencode keep no list of the plugins installed, so a sync there
with no plugin folder composes nothing and names the command for each plugin
composed in the project:
$ aidlc engine plugin sync
Kiro CLI doesn't tell AI-DLC which plugins you have, so nothing was updated. Run this once for each plugin, with the folder that plugin is in: `aidlc engine plugin sync --plugin-root <test-pro's folder>`.
Where another harness comes first in the project (a .claude folder beside
.kiro, say), the native aidlc would compose into that one, so the command
also names the harness: aidlc engine plugin sync --harness-dir .kiro --plugin-root <test-pro's folder>.
Every line that sends you to sync there (this one, a sync refused over a file
you changed, and doctor's composed-surface and uncompiled-stage fixes) names
the same command, with the plugin's real folder when the line knows it. In a
native Claude Code project before Claude Code has a plugin registry
(~/.claude/plugins/installed_plugins.json), sync says
no installed plugins; nothing to sync while no plugin is composed in the
project, and host inventory unavailable; run sync through an installed plugin's host hook
once one is.
Re-run it after every engine reinstall or upgrade: copying a fresh
dist/<harness>/ restores the shipped graph and core stage sources, so
previously composed plugin graph entries and contribution merges must be
applied again. Hosts with plugin SessionStart hooks (Claude, Codex, Cursor, and
Kiro IDE) also self-heal on the next session start; Kiro CLI requires the
explicit sync.
/aidlc plugin validate [path] and
/aidlc plugin build <harness> [outDir] expose the shipped standalone
authoring tools through the top-level CLI. Validation defaults to the current
directory. Build also defaults its plugin root to the current directory; pass
--plugin-root <path> when invoking it elsewhere. Both accept --json.
Validation of a plugin built on a base takes --with <base-root>, your own
checkout of that base, so a stage led by the base's agent is checked instead of
reported as not checked.
From a terminal, aidlc plugin test [path] --install <project-root> (on the
copy channel bun .claude/tools/aidlc.ts plugin test ...) runs the shipped
compose test. It composes the plugin in [path], the current directory by
default, into a disposable copy of the project --install names, and exits
1 on a compose drop, a graph failure or a second compose that changes files;
the project itself is never changed. Pass --harness <name> when that project
has more than one harness, --with <base-root> for a plugin built on a base,
and --json for one result object.
aidlc-utility recompose - in-flight plan flips
aidlc engine recompose [--skip <slug,...>] [--add <slug,...>] [--sensors <on|off>] [--learnings <on|off>] [--summary-confirmation <on|off>] [--collaborators <on|off>] [--review <adversarial|advisory|none>] [--message <id>] [--reason <text>] flips PENDING, ahead-of-cursor stages' plan suffixes on the live state file. Both flags accept comma-separated lists and can be repeated; all occurrences accumulate, with duplicate slugs counted once. Supply at least one flip and omit a flag when its list is empty. A bare flag, blank value, empty CSV element, unknown flag or extra positional argument is a usage error, and no flips are applied. The settings flags carry settings approved together with the flips: they are applied in the same state write, with their CEREMONY_SET or REVIEW_CLASS_CHANGED rows after RECOMPOSED, so one approval never leaves the plan half-changed. With --message <id> naming the person's message that approved them, the settings read set by you once the engine proves that message, as for config set. A setting on its own goes through config set. --reason <text> records why the plan changed on the RECOMPOSED row; the engine passes it when a jump puts a skipped stage back on the plan. On finished work (Status: Completed) it changes nothing: the refusal names the plans that run the stages asked for after the last one, and switching to one (/aidlc --scope <plan>) reopens the work there.
# Equivalent ways to skip both stages after approval:
aidlc engine recompose --skip market-research --skip team-formation
aidlc engine recompose --skip=market-research,team-formation
# Add both pending stages back:
aidlc engine recompose --add market-research --add team-formation
On a piece of work running the mvp plan with Feasibility in progress, skipping
Rough Mockups alone is refused, because Refined Mockups needs what it writes;
skipping both goes through, and adding them back undoes it:
$ aidlc engine recompose --skip rough-mockups
{"error":"Recompose rejected by the strict validator:\n - Stage \"refined-mockups\" requires artifact \"wireframes\" whose producer(s) [rough-mockups] are not on the \"recomposed mvp\" path. Strict (recompose) mode rejects a starved required input.\n - Stage \"refined-mockups\" requires artifact \"user-flow\" whose producer(s) [rough-mockups] are not on the \"recomposed mvp\" path. Strict (recompose) mode rejects a starved required input.\nTo make the change, also add a stage that produces what is missing, or also skip the stage that needs it."}
$ aidlc engine recompose --skip rough-mockups,refined-mockups
Recomposed: 2 skipped (rough-mockups, refined-mockups), 0 added (none)
Stages in scope: 20
Completed: 4/20
$ aidlc engine recompose --add rough-mockups,refined-mockups
Recomposed: 0 skipped (none), 2 added (rough-mockups, refined-mockups)
Stages in scope: 22
Completed: 4/22
Runs under the audit lock, rejects flips that would starve a remaining stage of a required input, other than a skip you named with /aidlc --skip, after which the stages that read it run from what there is (and flips of completed/in-progress stages, behind-cursor stages (Reverse Engineering before Construction starts is the exception: while next would still go back to run it you can skip it, and on existing code you can put it back; so is a stage the plan skips that the work has just passed over while nothing after it has started, such as User Stories right after Requirements Analysis is approved: you can put it back, and next goes back to run it), any flip that would move the first EXECUTE stage of Construction - the protected stage-routing anchor - in either direction, any recompose against a workflow whose Status is not Running, and, under autonomous Construction, a recompose with no request of yours on record, or one run with AIDLC_UNATTENDED=1: that refusal names aidlc-bolt.ts set-autonomy --mode gated, which switches to stopping for approval at each Bolt), rebuilds the derived state fields, and emits RECOMPOSED. Each refusal of a stage names what you can do instead: jump to or past the stage, run it on its own with /aidlc --stage <slug> --single, add or skip the stages a missing input involves, or change to a scope that runs or skips it. Reached through /aidlc --skip <slug>, /aidlc --add <slug>, a jump to a skipped stage, and /aidlc compose mid-workflow, not typed directly. For a change you approved at a /aidlc compose question while it is still open, the output ends with one more line for the agent: run next, so your work carries on in the same turn.
Putting back a stage this work skipped, by the undo AI-DLC names or later in your own words, is not refused either: the stage is judged as the plan had it before the skip.
A stage skipped where it stood (it had started when you skipped it, so it shows as skipped) goes back on the plan when you add it again, with /aidlc --add <slug> or in your own words, and it runs next: Reverse Engineering on existing code while Construction has not started (after it the work returns to the stage you were on), and any other stage while the work has only just entered the stage after it. Once the work has gone further, the add is refused with the way to run the stage on its own, /aidlc --stage <slug> --single.
aidlc engine scope save - keep a plan as a scope
aidlc engine scope save --name <name> [--keywords <word,...>] [--intent <slug>] [--space <name>] keeps the selected piece of work's current plan as a reusable scope. It writes the stages the plan runs, its depth, Guard Policy, the five ceremony settings (sensors, learnings, summary confirmation, plan approval, collaborators), and its review level to the durable record aidlc/scopes/<name>.md, then compiles, so /aidlc --scope <name> works at once in this harness; another harness picks it up at its next graph compile. The running work is left as it is. A hint another plan already has is saved as asked, with one line naming that plan. The conductor runs it when you say "save this plan as quick-fix"; picking Approve and save as scope at a compose gate runs the same save as part of creating the work (--save-as), or, when you also gave keywords, right after it instead.
For example, on a piece of work running the mvp plan:
$ aidlc engine scope save --name quick-fix
Saved as scope quick-fix (20 stages, sensors on, learnings on, summary confirmation on, reviews adversarial).
Next time: /aidlc --scope quick-fix "<what to build>"
A name is lowercase letters, digits, and single hyphens, starting with a letter, at most 40 characters, and must not already name a scope. --keywords makes the scope inferable from a request's words; each keyword is one word of letters, digits, and hyphens, checked against the keywords other scopes claim, as validate-grid --keywords does. Without it the scope ships keywords: [] and resolves only by name. A greenfield run's reverse-engineering skip is not saved, so the scope still reverse-engineers an existing codebase. Emits SCOPE_SAVED. Subagents cannot run it.
Creating a workflow with its own stage changes (--skip / --add)
next --scope <scope> --skip <slug,...> --add <slug,...> -- "<description>" creates a workflow on <scope> with stages dropped or added for this piece of work only; the conductor passes them for a custom composed plan, and you can type them too. Typed with a request that names no plan, they are yours on the plan question: Go ahead creates the proposed plan with them, and so does another plan you pick from its list (a stage a plan already leaves out or runs is left off for that plan), and Tailor a plan hands them to the composer, so the plan it shows has them. Each slug must name a stage; an initialization stage, a stage on both lists, or a change the scope already makes (--skip of a stage it skips) is refused before anything is created. The work's state records Plan: <name> (--plan-name <name>, which the conductor passes with the composer's suggested name; lowercase letters, digits and hyphens; tailored plan without it), and no scope file is written. With --save-as <name>, which the conductor passes for Approve and save as scope, the creation also saves the plan as a scope with that name, the save scope save does; a name that is taken or cannot name a scope is refused before anything is created. On a running workflow, /aidlc --skip <slug,...> and /aidlc --add <slug,...> change its remaining stages at once through recompose, with no approval question (you named the stages), and say in one line what changed and the way back. A scope or setting typed in the same command is applied first. A stage you name that has already started (in progress, being revised after you asked for changes, or waiting at its own approval question) is skipped where it stands, whatever kind of stage it is, and the work goes on, or ends when it was the last stage on the plan (the way back is to run it on its own, /aidlc --stage <slug> --single); an approval typed in the same message at an open gate is recorded too, so both happen once (at a question that named several stages, "skip Functional Design and approve the rest" approves the ones you did not skip, together). While Construction runs one Unit at a time, the step a Unit is on is skipped for that Unit only or for every Unit from here, as your words say (a skip that names no Unit is for every Unit from here); for one Unit the way back is /aidlc --stage <slug> --unit <unit>, and a Unit whose code step you skipped has no checkpoint. A team's main checkout that works every Unit itself reads a skip the same way. A later step of the Unit walk, or a stage after it such as Build and Test, comes off the plan for every Unit. A stage you add that the work has just passed over ("Approve, and add User Stories next" recorded as the approval first), while nothing after it has started, is put back and runs next, as when the add comes first. A flip the plan cannot take is refused with what you can do instead.
After a skip, the undo that one line names holds until the work moves past the earliest stage the change named (a stage it added: until that stage starts), or, with nothing after it on the plan, until the work is finished, and the line says which. When that line also names later stages, it names the skipped stage or stages whose documents they normally use, and says they will work from what is there instead. While Construction runs one Unit at a time, a step of the Unit walk taken off the plan for every Unit holds until the first stage after the walk starts, since the work stays on the walk until every Unit is through; Reverse Engineering the work still owes holds until the first Construction stage starts. After that, a skipped stage runs on its own with /aidlc --stage <slug> --single. A skip typed at the open gate of the stage just before it names only that way, since approving that gate, which the same reply usually does, moves the work past it at once.
--depth and --test-strategy take exactly minimal, standard, or comprehensive; next refuses any other value before it names a command.
aidlc-graph ars - deterministic ARS scoring
bun .claude/tools/aidlc-graph.ts ars --iae <s> --csu <s> --ve <s> --r <s> --ua <s> [--completed <csv>] [--project-type <t>] [--method <codekb|fallback>] computes the adaptive composer's Autonomy Risk Score arithmetic: the weighted composite with its band label, the LOW/MED/HIGH component bands, the per-stage expected-value screen against the shipped cost priors, the nearest stock scopes by grid diff count, and the two gate tables pre-rendered as markdown. Every constant - weights, band boundaries, stage cost priors, EV thresholds - is read from tools/data/ars-priors.json, so the same five scores always render the same numbers; the composer scores the components from evidence and copies this output instead of doing the multiplication. A plugin stage, which the file does not name, is screened from its own ars: frontmatter block (the file wins when both exist) or lands as a no-prior row; each row's priorSource says which (shipped, stage or null). --completed (comma-separated slugs) keeps stages that already ran EXECUTE in the derived grid; --project-type brownfield|greenfield screens out stages whose compiled condition: restricts them to the other kind of project (today Reverse Engineering, brownfield-only). Reverse Engineering is decided by project type, never by its CSU: it runs on existing code, and with no --project-type too (creation leaves it out of a new project), and the stage itself checks the code map an earlier scan left before it scans again. --method names the composer's structural evidence source; during a tailored plan's composition the five scores and the method are kept, and the plan's creation writes them on its first audit entry (WORKFLOW_STARTED: ARS Scores, ARS Method). Anything but codekb or fallback exits 1. The JSON result lands on stdout; exit 1 on an out-of-range score, an unknown stage slug, or a priors-schema violation - never a silent fallback. The composite is an ADVISORY index for the human at the gate: nothing deterministic routes on it.
bun .claude/tools/aidlc-graph.ts ars --iae 0.55 --csu 0.75 --ve 0.65 --r 0.50 --ua 0.55
bun .claude/tools/aidlc-graph.ts ars --iae 0.30 --csu 0.80 --ve 0.40 --r 0.20 --ua 0.10 \
--project-type greenfield --completed intent-capture,scope-definition
aidlc-graph validate-grid - arbitrary-grid dependency check
bun .claude/tools/aidlc-graph.ts validate-grid [--proposal <path>] [--strict] [--project-type <t>] [--keywords <csv>] [--guard-policy <strict|relaxed|off>] [--report] [--matched <stock-scope> | --custom] validates an arbitrary {"<stage>": "EXECUTE"|"SKIP"} JSON grid. Without --proposal it reads the composer's proposal file, the proposalPath that detect --json prints. The proposal must name every compiled stage exactly once; missing stages, unknown stages, and invalid actions are errors. Lenient mode mirrors validate-scope (an off-path required producer is advisory); --strict hard-rejects it (the recompose posture). --keywords checks each granted keyword against the keywords existing scopes already have: a shared one is an advisory naming the other plan (The hint "bug" is also bugfix's; the plan proposal lists it under both.), and the grid still validates (the composer runs this before the gate when keywords are granted, and scope save --keywords saves the hint and prints the same line). --guard-policy (or a guardPolicy member beside stages; the retired --change-control flag and changeControl member still resolve) checks the composer's proposed Guard Policy value: anything but strict, relaxed, or off is an error, a relaxed or off proposal under a memory layer's Mode: strict is refused naming that file, and the accepted value is echoed as both guard_policy and change_control. A scopeSettings member beside stages checks the composer's six scope settings: it must name exactly sensors, learnings, summary_confirmation, plan_approval, and collaborators (each on or off) and review_cap (adversarial, advisory, or none); an unknown key, a missing key, or any other word is an error. The accepted values are echoed as scope_settings, and summary.off lists what they switch off. --matched <stock-scope> or --custom names the composer's route for a front/report proposal: either one requires scopeSettings and a Guard Policy. Neither route writes a scope file. --matched rejects a grid that differs from that stock scope and a Guard Policy below its default (a stricter value is one creation applies); any other setting may differ, except that plan approval cannot be off where the scope the plan runs on has it on (only the person turns it off, in their own words at the gate), and a passing run echoes routing, matched_scope, and creation_settings, the typed changes applied to this piece of work at creation (for example {"learnings": "off", "review": "adversarial"}). --custom picks the stock scope the plan runs on, the nearest one whose Guard Policy default is the proposal's or lower (any one for strict) and that adds nothing the gate does not show (no walking skeleton, and no test strategy other than the plan's depth); with --project-type greenfield it prefers one meant for new work over a scope marked existing_code: true (bugfix, refactor, and security-patch ship marked) whenever one qualifies, and a passing run echoes routing, base_scope, plan_changes (the skip and add stage lists that turn that scope's grid into the plan), creation_settings against that scope, and creation_depth when the proposal's depth member differs from that scope's; it requires that depth member (minimal, standard, or comprehensive) and rejects a Guard Policy that no stock scope defaults to or below, and a plan that skips an initialization stage. During a front compose, a passing --matched or --custom run keeps that plan for the request the compose step opened, with its creation_depth, its creation_settings and a Guard Policy above that scope's default, so approving a custom plan creates the stages, depth and settings the gate showed. Every run without --matched also echoes custom_start, the guard_policy and scope_settings a custom plan starts from: the classic scope's, whichever stock scope the plan runs on (omitted when classic is not an enabled scope). Every run also echoes matched_start, the depth, guard_policy and scope_settings of the stock scope a matched plan carries (the one --matched names, else the nearest), so the composer takes them from the validator instead of a scope file. Any on ceremony that a kill switch (AIDLC_DISABLE_*, set or recorded) forces off on this machine gets an advisory too, since the scope stores on but the ceremony will not run. The result also carries nearest_stock: every graph/plugin-authored stock scope ranked by grid distance from the proposal ({scope, diff, differs} ascending, composer-authored scopes excluded), so the composer's matched-vs-custom verdict is the validator's number rather than an LLM recount. --report is the composer's run for a code-findings report: nearest_stock then ranks only bugfix and security-patch, --custom picks its base from those two, and --matched with any other scope is an error, so a report never lands on a lighter scope (such as express, with no reviewers or plan approval) whose grid happens to sit nearer. When the person names the scope for the report themselves, the composer runs without --report, so their choice stands.
The summary counts the stages and approval gates the plan runs; its shown count, the stages after Initialization, is the number every line the person reads uses. With --project-type greenfield it leaves out Reverse Engineering, which creation skips on a new project, so the counts the plan offer shows are the ones creation prints. A passing --custom run adds skipped_inputs when the plan drops a stage the stock scope it runs on runs (the stages creation records as skipped; Reverse Engineering is left out on a new project, where creation skips it) or its own changes leave a stage it keeps without a required input that scope does not leave out: each skipped stage by name with the stages it keeps that use what it makes, none when no kept stage does ([{"stage": "Units Generation", "used_by": ["Contract Design", "Functional Design", "Code Generation"]}, {"stage": "Deployment Execution", "used_by": []}]), which the plan offer says once, in one line. A stock scope's own unmade inputs stay advisories only.
aidlc-sensor — inspect and fire Sensors
Sensors are deterministic checks that run after every Write or Edit to a stage output (see Rules and the Learning Loop and reference Sensor System). The PostToolUse hook fires them for you; this tool lets you list, describe, and manually fire one.
With the Sensors ceremony off, automatic hook dispatch and blocking-sensor
gate checks are skipped. The hook stays installed, and an explicit fire
still runs the diagnostic described here.
| Subcommand | What it does |
|---|---|
list |
Print every framework Sensor (id, kind, description), alphabetically |
describe <id> |
Print one Sensor's full manifest (command, default severity, matches glob, timeout) |
fire <id> --stage <slug> --output-path <path> |
Run a Sensor against a file and emit a SENSOR_FIRED row plus its paired result row |
A manual fire emits a SENSOR_FIRED audit row, then exactly one terminal row: SENSOR_PASSED, SENSOR_FAILED, SENSOR_COULD_NOT_RUN (the check's script crashed, could not start or printed no verdict), or SENSOR_BUDGET_OVERRIDE, followed by a compact JSON verdict line. A failure writes a detail file under <record>/.aidlc-engine/sensors/<stage>/ (in the intent's record dir). The fire command still exits 0 for sensor outcomes. With Sensors on, gate entry separately enforces blocking bindings and requires a verified pass; findings, unavailable tools, a check that could not run, dispatcher errors, malformed verdicts, and timeouts all stop it. The interactive override is a separate logged Fix findings / Override blocking sensors decision, followed by the exact human-backed answer and a retry using --override-blocking-sensors --user-input "Override blocking sensors"; autonomous mode cannot override. Write-fired results remain advisory. The six Sensors that ship with the framework are claim-sources, required-sections, upstream-coverage, traceability, linter, and type-check.
bun .claude/tools/aidlc-sensor.ts list
bun .claude/tools/aidlc-sensor.ts describe required-sections
bun .claude/tools/aidlc-sensor.ts fire required-sections \
--stage requirements-analysis \
--output-path aidlc/spaces/default/intents/<YYMMDD>-<label>/inception/requirements-analysis/requirements.md
aidlc-learnings — the learning-gate tool
This is the deterministic half of the section 13 learnings step. After a stage's completion message and before its approval question, when you corrected the agent in that stage, the orchestrator uses it to print the question about each correction, then to persist what you keep (and a note you asked it to keep, with no question). You normally never call it directly (the orchestrator drives both steps around its own questions), but it is here so the audit rows it emits make sense. Rules and the Learning Loop shows the questions.
When the Learnings ceremony is off, the workflow omits its diary and learning
gate instead of calling these steps automatically.
| Subcommand | What it does |
|---|---|
surface --slug <stage-slug> [--correction <your change> \| --correction-file <file>]... |
Print, for each correction the agent read in your words, the question "You asked me to Yes, for this project, Yes, for the team and No (no question without a correction), and name the selections_file the picks are written to (one per piece of work, inside its record). The stage's memory.md diary is counted, never offered. Read-only |
persist --slug <stage-slug> --selections-json <selections_file> |
Write the confirmed learnings (a confirmed learning is a practice) to aidlc/spaces/<active-space>/memory/project.md / team.md (and, for a Sensor-binding learning, scaffold and bind a project-tier Sensor), emitting RULE_LEARNED / SENSOR_PROPOSED. Reads only the selections_file surface named for the picks' own piece of work, and refuses any other path |
A confirmed learning reaches the agent from the next applicable stage of the current workflow (rule files are re-read before each stage delivery) and every later workflow; a new Sensor binds at the next stage-graph compile.
surface locates the diary from runtime-graph.json when that machine-local
file has been compiled, and works out the same path itself when it has not —
which is the normal state on a workflow's first gate, and also what a fresh
clone looks like. In that case it prints a note on stderr naming the
aidlc engine runtime compile that rebuilds the graph; the output on stdout is
unaffected.
aidlc-runtime — read the runtime graph
The runtime graph (runtime-graph.json in the intent's record dir) is the data-plane record of what actually happened this workflow: which stages ran, how full each memory.md diary got, which Sensors fired, what each returned. It is the runtime mirror of the structural stage-graph.json. The framework recompiles it after every stage transition; this tool lets you trigger a compile or read one stage's row.
| Subcommand | What it does |
|---|---|
compile |
Walk the audit/ shards and the per-stage memory.md files and rewrite runtime-graph.json. Fired automatically by a hook on every transition |
read <stage-slug> |
Print one stage's row from runtime-graph.json (timestamps, agent, memory breakdown, Sensor firings, outcome) |
summary [--json] |
Print deterministic aggregates over the whole graph — stage/phase outcome tallies, memory-entry counts, Sensor 5-state tallies, learnings captured, workflow duration. The data source the read-only session skills read from |
bun .claude/tools/aidlc-runtime.ts read requirements-analysis
runtime-graph.json is gitignored. See Artifacts Reference for the artifact's shape and the Runtime Graph reference chapter for the full schema.
aidlc attest — commit provenance
Answers "which reviewed unit of work owns this commit's changes, and does the committed content still match what the reviewer approved?" Attribution is derived purely from committed content — the review receipts in the audit/ shards plus the committed reviewed-source-*.tsv evidence files, read out of a git tree rather than your checkout — so it works on plain manual git commits, in any clone, with no hooks, no commit-message trailers, and no pushed refs, and the same commit always resolves the same way.
| Subcommand | What it does |
|---|---|
resolve [<commit>] |
Read-only. Attribute the commit's first-parent delta (default HEAD) to reviewed units and classify each changed path: verified (committed content equals the reviewed content), drifted (reviewed but edited since), unattested (no unit claims it), unverifiable (evidence missing, tampered, or only in the gitignored local snapshot — fails closed), indeterminate (ambiguous receipts — fails closed), excluded (framework shell/record paths — harness shells already established in the range's base tree, not manifests introduced by the change or shells installed only in your checkout). JSON report on stdout. --commit <rev> is accepted as a flag form of the positional |
resolve --diff <base>..<head> |
Same classification over an arbitrary range (... uses the merge-base, matching merge-request semantics) |
resolve … --fail-on drifted,unattested,unverifiable,indeterminate |
Exit 3 when any path matches one of the named statuses — the gate form. Accepts any subset of the four; name all four unless you mean to let unverified paths through — omitting unverifiable passes paths whose reviewed content nothing could check |
resolve … --record-ref <ref> |
Read receipts and evidence from <ref>'s tree instead of the commit under test. Point it at a ref the change cannot write (a protected branch, a records-only ref) so a change cannot supply its own approvals |
resolve … --require-trust <level> |
Exit 3 unless the report's own basis reaches informational | reproducible | independent | signed (signed means every input the verdict rests on — each relied-upon receipt's audit shard as well as the evidence file it selects — arrived in a signed commit). Every report carries a trust object saying which it achieved and why |
anchor [--commit <rev>] |
Append a SOURCE_COMMITTED audit row recording that the commit landed reviewed claims. Enrichment only — resolve never reads anchors, so unanchored manual commits lose nothing. Explicit by default; set AIDLC_SESSION_ANCHOR=1 to also sweep recent commits at session start |
anchor --reconcile [--max-commits <n>] |
Sweep first-parent history (default 100 commits) and backfill anchors for attributable commits; already-anchored and swarm-merged commits are skipped, unattributable ones reported |
# Gate a branch: three-dot (merge-base) range, all four failable statuses,
# receipts read from a ref the branch cannot write
bun .claude/tools/aidlc-attest.ts resolve --diff origin/main...HEAD \
--record-ref origin/aidlc-records --require-trust independent \
--fail-on drifted,unattested,unverifiable,indeterminate
Three details make or break that recipe. Use ... (three dots): origin/main..HEAD diffs the tips, so anything that landed on origin/main after the branch point shows up as a change of this branch and false-fails. Fetch enough history — a shallow checkout (actions/checkout defaults to depth 1) has no parent commit for the boundary, which resolve reports as an error rather than silently classifying the whole tree; set fetch-depth: 0. And decide deliberately whether you are reporting or enforcing: without --record-ref, a change that writes its own receipts can verify itself, which the report states (trust.level: reproducible) but does not prevent. Drop both trust flags and you get an honest informational report.
Both verbs accept --repo <name> (multi-repo intents), --space <name>, and --intent <dir>; each verb rejects the other's flags rather than ignoring them. See the Commit Provenance reference chapter for the threat model, the trust ladder, and status semantics.
Session skills — report on a workflow
Three read-only skills surface what aidlc engine runtime summary reports, wrapped in readable output. Type them like commands:
| Skill | What it does |
|---|---|
/aidlc-session-cost |
Deterministic cost view (duration, stage outcomes, memory, Sensors, learnings). Terminal only |
/aidlc-replay |
Readable session narrative for async review. Terminal only |
/aidlc-outcomes-pack |
Handover document for the team. Writes OUTCOMES.md |
All three are read-only — no stage advance, no audit emit — and source every number from aidlc engine runtime summary --json. If your harness doesn't surface skills as slash commands (so /aidlc-session-cost is reported invalid), run that command directly — it produces the same cost view. See Session Management § Session Skills for the full walkthrough.
Issue report — when something went wrong
/aidlc-issue-report (Codex: $aidlc-issue-report) gathers what a run that went wrong left behind, with sensitive details removed, for you to send to the AI-DLC team. It reads AI-DLC's records and your AI tool's own log for this project, writes the data (safe.json) and a cover that says what it holds into aidlc/diagnostics/issue-reports/<time>/, and checks them before it says they are ready; it does not diagnose anything and never sends anything itself. See Skills.
Environment Variables
AI-DLC reads every variable below from the environment the host tool runs it in: your shell, the host's own
settings (such as the .claude/settings.json env block), or the values the engine passes to its own child
processes. A project's .env files are not an AI-DLC setting: the installed engine never reads them, so a
repository you clone cannot change how AI-DLC behaves by shipping one.
AWS_AIDLC_DEFAULT_SCOPE
Pre-set the implicit scope for a project. The resolver reads the real environment variable (including a value supplied by the .claude/settings.json env block), then the recorded aidlc config flags --default-scope value, then classic.
Syntax (in .claude/settings.json):
{
"env": {
"AWS_AIDLC_DEFAULT_SCOPE": "classic"
}
}
Valid values: enterprise, feature, mvp, poc, bugfix, refactor, infra, security-patch, classic, workshop, express.
Precedence: explicit CLI flag > the plan the agent proposed and you confirmed > real AWS_AIDLC_DEFAULT_SCOPE environment variable > recorded default-scope flag > classic. Record a shared default with aidlc config flags --default-scope feature --project --yes, or use --local for this checkout. A real environment value, including the shipped settings env entry, wins over either record.
Scope of effect: applies at workflow initialization only. Once the intent's aidlc-state.md exists, the state file is authoritative. See Customization § Per-Project Default Scope for the full walkthrough.
Ceremony kill switches
AIDLC_DISABLE_SENSORS, AIDLC_DISABLE_LEARNINGS, and
AIDLC_DISABLE_SUMMARY_CONFIRMATION each force the matching ceremony off
when set to exactly 1. They override per-intent and scope settings without
rewriting the state file. See Ceremony controls
for the precedence, defaults, and recordable aidlc config flags --bypass forms.
Next Steps
- Skills and Runner Commands — The typeable
/aidlc-<scope>and/aidlc-<stage>runners, and what--singledoes - Session Management: re-entry, redo, and stage jumps in detail
- Scopes, Depth, and Test Strategy — Scope definitions, stage mappings, and test strategy levels
- Troubleshooting — When commands don't behave as expected
- Glossary — Definitions for command, utility command, scope