cartographer

module
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0

README ΒΆ

One home for everything your AI agents know β€” and everything that makes them work.
Memory they build, skills they share, rules they cannot break: one binary, every agent client, a whole team.

CI Release License MCP

The Atlas, served by the same binary, on a generated demo KB. Pre-1.0: breaking changes bump the minor version and are called out in the changelog.

Why

AI agents start every session from zero. 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, behind a server that enforces the rules. Your agents read and grow a knowledge base only through MCP tools; every write is validated, linked and committed to git. The same knowledge base also carries how your agents are set up, and Cartographer installs that into every client you use.

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 are translated into each client's native format β€” Claude Code, Codex, OpenCode, Kiro, Antigravity, Crush, Hermes. Edit once, every machine converges.

  • πŸ‘₯ Built for teams
    Several KBs behind one server, 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.

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 Hermes
MCP endpoint βœ“ βœ“ βœ“ βœ“ βœ“ βœ“ β€”
Instructions βœ“ βœ“ βœ“ βœ“ βœ“ βœ“ β€”
Skills βœ“ βœ“ βœ“ βœ“ βœ“ βœ“ inbox
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 there is no hook; setup and connect install that timer themselves when a connected client needs it, and cartographer service sync-timer uninstall is the remembered opt-out), restores files edited or deleted by hand, and only ever touches what it created. Exact paths and reasons: docs/sync.md.

How it works

flowchart LR
    A["πŸ€– Agents<br/><i>Claude Code, Codex, Kiro…</i>"]
    S["Cartographer<br/><i>one Go binary</i>"]
    KB[("KB<br/>Markdown + git")]
    R[("git remote")]
    U["πŸ—ΊοΈ Atlas UI"]
    A -- "MCP tools" --> S
    S -- "skills, subagents,<br/>hooks, instructions" --> A
    S -- "one commit<br/>per write" --> KB
    KB -. "sync" .-> R
    S --> U

The agent never touches the files. MCP carries data and capabilities, skills carry procedural know-how loaded on demand, hooks carry zero-token automation. Run it over stdio for one client and one KB, or as an HTTP server β€” a native user service, a container or a Kubernetes workload β€” for many KBs and many people. Design: docs/overview.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

Contributing

Issues and 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, Hermes, Antigravity), 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, Hermes, Antigravity), 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 set of scopes, and the per-KB RBAC check (`kb:<name>:r` / `kb:<name>:rw`) the tools are gated on.
Package auth implements bearer-token authorization for the HTTP transport: the token store, the middleware that resolves a request to a set of scopes, and the per-KB RBAC check (`kb:<name>:r` / `kb:<name>:rw`) the tools are gated on.
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).
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, Hermes, Antigravity, Crush).
Package configurator generates MCP configuration files for multiple LLM providers (Claude Code, Codex CLI, Kiro, OpenCode, Hermes, Antigravity, Crush).
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.
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.
kb
Package kb implements the data plane of the OKF knowledge base.
Package kb implements the data plane of the OKF knowledge base.
lint
Package lint implements deterministic lint checks on a KB scope.
Package lint implements deterministic lint checks on a KB scope.
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.
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.
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).
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.
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