Cadre

Search Cadre docs

Find guides, workflow references, and architecture pages.

Search Cadre docs

Find guides, workflow references, and architecture pages.

GitHub
Start

Getting Started

Install Beads, install the Cadre plugin, and initialize a target project.

This guide gets Cadre installed in Claude Code or OpenAI Codex and initializes the first target project.

Prerequisites

Cadre requires Beads. Beads provides the durable task graph that survives across agent sessions and stores implementation notes, dependencies, blockers, labels, and handoff evidence.

Install Beads once:

npm install -g @beads/bd

Other supported install routes are Homebrew and Go:

brew install beads
go install github.com/steveyegge/beads/cmd/bd@latest

Verify the CLI:

bd --version

If bd is unavailable, cadre-setup stops before writing the project control plane.

Install The Plugin

Cadre ships as generated plugins for Claude Code and OpenAI Codex. Both plugin bundles are generated from the same master skill, protocols, templates, references, and TypeScript runtime.

Claude Code

Claude reads the repository marketplace at .claude-plugin/marketplace.json.

/plugin marketplace add vishal-kr-barnwal/Cadre
/plugin install cadre@cadre

The installed Claude plugin contains:

  • skills/cadre/ with the Cadre skill, protocols, references, and templates.
  • mcp-config.json for the Cadre MCP server.
  • scripts/ with the MCP runtime and helper scripts.
  • agents/cadre-worker.md for worker dispatch when parallel phases are ready.

OpenAI Codex

Codex reads the repository marketplace at .agents/plugins/marketplace.json.

codex plugin marketplace add vishal-kr-barnwal/Cadre --sparse .agents/plugins --sparse harness/plugins/cadre
codex plugin add cadre@cadre

The installed Codex plugin contains:

  • .codex-plugin/plugin.json.
  • .mcp.json for the Cadre MCP server.
  • skills/cadre/ with the generated Codex-facing skill bundle.
  • scripts/ with the MCP runtime and helper scripts.

First Project Setup

In the target project, activate the Cadre skill and run setup:

$cadre
cadre-setup

Setup asks for product context, tech stack, topology, sync mode, provider mode, quality gate, optional CI templates, and optional LSP setup. The workflow is packet-owned: the agent should call Cadre MCP, and Cadre MCP writes the control plane.

Successful setup creates:

FilePurpose
cadre/product.mdProduct goals, users, workflows, constraints, and domain notes.
cadre/tech-stack.jsonLanguages, frameworks, package managers, platforms, and test commands.
cadre/workflow.mdDevelopment, verification, review, and commit expectations.
cadre/patterns.mdReusable implementation patterns promoted from completed work.
cadre/learnings.mdProject-level learning journal.
cadre/tracks.mdDerived human index rebuilt from track metadata.
cadre/config.jsonSync mode, provider mode, review, and quality settings.
cadre/beads.jsonBeads integration settings.
cadre/repos.jsonPolyrepo topology when enabled.
cadre/lsp.jsonOptional language-server configuration.

Track directories later live under cadre/tracks/<track_id>/ and contain metadata.json, spec.md, plan.md, learnings.md, and optional handoff or revision artifacts.

Verify The Runtime

At the beginning of any Cadre workflow, the agent verifies the MCP server:

{ "action": "ping" }

For project-scoped operations, every Cadre MCP call includes a per-call root argument pointing at the project root or a path inside it:

{ "root": "/path/to/project" }

This is important because one long-running MCP process can serve multiple projects. Cadre does not depend on remembered server cwd for routing.

Create And Implement Work

Create a track:

cadre-newtrack "Add OAuth login"

Cadre returns planning evidence: likely files, dependency hints, test impact, parallel candidates, Beads tree preview, and a worktree plan. When the track is created, Beads receives the mapped task tree.

Start or resume implementation:

cadre-implement

The implementation packet selects or claims a track, returns bounded context, runs collision checks, chooses style-guide context, and computes the next phase schedule. If the next work can run in parallel, Cadre returns worker payloads through cadre_parallel; otherwise the agent proceeds sequentially.

Review And Deliver

Run review:

cadre-review

Cadre assembles plan completion, review evidence, machine gate output, TODO/stub findings, optional LSP findings, and hosted provider requirements.

For a monorepo, publish with:

cadre-ship

For a polyrepo control repo, publish with:

cadre-land

After delivery, archive completed tracks:

cadre-archive

Use cadre-release to summarize completed track metadata into release artifacts.