cartographer

module
v0.28.0-rc.20261107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0

README

Shared memory for your team's AI agents — one wiki they all read and grow, and none of them can break.
What a colleague's agent works out on Monday, yours already knows on Tuesday — even on another client.
Claude Code, Codex, OpenCode and [any MCP client](docs/mcp-clients.md): one Go binary, git underneath.

CI Release License MCP Listed on mcpservers.org

Drawn by the Atlas's own graph engine. Pre-1.0: breaking changes bump the minor version and are called out in the changelog.

Try it now

A live Cartographer — no install, no token, no sign-up. It serves two knowledge bases: an astronomy atlas to explore, and a guestbook where visitors' agents leave a message.

1. Connect your agent to https://cartographer-demo.beppetemp.com/mcp

  • Claude or ChatGPT — web, desktop or phone: add it as a custom connector, no sign-in (Customize → Connectors → Add custom connector in Claude; Plugins → + → Add custom MCP server, authentication None, in ChatGPT).
  • Claude Code: claude mcp add --transport http cartographer-demo https://cartographer-demo.beppetemp.com/mcp
Codex, OpenCode, Antigravity, GitHub Copilot CLI, Crush, Kiro
# Codex
codex mcp add cartographer-demo --url https://cartographer-demo.beppetemp.com/mcp
# OpenCode
opencode mcp add cartographer-demo --url https://cartographer-demo.beppetemp.com/mcp --global
# Antigravity
agy mcp add --type http cartographer-demo https://cartographer-demo.beppetemp.com/mcp
# GitHub Copilot CLI
copilot mcp add --transport http cartographer-demo https://cartographer-demo.beppetemp.com/mcp
# Crush
echo 'mcp add cartographer-demo --type http --url https://cartographer-demo.beppetemp.com/mcp' >> ~/.config/crush/crushrc
# Kiro: add to "mcpServers" in ~/.kiro/settings/mcp.json
#   "cartographer-demo": { "url": "https://cartographer-demo.beppetemp.com/mcp" }

2. Ask it something

  • "What does this knowledge base know about black holes, and what are they connected to?"
  • "Run a health check on the KB: what is broken, stale or missing?"
  • "Which skills, subagents and hooks would this KB install in my coding agent?"

3. Leave a message and watch it land

Ask "Leave a message in the guestbook: which client you are and what you would keep in a shared wiki", then open the live Atlas →: your note shows up in the graph next to the ones other people's agents left. Many agents, one wiki.

Everything is read-only except guestbook messages, which are public, anonymous, moderated and rate-limited. To give your agents a knowledge base of their own, see the Quick start.

Why

AI agents start every session from zero, and on a team every colleague's agent starts from its own zero: what one learns stays on that person's machine, in that client. The usual fixes each solve a third of the problem:

  • RAG retrieves, but nothing accumulates — the agent never gets to write down what it learned.
  • A folder of Markdown the agent edits freely ends in broken links, lost history and silent corruption.
  • Skills, subagents and instructions get hand-copied into .claude/, .codex/, .kiro/… and drift apart on every machine.

Cartographer puts all three in one place: your agents read and grow a knowledge base only through MCP tools, behind a server that enforces the rules, and the same knowledge base carries how your agents are set up.

What you get

  • 🧠 Memory that compounds
    A wiki the agent builds over time (Karpathy's LLM Wiki pattern): plain Markdown + YAML, one git repo per KB, readable in Obsidian or any editor. No lock-in.

  • 🛡️ Guardrails, not good intentions
    Schema validation, link checks, lint, immutability gates, optimistic concurrency, one commit per write, a signed audit log. The agent cannot leave the KB in a broken state.

  • 🧩 One KB configures every agent
    Skills, subagents, hooks and standing instructions live in the KB and reach each client in its native format (below). Edit once, every machine converges.

  • 🔌 Extend it with plugins
    A plugin is a git repository or a folder that adds clients, skills, subagents, hooks, commands and MCP tools, installed with one command, pinned to a commit and enabled only after you approve what it does.

  • 👥 Built for teams
    Several KBs behind one server — a native user service, a container or a Kubernetes workload — per-KB and per-map access with bearer-token roles, git as the sync layer, conflicts turned into a guided workflow, Ed25519-signed artifacts.

  • 🗺️ See it all in the Atlas
    A read-only web UI in the same binary: a living 3D graph, search, what the agents changed, what the KB ships to them, and what needs fixing. No extra service, no CDN.

  • 🔑 Secrets, done properly
    SOPS-encrypted values referenced by concepts and resolved on demand; plaintext is never stored.

The Atlas, served by the same binary, on a generated demo KB.

Quick start

You need git and an empty git repository you own (GitHub, Gitea, any host) to hold your first KB.

brew install beppetemp/tap/cartographer   # macOS — Windows, Linux and source: see Install
cartographer setup                        # server, first KB and your agents, in one guided step

setup shows its plan before touching anything, then installs the local service, creates the KB, connects every agent client it detects and verifies the result. Restart already-open agent sessions and ask your agent what it knows. Step by step: docs/getting-started.md.

Prefer to let your agent install it? Paste this:

Set up Cartographer on this machine by following
https://raw.githubusercontent.com/BeppeTemp/cartographer/main/docs/agent-install.md
My first knowledge base is at: `<git remote URL>`

If you are an agent asked to install Cartographer: follow that runbook, not the Quick start.

One KB, every agent

cartographer connect detects your installed clients and writes, in each one's own format:

Claude Code Codex OpenCode Kiro Antigravity Crush Copilot CLI Pi Cline
MCP endpoint ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Instructions ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Skills ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Subagents ✓ ✓ ✓ ✓ ✓ — ✓ — ✓
Hooks ✓ ✓ ✓ ✓ ✓ — ✓ ✓ ✓

Subagents and hooks are translated, not copied. Every — is a gap declared for a stated reason, never a silent omission. Cartographer re-syncs at session start (or on a timer where a client has no hook), restores files edited or deleted by hand, and only ever touches what it created. Exact paths and reasons: docs/sync.md. A client missing from the table (a fork, an in-house build) is added by a plugin, without waiting for a release: see docs/plugins.md.

Install

# macOS (Homebrew)
brew install beppetemp/tap/cartographer

# Windows (PowerShell; no administrator rights)
irm https://raw.githubusercontent.com/BeppeTemp/cartographer/main/install.ps1 | iex

# Linux / macOS without Homebrew
curl -fsSL https://raw.githubusercontent.com/BeppeTemp/cartographer/main/install.sh | sh

# From source (Go 1.26+)
go install github.com/BeppeTemp/cartographer/cmd/cartographer@latest

What lands where, upgrades and removal: docs/getting-started.md. Server configuration, environment variables and deployment topologies: docs/deployment.md.

Documentation

Browsable at beppetemp.github.io/cartographer; the map is docs/index.md.

  • Getting started — from zero to a working wiki
  • Overview — vision, principles, architecture
  • MCP tools — the full tool API
  • Deployment — topologies, configuration, backup
  • Sync — how artifacts reach each agent client
  • Plugins — add clients, commands and MCP tools, approved per version

Contributing

Bugs and ideas go to issues; a question starts from the FAQ. PRs are welcome: CONTRIBUTING.md covers building, testing and the PR flow. Cartographer is a personal project maintained on a best-effort basis. Security reports: SECURITY.md.

License

Apache License 2.0 — see LICENSE.

Directories

Path Synopsis
cmd
cartographer command
Command cartographer is the single binary for both sides of the Agentic Wiki: the MCP server (`serve`) and the multi-provider client that connects agent clients to it (`agents`, `connect`, `disconnect`, `reconnect`, `status`, `sync`).
Command cartographer is the single binary for both sides of the Agentic Wiki: the MCP server (`serve`) and the multi-provider client that connects agent clients to it (`agents`, `connect`, `disconnect`, `reconnect`, `status`, `sync`).
internal
agents
Package agents detects which LLM agent CLIs/apps are installed on the local machine (Claude Code, OpenCode, Codex CLI, Kiro, Antigravity, Crush, Copilot CLI, Pi, Cline), so `cartographer agents` and `cartographer connect all` know which providers to target.
Package agents detects which LLM agent CLIs/apps are installed on the local machine (Claude Code, OpenCode, Codex CLI, Kiro, Antigravity, Crush, Copilot CLI, Pi, Cline), so `cartographer agents` and `cartographer connect all` know which providers to target.
artifactsig
Package artifactsig signs and verifies provisioning artifact envelopes.
Package artifactsig signs and verifies provisioning artifact envelopes.
audit
Package audit implements Cartographer's local, tamper-evident audit trail.
Package audit implements Cartographer's local, tamper-evident audit trail.
auth
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a principal with a Policy, and the per-KB RBAC check the tools are gated on (`kb:<name>:r` / `kb:<name>:rw` scopes are parsed into Policy permissions).
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a principal with a Policy, and the per-KB RBAC check the tools are gated on (`kb:<name>:r` / `kb:<name>:rw` scopes are parsed into Policy permissions).
blocktext
Package blocktext implements the marker-delimited "managed block" primitive used by every Cartographer feature that must own a slice of a hand-curated user file (comments, ordering, everything else preserved) without parsing the file's own format: the Codex MCP server entry and per-hook registrations in config.toml (D58, TOML `#` comment markers).
Package blocktext implements the marker-delimited "managed block" primitive used by every Cartographer feature that must own a slice of a hand-curated user file (comments, ordering, everything else preserved) without parsing the file's own format: the Codex MCP server entry and per-hook registrations in config.toml (D58, TOML `#` comment markers).
changelog
Package changelog groups the newest section of a release-please changelog by area, and checks the PR body lines that section is built from (D865).
Package changelog groups the newest section of a release-please changelog by area, and checks the PR body lines that section is built from (D865).
changelog/gen command
Command gen groups a release-please changelog by area and checks PR bodies for wrapped conventional lines (D865):
Command gen groups a release-please changelog by area and checks PR bodies for wrapped conventional lines (D865):
client
Package client implements a minimal MCP client over HTTP (JSON-RPC 2.0), used by `cartographer agents/connect/status/sync` to talk to a remote cartographer server.
Package client implements a minimal MCP client over HTTP (JSON-RPC 2.0), used by `cartographer agents/connect/status/sync` to talk to a remote cartographer server.
clientconfig
Package clientconfig reads and writes the client-side `.cartographer.yaml` file: the record of which server this machine talks to and which agent providers have been connected via `cartographer connect`.
Package clientconfig reads and writes the client-side `.cartographer.yaml` file: the record of which server this machine talks to and which agent providers have been connected via `cartographer connect`.
config
Package config provides the YAML-based server configuration for `cartographer serve`, merged with environment variables and CLI flags.
Package config provides the YAML-based server configuration for `cartographer serve`, merged with environment variables and CLI flags.
configurator
Package configurator generates MCP configuration files for multiple LLM providers (Claude Code, Codex CLI, Kiro, OpenCode, Antigravity, Crush, GitHub Copilot CLI).
Package configurator generates MCP configuration files for multiple LLM providers (Claude Code, Codex CLI, Kiro, OpenCode, Antigravity, Crush, GitHub Copilot CLI).
defaults
Package defaults contains the local endpoint values shared by the native service and client first-run paths.
Package defaults contains the local endpoint values shared by the native service and client first-run paths.
execbit
Package execbit reports whether the host filesystem carries the POSIX execute bit, and is the one place that answers that question.
Package execbit reports whether the host filesystem carries the POSIX execute bit, and is the one place that answers that question.
gitx
Package gitx provides a git wrapper via os/exec for the Agentic Wiki.
Package gitx provides a git wrapper via os/exec for the Agentic Wiki.
gitx/gitxtest
Package gitxtest is a git smart-HTTP server for tests (D996): the real git-http-backend behind basic authentication, in process, so a test meets what a forge's HTTPS endpoint does (a 401, a credential helper, a pre-receive hook's "remote:" lines) without a network.
Package gitxtest is a git smart-HTTP server for tests (D996): the real git-http-backend behind basic authentication, in process, so a test meets what a forge's HTTPS endpoint does (a 401, a credential helper, a pre-receive hook's "remote:" lines) without a network.
graphalgo
Package graphalgo holds the graph algorithms behind the retrieval tools (D242): personalized PageRank, BFS, shortest paths and link prediction over an int-indexed adjacency.
Package graphalgo holds the graph algorithms behind the retrieval tools (D242): personalized PageRank, BFS, shortest paths and link prediction over an int-indexed adjacency.
jsonorder
Package jsonorder reads and writes a JSON object without reformatting what the edit did not touch (#1198, #1502): the key order of every object read, the indent unit (tabs included), CRLF, the final newline and the exact digits of a number (json.Number) survive a read-modify-write, and HTML characters are not escaped (`&&` in another tool's command stays as written).
Package jsonorder reads and writes a JSON object without reformatting what the edit did not touch (#1198, #1502): the key order of every object read, the indent unit (tabs included), CRLF, the final newline and the exact digits of a number (json.Number) survive a read-modify-write, and HTML characters are not escaped (`&&` in another tool's command stays as written).
kb
Package kb implements the data plane of the OKF knowledge base.
Package kb implements the data plane of the OKF knowledge base.
kbtest
Package kbtest copies a pre-built KB into a test directory.
Package kbtest copies a pre-built KB into a test directory.
lint
Package lint implements deterministic lint checks on a KB scope.
Package lint implements deterministic lint checks on a KB scope.
mcpbridge
Package mcpbridge is the local stdio MCP server that scopes one agent session to the KBs of the folder it was started in (D737).
Package mcpbridge is the local stdio MCP server that scopes one agent session to the KBs of the folder it was started in (D737).
mcpserver
Package mcpserver implements the control plane: the MCP protocol over stdio and Streamable HTTP, and the tool registry that exposes a KB to an agent.
Package mcpserver implements the control plane: the MCP protocol over stdio and Streamable HTTP, and the tool registry that exposes a KB to an agent.
okf
Package okf — parser/serializer for the YAML subset used in OKF frontmatter.
Package okf — parser/serializer for the YAML subset used in OKF frontmatter.
plugin
Package plugin reads and checks a Cartographer plugin: a folder or git repository with a cartographer-plugin.yaml manifest at its root.
Package plugin reads and checks a Cartographer plugin: a folder or git repository with a cartographer-plugin.yaml manifest at its root.
plugin/star
Package star runs the Starlark script of a plugin: plugin.star at the root and the lib/*.star files it loads.
Package star runs the Starlark script of a plugin: plugin.star at the root and the lib/*.star files it loads.
procattr
Package procattr sets the process attributes every child of Cartographer shares.
Package procattr sets the process attributes every child of Cartographer shares.
provisioning
Package provisioning manages the synchronization of artifacts (skill, agent, hook — D48; instructions — D56; mcp, third-party MCP servers from KBs — D69) between the Cartographer server and the LLM client (CLI or MCP tool).
Package provisioning manages the synchronization of artifacts (skill, agent, hook — D48; instructions — D56; mcp, third-party MCP servers from KBs — D69) between the Cartographer server and the LLM client (CLI or MCP tool).
repodocs
Package repodocs holds the deterministic checks that keep this repository navigable by a coding agent, plus the generators for the decision index and the code map.
Package repodocs holds the deterministic checks that keep this repository navigable by a coding agent, plus the generators for the decision index and the code map.
repoindex
Package repoindex resolves `{{repo:<key>}}` placeholders (D75) to a local clone path: it scans a set of search roots for git repositories, reads each one's `origin` remote from `.git/config` (no `git` exec — the file is parsed directly, see readOriginURL), and normalizes the remote URL to a canonical "host/owner/name" key that is stable across every machine on the team.
Package repoindex resolves `{{repo:<key>}}` placeholders (D75) to a local clone path: it scans a set of search roots for git repositories, reads each one's `origin` remote from `.git/config` (no `git` exec — the file is parsed directly, see readOriginURL), and normalizes the remote URL to a canonical "host/owner/name" key that is stable across every machine on the team.
safewrite
Package safewrite guards client-side writes against symlinks.
Package safewrite guards client-side writes against symlinks.
search
Package search implements an in-memory inverted keyword index for KB concepts.
Package search implements an in-memory inverted keyword index for KB concepts.
service
Package service manages the cartographer MCP server as a native per-user service: a launchd agent on macOS, a systemd user unit on Linux, a per-user Scheduled Task on Windows (D217).
Package service manages the cartographer MCP server as a native per-user service: a launchd agent on macOS, a systemd user unit on Linux, a per-user Scheduled Task on Windows (D217).
settingschema
Package settingschema describes the keys of a settings file once, in code, and renders that description as comments inside the YAML file (D747).
Package settingschema describes the keys of a settings file once, in code, and renders that description as comments inside the YAML file (D747).
skill
Package skill implements loading and validation of SKILL.md files (agentskills.io format).
Package skill implements loading and validation of SKILL.md files (agentskills.io format).
skillbundle
Package skillbundle embeds the skills shipped inside the binary (bundled/) so a fresh install can provision an agent client before any KB exists.
Package skillbundle embeds the skills shipped inside the binary (bundled/) so a fresh install can provision an agent client before any KB exists.
sops
Package sops decrypts sops-encrypted KB secrets and resolves the references a concept declares, turning them into the environment a skill runs with.
Package sops decrypts sops-encrypted KB secrets and resolves the references a concept declares, turning them into the environment a skill runs with.
sqlindex
Package sqlindex implements a persistent SQLite-backed keyword index.
Package sqlindex implements a persistent SQLite-backed keyword index.
testkbs
Package testkbs generates the synthetic test Knowledge Bases `make dev` serves (D818, D1032): eleven KBs, built to put every Atlas view in a state worth looking at — Maps with every contract key, work in every status, sources, contradictions, services, secrets, artifacts, placeholders, planted lint defects, a git history with revisions, moves and repairs, and the local state (lint trend, search misses, conflicts, usage) the server keeps beside the repository.
Package testkbs generates the synthetic test Knowledge Bases `make dev` serves (D818, D1032): eleven KBs, built to put every Atlas view in a state worth looking at — Maps with every contract key, work in every status, sources, contradictions, services, secrets, artifacts, placeholders, planted lint defects, a git history with revisions, moves and repairs, and the local state (lint trend, search misses, conflicts, usage) the server keeps beside the repository.
testkbs/gen command
Command gen writes the test KB fleet of package testkbs into a data directory, one subdirectory per KB: `go run ./internal/testkbs/gen <dir>`, and beside them the client settings report of an imaginary workstation (client-report.json, not a KB).
Command gen writes the test KB fleet of package testkbs into a data directory, one subdirectory per KB: `go run ./internal/testkbs/gen <dir>`, and beside them the client settings report of an imaginary workstation (client-report.json, not a KB).
testtree
Package testtree snapshots a directory tree in memory and restores it elsewhere.
Package testtree snapshots a directory tree in memory and restores it elsewhere.
tray
Package tray is the core of the local server's status icon (D1482): the health model of the local server, the poll loop that keeps it current and the generated monochrome icons.
Package tray is the core of the local server's status icon (D1482): the health model of the local server, the poll loop that keeps it current and the generated monochrome icons.
updatecheck
Package updatecheck answers whether a newer Cartographer release exists and how this binary is upgraded (D254): the latest tag from the GitHub release list, cached for 24 hours and failing silent, and the install channel the running binary came from.
Package updatecheck answers whether a newer Cartographer release exists and how this binary is upgraded (D254): the latest tag from the GitHub release list, cached for 24 hours and failing silent, and the install channel the running binary came from.
webui
Package webui serves the embedded read-only Atlas UI (D227).
Package webui serves the embedded read-only Atlas UI (D227).
webui/gen command
Command webui-provenance writes internal/webui/dist/provenance.json with the hash of the web/ source tree.
Command webui-provenance writes internal/webui/dist/provenance.json with the hash of the web/ source tree.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL