Sandbox
@styler-ai/ProjectAtlas

Rust MCP server for repository maps

ProjectAtlas keeps a project-local SQLite map of a repository and exposes it to agents through MCP and a CLI. It uses folder and file purposes, graph links, summaries, symbols, search, and exact source slices to help agents narrow before they read.

407 stars11 forksRustUpdated 6d ago
Who it's for

Builders who want their agent to find the right files in a large repository before spending context on the wrong ones.

What it delivers

You can guide an agent to the right code with less repeated reading and less context waste.

What it does

Project-local repository map

Scans the repo into `.projectatlas/` with folders, files, purposes, summaries, symbols, graph relations, search text, and health findings.

Agent-first navigation

Returns ranked candidates, summaries, relations, and exact source slices so an agent can narrow before reading broadly.

MCP and CLI access

Provides a native CLI plus MCP tools for Codex, Claude Code, OpenCode, and other MCP-capable agents.

Worktree support

Can register and hydrate existing Git worktrees with short aliases and isolated local databases.

Project-local runtime state

Keeps configuration, indexes, and telemetry beside the repo instead of using a hosted index or credentials.

Token impact view

Includes a local TUI that reports estimated tokens avoided, file reads avoided, and repository-wide navigation work.

How to get it

  1. 1The Codex plugin is the recommended path
    codex plugin marketplace add styler-ai/ProjectAtlas --ref v0.4.5
    codex plugin add projectatlas --marketplace projectatlas
  2. 2Initialize each repository once
    projectatlas init

README

ProjectAtlas

ProjectAtlas mascot Ani holding a repository map labeled src, docs, tests, and issues

Rust-native, high-performance local repository intelligence for coding agents and large codebases.
A persistent SQLite map guides Codex, Claude Code, OpenCode, and other MCP-capable agents to the right code before they spend context reading the wrong files.

CI release rust license

About

Every file not opened. Every folder not explored. ProjectAtlas guides coding agents with purpose metadata and an intelligent code graph, reducing token costs by over 90%.

The "over 90%" figure is a workload-specific local estimate from the published audit, not a universal savings guarantee or provider-billing result; see One Large-Application Audit.

ProjectAtlas is a native Rust CLI and MCP server that keeps a project-local map of folders, files, reviewed purposes, deterministic summaries, symbols, graph relationships, searchable text, health findings, and token telemetry. .gitignore-aware scanning, BLAKE3 hashing, SQLite storage, filesystem watching, and compact TOON output keep repeated repository orientation local and fast.

The map is deliberately agent-first: purposes identify the responsible area, graph relationships reveal connected code, compact summaries and outlines explain the selected files, and exact source slices provide the final evidence. Agents narrow before they read broadly.

No required .purpose files. No source-header tax. No hosted index or credentials. Project state lives beside the repository in .projectatlas/.

Install

Point your agent to the ProjectAtlas GitHub repository and ask it to install the latest version of ProjectAtlas.

The Codex plugin is the recommended path:

codex plugin marketplace add styler-ai/ProjectAtlas --ref v0.4.5
codex plugin add projectatlas --marketplace projectatlas

Then tell Codex: “Use ProjectAtlas for this repo.”

RouteWhen to use it
Codex pluginRecommended agent setup; supplies the version-matched skill, native runtime installer, and MCP templates.
Native releaseInstall a verified prebuilt binary without Rust/Cargo.
Cargocargo install --git https://github.com/styler-ai/ProjectAtlas --tag v0.4.5 projectatlas-cli --locked
Claude Code / OpenCodeRun the native installer, then projectatlas init; it writes their version-matched project-local MCP configs.

Initialize each repository once:

projectatlas init

That creates the project-local database, performs the initial index, and writes version-matched host configs. See installation, upgrades, and runtime repair for stale plugin caches, PATH conflicts, generated Claude Code/OpenCode configs, and manual installer commands.

See The Atlas

projectatlas token --view tui

ProjectAtlas token-impact TUI showing estimated tokens avoided, file reads avoided, measured and modeled navigation work, savings composition, source rows, and a bounded Atlas map

Compare the live dashboard with the versioned TUI design reference.

The TUI is a local snapshot, not provider billing data. In a control checkout with registered worktrees, it combines native-control and active/retired worktree aggregates without changing the dashboard layout; an exact worktree report remains local. It also shows the reconciled token estimate, observed and modeled navigation work, source attribution, calibration status, and—at wide terminal sizes—a bounded live map from resolved repository relations. Rerun the command to refresh it; use --theme light for light terminals or --theme terminal to preserve the terminal background.

Read the token methodology or the TUI and agent-integration guide for the detailed accounting and theme controls.

How Agents Use It

  1. Bind the intended project and refresh only when the index may be stale.
  2. Start with one atlas_session_brief using compact: true.
  3. Follow its returned summary, search, relation, health, or exact-slice call.
  4. Continue from returned selectors instead of repeating discovery.
  5. Open the smallest exact source slice needed for the answer.

atlas_overviewatlas_foldersatlas_files remains the fallback when broader repository shape is itself the task. Continuous watch or bounded watch --once keeps active work fresh.

The complete agent and MCP workflow owns tool routing, project isolation, generated host configuration, cancellation, and runtime repair. The workflow guide covers human CLI use.

Work Across Existing Git Worktrees

ProjectAtlas v0.4.5 lets an agent stay in one selected control checkout and address existing Git worktrees anywhere on the filesystem by short MCP alias:

atlas_worktree_list(include_retired: false)
atlas_worktree_add(worktree: "<returned-stable-selector>", alias: "issue-430")
atlas_init(worktree: "issue-430")
atlas_session_brief(worktree: "issue-430", query: "target behavior", compact: true)

A missing target atlas can reuse validated control-atlas data, then reconcile the exact branch and dirty files into its own writable database. main names the selected control atlas, not a branch or folder. It owns labelled read-only federation and repository-wide token totals; unregister retains accepted totals without deleting Git, source, .projectatlas, or SQLite state.

Git remains the worktree lifecycle authority. See Worktree atlas continuity for isolation, recovery, and diagrams; team-shared released atlases remain future issue #456 work.

What Agents Get

NeedProjectAtlas surface
Task-oriented startupProject identity, index state, ranked candidates, blockers, and one ready next call
ResponsibilityReviewed folder/file purposes before broad source reads
ConnectionsSymbols and resolved graph relationships with bounded selectors
Exact evidenceCurrent summaries, outlines, searches, and source slices
Freshness.gitignore-aware scan plus incremental watcher refresh
Worktree continuityShort-alias routing, safe target hydration, labelled read-only federation, and exact isolated databases
MaintenancePurpose queues, health findings, lint, and project-local configuration
Human overviewThe existing token-impact TUI with repository-wide control totals and a bounded Atlas map

See the CLI/MCP capability guide, configuration reference, and generated language and relation support inventories.

One Large-Application Audit

The chart and table below describe one representative audit, not a universal savings constant. The default local estimator is ceil(chars_or_bytes / 4) and is separate from provider billing. ProjectAtlas reports measured source compression separately from modeled navigation narrowing. In v0.4.4, the primary tokens_avoided/average_tokens_avoided value admits 50% of the deduped aggregate folder-navigation baseline, charges the complete Atlas payload, and leaves every other category unchanged. maximum_tokens_avoided retains the all-files folder-scope calculation.

One large-application audit: 221.1 million estimated tokens without ProjectAtlas and 0.4 million with ProjectAtlas across 142 calls

Audit signalResult
Repository shape679 files · 206 folders
Indexed intelligence5,145 symbols · 12,122 relations
ProjectAtlas lookups142
Average baseline avoided per lookup1,557,144 estimated tokens
Average ProjectAtlas payload2,997 estimated tokens
Estimated without / with ProjectAtlas221,114,448 / 425,622 tokens
Legacy gross estimated saved220,688,826 tokens
Observed savings rate in this one audit99.8%

Warm indexed CLI reads in the same audit stayed around 160–166 ms. Repository shape, hardware, database state, command bounds, and access pattern all matter; initial scan/build work is separate. The audit report owns the formulas, corpus details, command samples, caveats, and current telemetry-field meanings.

Release Quality

v0.4.5 ships through the full release matrix:

  • Rust format, check, clippy, dependency policy, tests, doctests, and rustdoc.
  • Linux x64, Windows x64, macOS x64, and macOS arm64 native packages.
  • Prepublish and postpublish packaged-runtime installer smokes.
  • Codex plugin plus Claude Code/OpenCode generated MCP-config checks.

Full benchmark campaigns are manual-only and run only when explicitly requested.

ProjectAtlas v0.4.5 promotes the tested RC3 line to stable. The RC1, RC2, and RC3 notes cover worktree navigation, stabilization, and the shared root-cause fixes included in this release.

Documentation

TopicGuide
Install, agent workflow, MCP, host configs, runtime repairAgent integration
Scan, ignore, purpose, and runtime settingsConfiguration
Human CLI workflowWorkflow
Existing Git worktree registration, hydration, routing, federation, and token continuityWorktree atlas continuity
v0.4.5-rc2 stabilization, compatibility, boundaries, and proof policyRC2 release notes
Formats and compact agent outputFormat
Structural summariesStructural summaries
Language and relation coverageLanguage support · Relation support
Token methodology and large-app auditToken-savings audit
System, database, indexing, navigation, and packaging designArchitecture
Published site and Rust API docsProjectAtlas Pages · CLI/runtime crate

License

MIT. See LICENSE.

Files in the repo

Repository payload24 top-level entries
  • .agents
  • .cargo
  • .githooks
  • .github
  • .projectatlas
  • crates
  • docs
  • fixtures
  • openspec
  • packaging
  • plugins
  • skills
  • templates
  • .gitattributes
  • .gitignore
  • Cargo.lock
  • Cargo.toml
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • deny.toml
  • LICENSE
  • README.md
  • rust-toolchain.toml
  • SECURITY.md

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 connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k