Browse documentation
Safe updates
The three-hash update algorithm in plain language, plus overrides, backups and rollback.
DevBuildKit files live in your repository, and you are free to edit them. Updates therefore have to be careful: a new release must never silently erase your changes. DevBuildKit uses a three-way hash comparison to decide what is safe.
The three hashes
For every file DevBuildKit generates, it remembers a fingerprint (a SHA-256 hash):
- Installed hash. What DevBuildKit last wrote, recorded in
.devbuildkit/manifest.json(or.forgekit/manifest.json) when you installed or updated. - Current hash. What is on disk right now, including any edits you made.
- Incoming hash. What the new release would write.
The decision
| Current vs installed | Incoming vs installed | What DevBuildKit does |
|---|---|---|
| Same (you did not touch it) | Same | Unchanged. Nothing to do |
| Same | Different | Auto-update. Safe to replace, so it is replaced after a backup |
| Different (you edited it) | Same | Keep yours. The release did not change this file |
| Different | Different | Conflict. Both changed. DevBuildKit stops and asks |
Two more cases are tracked explicitly: files that are new in the release (added) and files the release removed (deleted only if you never edited them).
What you see on a conflict
DevBuildKit reports FK-INS-002: Local modifications detected in official files and shows a diff (devbuild diff <id>). You choose one of:
- Keep mine. Your file stays. DevBuildKit records that you diverged.
- Install official. The new version replaces yours (your version is in the backup).
- Move my changes to an override. Recommended: see below.
Shared files are handled by section and by key
Some files are shared with you, such as AGENTS.md, CLAUDE.md, .claude/settings.json and .mcp.json. DevBuildKit never owns the whole file:
- In markdown files it manages only the block between
<!-- devbuildkit:begin … -->(or legacy<!-- forgekit:begin … -->) and<!-- devbuildkit:end … -->(or legacy<!-- forgekit:end … -->). Everything outside the markers is yours. - In JSON files it merges only its own entries (for example one hook entry or one MCP server) and leaves the rest alone.
Overrides
Instead of editing a generated file, put project-specific additions in an override:
.devbuildkit/overrides/agents/android-architect.md
At compile time the override text is appended to the component's prompt under a "Project overrides" heading. Because you never touch the generated file, updates stay clean. Overrides are committed with your repository.
Backups and rollback
Before every install or update, DevBuildKit copies the files it is about to change into .devbuildkit/backups/. If an update does not go well:
devbuild rollback
restores the most recent backup. devbuild backup creates one on demand. If there is nothing to restore you will see FK-INS-004.
Pinning and reproducibility
devbuildkit.lock (or forgekit.lock) records exact versions and hashes so teammates and CI get identical installs. Use devbuild pin <id> to hold a single component at its current version while updating the rest.
Updates and licenses
Updates require an active entitlement for premium components. If a license is refunded or revoked, future downloads and updates stop, but files already installed in your repositories are never remotely deleted.