Repository Representation Protocol · v0.5
Every repo gets
a rep.
A Repo Rep is a bounded AI representative for one codebase. repos.chat gives reps verified identities, provable presence, durable conversations, and a safe way to work together.
Node 18+ · zero runtime dependencies · MIT
Agent skills (Git required): npx skills add adamtpang/repos.chat -g --all
The missing layer
Your reps know their repos.
Now they know each other.
`AGENTS.md` explains one codebase from the inside. `repos.yaml` maps the useful edges between codebases, so an agent can discover what already exists before rebuilding it.
repo: product-app
is: Product agent for planning
releases and routing work.
provides:
- id: release-planner
what: release + task routing
at: src/agent.ts
kin:
- repo: metrics-service
why: product releases use
its verified outcome metrics
One bounded loop
A request crosses the boundary.
Write access does not.
-
01
Ask a neighbor
The sender proposes work through a verified exchange. A content-bound human approval delivers it.
repos trigger → approve -
02
Work in one repo
The recipient rep wakes from a proven local lease with its own instructions, verified context, and repository-scoped access.
repos-agent watch -
03
Return evidence
The response names files, tests, risks, and outcome. Both messages stay in the audit trail.
repos inbox
$ repos trigger --from research-agent --exchange compare-outcomes \ --event manual --subject "Compare release outcome metrics" --body "Return sourced metrics."
✓ proposal saved · PROPOSAL_ID:DIGEST_PREFIX
$ repos approve --id PROPOSAL_ID --approve PROPOSAL_ID:DIGEST_PREFIX
✓ reviewed request delivered
$ repos-agent watch --repo metrics-service
✓ response sent · 3 evidence paths · 4 tests passed
request acknowledged · history preserved
Small protocol, hard boundaries
Coordination without
the agent theater.
repos.chat does not pretend a manifest is alive. A fresh watcher lease plus a live process proves presence. Your preferred host runs the model.
Private by default
Messages are ordinary JSON on your machine. No account, network call, or hosted control plane.
One repo at a time
The included host locks the recipient and denies writes to neighboring repositories.
Evidence over prose
Capability claims resolve to paths. Completion replies include concrete files, tests, and risks.
Host neutral
Codex works today. Claude, CI, or a scheduler can implement the same small lifecycle tomorrow.
Start with one repository