Teaches a coding agent to write, change and review a Loft specification in spec/ with the loft command line, and keeps each branch's Yard Log of how its work was planned, asked about, decided and done.
Loft keeps your product's specification in its own repository, beside the code, and lets your
coding agent write it with you and build against it. You decide what the product does; the agent
writes it down in the Loft Specification Format, checks it with the loft command line, and
builds the code that meets it. Yard, which comes with the plugin, shows you what the agent is
doing, and is where you answer its questions and approve its changes and plans.
There is no server to set up. Everything stays in git: the specification in spec/, the
contract pinned by loft.lock.json, and each branch's record of the work in .yard/.
Get started
Install loft, or ask your agent to:
npm install --save-dev @ask-loft/loft # a prebuilt binary, in a project that uses npm
cargo install --locked loft-cli # or from crates.io; needs Rust 1.97 or newer
Add the plugin to your agent:
Claude Code:/plugin marketplace add Ask-Loft/loft, then /plugin install loft@ask-loft.
Codex:codex plugin marketplace add Ask-Loft/loft, then codex plugin add loft@ask-loft,
and trust its hooks in /hooks.
Then, in your product's repository, say:
Set up Loft in this repository.
The agent runs loft init, registers Loft's merge driver for the clone, and commits the skill
and settings, so everyone who works on the project gets them too.
How you work with it
You talk; the agent writes. Each step below starts with something you might say.
Specify. "Specify a booking system for small venues." For an existing codebase: "Write
the specification of what this service does." The agent asks rather than guesses, proposes
an outline before writing a single criterion, writes spec/, and runs loft fmt and
loft check until both pass.
Approve the change. Each change to spec/ comes to you for approval before it is
committed, with the change drawn on the Yard page. Approve it, or reject it with what to
change.
Approve the plan. The agent works out the build from the criteria you approved: which
criteria each step meets and which tests will show it. You approve the plan before any code
is written.
Watch the build. The agent works test-first, step by step. Its tasks, the questions it
still has and, where your agent reports them, the tokens each step takes show up live on the
Yard page. It links each test to the criterion it verifies, so a criterion that changes later
marks its tests for review.
Review. Read the diff, the notes the agent left for each step, and Loft's reports. "Render
the spec" gives you docs/spec.md to read as a document.
Publish. "Merge and publish." On main, loft publish gives the new nodes their labels
(RQ-12, AC-40) and writes the lock that makes this state the contract. CI checks it with
loft verify.
Only you can do some of this: say what the product is for and where it ends, choose between the
options the agent lays out, and read what it wrote in your name before you accept it. Nothing is
merged, pushed or published until you say so.
Why not edit the YAML yourself? A change rarely stays in one place: a reworded rule, a split
Requirement or a new decision touches criteria, edges and citations elsewhere. The agent follows
them, and loft check catches what it misses. A hand edit is held to the same checks, which
suits a typo, not a feature.