dibs AGENTS.md

dibs AGENTS.md is an instructions file for Codex, OpenCode from Agenxy/dibs. It costs 3,359 tokens per session, scanned A, original, Apache-2.0.

An orientation guide for developers and coding agents working on Dibs, a Go daemon and command-line tool for coordinating fleets of AI agents through MCP. It describes the repository layout, architecture, and rules for making changes.

In plain words
What is it for?
Getting started in the Dibs repository, locating core components, understanding its ledger and event engine, and avoiding changes that break its invariants.
Why use it?
It gives contributors the project’s design context and points them to the documents that define its behavior and development principles.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/agenxy/dibs/agents-md
Clone the repo
git clone --depth 1 https://github.com/Agenxy/dibs

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dibs AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agenxy/dibs/agents-md.svg)](https://agentmods.dev/instructions/agenxy/dibs/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/agenxy/dibs/agents-md"><img src="https://agentmods.dev/badge/instructions/agenxy/dibs/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,359 This file is loaded in full into every session.
When invoked 3,359 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03359 $0.03359
Opus 5 $0.01680 $0.01680
Sonnet 5 $0.00672 $0.00672
Haiku 4.5 $0.00336 $0.00336

Measured 3d ago against content hash 754332256c86, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dibs AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 231 lines

How it starts

The opening of the file, as written. The whole thing — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md: orientation for agents working on Dibs

Read PHILOSOPHY.md first; it is the decision procedure. This file is the map. docs/ARCHITECTURE.md is the territory: how it fits together, and the four bug classes that keep recurring here. If you are an agent using Dibs rather than changing it, you want SKILLS.md (also served over MCP as dibs://skills).

What this repo is

A Go daemon (dibd) + CLI (dibs) implementing a local coordination service for fleets of AI agents. Agents connect over MCP. See SPEC.md (living, not frozen, change it when reality disagrees, and record why).

Layout

Path Role
internal/core/ Pure deterministic state machine. No I/O, no goroutines, no wall clock. Apply(op, now) → (result, events). The invariant state == fold(ledger) lives or dies here.
internal/ledger/ Append-only, hash-chained, encrypted JSONL. Truth.
internal/engine/ Single-writer event loop over core. All impure inputs (liveness probes, clocks) are recorded into ops so replay reproduces decisions.
internal/mcp/ MCP surface: tools, resources, subscriptions/listen. Dual-version (2026-07-28 + legacy).
internal/blobstore/ Content-addressed attachment bytes, encrypted at rest. Outside the replay model by design.
internal/web/ Human board (SSE + htmx; one ~320-line script in internal/assets/board.js, no framework or build step).
cmd/dibd/ Daemon + auth gate. cmd/dibs/

Rules you must not break

  1. internal/core stays pure. No I/O, no time.Now(), no randomness, no network. If you need an impure input, record it in the Op so replay applies the same decision.
  2. An op is ledgered iff it changed replayable state. The engine ledgers exactly when the serial advanced. Never let those disagree.
  3. Non-deterministic things live outside the core as derived, rebuildable views. Losing a derived view must not lose coordination state.
  4. Advisory, not coercive. Declaring work never fails. Don't add blocking semantics.
  5. The board may WAKE an agent, and may not steer one. Reaching an idle agent so it can read its own mail is the product: a message service whose recipient must already be running is a polling API. The one way it does that is [wake.exec], argv from the operator's config, no shell, nothing an agent said, rate limited, logged. Everything past "you have mail" is still forbidden: no prompt injection, no session management, no deciding what an agent does next. See WAKE-MECHANISMS.md, which argued the other way for months and now records why that was wrong.
  6. Honesty in errors. Every error carries a hint that tells a drifted agent the corrective call.

Read the full file on GitHub · 231 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 231 lines · 3,359 tokens per session scan A 754332256c86

Subscribe to this mod's changes

dibs AGENTS.md is an instructions file published in the GitHub repository Agenxy/dibs (2 stars, last pushed today), licensed Apache-2.0. It adds 3,359 tokens to every session, about $0.0168 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.