The repo-native agent that lives in git.
Part of Cocapn β Agent Infrastructure for Intelligence.
An AI agent that lives inside a git repository. The repo IS the agent β its identity, memory, and workspace all exist as files in the repo. Like a hermit crab in its shell.
my-agent/
βββ STATE.md # Working memory (short-term)
βββ TASK-BOARD.md # Intentions (what the agent plans to do)
βββ work/ # Action (the agent's output)
βββ for-fleet/ # Outbound bottles (to other agents)
βββ from-fleet/ # Inbound bottles (from other agents)
βββ git history # Long-term memory (immutable)
The agent IS the crab. The repo IS the shell.
- STATE.md = what the crab is thinking right now
- TASK-BOARD.md = where the crab intends to go
- work/ = what the crab is building
- git history = everything the crab has ever done
- Fork = the crab finds a new shell (same crab, new repo)
Agents communicate by dropping markdown files in for-fleet/:
for-fleet/BOTTLE-FROM-AGENT-NAME-2026-04-19-TOPIC.md
Push your repo, the next agent pulls and reads the bottle. No API needed. Git IS the message bus.
git_agent_v1:
type: repo_native_agent
identity: "the repo IS the agent"
memory: [STATE.md, git_history]
communication: bottle_protocol
fork: "new shell, same crab"
install: "fork a template repo"MIT