Skip to content
bastani-incPublic

About

The verifiable coding agent runtime. Define your coding agent's process in natural language with stages, checks, and approval gates instead of hoping it follows your instructions. Primitives for verifiable software factories.

Resources

Contributing

Security policy

Stars

888 stars

Watchers

9 watching

Forks

Latest commit

 

History

12,555 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atomic

Atomic coding agent runtime

The verifiable coding agent runtime. Build your engineering process as explicit, checkable execution graphs.

Run verifiable engineering loops with control, alignment, and confidence.

Atomic prioritizes quality over quick responses. Complex runs can take hours, days, or weeks because Atomic researches, implements, and verifies the work that quick coding-agent passes tend to leave to you.

Engineers using Atomic tell us this means less babysitting, less code review comments, and less stress. The end result is work built and verified for production review, backed by evidence instead of another round of manual prompting.

Get started →  ·  How it works  ·  What you get  ·  FAQ  ·  Docs

Docs Discord GRiDD case study Ask DeepWiki TypeScript License: MIT

USED BY ENGINEERS AT

Meta        Microsoft        Salesforce        GRiDD

If Atomic is useful to you, star the repository ⭐

Users are reporting:

  • ⚡ A 1 to 1.5 hour reduction in manual verification per task compared to traditional coding agents, not including time saved from fewer follow-up fixes and reverts
  • 🔀 ~95% merge rate on Atomic-generated PRs, with reduced follow-ups and a 0% revert rate
  • 🛡️ Production incidents caught that CI did not cover

Atomic Verifiable Runtime

Every row is a real Atomic session recorded from the installed product. Open the Atomic docs for reference or follow the crash course step by step.

Planner-worker intercom coordination

Separate sessions message each other over intercom to split a job and agree on the answer.

Atomic docs · Intercom

Crash course · 5.3 Planner-worker intercom coordination

Two Atomic sessions coordinating over intercom, one sending a question and the other replying

Worktree-isolated parallel work

Parallel agents each get their own git worktree, so concurrent edits cannot collide.

Atomic docs · Subagents

Crash course · 5.2 Worktree-isolated parallel work

Atomic running parallel subagents in separate git worktrees and reporting a per-worktree diff

Escalating to a human supervisor

A delegate that hits a real product decision stops, asks the human supervising the run, and waits for the answer.

Atomic docs · Intercom

Crash course · 5.4 Escalating to a human supervisor

One Atomic session escalating a null-email decision to its human supervisor over intercom, then applying the answer it receives

Intercom context handoff

Hand a task to another session with the context attached, instead of pasting it by hand.

Atomic docs · Intercom

Crash course · 5.5 Intercom context handoff

One Atomic session handing a task to another over intercom with file and snippet attachments

Delegating to bundled specialists

Fan work out to scoped subagents that do the reading, so the main context stays small.

Atomic docs · Subagents

Crash course · 5.1 Delegating to bundled specialists

Atomic delegating to bundled specialist subagents and collecting their findings

Context compaction

Compaction clears the context window, and the agent recovers what it needs from session history, <keepContext> spans first and verbatim.

Atomic docs · Compaction

Crash course · 2.2 Verbatim compaction

Atomic answering after compaction by quoting a keepContext repo rule back exactly

Explore 19 more Atomic capabilities ↓

Write repeatable procedures as skills. Use codemode to run checks, launch subagents, and bring their results back to the parent chat.

Atomic’s primitives are built for the software engineering lifecycle. Verification is built into the execution model.

Atomic is open so you can inspect and adapt it. You own the workflow, the evidence, and the rules for completion.

Own your intelligence. Build in the open. Question the defaults. Keep control of the process. ☠︎

Works with your engineering stack

Connect Atomic with GitHub Connect Atomic with GitLab Use Git with Atomic Connect Atomic with Jira Connect Atomic with Linear Connect Atomic with Notion Connect Atomic with Slack Use Docker with Atomic Use Kubernetes with Atomic Connect Atomic with AWS Connect Atomic with Google Cloud Connect Atomic with Azure Connect Atomic with Sentry Connect Atomic with Datadog Use PostgreSQL with Atomic Use Playwright with Atomic Use Chrome with Atomic Connect Atomic through MCP servers Connect Atomic with any CLI or API

Atomic connects through installed CLIs, MCP servers, APIs, scripts, and custom extensions; you supply the credentials and permissions.

Works with your models

OpenAI provider badge for Atomic Anthropic provider badge for Atomic GitHub Copilot provider badge for Atomic OpenRouter provider badge for Atomic Kimi provider badge for Atomic xAI provider badge for Atomic Ant Ling provider badge for Atomic Azure OpenAI provider badge for Atomic Amazon Bedrock provider badge for Atomic DeepSeek provider badge for Atomic NVIDIA NIM provider badge for Atomic Google Gemini provider badge for Atomic Google Vertex AI provider badge for Atomic Mistral provider badge for Atomic Groq provider badge for Atomic Cerebras provider badge for Atomic Cloudflare AI provider badge for Atomic Vercel AI Gateway provider badge for Atomic Z.ai provider badge for Atomic OpenCode provider badge for Atomic Hugging Face provider badge for Atomic Fireworks AI provider badge for Atomic Together AI provider badge for Atomic MiniMax provider badge for Atomic Moonshot AI provider badge for Atomic Qwen provider badge for Atomic Xiaomi MiMo provider badge for Atomic

See provider setup and the current catalog. Availability depends on your credentials, subscription, region, and the provider catalog; one login does not unlock every provider.

Local and open models

llama.cpp local model server badge for Atomic Ollama local model server badge for Atomic LM Studio local model server badge for Atomic vLLM local model server badge for Atomic SGLang local model server badge for Atomic Hugging Face model hosting badge for Atomic Llama open model family badge for Atomic Gemma open model family badge for Atomic DeepSeek open model family badge for Atomic Qwen open model family badge for Atomic Kimi open model family badge for Atomic GLM open model family badge for Atomic Mistral open model family badge for Atomic MiniMax open model family badge for Atomic gpt-oss open model family badge for Atomic

Atomic can run tool-capable models exposed through llama.cpp, Ollama, LM Studio, vLLM, SGLang, Hugging Face, or a compatible OpenAI, Anthropic, or Google endpoint. Actual model and tool support depends on the server and model.

The model-family badges are representative open families, not a closed allowlist. See Models and llama.cpp.


Get started

Prerequisites

  • Native installer: On macOS, Linux, or WSL, have curl and tar available. On Windows, use PowerShell.
  • Model-provider access: Use a supported subscription login or API key.

Install

Native install (recommended)

On macOS, Linux, or inside a WSL terminal:

curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh

On Windows, run this in PowerShell:

irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex

Open a new terminal and run atomic --version. If your shell can't find atomic, follow the installer's instructions to add it to your PATH.

If you installed Atomic with npm, pnpm, or Bun, switch to the native installer. See Install Atomic for installer options, updates, and uninstalling.

Authenticate and run

Start Atomic:

atomic

Sign in. Atomic supports browser and subscription logins for OpenRouter, ChatGPT Plus/Pro (Codex), OpenAI ChatGPT sign-in, Claude Pro/Max, GitHub Copilot, Kimi Code, Meta (Muse subscription), and xAI, as well as API-key providers:

/login   # then select your provider

Claude login from a third-party client uses Anthropic extra usage billed per token rather than Claude plan limits. See Providers and models for integration details.

Missing a provider? Open an issue or contribute an integration.

For API-key setup, export the key before starting Atomic:

export OPENROUTER_API_KEY=sk-or-...
atomic

Atomic stores provider credentials in ~/.atomic/agent/auth.json and creates the file with owner-only permissions where the platform supports them. For non-interactive use, atomic -p "<prompt>" prints the response and exits.

After authenticating, type a message. To try parallel work, ask Atomic to delegate a review and report what each child found.

Security warning: Atomic has no built-in sandbox or command-level shell permission gate. Tools and extensions run with your user permissions. Run autonomous work inside a devcontainer, VM, or remote development machine, not on a host with sensitive data or credentials.

Advanced installation options

You can also install Atomic as a global package with npm, pnpm, or Bun. This is not recommended. Package-manager installs use Node.js 24.20.0 or newer by default, even if you install with Bun.

npm install -g @bastani/atomic
# or: pnpm add -g @bastani/atomic
# or: bun add -g @bastani/atomic

npm lifecycle scripts aren't required. You can pass --ignore-scripts. See Package managers for details.

Devcontainer, terminal, and SDK references

Atomic runs in a standard devcontainer or VM. See Containerization for a Docker example using the native installer. Pass provider credentials through environment variables.

See Terminal setup, Security, and Programmatic usage for the SDK and RPC entry points.

Bring your skill stack

Already have agent skills? Bring them into Atomic by pointing Atomic at their existing directories or placing them in its project or user skill locations. Atomic implements the Agent Skills standard, and configured Claude Code or Codex skill directories can be used without rewriting them. See Skills.

A skill can run as a workflow. Describe the inputs, what may run in parallel, and what must pass. If you have an earlier Atomic workflow definition, ask Atomic to convert it into a skill; the original stays untouched.

Migrating from another coding agent

Atomic publishes an agent-readable llms.txt. Ask your current coding agent to:

Install and set up Atomic by following https://docs.bastani.ai/llms.txt.

More Atomic capabilities

Explore the rest of Atomic’s real recorded capabilities, with public docs and crash-course links for each one.

The agent interviews you

ask_user_question replaces the editor with a structured question UI mid-task, and your answers land in the transcript as data.

Atomic docs · Built-in tools

Crash course · 1.3 The agent interviews you

Atomic replacing the editor with a structured multiple-choice question UI that asks which config format to use

Permission gate extension

A tool_call hook catches a risky shell call before execution and asks the operator to allow or block it.

Atomic docs · Extensions

Crash course · A.2 Permission gate extension

Atomic opening the permission-gate extension select dialog for sudo echo hi and blocking the bash tool call when No is chosen

Block a dangerous command

A tool-call hook inspects the arguments and rejects the call before it ever reaches your shell.

Atomic docs · Extensions

Crash course · 3.2 Block a dangerous command

Atomic refusing a destructive shell command because a project-local hook rejected the tool call

Full-screen TUI tool

An extension can take over the whole screen with its own interactive component, then hand control back.

Atomic docs · TUI components

Crash course · 3.3 Full-screen TUI tool

A project-local extension taking over the Atomic screen with its own full-screen interactive component

Embed the agent with the SDK

Drive the same agent loop from your own TypeScript program, with your own tools and your own UI.

Atomic docs · SDK

Crash course · 4.3 Embed the agent with the SDK

A TypeScript program using the Atomic SDK to run the agent loop and print its streamed output

Build an extension

Drop a TypeScript file into .atomic/extensions/ and the agent gains a new tool in the running session.

Atomic docs · Extensions

Crash course · 3.1 Build an extension

Atomic writing a project-local extension and then calling the new tool it registered

Write a skill

A SKILL.md file teaches the agent a procedure it loads on demand, in the same format Claude Code and Codex use.

Atomic docs · Skills

Crash course · 3.4 Write a skill

Atomic discovering a project-local SKILL.md and following the procedure it describes

Local models via models.json

Point Atomic at Ollama or any OpenAI-compatible endpoint by declaring it in models.json.

Atomic docs · Custom models

Crash course · 4.2 Local models via models.json

A models.json entry declaring a local OpenAI-compatible endpoint, and Atomic listing the model it adds

Headless print and JSON mode

-p prints one answer and exits; --mode json streams structured events, so Atomic drops into scripts and CI.

Atomic docs · JSON event stream

Crash course · 4.1 Headless print and JSON mode

Atomic running headless with -p printing a single answer, then with --mode json streaming structured events

Branching with tree, fork, clone

Fork a session at any point and try a second approach without losing the first; /tree shows the whole shape.

Atomic docs · Sessions

Crash course · 2.1 Branching with tree, fork, clone

Atomic showing the session tree after a fork, with the branch points listed

SQLite and JSONL sessions

Sessions save to local SQLite by default and export or run as append-only JSONL files you can grep, diff, and script against.

Atomic docs · Session format

Crash course · 2.3 Sessions are just JSONL

Atomic walking its own session JSONL one event per line, showing each event's type, id, and parent id

Your first session

One editor for prompts, @ file references, and ! shell commands, with steering you can type while the agent works.

Atomic docs · Using Atomic

Crash course · 1.1 Your first session

Atomic session answering a question about greeter.ts through an @ file reference, then running the file with an inline ! shell command

File-based todos

Plans are durable files under .atomic/todos/: plain text you can grep, review, and commit alongside the code.

Atomic docs · Built-in tools

Crash course · 1.4 File-based todos

Atomic creating todos with the todo tool and then listing the resulting plain-text files under .atomic/todos

A handoff command of your own

Package a repeatable handoff as a project-local slash command your whole team can run.

Atomic docs · Prompt templates

Crash course · 5.6 A handoff command of your own

A project-local slash command running a packaged intercom handoff from the Atomic editor

Intercom group isolation

Sessions in different groups cannot message each other; only an explicit read-only group peek crosses the boundary.

Atomic docs · Intercom

Crash course · A.7 Intercom group isolation

Two Atomic sessions in separate Intercom groups, with the default session peeking at redteam before its cross-group send is rejected

Prompt templates with arguments

Project Markdown becomes a slash command with autocomplete hints and positional argument expansion.

Atomic docs · Prompt templates

Crash course · A.4 Prompt templates with arguments

Atomic finding the project component prompt template and expanding Button, onClick handler, and disabled support into the submitted prompt

Runtime system-prompt mutation

A live command toggles extension state, and before_agent_start rewrites the system prompt on the next turn.

Atomic docs · Extensions

Crash course · A.3 Runtime system-prompt mutation

Atomic enabling the shipped pirate extension at runtime and answering the next TypeScript question with the mutated system prompt

Keybindings and hot reload

Every TUI action is remappable in global JSON; /reload applies the map without restarting the session.

Atomic docs · Keybindings

Crash course · A.1 Keybindings and hot reload

Atomic listing hotkey action ids, reloading a global keybinding map, and showing Ctrl+J insert a newline in the editor

Custom theme

Theme the entire TUI from a project-local file and switch to it live with /theme.

Atomic docs · Themes

Crash course · 3.5 Custom theme

Atomic displaying project-local theme JSON and offering my-theme in the live theme picker

How Atomic works

A skill describes the procedure. The parent chat uses codemode to call tools, launch specialist subagents, and check their results. It can do other work after launching children and continue from their completion notices.

Atomic is a fork of Pi, so it works with the providers, tools, MCP servers, skills, and extensions already in your Pi stack.

Use direct chat for a small task. For a larger one, tell the parent the scope, how to verify the result, and when to stop. If a repair needs another round, run the check first. Children have persisted, resumable sessions; an interrupted script does not automatically replay its actions.

Atomic can support:

  • Engineering runs: Research, plan, implement, test, review, and release.
  • Debugging and migrations: Reproduce, diagnose, patch, migrate in waves, and verify.
  • Research and triage: Gather context, fan out analysis, classify issues, and synthesize findings.
  • QA, docs, and compliance: Run repeatable checks with evidence and approval points.
  • Custom agent products: Build on Atomic's runtime, SDK, tools, and skills.

Examples

Focused codebase research:

/skill:research-codebase how the rate limiter works in src/middleware/

Repository-wide research with durable artifacts:

Give one read-only agent to each subsystem. Map the old auth middleware call sites, then combine the findings with file and line references.

A task-specific implementation and review loop:

Implement specs/2026-03-rate-limit.md. Have an independent agent review the patch, run the burst test, and stop when it returns 429 with Retry-After or after three repair attempts.

What you get

1. Codemode orchestration

The parent can split a task across agents, collect their results, and decide the next step from an actual check. Use /tasks to inspect children and /resume to reopen the parent session. See Orchestration patterns for examples of fan-out, independent verification, tournaments, and bounded repair loops.

2. Skills

Skills are reusable expert instructions and process modules. Atomic can select one from its description, or you can call it with /skill:<name>.

Skill Purpose
research-codebase Analyze a focused area and write a dated research document.
create-spec Produce a technical execution spec grounded in research and engineer feedback.
subagent Delegate work through single agents, parallel groups, or forked context.
intercom Coordinate parent, child, and peer sessions on the same machine.
prompt-engineer Refine prompts, research questions, and skill inputs.
skill-creator Create, improve, and evaluate reusable skills.
tdd Apply a red-green-refactor loop and testing guidance.
herdr Control Herdr panes, tabs, workspaces, and agents when running inside Herdr (HERDR_ENV=1).
tmux Drive and verify terminal applications.
agent-browser Automate browser interactions and end-to-end UI checks.
agent-desktop Drive native desktop apps through their accessibility trees with agent-desktop (vercel-labs/agent-desktop, Apache-2.0).
qlty Lint, auto-format, and measure code quality across 70+ linters via the qlty CLI.
liteparse Extract text, tables, and values from documents and images.
impeccable Design, audit, and refine frontend interfaces.
show-me Explain topics visually with concise diagrams, code-shape sketches, and focused HTML artifacts (HumanLayer, MIT).
how Explore a codebase to explain subsystem architecture, runtime flow, and code placement.
why Investigate design rationale, trade-offs, and history across source control, issues, and docs.
teach Combine how and why to explain a change or subsystem plainly at your pace.
bro Restate the last message in plain human language without jargon.
unslop Rewrite prose to remove AI filler, hype, and stock phrasing.
feedback Draft, scrub, and submit Atomic bug reports or enhancement requests.
workflow Use /skill:workflow to organize multi-step work or convert an earlier workflow into a reusable skill.

3. Specialized subagents

Subagents are purpose-built agents with scoped context, tools, and termination conditions. Atomic bundles nine definitions from packages/subagents/agents/.

Subagent Purpose
worker Implement a bounded task and return a concise result.
codebase-locator Locate files and components relevant to a task.
codebase-analyzer Analyze implementation details.
codebase-pattern-finder Find similar implementations and usage examples.
codebase-online-researcher Fetch current documentation and authoritative web sources.
codebase-research-locator Find relevant prior research in the repository.
codebase-research-analyzer Extract decisions and rationale from local research.
code-simplifier Refine recent code without changing behavior.
debugger Reproduce, diagnose, and verify fixes for failures.

Large, mixed, or growing contexts can make attention harder. Specialized agents reduce that risk through isolation, focus, tool scoping, and deliberate handoffs. Independent tasks can also run in parallel.

4. Platform capabilities

Published packages

All public packages publish on npm under @bastani/atomic* (Node.js 24.20+):

Package Purpose Docs
@bastani/atomic CLI, TUI, bundled extensions, and TypeScript SDK Docs / SDK
@bastani/atomic-ai Unified LLM client across providers, auth, streaming, tools, and classifiers Library docs
@bastani/atomic-agent-core Stateful agent loop with tool execution, steering, and follow-up queues Library docs
@bastani/atomic-tui Differential terminal UI framework with components, overlays, and key handling Library docs
@bastani/atomic-codemode Sandboxed JavaScript execution for tool scripting Library docs
@bastani/atomic-schema Zero-eval JSON Schema builders and validators Library docs
@bastani/atomic-telemetry Vendor-neutral telemetry contracts, metrics, and trace renderers Library docs
@bastani/atomic-storage-postgres Optional PostgreSQL 16+ storage adapter for shared sessions and Intercom Library docs

@bastani/atomic-natives is an internal N-API native module installed automatically with @bastani/atomic. See Standalone libraries.


Documentation

Full documentation lives at docs.bastani.ai. It covers the CLI and TypeScript SDK, storage backends, worktree snapshots, blueprints, MCP servers, structured decisions, security, containerized execution, codemode orchestration, configuration, diagnostics, and provider setup.

The docs live in this repository under packages/coding-agent/docs. Open a pull request to suggest a change.

FAQ

Is Atomic another coding agent?

Atomic includes a coding-agent CLI. Its main product idea is the runtime around the agent session: scoped context, tools, executable checks, subagents, and human approvals.

Why not use Claude Code, Codex, or OpenCode?

Use any interactive coding tool that fits the job. Use Atomic when work needs an explicit process you can inspect, version, resume, and verify. Atomic connects to model providers directly rather than running those tools underneath it.

How is Atomic different from products that fan out many agents?

Atomic can fan work out too. The difference is not whether agents run in parallel; it is whether developers control the context, handoffs, evidence, checks, and approval rules around that work. Parallel execution increases throughput. Assurance comes from the process you define and enforce.

Is Atomic deterministic?

The selected model can produce different answers. Put deterministic checks in scripts and inspect their exit status and artifacts before relying on an answer.

Why not Markdown checklists or CLAUDE.md?

A skill is Markdown the model can follow. It can also include scripts for checks that prose alone cannot perform. Reserve decisions that require human approval for the user.

Why not LangGraph or a generic agent framework?

Atomic is repo-native and focused on software engineering work: issues, research, specs, branches, diffs, tests, lint, artifacts, reviewers, approvals, and handoffs. It provides a coding-agent runtime rather than generic application building blocks.

Where do artifacts live?

Choose project paths for deliverables you want to keep. Research commonly lives in research/ and specs in specs/. A child can return a file path for the parent to read and verify.


Orchestration guide

Read Orchestration with codemode and subagents to plan independent work, recover after interruption, and verify results.

Support and ideas

Join the Atomic Discord community for questions, help, feedback, feature ideas, and examples of what you have built.

Contributing

See CONTRIBUTING.md for contribution guidelines and DEV_SETUP.md for development setup and testing.

To share a reusable procedure, see Writing skills.

License

MIT. See LICENSE.

Sponsors

Thanks to Namespace for powering our CI/CD pipelines with fast macOS, Linux, and Windows runners.

CI powered by namespace badge

Credits

About

The verifiable coding agent runtime. Define your coding agent's process in natural language with stages, checks, and approval gates instead of hoping it follows your instructions. Primitives for verifiable software factories.

Resources

Contributing

Security policy

Stars

888 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages