by crabbuild
Native, local-first knowledge graph engine for code and project artifacts—inspired by Graphify, built in Rust, and evolving beyond it.
# Add to your Claude Code skills
git clone https://github.com/crabbuild/compasscompass is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by crabbuild. Native, local-first knowledge graph engine for code and project artifacts—inspired by Graphify, built in Rust, and evolving beyond it. It has 176 GitHub stars.
compass's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/crabbuild/compass" and add it to your Claude Code skills directory (see the Installation section above).
compass is primarily written in Rust. It is open-source under crabbuild on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh compass against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Compass turns source code and project artifacts into a directed, queryable knowledge graph. It gives people and coding assistants a shared map of symbols, files, communities, relationships, and evidence.
large codebase
|
v
Compass -----> architecture map
| \-> dependency and impact answers
| \-> exact CompassQL results
| \-> historical graph diffs
| \-> focused context for assistants
v
less searching, smaller context, traceable evidence
Compass covers the path from repository orientation to verified automation:
| Need | Compass capability |
|---|---|
| Understand an unfamiliar repository | Communities, architecture reports, god-node detection, and interactive HTML |
| Find implementation paths | Natural-language graph discovery, symbol explanations, and directed paths |
| Estimate change impact | Reverse dependency traversal and version-to-version topology diffs |
| Automate structural checks | Deterministic, read-only CompassQL with JSON and JSONL output |
| Ask questions about old revisions | Immutable graph realizations for exact Git commits |
| Give assistants focused context | Native skills, hooks, MCP serving, and compact graph queries |
| Connect other tools | Graph JSON, GraphML, SVG, Wiki, Obsidian, Neo4j, FalkorDB, and other exports |
Structural extraction and graph queries run locally. They do not require Python, embeddings, a vector database, model credentials, or runtime parser downloads.
Compass exports a self-contained workbench. Move from a repository map to subsystem flow, call evidence, or bounded dependency neighborhoods without changing snapshots.
These are real Compass exports from public repositories, not product mockups: BurntSushi/ripgrep and CLIUtils/CLI11. Counts and visible symbols reflect those exact revisions and will change as the projects evolve.
| Question | Compass surface |
|---|---|
| Where does this subsystem live? | Communities, architecture flow, ownership, and source details |
| Which areas need attention first? | Communities, architecture reports, god-node detection, and interactive HTML |
| What calls this function? | Bounded caller and callee graphs with direction and depth controls |
| What could this change affect? | Reverse dependency paths, affected nodes, and evidence limits |
| Which files belong to this workflow? | Search, explanations, paths, and relationship filters |
| How do I automate structural checks? | Deterministic, read-only CompassQL with JSON and JSONL output |
| What changed between revisions? | Immutable historical graphs and semantic diffs over exact Git commits |
| How do assistants stay focused? | Native skills, hooks, MCP serving, and compact graph queries |
| How do I share the result? | VS Code, self-contained HTML, JSON, GraphML, SVG, Wiki, Obsidian, Neo4j, FalkorDB, and MCP integrations |
On macOS or Linux, use the installer for Apple Silicon or Intel and AMD systems:
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/crabbuild/compass/releases/latest/download/install.sh | sh
On Windows, use the installer for x64 or ARM64 systems:
irm https://github.com/crabbuild/compass/releases/latest/download/install.ps1 | iex
For an offline install, download the matching archive and .sha256 file from the latest release, verify the checksum, extract the archive, and add the directory to PATH.
To build from source, use the pinned Rust 1.97.1 or newer toolchain:
git clone https://github.com/crabbuild/compass.git
cd compass
cargo install --locked --path crates/compass-cli --bin compass
You can also use the repository installer:
make install
make install uses ~/.cargo/bin when it exists. Otherwise, it creates and uses ~/.local/bin. Set BINDIR when you want a different destination:
make install BINDIR="$HOME/bin"
Upgrade an installed Compass executable with compass upgrade.
Compass reads a bounded static release manifest, verifies the selected archive size and SHA-256 digest, and checks the staged executable version before replacement. The upgrade path does not use the rate-limited GitHub REST API. When no newer release exists, the command exits successfully and reports the installed version.
cd your-project
compass init
compass init previews the eligible corpus, saves the project scope in .compass/config.toml, and performs the first structural build. Compass writes a coherent snapshot under compass-out/.
For a focused monorepo scope, pass include and exclude patterns during initialization:
compass init . --include src --include 'services/*/src' --exclude '**/generated/**' --yes
compass-out/
├── graph.json machine-readable graph
├── GRAPH_REPORT.md architecture and community summary
├── orientation.json bounded orientation for assistants
├── graph.html interactive visualization when size permits
├── manifest.json incremental build state
├── snapshots/ retained coherent build snapshots
├── current-snapshot selected snapshot identifier
└── store/ SQLite query index when enabled
After setup, compass update and compass watch reuse the saved scope automatically.
Keep the graph current while you work:
compass watch
Run compass watch in a second terminal. It reuses the saved scope and refreshes the graph as files change.
Use Compass as a local context layer for coding assistants. The complete loop is:
compass init
compass install
compass watch
Run compass watch in a second terminal. For a focused task, an installed assistant starts with compass query "your_question_here". For a first session or broad repository orientation, it reads the bounded Agent Orientation at the start of compass-out/GRAPH_REPORT.md, then runs a focused query.
compass query "where is authentication enforced?"
compass query "where is authentication enforced?" --evidence
compass query "where is authentication enforced?" --cursor 'query_cursor_token'
compass explain TokenVerifier
compass path ApiHandler TokenVerifier
compass affected TokenVerifier --depth 3
These commands read the saved graph locally. Results are bounded, read-only, and tied to graph evidence instead of a model-generated guess.
Plain-language query uses bounded structured discovery. Its default text is a concise map of seeds, nodes, edges, and source locations; pass --evidence for full provenance and semantic digests. Each page contains complete deterministic entries within the --text-budget value, which defaults to 8,000. Follow next=query_cursor_token with the unchanged question and evidence