Better context for smaller AI models.
CodeAtlas is now RepoSpine. The atlas command, .codeatlas/ project data,
MCP identifiers, and existing workspace integrations remain supported during the
migration. New installations should use repospine.
RepoSpine scans, parses, and indexes a source tree into a queryable, persistent context database, then delivers precise, structured context to developer tools and AI agents over a stable SDK (CLI, MCP, VS Code). The goal is simple: help smaller AI models reason about codebases with frontier-level context.
Repository → scan → hash → parse → graph → context.db → Context SDK → CLI · MCP · VS Code · agents
0.7.0-beta.1 adds an opt-in mutation-aware proof system on top of the existing
context engine: explicit change requirements, revision-bound evidence, automatic
invalidation, proof debt, verification planning, and completion receipts.
Models can propose obligations; their statements cannot supply passing evidence.
The candidate is prepared locally, not a claim that it has been published.
After maintainer publication, install with npm install -g repospine-cli@beta.
From source, run pnpm install --frozen-lockfile && pnpm build, then
node apps/cli/dist/index.js prove --help or
node apps/cli/dist/index.js mcp --root /path/to/repo --profile proof.
The default context MCP profile remains compatible.
Start with the bounded proof example.
A proven receipt means the explicitly represented checks satisfy the configured
policy at the observed revision; it is not universal correctness, complete
test coverage, a signed attestation, or proof that an agent interpreted your goal
correctly. Live-agent quality gains have not been measured.
See the beta guarantees and release checklist.
LLMs work best with relevant, fresh context, not whole repositories:
-
Model leverage. Give smaller models the repository context they need to reason further, solve larger tasks, and produce stronger coding results.
-
Bounded. A budgeted, deny-filtered
ContextPackageis assembled per task, never a wholesale upload. -
Fresh. The index is incremental and version-aware — agents get a
versionMatch/stalesignal and always read the current working tree. -
Local-first. Everything runs locally against
<repo>/.codeatlas/; no implicit network calls, no whole-repo uploads (see PRIVACY.md). -
Deterministic before AI. Facts (symbols, graph, search) are computed statically; AI only adds summaries and explanations.
- Developers who want to ask an AI coding agent about a large repository without pasting files into a prompt.
- AI coding agents and MCP clients (Claude Desktop, Cursor, VS Code, …) that need structured, attributable context instead of grep output.
- Maintainers and contributors who want to extend the engine, add a Tool, or add a Skill (see REPOSITORY_MAP.md).
- Context engine — scanner, SHA-256 change detection, TypeScript parser, dependency graph, AI-optional summaries, SQLite storage, ranked fuzzy-aware search.
- Context SDK (
@prof-bilal/atlas-sdk) — the single read interface every consumer uses: files, symbols, dependencies, modules, summaries, search, project stats, and freshness. - MCP server (
@prof-bilal/atlas-mcp) — compatible context tools over stdio, includinglist_skills/get_skill, plus an opt-in seven-tool proof profile that writes local change state and runs only host-approved verification actions. - Skills — 13 first-party workflow Skills (planning, debugging,
verification, security review, MCP building, research, UI workflows) shipped
as canonical
SKILL.mdfiles, plus project-local Skills you author yourself.atlas skillslists and inspects them. - Tools (
atlas tools) — a curated, schema-validated tool registry with a per-tool manifest, a compatibility engine, a security/trust assessor, an approval-gated installer, and a configurator for installed agents. - Setup you control —
atlas setupshows what could be installed and installs only what you select. Installing RepoSpine itself never installs optional Tools or Skills. - Agent infrastructure — AI CLI connection layer, agent sessions
(
atlas sessions), usage & credits (atlas usage), and context → agent integration (atlas context launch). - VS Code extension (
@prof-bilal/atlas-extension) — activity bar, tree views, and palette commands over the SDK.
Requirements: Node.js >=22.13.0 (the storage layer uses the built-in
node:sqlite; every package shares that engine floor).
npm install --global repospine-cli
repospine --versionThis installs RepoSpine only — no Tools, no Skills, no config changes. Then choose what you want:
repospine setupOr build from source:
corepack enable
pnpm install
pnpm --filter repospine-cli buildSee docs/guides/installation.md.
atlas setup detects what kind of project you have, shows the available
options, and installs only what you pick:
$ atlas setup
CodeAtlas setup
Project: /work/my-app
Project evidence: frontend markers
Recommended Skills — already available, no install needed:
✓ webapp-testing — Test rendered web applications through observable behavior…
13 built-in Skills ship with RepoSpine; see them all with `repospine skills`.
Recommended Tools & Skills — installable (0):
none — the curated recommendations are built-in Skills
Optional — installable from the catalog (51):
1) changelog-generator [skill] (trust:community) — Turn verified change history into release evidence.
2) ...
Select items to install (numbers/ranges, e.g. 1,3-5; 'all'; 'none') [none]:
Nothing is pre-selected and nothing installs without your confirmation.
Non-interactive use: atlas setup --tools <id>[,<id>] --yes
(--dry-run plans without executing).
# Index a repository you want to understand.
atlas init --repo /absolute/path/to/your-project
# Search the generated context database.
atlas search authentication --repo /absolute/path/to/your-project
# Get safe, budgeted context for an AI task.
atlas context "fix the authentication tests" --repo /absolute/path/to/your-project
# See which Skills are available, then inspect one.
atlas skills
atlas skills info verification-before-completion
# Launch an agent seeded with that context and a Skill.
atlas context launch "fix the failing auth tests" --provider claude \
--skill verification-before-completion
# Keep the index in sync with the working tree.
atlas update --repo /absolute/path/to/your-projectFull walkthrough: docs/guides/getting-started.md.
31 top-level commands. The common ones:
atlas init|build|update [--repo <path>] Index / rebuild / incrementally update
atlas scan [--repo <path>] Hierarchical project overview (no indexing)
atlas search <query...> Search symbols, files, modules, summaries
atlas context <task>|launch|attach Build, launch, or attach budgeted context
atlas ask <question> Ranked context slice for one question
atlas explain <target> [--ai] Explain a symbol/file/module/concept
atlas skills [list|info|validate|load] Discover and inspect built-in + installed Skills
atlas tools [search|info|install|...] Registry, install, configure, doctor
atlas setup Choose which Tools/Skills to install
atlas mcp Start the MCP server over stdio
atlas sessions|usage|metrics Sessions, credits, token analytics
atlas agents|ollama|providers Detect AI CLIs; configure providers
atlas doctor [--json] Diagnose installation & project health
atlas claude|gemini|codex|opencode Launch that agent with context (sugar)
Every data-returning command supports --json. The CLI imports only
@prof-bilal/atlas-sdk (+ @prof-bilal/atlas-mcp for atlas mcp) — enforced by
ESLint. See docs/reference/CLI.md.
@prof-bilal/atlas-mcp exposes the context engine over stdio to any MCP client:
search, inspect, dependencies, summaries, project overview, bounded file reads,
plus list_skills / get_skill. Register it for installed agents with
atlas agents connect. See docs/reference/MCP.md.
The programmatic API every consumer uses instead of the database:
import { createContextSDK } from "@prof-bilal/atlas-sdk";
const context = createContextSDK({ repositoryPath: "/path/to/repo" });
const hits = context.search.search("authentication");
const signal = await context.freshness(); // fresh | stale | unknown | unavailable
context.close(); // releases the SQLite handleSee docs/reference/CONTEXT_SDK.md.
ATLAS_ROOT and ATLAS_DB control which index the CLI, MCP server, and SDK
resolve (ATLAS_DB wins). Index data lives in <repo>/.codeatlas/ (manifest,
context.db, tools/, installed skills, usage.db) and is gitignored. See
docs/guides/configuration.md and
docs/architecture/CONTEXT_STORAGE.md.
Clean architecture in a pnpm + TypeScript monorepo: contracts in packages/core,
implementations in feature packages, composition in packages/sdk.
Dependencies point inward and are enforced by ESLint.
┌───────────┐ ┌──────────────┐
│ atlas CLI│ │ VS Code ext. │
└─────┬─────┘ └──────┬───────┘
│ context only │
┌─────▼─────┐ ┌──────▼───────┐
│ MCP │ │ SDK │ ← composition root
└───────────┘ └──────┬───────┘
│
┌──────────┬───────────┬────────────┼──────────┬──────────┐
▼ ▼ ▼ ▼ ▼ ▼
Context Tools Skills Agents Usage Metrics
│ │ │ │ │ │
└──────────┴───────────┴────────────┴──────────┴──────────┘
▼
core (ports) → shared
apps/
cli/ # End-user CLI (Commander.js)
extension/ # VS Code extension
packages/
shared/ # Base types, Result, branded IDs, VERSION
core/ # Domain models + port interfaces (type-only)
scanner/ # Walking, ignore rules, manifest
hashing/ # SHA-256 hashing + change detection
parser/ # TypeScript parsing → normalized symbols
storage/ # SQLite persistence (node:sqlite)
graph/ # Dependency graph
context/ # Context rank & assembly (deterministic — ADR-001)
cache/ # Generic caching
providers/ # AI provider adapters
summary/ # AI-optional summaries
search/ # Ranked, fuzzy-aware search
agents/ # AI CLI connection layer
usage/ # Usage & credits
metrics/ # Local token/usage analytics
toolkit/ # Tool registry, manifests, installer, Skills loader
verifier/ # Claim verification
mcp/ # MCP server
sdk/ # Public API + composition root
docs/ # Documentation (see docs/README.md)
scripts/ # Build helpers
Read docs/architecture/ARCHITECTURE.md, docs/architecture/MODULES.md and docs/REPOSITORY_MAP.md.
[IMPLEMENTED] Core pipeline (scanner, hashing, manifest, parser, graph,
storage, search, summaries, cache, providers), Context SDK, MCP server, VS Code
extension, agent connection layer + sessions, usage tracking, context → agent
integration, Ollama tool loop, the Agent Toolkit (tool registry, manifests,
compatibility engine, installer, configurator, security/trust assessor, Skills
loader with 13 built-in Skills), and the atlas setup selection flow.
[PARTIAL] The parser handles TypeScript/JavaScript plus Python, Go, Java,
C#, and Rust (tree-sitter WASM grammars, behind the same LanguageParser
seam). Within TS/JS, namespaces and bare expressions are not extracted (renamed
imports and export default <expr> do resolve cross-file). Cross-file import
resolution for Java/C#/Go is a source-layout heuristic (no build-system/type
resolution); unresolved imports are counted, never guessed.
[PLANNED] /tools and /context slash surfaces, the standalone agent
router / slash commands, and the interactive TUI.
[REMOVED — postponed] Browser observation (atlas browse and the
Playwright-based BrowsePort layer) was removed for this phase; the four
UI/web Skills were re-pointed to the agent's own web fetch/search tools and the
project's own test tooling (see FEATURE_STATUS.md).
Ground truth: docs/CURRENT_STATE.md and docs/FEATURE_STATUS.md.
- Multi-language parsing is syntax-level — Python/Go/Java/C#/Rust are parsed with tree-sitter (names/references/imports), not a type checker; Java/C#/Go cross-file resolution is a source-layout heuristic.
- No streaming — provider responses arrive complete.
- No interactive TUI / slash commands —
atlas tuiand/claude,/tools,/agentsare not shipped. - MCP is tools + read-only resources — no MCP prompts yet.
- Search is lexical — vector/embedding search is a planned seam
(
RelevanceScorer), not wired. - No browser control — the Playwright-based browser layer was removed for this phase. The four UI/web Skills use the agent's own web fetch/search tools and the project's own test tooling; they never reference a browser runner.
- CI runs Ubuntu only; Windows/macOS are used in development but not exercised in CI.
pnpm install
pnpm check # typecheck + lint + format + test
pnpm test # unit/integration tests
npx vitest run packages/toolkit apps/cli # targeted tests
pnpm --filter repospine-cli build # build the CLI (copies Skills)See docs/contributing/DEVELOPMENT.md, docs/contributing/TESTING.md and docs/REPOSITORY_MAP.md.
Please read CONTRIBUTING.md and AGENTS.md first. Commits follow Conventional Commits; hooks enforce linting, formatting, typing, and commit conventions.
Report vulnerabilities privately — see SECURITY.md and docs/reference/SECURITY.md.
- Index & navigation: docs/README.md
- Repository map ("where do I add this?"): docs/REPOSITORY_MAP.md
- Current state: docs/CURRENT_STATE.md · docs/FEATURE_STATUS.md
- Architecture: docs/architecture/ARCHITECTURE.md · docs/architecture/MODULES.md · docs/architecture/DEPENDENCIES.md
- Security & privacy: docs/reference/SECURITY.md · docs/reference/PRIVACY.md