This walkthrough assumes Cadre is installed and the client has been reloaded.
Cadre commands are agent skills, not cadre-ai shell subcommands.
1. Create Project Context
Open the target repository in Codex or Claude Code:
$cadre:createCadre inspects the repository, establishes its exact root and Git disposition, and explicitly classifies the project as greenfield or brownfield. When the evidence is ambiguous, it asks before drafting.
Review the proposed product, engineering guidelines, technology stack,
workflow, styleguides, patterns, project state, and Git disposition in one final
authorization envelope. Cadre identifies unchanged bundled defaults concisely
and asks separately only when a material choice is unresolved. After approval,
it creates .cadre/, validates it, and records setup commits without more
approval prompts.
2. Create A Feature Or Bug Track
$cadre:track Add passwordless login as a featureCadre proposes spec.md, plan.md, and learning.md together when the request
is clear. One approval covers the specification, validated plan graph, pattern
seed, lifecycle transition, generated state, and separate provenance commits.
Ask for staged specification/plan review explicitly when desired.
The plan is an acyclic dependency graph:
- each regular phase declares phase dependencies;
- each regular task declares same-phase task dependencies;
- every delivery phase ends with a derived
User Manual Verificationbarrier; - the final phase contains only track-level manual verification and depends on every delivery phase.
The track becomes planned only after the plan graph and pattern seed are
approved, validated, and committed.
3. Check Status
$cadre:statusStatus is read-only. It reports project and track checkpoints, pending operations, dependencies, execution nodes, review/archive readiness, validation errors, and managed worktrees.
4. Implement The Plan
$cadre:implement passwordless-loginParallel mode is the default. Request sequential execution explicitly:
$cadre:implement passwordless-login sequentiallyPhase approval is also the default: Cadre runs regular work autonomously and
pauses once at each phase's final verification task. Request governed for
task-by-task gates or autonomous to pause only at track-level verification.
The implement command itself authorizes execution start, so phase and
autonomous modes do not add a start-approval prompt.
Cadre starts a digest-gated execution journal, derives a global queue from ready phases and phase-local tasks, and creates workers only when at least two safe nodes can run. A phase can move between sequential execution and task fan-out only at a clean checkpoint. Workers use isolated Git worktrees; main reviews every diff and presents it according to the persisted approval mode.
The main agent alone records state, directs commits, integrates branches,
resolves conflicts, removes worktrees, and records manual verification. When
all nodes, learning, provenance, and cleanup are complete, an approved finish
transition moves the track to ready_for_review.
5. Review
$cadre:review passwordless-loginReview inspects the recorded implementation range and relevant context. If it finds actionable bugs, it presents the findings together with exact bug and remediation-plan artifacts. Approved remediation returns the track to implementation.
If the evidence is clean—or the human explicitly rejects proposed findings and
accepts the risks—Cadre previews a clean completion bound to the current
execution, plan revision, graph digest, and reviewed HEAD. Only review can
mark the track completed.
6. Archive Completed Work
$cadre:archive passwordless-loginArchive can process one or more completed tracks in a single approved,
resumable batch. It moves track history to the derived archive location,
distills durable learning into project patterns, reseeds relevant active
tracks, rebuilds tracks.md, and records Git provenance.
Supporting Commands
- Use
revisewhen the approved desired behavior, scope, or plan changes. - Use
refreshwhen project product, workflow, stack, styleguides, or patterns drift from repository evidence or user intent. - Use
revertto prepare an additive Git-aware reversal. - Use
wispfor lightweight exploration that should not mutate Cadre state.
Continue with How Cadre Works or the complete Workflow Guide.