Docs
Troubleshooting
On this page
What to do when BuildKeel does not work as you expect, and the known limits to plan around. Each entry names what you see, then the steps to fix it.
Install
Section titled “Install”You are not sure the install worked
Section titled “You are not sure the install worked”- In Claude Code, run
/mcp. Thebuildkeelserver is listed as connected. - Run
/bk:status. In a project that is not set up yet, it tells you how to set one up. In a project that is, it shows your spec tree. - In Antigravity, start a new conversation in the agent panel and run
/bk-status. - In Antigravity, ask “Which BuildKeel tools do you have?”.
The agent lists twelve, from
get_contexttoresolve_suspect. BuildKeel’s server comes with the plugin, so it is not shown under Additional options (…) > MCP Servers, which lists the servers you added yourself.
“BuildKeel needs Node.js 20 or later”
Section titled ““BuildKeel needs Node.js 20 or later””- Run
node --versionin a terminal. - If Node.js is missing or older than 20, install it from nodejs.org or with your version manager, for example
nvm install 20. - In Claude Code, start a new session.
- In Antigravity, run the install command again, then quit and reopen Antigravity.
The buildkeel server is not connected in /mcp
Section titled “The buildkeel server is not connected in /mcp”- Check that
node --versionworks in the terminal you start Claude Code from. - Start a new session.
Claude Code says to run /reload-plugins
Section titled “Claude Code says to run /reload-plugins”- Run
/reload-plugins, or start a new session.
/status does not show BuildKeel’s overview
Section titled “/status does not show BuildKeel’s overview”Claude Code has its own /status.
- Run
/bk:statusinstead. - To see every BuildKeel command, type
buildkeelin the command menu: the commands are listed by their short name, with descriptions starting with “BuildKeel:”.
The first Antigravity conversation says BuildKeel’s tools are not available
Section titled “The first Antigravity conversation says BuildKeel’s tools are not available”Antigravity starts BuildKeel’s server when that conversation starts, and the conversation can begin before the server is ready.
- Start a new conversation. BuildKeel’s tools are there from then on.
/bk-status is not listed, or a new Antigravity conversation has no BuildKeel tools either
Section titled “/bk-status is not listed, or a new Antigravity conversation has no BuildKeel tools either”- Check that
node --versionworks in a terminal. - Run the install command again.
- Quit Antigravity and open it again with your project. Reloading a window is not enough: Antigravity keeps BuildKeel’s server running until you quit.
BuildKeel works in the wrong project in Antigravity
Section titled “BuildKeel works in the wrong project in Antigravity”The agent passes the project’s folder to every BuildKeel tool.
- If it did not, ask it to call the tool again with
workspaceset to your project’s folder.
“… exists and is not a BuildKeel plugin; nothing was installed”
Section titled ““… exists and is not a BuildKeel plugin; nothing was installed””Another plugin already uses the folder buildkeel there. BuildKeel leaves it alone.
- Look at the folder the message names, at the start of the message.
- Decide yourself what to do with the other plugin. BuildKeel never removes it, and installs nothing there while it is there.
BuildKeel is installed both for every project and for one
Section titled “BuildKeel is installed both for every project and for one”Both installs bring a server named buildkeel, and Antigravity runs only one of them.
- Remove one of them:
npx buildkeel removefor the install for every project, ornpx buildkeel remove --workspace /path/to/your/projectfor a project install. - Quit and reopen Antigravity.
Setup and settings
Section titled “Setup and settings”A command says the repository is not set up
Section titled “A command says the repository is not set up”A command that asks you something first checks that the repository is set up. When it is not, it names /bk:init and asks nothing.
- Run
/bk:init.
A setting seems to be ignored
Section titled “A setting seems to be ignored”A setting that cannot be read, such as a misspelled key or a value that is not allowed, keeps its default, so a mistake never stops work.
- Ask Claude to “validate the spec tree”. Validation reports the setting, naming the nearest setting when a key is misspelled.
- Correct it in the
processsection of the spec tree’sbuildkeel.yaml. - Commit the change in the spec tree.
- Run
/bk:settingsto see the value now in force.
BuildKeel says the spec tree is not where the pointer says
Section titled “BuildKeel says the spec tree is not where the pointer says”BuildKeel tells you how to fix it, and changes nothing.
-
Open the
.buildkeel.yamlpointer file at the root of your code repository. -
If the shared path in
specsis wrong for everyone, correct it and commit it. -
If the spec repository is only checked out somewhere else on your machine, leave the pointer as it is and record the location in
~/.buildkeel/paths.yaml, keyed by the pointer’sremote:specs:"git@example.com:acme/payments-specs.git": /Users/me/work/payments-specsThis file stays on your machine and is never committed.
BuildKeel says the spec tree uses an older format
Section titled “BuildKeel says the spec tree uses an older format”BuildKeel reads the tree but does not change it.
- Run
/bk:migrate. It shows what migrating changes, then asks: Migrate (the default) or Not now. - Review the commit it makes. Approved versions and records are left exactly as they are, and work in progress carries on.
BuildKeel says the spec tree uses a newer format
Section titled “BuildKeel says the spec tree uses a newer format”You can read the tree but not change it.
- Update the BuildKeel plugin. See Install.
- Start a new session.
Starting and building
Section titled “Starting and building”You are told the spec tree is behind its remote
Section titled “You are told the spec tree is behind its remote”When a session starts, BuildKeel fetches the spec repo’s remote in the background. If the local tree is behind, you are told how far when you start, approve or finish work. Starting a unit warns about it and goes ahead.
- Pull the spec repo to see the latest approvals.
- Start or finish again, to be sure nothing changed.
You are told the freshness check could not run
Section titled “You are told the freshness check could not run”The fetch failed, for example with no connection. Work continues with your local copy.
- Carry on, or check your connection.
- Run
/bk:statusto see where the spec repo stands.
A unit will not start
Section titled “A unit will not start”When something is missing, nothing changes, and every reason is listed with what to do about it, such as:
Start of TK-001 refused by the start gate: 1 check failed.1. The user story US-001 "Request a reset link", above TK-001, is not approved. To fix: Approve US-001 with /bk:approve US-001.- Read each reason and its “To fix” line.
- For a suspect, decide it first with
/bk:impact. - For a unit claimed by another working tree on this machine, work on it there, or ask Claude to release its claim.
- Run
/bk:buildagain.
The active unit does not change while you have uncommitted changes
Section titled “The active unit does not change while you have uncommitted changes”Every change belongs to exactly one unit, so Claude lists the changed files and asks what to do.
- Choose one:
- commit them to the active unit, with its
BuildKeel-Unit:line; - set them aside with
git stash, after you confirm, and bring them back later withgit stash pop; - or leave them and do not start.
- commit them to the active unit, with its
Your changes are never deleted.
Claude stops before changing code
Section titled “Claude stops before changing code”Claude is about to change code with no active unit.
- Choose how to go on:
- capture what you discussed, by running
/bk:captureyourself; - build the unit the change belongs to, with
/bk:build; - record it as an ad-hoc unit;
- or say to go ahead without a unit. Those changes belong to no unit, and their commits are listed as commits with no unit.
- capture what you discussed, by running
Agents can’t be started
Section titled “Agents can’t be started”Agents may not start: the session has no tool for starting them, it is turned off in your settings, or the model tier a role names is not available. Claude says why, once, in a line, and retries once when an agent started but failed. Then it does the work here, labeled as done here, not by an independent agent.
- Read the line Claude gives for why.
- Run
/bk:settingsto see the switch and the model and effort of each agent role on this host. - If a role names a tier this host cannot use, change the tier. See Models and effort per role.
- If the switch is off and you want agents, turn it on. See Feature switches.
A run stopped, or the conversation was compacted mid-run
Section titled “A run stopped, or the conversation was compacted mid-run”A run keeps no progress file of its own. Its ticks, completion records, test runs, reviews and commits are what it is picked up from.
- Run
/bk:buildagain on the same parent or change. It goes on from the first task not finished or ticked.
The work on a claimed unit has stopped
Section titled “The work on a claimed unit has stopped”A claim is released when its unit is finished.
- Run
/bk:statusand look under Claims. - Ask Claude to release the unit’s claim. Any working tree can then start it, and it is no longer the active unit in the working tree that held it. Its branch and commits stay as they are.
An approval shows as “approved, number pending”
Section titled “An approval shows as “approved, number pending””The number counter could not be reached, for example with no connection. The approval is still recorded.
- Wait for the next approval or the next session, when the number is assigned.
- To try at once, approve it again.
Until it has its number, it cannot be changed, its children cannot be approved, and work cannot start on it.
BuildKeel says the number counter is behind the spec tree
Section titled “BuildKeel says the number counter is behind the spec tree”Its branch was deleted, reset to an older commit, or the remote was replaced. Numbering stops rather than give out a number the tree already holds.
- Ask Claude to repair the counter.
- Check each counter it would raise and each capability code it would claim.
- Agree, and it writes them in one commit to the counter’s branch and pushes it.
Finishing and sharing
Section titled “Finishing and sharing”A unit will not finish
Section titled “A unit will not finish”When something is missing, nothing is written, and every reason is listed with what to do, such as:
Finish of TK-001 refused by the done gate: 1 check failed.1. US-001-TC1 "Link arrives" fails: test/reset.test.ts > emails a reset link [US-001-TC1]. To fix: Fix the code or the test, then run the tests with a JUnit XML report and record it with the BuildKeel test_results tool.- Commit any uncommitted work, and check out the unit’s branch.
- Read each reason and its “To fix” line.
- Run the tests again with a JUnit XML report, and have Claude record it.
- Run
/bk:doneagain.
The unit’s branch has commits without a unit line
Section titled “The unit’s branch has commits without a unit line”- Press Enter to count them all for the unit, or choose the ones to leave out. Commits left out are named in the completion record. Nothing in git history is changed.
Finishing says the changed lines were not checked for coverage
Section titled “Finishing says the changed lines were not checked for coverage”No run recorded a coverage report. This is not a failure.
- Run the whole suite with coverage, writing an lcov or Cobertura report.
- Have Claude record the run with its coverage report.
- Run
/bk:doneagain.
Changed files show as “Not in the report at all”
Section titled “Changed files show as “Not in the report at all””Usually the tests never loaded the file, or the report’s paths do not match the repository’s files.
- Run the tests from the repository root, or have the coverage tool write absolute paths.
- Record the run again.
An automatic push of an approval was refused
Section titled “An automatic push of an approval was refused”The approval is kept, and you are told why, for example because the remote has commits you do not have.
- Pull the spec repo.
- Push it again.
/bk:status lists files changed outside BuildKeel
Section titled “/bk:status lists files changed outside BuildKeel”An approved version no longer matches the hash in its approval record, or a record was changed after it was written. For example:
Changed outside BuildKeel:- US-001 v1 was altered after approval: stories/US-001/versions/v1.md no longer matches the hash in stories/US-001/approvals/v1.yaml. To fix: Restore stories/US-001/versions/v1.md from git history. To change US-001, save a new version as a draft and approve it.- Restore the file from git history.
- To change the artifact, save a new version as a draft and approve it.
- Ask Claude to “validate the spec tree” to check that nothing else is reported.
A conversation ended before you paused it
Section titled “A conversation ended before you paused it”- At the next session, accept the offer to recover the previous conversation as a thread. It is offered once, when that conversation explored something over three messages or more with no unit, and was never paused or captured.
- After compaction in the same conversation, run
/bk:pause. It builds the thread from the whole transcript on disk, not from the summary.
Known limits
Section titled “Known limits”What BuildKeel does not do, or cannot know, so you can plan around it. See also What BuildKeel does not do.
Commit IDs in a completion record are not in your history
Section titled “Commit IDs in a completion record are not in your history”A completion record names the commits a unit was built in, by ID, as they were when it was finished. Rebasing, amending or squash-merging them afterwards gives them new IDs, and the record keeps the old ones: it is written once and never edited. It still says what was built, against which versions and with which results, so it stays valid.
- Read the record for what was built: its versions, files and results still hold.
- While a unit is still being built, rewrite its commits freely, but keep the
BuildKeel-Unit:line when you amend or squash. BuildKeel finds them again by that line when you finish; without it, the commit counts as one with no unit.
A finished unit’s code is not on the remote
Section titled “A finished unit’s code is not on the remote”Finishing commits the completion record in the spec repo, and pushes it when the tree’s settings.autoPush is on. BuildKeel never pushes your code. When the record reaches the remote and the code does not, your teammates see the unit as finished while its commits are not on the remote for them.
- Push the code branch when you finish.
- Run
/bk:statusto see the spec repo’s records that are not pushed. It cannot see whether your teammates have your code.
A teammate started the same unit on another machine
Section titled “A teammate started the same unit on another machine”Claims are shared through the spec repo’s remote. With no remote, they stay on your machine, and a teammate on another machine can start the same unit. A claim taken offline is pushed at the next start or status; if a teammate claimed the same unit meanwhile, both of you see the clash at your next status, and one of you releases it.
- Agree who works on what, as you would without BuildKeel.
- Pause a unit with
/bk:pauseand push the spec repo when you hand it over. Its pause record is what tells everyone, and resuming it on another machine takes it over.
A check fails because of a dependency’s version
Section titled “A check fails because of a dependency’s version”The revert check, a red check and the break-it agent run tests in a worktree with your main checkout’s installed dependencies linked in (see TDD evidence). They are the versions installed now, even in a revert check at an older commit. A test that needs an older version of a package can fail there for that reason, not because of the code.
- Read the reason Claude shows. When that happens, the check’s worktree is removed with
manageandremove: true, and the reason is shown. - Treat that failure as a matter of the installed version, not as evidence about the unit’s code.
A test case shows as having no test, or a tag counts where it should not
Section titled “A test case shows as having no test, or a tag counts where it should not”A test belongs to a test case or scenario because its name, or the line it is on, carries the ID in square brackets, such as [US-012-TC3]. BuildKeel reads tags from the text of your code and results from your JUnit report.
- Keep the tag when you rename a test. A test renamed without its tag is no longer linked, and its test case shows as having no test.
- Give each ID its own brackets. A bracket holding several IDs tags none of them.
- Remove a tag left on code that no longer tests anything. A tag counts wherever it is, a comment or a docstring included.
- Review what each test checks. BuildKeel does not read it: the checks on tests catch some changes, such as an assertion removed after the test was added (see TDD evidence), but a test that carries the right tag and checks the wrong thing passes.