Skip to content
ToolOpen-source agent

dibs

Lease-based file claims and shared lessons so parallel coding agents stop colliding

dibs is an open-source AI tool for multi-agent frameworks. It is available on CLI, macOS, Linux, Windows, VS Code and Self-hosted.

Pricing
Open source
Platforms
CLI, macOS, Linux
GitHub stars
2
Last commit
Language
Go
License
MIT

Similar tools

About dibs

Running several coding agents against one checkout tends to end in overwritten edits or diffs that will not merge, because each session has no idea what the others are touching. dibs adds a small coordination layer for that case: an agent claims files or globs with a reason and a time-limited lease, and other agents see the claim before they edit.

State lives in the git common directory, which every worktree of a repository shares, so no server, database or daemon is involved. Leases expire on their own, so a crashed agent only holds files until its TTL runs out. Optional hooks for Claude Code and git pre-commit can block edits and commits that run into another agent's claim.

It also keeps short markdown lessons under the repository's .dibs folder, searchable with BM25 from the command line or over MCP. Teams running parallel agents on one machine, or CI agents that should inherit what the team has learned, are the intended users.

What it does

Time-limited file claims
Agents lease files or glob patterns with a reason and TTL, and conflicting claims are denied with the holder's details.
Enforcement hooks
A Claude Code PreToolUse hook and a git pre-commit hook block edits and commits that touch another agent's claim.
Agent presence and status
A status command lists active agents, what branch they are on, their claims and when those claims expire.
Handoff notes
Notes broadcast to every agent on the repository, with per-agent read tracking.
Append-only audit journal
Claims, denials, releases, expiries and notes are logged to a JSONL journal that can be queried.
Git-committed lessons search
Markdown lessons under .dibs/lessons are searched with BM25 ranking, with no embedding model or vector store.
MCP server
A stdio MCP server exposes claim, check, release, status, note and lesson tools to any MCP-capable client.

Good for

  • Running two or three Claude Code or Codex sessions on one repository without them overwriting each other's work
  • Letting CI agents pick up the team's recorded lessons from the repository itself
  • Stopping a crashed agent from blocking files for longer than its lease
  • Leaving handoff notes for other agents when a shared interface changes
  • Reviewing afterwards what the agents actually did using the journal

Pricing

Open source

Free and MIT licensed

Prices change. Check polymatx.dev before you buy.

dibs FAQ

Does dibs need a server or database?

No. It is a single binary that keeps state as JSON under .git and markdown under .dibs, with no daemon or port.

What happens if an agent crashes while holding a claim?

The claim expires after its TTL, which defaults to 30 minutes and can be renewed up to 24 hours.

Does dibs stop agents that ignore it?

Only in the Claude Code and pre-commit hooks it installs. It is a cooperative mechanism, not a security boundary.

Does live coordination work across machines?

Live claims are per machine for now. Lessons travel across machines through git.

Is dibs free?

Yes. dibs is open source, so you can use and self-host it for free.

What are the best alternatives to dibs?

The closest alternatives to dibs are commonly, agent-manager, agent-standup, clawmetry and MemoSync.

Where this comes from

  • Description: written from the project's README and the project's website.