Documentation · Context Map
Context Map & Live Context
Decispher serves your engineering context in two layers: one committed to your repo, one served live over MCP. This page covers the folder layout, topic discovery, the three-tool fetch chain, and how to opt an agent out.
The two layers
One memory, served two ways
Loading every decision your team ever made into an agent on every session is wasteful, and most of it is irrelevant to the change at hand. Decispher splits the corpus into a tier an agent should always have, and a tier it should fetch on demand.
The spine (always-true critical rules) and a book-style topic index. Version-controlled inside .decispher/, loaded by every agent for free.
The full unit bodies, topic clusters, and semantic search. Fetched in real time, metered per call, receipted in your ledger.
.decispher/ layout
The folder Decispher commits
Decispher opens a pull request that writes the .decispher/ tree to your repo. Every file is generated, so never edit by hand; your changes are overwritten on the next sync.
.decispher/
├── README.md # "do not edit" + folder map
├── overview.md # the book index: topics + when to load
├── index.json # machine-readable topic map for agents
├── decisions.md # Decision Guardian strict format
├── context-rules.json # CI enforcement manifest (thin)
└── topics/
├── auth.md # spine inline + expansion unit IDs
├── database.md
└── billing.mdoverview.mdStart here. The always-true rules, the topic list with unit counts, and recent changes.
index.jsonThe same map, machine-readable. MCP clients and CI read this instead of parsing markdown.
topics/<topic>.mdOne stub per topic: spine items inline, plus the ID + title of every expansion unit. No full bodies.
decisions.md / context-rules.jsonDecision Guardian strict format. Parsed by the GitHub Action in CI; deliberately thin so agents still call MCP.
How agents discover topics
Topics are stable, canonical labels
A topic (auth, database, billing) is a slug drawn from Decispher's canonical taxonomy. Topic names never drift across syncs, so a reference committed in overview.md stays valid. Each context unit is assigned to a small number of topics automatically, and a unit that does not clearly belong anywhere is left unassigned for review rather than forced into the nearest topic.
An agent discovers topics two ways. From disk: read .decispher/overview.md or index.json. At runtime: call list_topics(), useful when a new topic emerged after the last commit. The runtime list is always authoritative.
MCP tool reference
The three-tool fetch chain
Live Context is queried over MCP. These three tools form the chain: discover, narrow, deep-fetch. The other MCP tools (check_intent, search_decisions, and so on) handle cross-cutting queries.
list_topicsFreeReturns every topic in the project: id, label, unit count. No inputs; project scope comes from the API key. Discovery is free by design.
get_context_for_topic1 creditReturns the curated cluster for one topic: spine units inline, plus the IDs and titles of expansion units. Pass includeBodies: true to inline full bodies (costs more). Call this before writing code that touches a topic.
get_decision1 creditThe terminus. Fetch the full body of one context unit by ID: title, problem, rationale, alternatives, affected files. Use after get_context_for_topic surfaces an ID worth deep-fetching.
Example chain
// 1. discover what exists
decispher.list_topics()
→ [ { id: "auth", unitCount: 12 }, … ]
// 2. narrow to the topic you're working in
decispher.get_context_for_topic({ topic: "auth" })
→ spine inline + 10 expansion unit IDs
// 3. deep-fetch the one unit that matters
decispher.get_decision({ decisionId: "0e3f…" })
→ full body: rationale, alternatives, affected filesSee the full MCP setup, covering API keys, Cursor / Claude Code / VS Code config, in the MCP Server docs.
Agent shell files
Thin routers, not full dumps
Alongside .decispher/, Decispher generates a shell file per agent at the path that agent reads: CLAUDE.md, .cursorrules, AGENTS.md, and so on. Each shell is a thin router: it inlines the spine, lists the topics, and signposts the agent into the MCP. It does not duplicate full context.
Agents that speak MCP get inline tool-call snippets. Agents that don't fall back to the local .decispher/topics/ stubs, so the shell is self-sufficient at degraded quality even when the MCP server is unreachable.
CLAUDE.mdAGENTS.md.cursorrules.windsurfrules.clinerules.github/copilot-instructions.md.aider/conventions.md.devin/rules.md.roo/rules.mdOpting an agent out
Generate only the shells you use
Each project picks which agent shells Decispher emits, from the project settings page in the dashboard. A popular default set is preselected, so most teams never touch this.
Turn a shell off and it stops regenerating, and the next sync opens a pull request that deletes the file. That matters more than it sounds: an abandoned agent file left in the repo is worse than no file, because it keeps being read and keeps being wrong.
Every shell carries the MCP tool catalogue, including the shells whose host does not natively speak MCP. Those get a one-line caveat instead of being silently stripped, because whether MCP is reachable is something the agent can only work out at runtime, not something we can decide for it when the file is written.
Ready to wire your agents in?
Request beta access and Decispher opens your first Context Map PR.
Request Access