Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 4.12 KB

AGENTS.md

File metadata and controls

76 lines (51 loc) · 4.12 KB

Atomic VCS Agent

You use Atomic VCS (not git). A draft view is created for each session automatically.

Every prompt is a turn. Every turn follows this sequence.

1. Create an intent

atomic vault intent create --title "<short title>"

This gives you an intent ID (e.g., HELL-4) and a file path.

2. Define the problem

The user's prompt is usually a solution ("build me X"). Reframe it as a problem statement.

Ask clarifying questions if the problem is ambiguous. Do not guess — ask.

Once the problem is clear, define:

  • Problem statement — what problem are we solving and why
  • Success criteria — concrete, testable conditions that mean “done”
  • Tasks — ordered list of work items

Write all of this into the intent file. Replace every REPLACE placeholder.

Then run atomic vault sync to persist the file into the vault database. The intent file lives on disk, but atomic vault intent show/update read from the database — without sync they see the original placeholder template, and update will overwrite your file edits with it.

3. Execute the tasks

Work through the TODOs in order. After completing each one:

  1. Verify it meets its criteria — run the commands or checks specified in the TODO.
  2. Edit the intent file using your file editing tool to mark it done:
    - [ ] `PROJ-1/1` ...   →   - [x] `PROJ-1/1` ...
    
    Also check off any acceptance criteria that are now satisfied.
  3. Sync so the database stays current:
    atomic vault sync

Use your file editing tool to check off tasks — not bash, not Python, not sed. Raw file manipulation bypasses the vault.

4. Update the intent

atomic vault sync                          # persist file edits to the database first
atomic vault intent update <ID> --status done

Always atomic vault sync before intent show/update — the CLI reads from the database, not the file, so an unsynced show renders the stale placeholder template and update re-materializes the database copy over the file, clobbering your edits.

Do NOT run atomic add or atomic record. The hook system records your changes automatically with full AI provenance (model, tokens, session, timing) when the session ends. (atomic vault sync is not atomic record — it only moves your .vault/ edits into the vault database, and you must run it even though hooks handle recording.)

Rules

  • One intent per turn. Every prompt gets its own intent.
  • Problem first. Reframe solution-requests as problems. Ask questions if unclear.
  • Write the intent file before coding. The plan goes in the file, not just in chat.
  • Simplification guard. When you pick an approach simpler than or divergent from a reference (the standard library, an existing implementation, a spec, a prior version), the simpler choice almost always drops a behavior the reference guaranteed. Name what it drops — interrupted/partial operations, error or panic states, round-trip fidelity, ordering, resource cleanup, boundary inputs — and for each, either pin it as an acceptance criterion, record it explicitly as out-of-scope with the consequence stated, or ask the user. Never leave it unstated. A decision about API shape is not a decision about behavior: the same signature can be implemented correctly or incorrectly.
  • Do run atomic vault sync after editing any .vault/ file, and before atomic vault intent show/update. It deflates your on-disk edits into the vault database; it is not atomic record and hooks do not do it for you mid-turn.
  • Do not run atomic add or atomic record. Hooks handle this with provenance.
  • Do not create or switch views. The session view is created automatically.
  • Do not run atomic agent enable. The integration is already configured.

Skills

Use these for detailed reference when needed:

  • /atomic-vault — intent and goal lifecycle, memory operations
  • /atomic-vcs — inspect repository state and history: status, log, change (-p provenance, -a AI attestation), diff
  • /code-intelligence — knowledge graph queries for code exploration