Sandbox
@damusix/atomic-claude

Claude Code config for code graphs and repo wikis

Atomic Claude is an opinionated Claude Code setup that teaches the agent your repo once, then keeps that context in wikis, commands, skills, and rules. It also adds a symbol graph, multi-agent workflow pieces, and session-to-session coordination so work can stay structured across runs.

89 stars10 forksGoUpdated 8d ago
Who it's for

Builders who use Claude Code and want a reusable repo workflow with persistent context and agent commands.

What it delivers

You can stop re-explaining your repo every session and keep Claude working from shared context.

What it does

Repo-aware sessions

Builds a standing map of the codebase so Claude reads the repo context before it starts coding.

Code graph

Uses tree-sitter to map symbols, callers, call sites, and blast radius across many languages and frameworks.

SQL graph support

Reads procedures, views, foreign keys, lineage, dbt models, and macros from `.sql` files without a live database.

Workflow commands

Provides commands like `/setup-wiki`, `/refresh-wiki`, `/atomic-plan`, `/subagent-implementation`, `/quick-fix`, `/commit`, and `/autopilot`.

Wikis

Supports repo wikis and realm wikis so Claude can learn a codebase or a group of repos from compiled notes.

Inter-session bus

Lets Claude Code sessions message each other in named rooms for delegation and coordination.

Persistent REPLs

Keeps named Python and Node sessions alive across Bash calls so setup work does not repeat.

Self-sharpening config

Can mine corrections and update its own skills and rules when you approve it.

README

Atomic Claude

Atomic Claude

Code graphs, wikis, and research-backed agentic coding. Deterministic tools for nondeterministic workflows, in one opinionated Claude Code config.

Stop re-explaining your repo to Claude every session.

InstallConceptsWorkflowCommandsSkillsAgentsCredits

Status Latest Release License

atomic serve tour: wiki docs, search, SQL schema, bus chat between two Claude agents, plans, and the code graph

atomic serve, the whole tour: wiki docs, search, SQL schema, two agents on the bus, plans, and the code graph.

🌟 Features

FeatureWhat it does
Repo-aware sessionsOne scan builds a standing map of your codebase that Claude reads before your code, so it stops inventing npm scripts.
Code graphA tree-sitter symbol graph across 31 languages and 23 web frameworks answers callers, call sites, and blast radius, no compiler required.
SQL in the graphProcedures, views, foreign keys, and lineage across Postgres, MySQL, T-SQL, and Snowflake, plus dbt models and macros, read from .sql files with no database connection.
Autopilot/autopilot takes an issue to a merged PR: plans, tests first, reviews its own diff, ships. Your only decision is how to merge.
Self-sharpening config/retrospective-learning mines your corrections for friction and edits its own skills and rules, only with your say-so.
Inter-session busConcurrent Claude Code sessions message each other over named rooms: delegate work to a peer session, watch or halt a room as the operator.
Persistent REPLsNamed Python and Node interpreter sessions hold state across separate Bash calls, so agents stop re-running setup code to get back to where they were.
Structured repliesTables, trees, and ASCII flows replace walls of prose when they explain faster.
Incremental adoptionOne install; every layer is optional, from clearer replies up to full autopilot.

🚀 Usage

Everything below is opt-in and composes into one lifecycle. Lost? /atomic-help reads your git state and names one next command; /atomic-help tour walks the whole system.

The workflow

onboard your repo

  /setup-wiki .......................... audit conventions, scaffold what's missing
  /refresh-wiki ........................ scan + infer: teach Claude the repo's shape

then get to work

  /atomic-plan <desc> .................. design doc + checkpoint spec
    /gather-evidence <hypothesis> ...... chase the hunch through primary sources
    /pressure-test ..................... defend the design in dialogue before it's built
    /challenge-swarm @spec.md .......... parallel expert lenses attack the written spec
  /subagent-implementation @spec.md .... implement → review loop; wikis refreshed
  /quick-fix <task> .................... same loop, no spec, for known-cause fixes
  /commit [push|pr|merge|squash] ....... ship from one verb
  /autopilot <task|issue#> ............. all of it unattended; you pick the merge

Fresh-context subagents drive the loop as a maker/checker split (Anthropic's evaluator-optimizer pattern): the implementer writes a failing test before any code, the reviewer re-runs tests and gates the diff against the spec, and work commits per green checkpoint. → workflow

Each phase's working state lives in one atomic scratchpad bundle per task — later phases join the same bundle rather than scattering new directories. atomic serve's Plans view lists every bundle and its docs across your worktrees, so you can check what's in flight without cd-ing anywhere. → conventions · serve

Wikis

Wikis are how Claude learns a codebase once instead of every session. Two scopes:

  • Repo wiki: docs/wiki/ inside one repository. Build and framework facts, a domain map, cross-cutting notes.
  • Realm wiki: a Karpathy-style knowledge base you compile with Claude instead of maintaining by hand. A folder holds your repos and the loose material around them; the wiki/ beside them holds per-repo summaries, shared concerns, and knowledge pages synthesized from capture buckets.
~/work/acme/       the realm: repos + the material around them
├─ CLAUDE.md       realm rules, loaded from any session inside
├─ billing-api/    repo · has its own wiki → linked
├─ gateway/        repo · has its own wiki → linked
├─ vendor-sdk/     repo · no wiki → summarized
├─ research/       capture bucket: findings you write
├─ raw/            capture bucket: PDFs, exports, pasted notes
└─ wiki/           the map atomic compiles
   ├─ index.md     member registry + bucket listing
   ├─ repos/       summaries of members without their own wiki
   ├─ concerns/    what cuts across repos
   └─ knowledge/   digests synthesized from the buckets

The scopes compose. A realm summarizes the repos under it without writing into them, and a member repo that keeps its own wiki is linked rather than re-summarized. Claude loads whichever scope the session sits in: a realm session sees the cross-repo picture, a repo session sees that repo's map. atomic code index layers a symbol graph onto either scope; at a realm root it indexes every member, and queries fan out across them.

Two commands drive it. /setup-wiki audits a repo's conventions (ignore rules, docs layout, CLAUDE.md wiring) and proposes only what's missing. /refresh-wiki builds or refreshes the wiki at either scope: a deterministic scan captures the facts, an inference pass writes the summaries, and ship verbs mark the wiki dirty as the source tree changes, so a session-start nudge tells you when a refresh is due. → realm wiki · knowledge base · repo wiki

💭 Contributing & feedback

Atomic Claude dogfoods itself: the root artifacts are both the live config and the bundle source. Bugs and ideas are welcome via Issues. To work on the config, see docs/guides/contributing.md.

📖 Further reading

TopicLink
Workflow lifecycledocs/reference/workflow.md
Commandsdocs/reference/commands.md
Skillsdocs/reference/skills.md
Agentsdocs/reference/agents.md
Output styledocs/reference/output-style.md
Repo wikidocs/reference/repo-wiki.md
Realm wikidocs/reference/realm-wiki.md
Bus (inter-session messaging)docs/reference/bus.md
REPL (persistent interpreter sessions)docs/reference/repl.md
Code intelligencedocs/reference/code-intel.md
Code-intel MCP setupdocs/guides/code-intel-mcp.md
Concepts (how it flows)docs/reference/concepts.md
Conventionsdocs/reference/conventions.md
Install / update / uninstalldocs/guides/install.md
Docker evaluationdocs/guides/evaluations.md
Contributingdocs/guides/contributing.md
Creditsdocs/credits.md
Specsdocs/spec/
Anthropic patterns behind itBuilding Effective Agents, Effective context engineering

License

MIT

Files in the repo

Repository payload26 top-level entries
  • .claude
  • .githooks
  • .github
  • .vitepress
  • assets
  • atomic
  • context
  • docs
  • marketing
  • scripts
  • tmp
  • .dockerignore
  • .gitignore
  • .goreleaser.yaml
  • CLAUDE.md
  • docker-compose.yml
  • docker-entrypoint.sh
  • Dockerfile
  • install.sh
  • LICENSE
  • Makefile
  • package-lock.json
  • package.json
  • README.md
  • release-please-config.json
  • release-please-manifest.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k
ruvnet/rufloHarnesses

🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k