Skip to content
crenshawdevPublic

Repository files navigation

Cadence

Test Latest release License: MIT

Appearance is cheap. Verification is the work.

Cadence is a Claude Code plugin that brings engineering practices to software you'll keep running after the session ends. It works from a written spec, plans before it writes code, commits once per task, has a subagent review the work in a fresh context, and verifies the result against acceptance checks set before the build.

Getting an agent to write code is usually the easy part. Keeping it working toward the thing you actually asked for takes more attention. Decisions get lost between sessions. A small change grows an abstraction nobody needed. The tests pass, but you still have to work out what they established.

Cadence gives that work a structure. Requirements, decisions, plans and results stay in your repository under .planning/, so they survive a /clear. Reviews run in a fresh context, apart from the work they check. A new session reads where the project stands and picks up from there, so you can clear between steps and keep context rot out of long work.

You decide what you're building and the constraints it needs to respect. Cadence carries those decisions through the work.

Install

You'll need Claude Code with plugin support, Node.js, Git, and a signed-in forge CLI: gh, glab or tea. Testing-policy enforcement currently requires GitHub Actions. Cadence's own scripts have no runtime package dependencies.

/plugin marketplace add https://github.com/crenshawdev/foundation.git
/plugin install cadence@foundation

Update with /plugin update cadence@foundation.

Usage

In a new or existing repository:

/cadence:cad-agile

That one command runs the whole release. Each time you run it, it reads .planning/agile/ and does the next step: start a release, refine an epic, build a story, accept an epic or close the release. Each step's record is on disk, so you can clear the session between any two runs.

A project on the old path, started with /cadence:cad-new-project or /cadence:cad-adopt and worked a phase at a time, keeps working as it did, and the guide covers it. Once its release has landed, /cadence:cad-agile --brief <design folder> moves it to the new path: the old files go to .planning/_archive-old-path/, and the old commands stop working there.

How a release runs

A release is a set of epics, built in order, and each epic is a set of stories.

Design the release

A release starts from a design: the problem, the requirements, the architecture decisions and the epics in build order. Seldon writes one with you and hands you the command that starts it. Without a design, /cadence:cad-agile asks six questions and writes a short one in the same format. Nothing is written until you say yes to the draft.

Start it

/cadence:cad-agile --brief <design folder> turns the design into .planning/agile/: the project, its requirements, the release and one file per epic. Everything that could stop the release later is settled first, before anything is written. You're asked about the forge, the testing policy, the parts of the code risky enough for a blocking review, any outside reviewer that can't run, and a branch if you're on a protected one, and the start stops if git has no name and email to commit with. The release is committed unless planning.commit_docs is off.

Refine an epic

Before an epic is built, Cadence reads it and the code it changes, then cuts it into stories. A story is one change or a short plan of two or three tasks, and anything bigger is split. Each says what it delivers and how it's accepted, and every acceptance line is a check Cadence can run, never one left for you. You're asked only about choices that would be costly to undo. The rest are picked and shown with the list, and the stories are saved when you say to build them.

Build a story

Each run builds the next story: its short plan when it has one, the change, and a commit per task. Then every reviewer review.reviewers names reviews the story's diff, and a diff that touches one of your risk surfaces goes to the risk-surface review instead, which blocks by default (review.triggers.risk_surface.gate). Reviewers are Claude agents with a fresh context, plus any outside model you've set up with /cadence:cad-config. An outside reviewer isn't required. How findings are handled is asked once per epic: fix everything at medium and up and bring you the lows, or bring you each one. Then the story's checks run, and it's done when they pass. A failing check gets one fix round.

An agent can find a reason to write another test almost indefinitely. Cadence's testing policy, opt-in per repository, sets the scope before implementation: reuse existing tests that cover the behavior, add the fewest checks that prove the rest, and stop when the agreed behavior is covered and the required checks pass in GitHub Actions. Going past that needs a demonstrated defect, an uncovered acceptance requirement or a measured coverage shortfall. The testing chapter has the rules, thresholds and supported tools.

Accept the epic

When an epic's last story is done, Cadence shows what it took, from the stories, commits and review findings to the recorded agent tokens, with a drafted retrospective: what went well, what could be better, and what to change next. Accept it, change the retrospective, or say what's missing and the epic is cut again for it. Each thing to change next is applied, made a standing rule or dropped when the next epic is refined.

Close the release

When every epic is done, you pick the version, and a requirement still open is either deferred or the close stops. Cadence moves the release into .planning/agile/releases/<version>/ and commits it. On a Claude Code plugin it also sets the version in .claude-plugin/plugin.json and turns the CHANGELOG's Unreleased section into the release's entry. With git.auto_close set in both config layers, the close then lands the release as below; otherwise it pushes nothing.

Land it

/cadence:cad-land reports the git state and asks how to publish: push, open a pull or merge request, tag, or leave it local. With git.auto_close set in both config layers, it opens the request, merges it and tags without stopping, and asks once, before the tag push.

The record stays with the project, so you can end a session without making the next one reconstruct your decisions from chat.

Foundation

Cadence is one of the Claude Code plugins in Foundation, the marketplace you installed it from. Each lives in its own repository, and each installs the same way: /plugin install <name>@foundation.

Plugin What it does
Cadence cadence Brings engineering practices to software you'll keep running after the session ends.
burnrate burnrate Builds a local, self-contained dashboard of your own Claude Code token usage from your transcripts, and answers quick usage questions in chat.
Headroom headroom Reminds you to /clear with a toast when your session's context fills past a point you choose, then again each step after.
Seldon seldon Does the design work before Cadence builds. It interviews you, then writes a brief, a PRD, an architecture spine and a set of epics.

Documentation

Read the Cadence guide, or browse the Markdown on GitHub.

Start here What you'll find
Getting started · Working with Cadence Installation, the project cycle and your first phase.
Commands The full command reference; also available through /cadence:cad-help.
Configuration Options, defaults, types and configuration scopes. Use /cadence:cad-config to change them.
Testing policy Test scope, stopping rules, coverage and required CI jobs.
Permissions and data Provider calls, credentials, local records, shell permissions and publishing.
How it works · Controls and limits What the roles do and how the controls work.
Cost Measured runs and where the spend goes.

Cadence adds no telemetry. Its records stay in your repository and go wherever you push them. It also reads the host's run file for a workflow under the session directory, read-only, to price each agent and take the result: for a review workflow, for each /cad-execute wave, and for /cad-map after its typed yes. For a review workflow, the findings and rulings come from the run's journal beside that file, also read-only. The journal holds what each reviewer and checker returned, and it stays on your machine. It runs inside Claude Code, so your session is still subject to the host's data handling. Optional external reviewers receive project material only when enabled.

Help and attribution

Questions go in #tools-help on the Foundation Discord, under the Cadence tag. Bugs go to GitHub issues. See Contributing before proposing a change.

Cadence is maintained by John Crenshaw and derives from GSD by Open GSD. It's distributed under the MIT License, with the original attribution retained in NOTICE. Lineage records where it came from.

Supporting Cadence

Cadence is free under the MIT License. If it's useful to you and you'd like to support the work, you can do that through GitHub Sponsors or Ko-fi.

Releases

Sponsor this project

Packages

Used by

Contributors

Languages