Atomic VCS integration for Pi.
Automatic turn recording with AI provenance, intent tracking, and knowledge graph skills.
- 1 session = 1 view — a draft view is created automatically when you start Pi
- Every turn records with provenance — model, vendor, session, turn number, timing
- Tool executions tracked — reads, edits, bash calls captured in a causal decision graph
- Intent workflow — agent prompt guides problem-first development with vault intents
- Skills on demand —
@atomic-vaultand@code-intelligenceloaded when needed
pi install /path/to/atomic-piOr from npm (once published):
pi install npm:atomic-pigit clone https://github.com/atomicdotdev/atomic-pi
cd atomic-pi
./install.shThis registers the package with Pi via pi install. Edit files in the repo — changes apply immediately (run /reload in Pi for extension changes).
- Atomic VCS installed and on your PATH (
atomic --version) - A project with an
.atomic/repository (atomic init) - Pi installed
cd my-project
atomic init # if not already an atomic repo
pi # start Pi — the Atomic agent activates automaticallyThe Atomic agent:
- Creates an intent for each prompt (
atomic vault intent create) - Reframes your request as a problem statement with success criteria
- Writes the plan into the intent file before coding
- Executes the tasks
- Hooks automatically record with provenance when the turn ends
You never need to run atomic add or atomic record — the hooks handle it.
# Show the causal decision graph (goals → tool calls → patch)
atomic change -p <hash>
# Show inline AI attestation (model, tokens, cost)
atomic change -a <hash>
# Show session-level attestations
atomic agent attest| File | Purpose |
|---|---|
extensions/atomic-hooks.ts |
Pi extension — session lifecycle, turn recording, tool tracking |
agents/atomic.md |
Agent prompt — intent-per-turn workflow |
skills/atomic-vault/SKILL.md |
Vault reference (goals, intents, memory) |
skills/code-intelligence/SKILL.md |
Knowledge graph query patterns |
install.js |
Links agent + skills + extension into ~/.config/pi/ |
install.sh |
Development install (symlinks from local checkout) |
pi remove /path/to/atomic-piOr if installed via npm:
pi remove npm:atomic-piPi session start
│
├── Extension fires session-start → Rust creates haikunator-named draft view
│
├── User sends prompt
│ ├── Extension fires user-prompt → Rust saves prompt + model on session
│ ├── Agent works (edits, bash, reads)
│ │ ├── Extension fires before-tool → Rust tracks timing
│ │ └── Extension fires after-tool → Rust appends to provenance graph
│ └── Turn ends
│ └── Extension fires stop → Rust adds files, records change with provenance
│
├── User sends another prompt → repeat
│
└── Session ends
└── Extension fires session-end → Rust creates attestation
Apache-2.0 — same as Atomic VCS.