Cartograph
Cartograph provides task-focused repository context for coding agents. It ships a CLI, an MCP server, install adapters for Claude Code, OpenClaw, and Hermes, and agent assets for documentation workflows.
Instead of dumping an entire repository into context, Cartograph ranks the files that matter, maps dependencies, caches structured artifacts, and lets the next tool or agent pick up from those artifacts.
The primary workflow is:
analyze to map the repo
packet to prepare the work
context --static to load task-matched files without a model call
wiki, host installs, and benchmarks are secondary surfaces built around that core path.
Install
npm install
npm run build
For global use from npm:
npm install -g @anthony-maio/cartograph
For MCP host discovery via the official registry:
For Claude Code plugin install from this public repo:
/plugin marketplace add anthony-maio/cartograph
/plugin install cartograph@making-minds-tools
For global use from a local checkout:
npm install -g .
See CONTRIBUTING.md for the development workflow and SECURITY.md for vulnerability reporting.
Run a complete example
The npm package includes a small refresh-token example. From a new working directory:
npm init -y
npm install @anthony-maio/[email protected]
npx cartograph analyze ./node_modules/@anthony-maio/cartograph/examples/auth-refresh --static
npx cartograph packet ./node_modules/@anthony-maio/cartograph/examples/auth-refresh --type bug-fix --task "fix refresh token expiry"
npx cartograph context ./node_modules/@anthony-maio/cartograph/examples/auth-refresh --task "fix refresh token expiry" --static --json
node --test ./node_modules/@anthony-maio/cartograph/examples/auth-refresh/tests/auth-refresh.test.js
The packet should point to src/auth/refresh.js and tests/auth-refresh.test.js. The context bundle includes the clock helper and leaves unrelated billing/catalog files out. The three behavioral checks should pass. Walk through the investigation for expected results and how to apply the same process to your repository.
Hermes plugin
The native Hermes plugin exposes cartograph_analyze for repository orientation and cartograph_context for task-focused source excerpts. Both run locally in static mode without a model API call. Install the npm package and its included adapter:
npm install -g @anthony-maio/[email protected]
cartograph install hermes
hermes plugins enable cartograph
cartograph doctor hermes
Run these commands in the same OS environment as Hermes. For Hermes in WSL, use WSL Node and repository paths such as /mnt/d/Development/cartograph. Restart an existing Hermes session to load the tools. The installer binds the plugin to the installed CLI; rerun the install command after moving the package or changing Node.
See the Hermes setup and real-repository example for profile settings, verification, and removal. The plugin caches source excerpts under the selected Hermes profile and supports an optional repository allowlist. Static matching can miss relevant code, so check the returned source before editing.
For a Hermes-managed plugin checkout, see the standalone plugin guide
and the commit-pinned installation option.
Claude Code Plugin
This repo also acts as a Claude Code plugin marketplace. The cartograph plugin bundles:
- a plugin-scoped Cartograph MCP server
- slash commands:
/cartograph:analyze, /cartograph:context, /cartograph:wiki
- the
use-cartograph and repo-surveyor skills
- the documentation-agent bundle:
repo-scout, dependency-tracer, context-picker, api-surface-writer, and wiki-writer
Install it with:
/plugin marketplace add anthony-maio/cartograph
/plugin install cartograph@making-minds-tools
Primary Workflow
If you only remember one thing, remember this:
cartograph analyze <repo> --static
cartograph packet <repo> --type <type> --task "<task>"
cartograph context <repo> --task "<task>" --static --json