Skip to content

BuildKeel 0.6.0

Choose a tag to compare

@vibhuti-bh vibhuti-bh released this 06 Nov 16:46
· 3 commits to main since this release

Tests that would catch a bug

  • TDD, recorded. For each test case, BuildKeel records the first failing run of its tagged test, the commit it ran on, and the first passing run after it. An exception, such as a characterization test or a pure refactor, is stated with its reason, never assumed.
  • The revert check. The unit's tests must fail on the code as it was before the unit's own commits.
  • The test-file diff. An assertion removed or weakened after a test first failed is reported.
  • Changed-line coverage. From an lcov or Cobertura report, the lines the unit changed that no test ran are listed at finishing.
  • The break-it agent. A fresh agent tries to make the code fail. Its only evidence is a failing test, which becomes a defect found while building or a question about the spec.
  • Mutation testing, when you want it. Give BuildKeel the command that runs your mutation tool, and each mutant no test noticed is listed with its line.
  • In Full SDLC, the done gate's TDD check warns by default; in a Spec-driven tree, the evidence is reported at /bk:done. Nothing stops you editing code before a test exists.

Tasks a fresh agent can build alone

  • Build-ready tasks. Every task names its Files, what it Uses and Delivers, and its Verify command, and gets a Built line when it is finished: as planned, changed, or missing.
  • The Plan check. When tasks are saved, BuildKeel checks that what each uses is delivered or exists, that the files it names exist or are created, that every requirement has a task, and that no task is vague. It never blocks.
  • Before each task in a run, what it uses is checked against what the tasks before it built, and the run stops before a task whose inputs are missing.
  • Edge-case suggestions. When a test plan or a change's scenarios are drafted, a fresh agent proposes up to five missing cases, ranked by risk, and you answer once.

Building in fresh agents

  • /bk:build offers each task in a fresh agent, given only that task's context and what earlier tasks delivered, or building here, in your conversation.
  • Questions are answered from the records. Claude answers an agent's question from the spec, the working notes and the rulings so far, and records the ruling. A question nothing answers stops the run.
  • Parallel runs, in Full SDLC. Tasks with no dependency and no file in common can be built at the same time, each in its own worktree, then merged one by one with the tests run after each.
  • Principal handoff. When two fix rounds leave a review finding open, the implementer gets one more round on a stronger model. If that fails too, the run stops and shows the whole story, and the task is never finished with that finding open, whatever the gate modes say.

Code review

  • Three fresh reviewers: spec compliance, requirement by requirement; code quality, each finding with a file and line; and break-it. They see the unit's diff, its spec and the test evidence, never the conversation.
  • When they run: after each task in a run, when work is finished, and whenever you ask, with the new /bk:review.
  • Finishing reviews nothing twice. Only the commits since the last review are reviewed again, and a change built in a run gets one spec-compliance review of the whole change.
  • Every finding is answered: fixed, with its commit; parked, as a defect or follow-up; or rejected, with its evidence. The completion record keeps them all.

Exploring and capturing

  • Structured exploring. When you explore an idea, Claude plays back what it understood, keeps your words apart from its proposals, and offers two or three approaches with their trade-offs. The approaches weighed and the one chosen are recorded with the plan.
  • The readiness check. For larger work, fresh agents read the agreed plan as the people who will build, test and run it, and list their questions before anything is built.
  • Design options. For an interface several tasks share, fresh agents each propose a design, and Claude compares them and recommends one.
  • Spikes. Throwaway code on a branch of its own, to learn what you need. Its findings are kept; its code is never merged.

The team playbook

  • A glossary, the team's practices and architecture decision records live in the spec tree, changed by agreement in the conversation. BuildKeel ships default practices for codebase design and testing, which the team can reword or switch off.
  • Terms are challenged. A term the glossary says to avoid is pointed out in conversation and in what is saved.
  • A read-only copy in the code repository, GLOSSARY.md, docs/practices.md and docs/adr/, for people and tools that don't use BuildKeel.

Pausing and resuming

  • /bk:pause saves where things stand: the working notes the conversation settled, each checked against its source, and the next step. In the middle of a unit it attaches to the unit; while exploring, it saves a thread.
  • /bk:resume picks up where you left off, in a new session, on another machine, or for a teammate.
  • When you forget to pause. After compaction, or at the next session on the same machine, BuildKeel offers to recover an exploration that was never saved.

Completed work with its context

  • The completion record keeps why: decisions and the reasons for them, departures from the plan, dead ends, known limits, follow-ups and notes for the next person.
  • Looking back. Ask why something is the way it is, and Claude answers from the working notes, threads and completion records, naming each source.
  • Heads-up notes. Starting a unit shows the notes earlier work left on the files it will change.
  • The Learning loop. Patterns in the records, such as a kind of finding that keeps coming back, are shown and proposed as a practice or a note on the code.

Every additional feature can be switched

  • Core features are always on. Every additional feature has a switch, set in the process section of the spec tree's buildkeel.yaml, with an agreed default. Checks that start agents, and Threads, are off, ask or auto; the rest are on or off.
  • /bk:settings shows every switch, its value, its default and whether it applies in the tree's mode, and names any setting that is misspelled or for the other mode.
  • Records note the switches in force, so work done while a check was off is never failed for it later.
  • Turning Build-ready tasks on midway fills in the lines open tasks lack, and gives each finished task an as-built record, written later, from its commits.
  • Models and effort for each role. Each of the ten roles an agent plays can run on a tier of its own, or with your session's model.
  • Stamping your own commits is now on by default: a git hook adds the active unit's line to commits you make by hand.

Fixes and smaller changes

  • Discarding a change releases the capability codes it reserved, so a later change can use them.
  • Discarding a draft, in Full SDLC. A draft you won't go on with goes, with the drafts under it, after a preview. An approved artifact's new version in draft goes back to the version approved.
  • Previews before writing, in Full SDLC. Approving and finishing write only what you were shown; anything changed since needs a new preview.
  • Repairing the number counter. If its branch is deleted or rewritten, BuildKeel rebuilds it from the spec tree, and never hands out an ID that is already in the tree.
  • Faster status: /bk:status hashes the working tree and searches the code for tags once, not once for each open change.
  • Windows line endings, headings in code blocks, and letter case on macOS are handled everywhere BuildKeel reads the spec tree.
  • Tests run in worktrees without a fresh install: the break-it agent's worktree and the revert check reuse the dependencies your checkout has installed.
  • Antigravity 2.6: its edit tools are covered by the lock gate, and after a push the agent is reminded when the unit is not finished.
  • Dependencies updated, including security fixes.
  • BuildKeel has 15 commands: /bk:pause, /bk:resume and /bk:review are new.

Upgrading

Spec trees made with BuildKeel 0.5.0 or earlier are upgraded to format 4 with /bk:migrate, in one commit you can review. Work in progress carries on, and approved versions are never changed. Everyone who works in an upgraded tree needs 0.6.0.

Install

Claude Code: run /plugin marketplace add BuildKeel/buildkeel, then /plugin install bk@buildkeel.

Antigravity: run npx buildkeel install. Or download buildkeel-antigravity-0.6.0.zip below, unzip it, and run node install.mjs in the folder it makes.

See the documentation.