Skip to main content

Quick Start

This guide covers the core Atomic workflow: install, create a project, work with an AI agent, and land a reviewed, provenance-backed change.

What you'll do:

  • Install Atomic and set up your identity with Atomic Storage
  • Initialize a repository and record your first change
  • Install an agent integration (OpenCode, Claude Code, Codex, or Copilot) and direct the agent's work with intents
  • Verify the work and sign it
  • Branch with views, review, and promote changes
  • Push everything to a remote

Prerequisites: a bash environment (Linux, macOS, or WSL2). For source installs, see Installation.

1. Install Atomic​

The recommended path is the hosted installer script from Atomic Storage:

curl -sSf https://atomic.storage/install.sh | sh

For other installation methods (including building from source), see Installing Atomic.

Tip: An AI agent can run this setup for you. Download the Atomic Setup skill for agents and give it to your coding agent. The skill covers installation, identity setup, registration, and agent integration, and asks for confirmation before each step that changes your system. Works with OpenCode, Claude Code, Codex, and Copilot.

2. Set Up Your Identity​

Identities sign your changes and authenticate you to Atomic Storage:

atomic identity new alice-acme --email alice@acme.com --set-default
atomic identity register https://atomic.storage
atomic org show
atomic identity whoami
  • --set-default makes alice-acme the identity used for signing
  • identity register connects your identity to Atomic Storage
  • identity whoami confirms who you are signed in as

3. Initialize a Project​

A project groups files and agent intent across changes, similar to a repository.

mkdir myproject
cd myproject
atomic init

This creates an .atomic directory, or repository, containing:

EntryWhat it is
pristineThe database storing your recorded changes
treeInformation about tracked files
config.tomlRepository configuration
changes/Storage for change patches

4. Record Your First Change​

Changes are recorded as patches. A patch is a semantic change to the repository database rather than a linear snapshot.

atomic add *                          # track files ("add to tree")
atomic status # see what changed
atomic diff # review the diff
atomic record -m "Initial commit" # record a change
atomic log # view history

You can also record a specific file directly:

atomic record file.txt

For a deeper walkthrough of the local workflow, see Your First Repository.

5. Install an Agent Integration​

Atomic records every agent turn automatically, with full provenance (model, tokens, cost, and a causal decision graph). Pick your agent — each command installs hooks, the Atomic prompt, and the skills:

atomic agent enable --agent opencode      # plugin + skills; switch to the Atomic agent
atomic agent enable --agent claude-code # repo hooks in .claude/settings.json
atomic agent enable --agent codex # hooks in ~/.codex/hooks.json
atomic agent enable --agent copilot # hooks in ~/.copilot/ (cloud agent: .github/ manifest)

Each --agent value maps to an integration package (opencode → atomic-opencode, claude-code → atomic-claude, codex → atomic-codex, copilot → atomic-copilot). You rarely need the package name itself — it matters only for --hooks <manifest> or --from <checkout> installs.

Per-harness notes:

  • OpenCode: after enabling, start opencode and switch to the Atomic agent. Recording happens when a session goes idle or a turn ends.
  • Claude Code: no agent switching — hooks record automatically on every session. Repo hooks live in the repo where you enabled (.claude/settings.json); run atomic agent enable again inside any other repository that needs recording.
  • Codex: hooks are global (~/.codex/hooks.json). Add --agents-md to install an always-on AGENTS.md at the repository root.
  • Copilot: no TurnEnd hooks — recording happens only when the session ends, in one batch.

Confirm the install​

atomic agent status --verbose

Each agent's line should read ✓ <Agent> — hooks installed (before enabling it reads ○ <Agent> — detected but hooks not installed).

Prove a turn records​

A session row alone doesn't prove recording works — a stale session or an earlier run's change can satisfy it. Run this once per integration, in a fresh throwaway repo each time:

TEST_DIR=$(mktemp -d /tmp/test-atomic.XXXXXX) && cd "$TEST_DIR" && atomic init

A fresh repo starts with only the two init changes (Initialize repository, Initialize vault), so any change beyond them came from this run. Lead the test prompt with a marker no earlier run has used, e.g. hello-$(date +%s): Create a file called … — the marker lands in the recorded change's message, and because atomic log truncates messages, the marker must be at the front to stay visible in the log output.

Trigger one real turn, per harness:

  • OpenCode: cd "$TEST_DIR" && opencode run --auto "hello-$(date +%s): Create a file called HELLO.md in the current directory containing exactly the text: hello" (OpenCode v2: add --standalone), or start opencode in the test repo and switch to the Atomic agent.
  • Claude Code: start claude in the test repo with the marker prompt, then end the session. Repo-local hooks do not carry into the test repo — run atomic agent enable --agent claude-code once inside it first.
  • Codex: start codex in the test repo with the marker prompt, then end the session — the session row appears only after close.
  • Copilot: run a Copilot session in the test repo and end it completely — recording arrives only at session end, in one batch (the most common "it's not working" false alarm).

Then assert a new change (from inside $TEST_DIR):

atomic log -n 3                 # newest change's message contains hello-
atomic change # shows the Attestation block (model, tokens)
atomic agent status --verbose # a session row for this run appears

If nothing recorded: repair with atomic agent enable --agent <name> -f (force reinstall), or remove hooks first with atomic agent disable --agent <name> and re-enable. The full per-agent procedure with troubleshooting tables is in the Atomic Setup skill (Phase 7).

You can activate other agents the same way; auto-detection works from directories like .claude/, .opencode/, .codex/, or .github/. Supported agents include Claude Code, Gemini CLI, Codex, Cursor, Copilot, Cline, and more; see the Integration Matrix. Any other integration verifies the same way: one marker-prompt session in a fresh test repo, then the same three-command assertion.

6. Turn a Prompt into an Intent​

An intent records the why behind a unit of work. Each intent is structured to include a :::why, checkable acceptance criteria, and ordered tasks that name the files they touch. An intent is complete once it validates and is signed.

# 1. Scaffold a directive-based intent
atomic intent new "Add the login flow"

# 2. Fill the directive stubs in the printed file, then sync
atomic vault sync

# 3. Gate it, then sign it
atomic intent validate <ID>
atomic intent attest <ID>

# 4. Review your intents
atomic intent list
atomic intent show <ID>

validate, attest, and show read from the vault database, so always run atomic vault sync after editing an intent file and before validating or attesting.

To track the work itself, start a goal linked to the intent:

atomic vault goal start --intent <ID>
# ... work happens (with your agent) ...
atomic vault goal stop --promote

See Atomic Vault for the full intent lifecycle. The vault can also be queried and mapped as a knowledge graph; see Querying the Graph.

7. Review What Happened​

Work with your agent, then review what was recorded:

# See the recorded changes with AI provenance (includes change hashes)
atomic log

# Check session and hook status
atomic agent status --verbose

# Inspect attestations (cost, tokens, model breakdown)
atomic agent attest

# View details for a specific attestation with change hash
atomic agent attest --hash XMJZ3IPF

# Generate AI reasoning summaries
atomic agent explain <session-id> --all --save

8. Branch with Views​

Views are Atomic's equivalent of branches, but they are filtered perspectives on the same graph, not forks. All changes are stored in one canonical graph, and a view decides which are visible.

# Create a draft feature view and switch to it
atomic view create feature-login --draft --switch

# List views, switch back
atomic view list
atomic view switch dev

Agent sessions already work this way: each session starts on an isolated draft view forked from your current view, and returns you to your original view when it ends. See AI Agent Workflows.

9. Review and Land Your Changes​

Bring changes into a view in two ways: insert all of the current view's changes, or insert a single change by hash.

# Insert the current view's changes to its parent
atomic insert

# Insert a single change into a specific view
atomic insert <HASH> --view dev

Before inserting, run triage — Atomic's promotion gate. It projects the candidate change set a feature view would land into a target view and renders a verdict (blocked, stale, or ready) with findings: dependency closure, intent coverage, and whether an independent review intent exists.

# Candidate set + verdict for the current view against its parent
atomic triage review

# A specific feature view and target
atomic triage review feature-login --into dev

# Guided reading order: candidates grouped into semantic layers
atomic triage review feature-login --into dev --walkthrough

# Full machine-readable worklist
atomic triage review feature-login --into dev --json

Triage checks linkage and evidence structure — the reviewer still judges the code itself. See Atomic Vault for the full review workflow and the triage command reference for every option (--html browser report, --attest signed export).

Provenance is the recorded chain of AI work: session, turns, changes, and views. Each change carries its provenance, which you can inspect directly:

# Inspect a specific change (hash from atomic log)
atomic change <HASH>
atomic diff -c <HASH> --word-diff

# Trace the change's provenance chain
atomic provenance trace <HASH>

Promotion into a shared view requires an independent review intent, signed by a different identity than the work's author. The reviewer does not edit your intent; they create a new one:

atomic intent new "Review the login flow" \
--review urn:atomic:intent:<WORK_UID>

atomic vault sync
atomic intent update <REVIEW_ID> --status done
atomic vault sync
atomic intent validate <REVIEW_ID>
atomic intent attest <REVIEW_ID> --identity reviewer

10. Push Everything​

Changes, provenance, and session data travel together:

atomic push

Collaborators within your organization receive your changes and the context behind them: intents, attestations, and provenance. atomic pull brings remote changes in the same way.

11. Coming from Git?​

GitAtomicKey Difference
git commitatomic recordSubmits a change as a semantic patch, not a snapshot
git commitatomic changeThe recorded change itself (inspect with atomic change <HASH>)
git branchatomic viewA filtered perspective on the shared change graph, not a linear branch
git repoatomic projectManage related/associated files
Commit hashChange hashCryptographic identifier for the change
Staging areaAdd to treeFiles marked for tracking
Working treeWorking copyYour editable files

Existing Git repositories can be imported into Atomic, and Atomic can continue to publish to Git for teammates who stay on Git tooling:

atomic git import

Full Git interoperability is coming soon. See Migrating from Git for the current workflow.

Git interop commands​

Atomic and Git can run side by side. The rule to remember: Git shadows Atomic, not the other way around. Atomic is the source of truth; the Git repository is a downstream mirror that Atomic generates. Record work in Atomic first (atomic record), then publish it to Git. Avoid committing hand edits directly in Git.

# Bring Git history into Atomic (first-time migration)
atomic git import
atomic git import --incremental # only commits not yet in Atomic
atomic git import --all # include inner-PR commits, not just first-parent
atomic git import --no-stream # ordinary importer: semantic lifecycle support
atomic git import --dry-run # preview without creating anything

# Keep the two synchronized automatically (verified, opt-in per repository)
atomic git shim enable
atomic git shim reconcile # align Git and Atomic, record a checkpoint
atomic git shim verify # check both sides agree

# Publish Atomic state as a Git commit, with provenance trailers
atomic git push

If the Git side drifts (for example, from a raw git commit), reconcile with atomic git shim reconcile before pushing. The full setup paths, reconcile/verify guidance, and the development workflow are covered in Git Shim.

Cheat Sheet​

The full workflow in order. Copy and paste each block:

# Install & identity
curl -sSf https://atomic.storage/install.sh | sh
atomic identity new alice-acme --email alice@acme.com --set-default
atomic identity register https://atomic.storage
atomic identity whoami

# Repository & first change
mkdir myproject && cd myproject
atomic init
atomic add *
atomic status && atomic diff
atomic record -m "Initial commit"
atomic log

# Install an agent integration
atomic agent enable --agent <opencode|claude-code|codex|copilot>
atomic agent status --verbose # expect: ✓ <Agent> — hooks installed

# Intent: prompt -> criterion -> task -> file
atomic intent list
atomic vault context --files src/
atomic intent new "Add the login flow"
# fill :::why, criteria, tasks (::file-ref), scope, constraints
atomic vault sync
atomic intent update <ID> --status in_progress
# ... agent session records turns automatically ...

# Verify & sign
# run checks, add ::verification records, mark tasks done, criteria met
atomic vault sync
atomic intent update <ID> --status done
atomic vault sync
atomic intent validate <ID> && atomic intent attest <ID> && atomic intent verify <ID>

# Views
atomic view create feature-login --draft --switch

# Review & land
atomic triage review --into dev --walkthrough
atomic change <HASH> && atomic diff -c <HASH> --word-diff
atomic provenance trace <HASH>
atomic intent new "Review the login flow" --review urn:atomic:intent:<WORK_UID>
atomic vault sync
atomic intent update <REVIEW_ID> --status done
atomic vault sync
atomic intent validate <REVIEW_ID> && atomic intent attest <REVIEW_ID> --identity reviewer
atomic insert preview feature-login --to dev
atomic insert

# Git shim (optional)
atomic git import
atomic git shim enable && atomic git shim reconcile
atomic git push

# Share
atomic push

What's Next​