Skip to main content

Installing Agent Integrations

Atomic agent integrations now live in small, agent-specific packages. Each package adapts one AI coding tool to Atomic's shared provenance and attestation pipeline:

  • Start or resume an agent session
  • Create an isolated draft view for the session or task
  • Capture prompts, tool calls, edits, commands, and model metadata
  • Record changes automatically with AI provenance
  • Create session attestations that summarize model usage, cost, timing, and covered changes

This guide shows how to introduce those integrations into an existing project.

Before You Start​

You need:

  1. The Atomic CLI installed and available on your PATH.
  2. An Atomic repository in the project you want the agent to work on.
  3. The agent or editor you want to integrate.
atomic --version
cd my-project
atomic init

If the project already has .atomic/, do not initialize it again.

tip

The integrations handle recording for you. During an agent session, do not run atomic add or atomic record manually unless you intentionally want to step outside the automated workflow.

Standard Rollout for an Existing Project​

Most integrations follow the same pattern:

  1. Install the global adapter from the integration package. This adds hooks, plugins, extensions, or skills to the agent's user-level configuration.
  2. Add project instructions when the agent needs a repo-local prompt, rule file, or hook manifest.
  3. Open the project with the agent. The integration activates only when the workspace is an Atomic repository.
  4. Review the recorded work with atomic log, atomic change, and atomic agent attest.
cd my-project
atomic init
# install the adapter for your agent
# copy the project-specific instruction files for that agent
# start the agent normally

Integration Matrix​

IntegrationAgentRepositoryGlobal installProject files for existing repos
atomic-claudeClaude Codehttps://github.com/atomicdotdev/atomic-claude./install.sh or npx atomic-claude once publishedCopy CLAUDE.md to the project root
atomic-codexCodexhttps://github.com/atomicdotdev/atomic-codex./install.sh or npx atomic-codex once publishedCopy AGENTS.md to the project root
atomic-clineClinehttps://github.com/atomicdotdev/atomic-cline./install.sh or npx atomic-cline once publishedCopy rules/atomic.md to .clinerules/atomic.md
atomic-piPihttps://github.com/atomicdotdev/atomic-pipi install /path/to/atomic-pi or pi install npm:atomic-pi once publishedNo repo-local file is required by default
atomic-copilotGitHub Copilot cloud agent and CLIhttps://github.com/atomicdotdev/atomic-copilot./install.sh for local helper setupCopy .github/hooks/atomic-hooks.json, .github/copilot-instructions.md, and AGENTS.md into the repository
atomic-cursorCursorhttps://github.com/atomicdotdev/atomic-cursor./install.sh or npx atomic-cursor once publishedCopy rules/atomic.md to .cursor/rules/atomic.md
atomic-opencodeOpenCodehttps://github.com/atomicdotdev/atomic-opencodeAdd atomic-opencode to ~/.config/opencode/opencode.json, then run npx atomic-opencode; or use ./install.sh from sourceNo repo-local file is required by default; select the Atomic agent in OpenCode

Claude Code​

Use atomic-claude for Claude Code.

git clone https://github.com/atomicdotdev/atomic-claude
cd atomic-claude
./install.sh

cd /path/to/my-project
atomic init
cp /path/to/atomic-claude/CLAUDE.md .
claude

The installer adds Atomic hooks to Claude Code's global settings and installs the atomic-vault and code-intelligence skills. The CLAUDE.md file is repo-local because Claude Code discovers project instructions from the project root.

Codex​

Use atomic-codex for Codex.

git clone https://github.com/atomicdotdev/atomic-codex
cd atomic-codex
./install.sh

cd /path/to/my-project
atomic init
cp /path/to/atomic-codex/AGENTS.md .
codex

The installer enables the Codex hooks feature flag and installs hooks into ~/.codex/hooks.json. Codex hook support is currently experimental, so shell-command provenance may be richer than edit-tool provenance until Codex publishes complete hook events.

Cline​

Use atomic-cline for Cline in VS Code.

git clone https://github.com/atomicdotdev/atomic-cline
cd atomic-cline
./install.sh

cd /path/to/my-project
atomic init
mkdir -p .clinerules
cp /path/to/atomic-cline/rules/atomic.md .clinerules/atomic.md

Then open Cline's Hooks tab in VS Code and enable the installed Atomic hooks. Cline hooks are executable scripts under ~/Documents/Cline/Hooks/ and require jq to parse hook JSON.

Cline records at task boundaries: one task creates one draft view, and the task completion records the task's changes with provenance.

Pi​

Use atomic-pi for Pi.

git clone https://github.com/atomicdotdev/atomic-pi
cd atomic-pi
pi install /path/to/atomic-pi

cd /path/to/my-project
atomic init
pi

The Pi package registers an Atomic extension, an Atomic agent prompt, and skills. Once installed, the Atomic agent activates in Atomic repositories and follows the intent-per-turn workflow.

GitHub Copilot​

Use atomic-copilot for GitHub Copilot cloud agent and CLI.

git clone https://github.com/atomicdotdev/atomic-copilot
cd atomic-copilot
./install.sh

cd /path/to/my-project
atomic init
mkdir -p .github/hooks
cp /path/to/atomic-copilot/hooks/atomic-hooks.json .github/hooks/
cp /path/to/atomic-copilot/copilot-instructions.md .github/
cp /path/to/atomic-copilot/AGENTS.md .

For the Copilot cloud agent, the hook manifest must be present on the repository's default branch before the cloud agent starts. Add the copied files using your normal repository workflow.

Copilot currently records one change per session because its hook lifecycle does not expose a turn-level stop event.

Cursor​

Use atomic-cursor for Cursor.

git clone https://github.com/atomicdotdev/atomic-cursor
cd atomic-cursor
./install.sh

cd /path/to/my-project
atomic init
mkdir -p .cursor/rules
cp /path/to/atomic-cursor/rules/atomic.md .cursor/rules/atomic.md
# Open the project in Cursor

Cursor hooks call into Atomic on session lifecycle events, tool usage, and reasoning blocks. The repo-local rule file tells Cursor to use the Atomic intent workflow inside the project.

OpenCode​

Use atomic-opencode for OpenCode.

Add the package to your global OpenCode config at ~/.config/opencode/opencode.json:

{
"$schema": "https://opencode.ai/config.json",
"plugin": ["atomic-opencode"]
}

Then run the setup helper:

npx atomic-opencode

cd /path/to/my-project
atomic init
opencode

In OpenCode, switch to the Atomic agent. The package installs the plugin, Atomic agent prompt, and skills into ~/.config/opencode/.

For development installs, clone the repository and run ./install.sh instead.

Verify the Integration​

After the agent makes changes, use Atomic to inspect what happened:

atomic agent status --verbose
atomic log
atomic agent attest

For a specific change:

atomic change -p <hash>
atomic change -a <hash>

atomic change -p shows the causal provenance graph. atomic change -a shows inline AI attestation data such as model, provider, tokens, and cost when the agent reports usage metrics.

What Gets Introduced into the Project​

Atomic integrations generally introduce two kinds of files:

File typeScopePurpose
Hooks, plugins, or extensionsUser-level agent config, except Copilot cloud hooksInvoke atomic agent hooks <agent> <verb> on agent lifecycle events
Instructions, rules, or promptsProject-level when the agent discovers repo-local guidanceTell the agent to create intents, define success criteria, use Atomic code intelligence, and avoid manual recording

The actual provenance artifacts live in .atomic/ after the agent works. They are not static setup files; they are content-addressed records created by Atomic.

Removing an Integration​

Each package provides an uninstall path:

IntegrationUninstall
atomic-claudenpx atomic-claude --uninstall, then remove project CLAUDE.md files manually
atomic-codexnpx atomic-codex --uninstall, then remove project AGENTS.md files manually
atomic-clinenpx atomic-cline --uninstall, or remove atomic-* files from ~/Documents/Cline/Hooks/
atomic-pipi remove /path/to/atomic-pi or pi remove npm:atomic-pi
atomic-copilotRemove .github/hooks/atomic-hooks.json, .github/copilot-instructions.md, and AGENTS.md if they were added only for Copilot
atomic-cursornpx atomic-cursor --uninstall, then remove project .cursor/rules/atomic.md files manually
atomic-opencodenpx atomic-opencode --uninstall

Removing hooks stops future automatic recording. Existing Atomic changes, provenance graphs, and attestations remain in the repository history.

See Also​