Documentation
Everything you need to know
Decispher is the system of record for engineering decisions. It captures the reasoning your team already produces in Slack, pull requests, tickets, and coding sessions, then serves it back to developers and AI agents at the moment it is needed.
Connect Slack, GitHub, GitLab and Jira, then wire Claude Code, Cursor, Codex, Grok Build, VS Code and the forks. Real screenshots of every screen, copyable config for each tool, and the failures worth knowing about in advance.
Open the guideDeep Dive Guides
Full-length pages, one topic each
Each guide answers three questions: what it is, why it exists, and how to get value from it. The reference sections below are quick lookups; these pages are the full story.
How Decispher tiers your context into a committed .decispher/ map and MCP-served live context. Folder layout, topic discovery, and the three-tool fetch chain.
Setup for Cursor, Claude Code, and VS Code Copilot. Tool reference with per-call credit costs, project-scope isolation, and example call chains.
Capture context from ticket threads, surface the right decisions when an agent picks up a ticket, and drive Decispher from @decispher comments. Setup, commands, and the full ticket-to-code loop.
A flight recorder for AI coding sessions: pre-flight briefings, Story Mode replay, deja vu detection, and one-click Save Context. Plus the VS Code extension and the branch-store MCP tools.
How Decispher merges the same decision from Slack, GitHub, and Jira into one canonical unit. Signal weights, COAPP, fusion outcomes, and confidence scoring.
Semantic PR diff analysis that catches decision violations, convention drift, and constraint breaches before your reviewers see the PR.
From zero to first captured context unit in under 15 minutes. Phase 1 install, beta access, Slack setup, and your first Context Map PR.
How Decispher generates CLAUDE.md, .cursorrules, AGENTS.md and six more agent shells, and keeps them in sync by pull request whenever context changes.
Getting Started
Two products, one record
Phase 1 is Decision Guardian: an open-source (MIT) GitHub Action and CLI that surfaces and enforces decisions you have already written down. It is free, needs no account, and runs in your CI today.
Phase 2 is the Decispher platform, currently in closed beta. It removes the writing-it-down step: context is captured automatically from Slack, pull requests, tickets, and AI coding sessions, fused into one canonical record, then served back through the MCP server, generated agent files, and pull request review.
Open source, MIT, live in five minutes as a GitHub Action or in any CI via the CLI. No account required.
InstallJoin the Phase 2 waitlist. Every approved company starts with 50 free credits. No credit card required.
Request accessAdd the Slack bot, install the GitHub App or connect GitLab, or run npx decispher init in a repo. Capture starts immediately.
See integrationsBeta Access
50 free credits, no credit card required
Phase 2 is in closed beta. Every approved company gets 50 credits on signup, enough to run the full capture and serve loop across a real repo before you decide whether to buy more.
- Slack capture: the bot listens in the channels you add and routes context-rich messages through the analysis pipeline
- GitHub App or GitLab: pull request and merge request capture, plus Decispher Lens review on every PR
- Jira: passive ticket capture, @decispher comment commands, and context injected back onto the ticket
- Branch Story: per-session briefings, Story Mode replay, and the VS Code extension
- Context Map: a committed .decispher/ map plus nine generated agent files, kept in sync by pull request
- MCP server: live context for Cursor, Claude Code, VS Code Copilot, and any MCP-compatible agent
- Token savings telemetry: what each served context unit saved, per project and per contributor
- Priority email support
How credits work: a credit is spent when a context unit is extracted and stored, or when a tool call runs an LLM. Deciding that a Slack message is not worth analysing costs nothing. Effort Mode (Saver / Balanced / Pro) controls which models each pipeline step uses and therefore what each capture costs. Super tier is available on Enterprise plans.
One beta limit worth knowing: a given source (a Slack channel, a repository, a Jira project) maps to exactly one Decispher project. You can connect as many sources as you like; you just cannot point the same channel at two projects while the beta restriction is in place.
Phase 1
Decision Guardian: open source decision enforcement
Decision Guardian reads a decision file in your repo and comments on every pull request that touches the files a decision governs. Reviewers see the decision and its reasoning inline, and a critical violation can fail the check. It is MIT licensed, runs entirely in your CI, and sends nothing to Decispher except optional anonymous usage counts.
Star count is read live from the GitHub API. Run, file, and decision counts are cumulative from opt-in anonymous telemetry (Feb to Jul 2026, 93 active days); installs with telemetry disabled are not represented.
1. Write a decision file
Decisions live in .decispher/decisions.md. Each block carries a stable HTML-comment ID, a severity, and the file globs it governs. Use the ADR Builder if you would rather not write the block by hand.
<!-- DECISION-DB-001 -->
## Decision: Database choice for billing
**Status**: Active
**Date**: 2024-03-15
**Severity**: Critical
**Files**:
- `src/db/pool.ts`
- `config/database.{yml,yaml}`
### Context
We chose Postgres over MongoDB because billing requires ACID compliance.
MongoDB does not guarantee consistency for financial transactions.
---2. Add the GitHub Action
The action needs pull-requests: write so it can post the review comment.
# .github/workflows/decision-guardian.yml
name: Decision Guardian
on:
pull_request:
permissions:
pull-requests: write
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DecispherHQ/decision-guardian@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
decision_file: '.decispher/decisions.md'
fail_on_critical: trueOr run it from any CI with the CLI
The CLI is the same engine without the GitHub dependency, so it works in GitLab CI, Jenkins, CircleCI, or a pre-commit hook.
npm install -g decision-guardian
# or run it without installing
npx decision-guardian --help
# check the working tree against a decision file
decision-guardian check .decispher/decisions.md
# check the current branch against main
decision-guardian check .decispher/decisions.md --branch main
# discover every decision file in the repo and fail on critical hits
decision-guardian checkall --fail-on-critical
# scaffold a decision file from a template
decision-guardian init --template securityPhase 1 and Phase 2 fit together: the platform generates that same .decispher/decisions.md file from your captured record, so Guardian keeps enforcing without anyone hand-maintaining it.
Context Types
Seven structured types of engineering knowledge
Every unit Decispher captures is classified into one of seven types. That structure is what makes the record queryable, linkable, and enforceable instead of a pile of messages. The same seven types are the vocabulary everywhere: the MCP tools, the generated agent files, Lens findings, and the Guardian file.
We chose X over Y because Z
Fastify over Express, for zero-overhead routing at scale
We always do X this way
All DB access goes through the Repository pattern, no raw queries
We cannot do X because Y
No LangChain. The Vercel AI SDK is the mandated abstraction
X works this way because Y
HNSW indexes over IVFFlat, for low-latency real-time inserts
Person or team X owns Y
The analyzer pipeline is owned end to end by one person
We tried X, it failed because Y
Tried MongoDB, migrated to Postgres to unlock pgvector
We are going to do X in future
Microsoft Teams capture is planned, not yet built
One message can hold several units. A single Slack thread often contains a decision, the constraint that forced it, and who owns the result. Extraction returns all of them from one model call, and every unit carries a verbatim quote from the source that is checked against the original text before it is stored. A unit whose quote cannot be located in the source is dropped rather than shown.
Integrations
Connect your existing stack
Everything connects over OAuth and webhooks. There is no new workflow, no manual tagging, and nothing for engineers to remember. See the full Integrations page for step-by-step setup.
Add the Decispher bot to any engineering channel. It listens quietly, detects context-rich messages, and routes them through the analysis pipeline. Raw message text is not kept past the analysis window; only the extracted units persist. Mention @Decispher to ask a question or save something deliberately.
Installed as a GitHub App, so access is scoped to the repositories you pick and no personal access token is ever stored. Captures pull request descriptions, commit messages, and review threads, powers Decispher Lens review, and opens the pull requests that keep your generated context files in sync.
A first-class alternative to GitHub, not a partial port. OAuth connect, per-project webhooks, merge request capture, Lens review, and generated-file sync all work the same way. One SCM provider per company: connect GitHub or GitLab, not both.
A Forge app that reads ticket descriptions and comment threads, then posts the decisions and constraints that apply back onto the ticket when work starts. Mention @decispher in a comment to ask a question or request what is known. Business intent and the engineering decisions that implement it stay linked.
Live knowledge-graph access for any MCP-compatible agent: Cursor, Claude Code, VS Code Copilot, and others. Unlike a static rules file, the MCP server serves current data, so a decision captured this morning is queryable this afternoon.
One command (npx decispher init) wires Claude Code, Cursor, Codex, and Grok Build in the current repo. Every session opens with a briefing of what is known about the branch, records what is new, and lets you promote the keepers into the knowledge base. Ships with a VS Code extension for the Branch Store, Story Mode, and inline "why is this line here" lookups.
CLAUDE.md, .cursorrules, AGENTS.md and six more shells are generated from your record and kept current by pull request. Useful for agents that cannot reach the MCP server, and as the always-loaded floor for the ones that can.
Teams capture is on the roadmap and not yet available. Slack is the shipped chat surface today.
Jira Integration
Ticket context, in and out
Decispher reads ticket descriptions and comment threads, then injects the relevant decisions and constraints back onto the ticket the moment an engineer or agent picks it up. The business intent and the engineering decisions that implement it stay linked, with no manual cross-referencing.
Descriptions and comments run through the same analysis pipeline as Slack and pull requests. No tagging, no new fields, and no acknowledgement comment: passive capture is silent by design.
Mention @decispher in a ticket comment to ask a question or ask what is already known about the work. Explicit commands get a reply; passive capture does not.
When a ticket is created or work links to it, Decispher posts the decisions and constraints that apply, so whoever picks it up starts with the rules already on the table.
Setup: the integration is an Atlassian Forge app. During the beta we send approved teams an install link rather than a public Marketplace listing. Install it, connect your Jira site, and map each Jira project to a Decispher project. Full walkthrough in the Jira Integration guide.
Branch Story
Every branch has a story. Never start a session cold.
Branch Story is a flight recorder for AI coding sessions. One command, npx decispher init, wires Claude Code, Cursor, Codex, and Grok Build in the current repo. Every session opens with a briefing of what is already known about the branch, records what is new in the background, and lets you promote the keepers into the knowledge base.
Resume a branch and read the last state, the open questions, the decisions on record, and the approaches already tried, before writing a line.
A chapter-by-chapter replay of how a branch reached its current state, linked from every pull request. Reviewers see why, not just what.
A warning the moment an edit repeats a path that was already tried and abandoned on this branch. Free, and it runs on embeddings, not an LLM.
One click promotes a decision, constraint, or lesson into the team knowledge base, from the Branch Store, Story Mode, or the Session Receipt.
decispher pause stops capture across every repo and agent on this machine, then resumes on its own so it is never left off by accident. Reading keeps working while paused.
The branch store is shared working memory. One agent writes a handoff, the next session (or the next teammate) reads it and continues from there.
In your editor: the Decispher Branch Story extension brings the Branch Store, Story Mode, Save Context, and “why is this line here” lookups into VS Code. It is also on Open VSX for Cursor, Windsurf, and other forks. Full walkthrough in the Branch Story guide.
Context Map
Your record, committed to the repo
The Context Map is the committed half of Decispher. It projects your approved record into a .decispher/ folder plus the rules files each AI tool reads, and opens a pull request whenever the record changes. The map is a thin index on purpose: full decision bodies stay behind the MCP server so agents fetch what they need instead of loading everything.
What lands in the repo
.decispher/overview.mdThe map: which topics exist in this project and where to look for each.
.decispher/topics/<topic>.mdOne stub per topic, listing the units that govern it with pointers for deeper fetch.
.decispher/index.jsonMachine-readable index for CI and custom tooling.
.decispher/decisions.mdThe Decision Guardian file, generated from your record so Phase 1 enforcement stays current with no hand-editing.
.decispher/context-rules.jsonEnforcement manifest: titles, severities, file patterns, and the MCP pointer for the full body.
Nine agent shells, generated and kept in sync
Each shell is written in the format its tool expects, and tools that can reach the MCP server get fetch instructions rather than a wall of inlined text.
CLAUDE.md.cursorrulesAGENTS.md.devin/rules.md.roo/rules.md.github/copilot-instructions.md.windsurfrules.clinerules.aider/conventions.mdSync is a pull request, not a silent write. Regenerated files arrive as a normal PR against your target repo, so the change is reviewable and revertible like any other. Auto-merge is opt-in per project. Full detail in the Context Map guide.
Decispher Lens
Semantic pull request analysis
Lens reads every pull request against your captured record. It looks past syntax at the intent of a change and flags diffs that violate a decision, drift from a convention, or breach a constraint the team already agreed.
Catches code that conflicts with an architectural decision even when nothing matches a literal pattern. Guardian matches file globs; Lens reads meaning.
Flags gradual drift across a PR. If every DB query is supposed to go through the Repository pattern, Lens catches the one that does not.
Surfaces the constraints that apply to the changed files before review starts, so a reviewer opens the diff already knowing what governs it.
Findings cite the governing unit, when it was decided, and the reasoning behind it. Not "this is wrong" but "this breaks the no-raw-token-storage constraint, and here is why that exists".
Scan cost scales with the size of the diff rather than a flat per-PR charge, so a one-line fix does not cost what a large refactor costs.
Context Fusion Engine
One decision. Several channels. One record.
Engineering decisions are rarely made in one place. The same decision gets argued in Slack, restated in a pull request description, and tracked on a Jira ticket. The Fusion Engine links those fragments so the record holds one decision rather than three near-duplicates, and it does so per project: the same incoming fragment can be a confirmation in one project and a contradiction in another, and both readings are correct.
Five linking signals, strongest first
No signal decides on its own. Meaning alone would merge two unrelated decisions that happen to be phrased alike; shared file paths alone would merge every message that mentions the same service.
Shared file paths, technologies, services, people, and topics. The heaviest signal.
Closeness in meaning rather than wording, which is what catches a decision restated in different language weeks later.
Ticket IDs, pull request numbers, and links that connect two fragments outright.
The real gap between the two events, measured from each source’s own timestamp rather than when we ingested it.
The same resolved people across channels on one topic. Deliberately the lightest: working together is not evidence of discussing the same decision.
Five outcomes
CONFIRMSAn independent source says the same thing. Confidence goes up; no new unit is created.
EXTENDSNew detail on an existing unit. The body is folded additively, never overwritten.
SUPERSEDESThe new fragment replaces the old decision. The old one is archived, and the lineage between them is kept.
CONTRADICTSThe two conflict. The incoming unit is stored but held for human review rather than silently applied.
SAME_TOPICRelated, but neither replaces nor confirms the other. Recorded as a knowledge edge so the two show up together.
Classify once, apply per project. Relationship classification runs once per incoming fragment for the whole company, then applies to each project without further model calls. That is what keeps fusion cost flat as you add projects instead of multiplying with them.
Decispher Memory
The record is the team's. Memory is yours.
Early accessBranch Story records this repository. Memory records you: “use pnpm, never npm”, “staging is on port 5433”, “never name model versions in marketing copy”. Those follow you into every session on every agent, and the platform injects the relevant ones so your agent never has to think to go looking.
Memories never enter the decision graph, the Guardian file, or the Context Map. Your record is immutable and audited; your memory is yours, editable, and deletable on demand. That separation is the point.
A memory belongs to you, a project, or the company. Company policy always injects and wins. Below that, the most specific memory wins. Sharing above yourself is a request an admin approves, never an instant team write.
The API key answers what this can reach. The identity key (dik_) answers who this is. They are separate so a shared team or CI key can still serve the right person their own memory instead of dead-ending.
What you explicitly ask to remember is saved active. Anything an agent proposes on its own becomes a proposal you confirm or discard.
Injection and dereference cost nothing. Only an explicit write is charged, because that is the one operation that runs a model.
Wiring it up
# memory wiring only, no session capture and no git hook
npx decispher init --only memory
# tell Decispher which human you are on this machine
decispher setup-memory --identity-key dik_your_key_here
# confirm it took
decispher whoamiAvailability: Memory is opt-in per company and rolling out to beta teams. Until it is enabled for your company nothing is captured or served, and whoami will tell you so.
Credits System
Pay for what you extract, not what you send
Credits meter model usage. Detection, the step that asks whether a message is worth analysing at all, is always free, and it is where most traffic stops. You spend a credit when a context unit is actually extracted and stored, or when a tool call runs a model.
Effort Mode is set per project and decides which models each pipeline step uses. The numbers below are the cost of one captured context unit at each mode.
Cheapest models across every pipeline step. Good for high-volume channels where most traffic is chatter and you mainly want the signal caught.
The default. A stronger model on the extraction and fusion steps, cheap models on the gates. Right for most engineering channels.
Frontier-tier extraction and fusion. Use it on architecture channels and the repos where a missed constraint is expensive.
Maximum precision, Enterprise plans only. Extraction and fusion run on a premium model rather than the default provider.
Other metered work: Lens scans are priced by diff size, an Ask query costs 1 / 2 / 6 credits (Saver / Balanced / Pro), MCP retrieval costs 1 / 1 / 2 credits, and a chat clipboard copy costs 1 / 2 / 4 credits. Every ledger entry is append-only, so usage is auditable line by line on the billing page.
MCP Server
Give agents direct access to the record
The Decispher MCP server exposes your knowledge graph to any agent that speaks the Model Context Protocol: Cursor, Claude Code, VS Code Copilot, and others. Instead of relying on a static rules file that was accurate at generation time, agents query current data at the moment they need it.
Keys can be scoped to the whole company or to a single project. A project-scoped key only ever sees units active in that project, enforced in the query itself rather than filtered afterwards.
Retrieval and reasoning
check_intent1 / 1 / 2 creditsDescribe what the agent is about to do and get back BLOCKED, WARN, or CLEAR with the units behind the verdict. Call it before writing code, not after.
search_decisions1 / 1 / 2 creditsSemantic search across all seven context types. Scope it with types, or omit to search everything.
get_constraints1 / 1 / 2 creditsEvery active constraint: the rules the agent must not break. Call once per session and cache it for the run.
check_conventions1 / 1 / 2 creditsEvery active convention, so generated code matches how the team already writes code.
get_context_for_file1 / 1 / 2 creditsOne file path, or up to ten at once. The client reads each file from disk and the server returns one ranked list scored on both symbols and embeddings.
get_context_for_topic1 / 1 / 2 creditsThe curated cluster for a topic: critical units inline, the rest as IDs and titles to fetch on demand.
list_topicsFreeDiscover the topic namespace at runtime. The entry point of the list, fetch topic, fetch decision chain.
get_decisionFreeFull body of one unit by ID: problem, decision, rationale, alternatives, affected files, sources. The deep-fetch terminus for an ID any other tool returned.
ask_knowledge_base1 / 2 / 6 creditsA natural language question answered from the record, with citations. The only retrieval tool that runs a model, which is why it costs more.
Writing back
capture_decisionFreeWrite a durable unit into the knowledge base. A near-duplicate returns the existing unit instead of creating a second one, so re-capturing is safe. Agent captures are labelled as such for humans reviewing them.
update_context_metadataFreePatch lifecycle metadata (expiry, tags, affected files, severity) or reset the freshness clock after re-validating a unit. Bodies are never edited: a changed decision is a new superseding unit.
remember1 / 2 / 3 creditsSave a durable personal or team memory. It costs a little because it embeds and fuses the memory before returning. Requires Memory to be enabled for your company.
get_memoryFreeDereference one memory by ID from a served manifest. There is deliberately no memory search tool: relevant memory is injected for you.
Branch Story working memory
Turn on Branch Story and agents get a branch-keyed shared memory through five more tools. None of them cost credits.
store_readFreeThe branch briefing: last state, open questions, recent entries from other agents and humans, and linked units. Call it at the start of a session to begin warm.
store_writeFreeAppend an attributed entry. A handoff entry replaces the last state, so the next session picks up exactly where you stopped.
store_listFreeWhich branches have work in flight, before you pick one up.
store_linkFreeLink the branch to a decision it implements or depends on.
session_recordFreeSelf-report a non-obvious decision, a constraint discovered the hard way, or an approach tried and abandoned. Staged for a human to promote, never written straight into the record.
Chat clipboard
copy_chat1 / 2 / 4 creditsCompress the current conversation into a portable snapshot and get back a key that works on any machine and any Decispher-connected tool for seven days. Kept in cache only, never in the knowledge graph.
paste_chatFreeRestore a snapshot by key. The content becomes the new session’s working memory.
Installation
The server ships as an npm package. There is no need to install it globally; every config below uses npx so you always run the current version.
npx -y @decispher/mcp-serverCursor
Add to .cursor/mcp.json for one project, or ~/.cursor/mcp.json for all of them.
{
"mcpServers": {
"decispher": {
"command": "npx",
"args": ["-y", "@decispher/mcp-server"],
"env": {
"DECISPHER_LINK": "acme"
}
}
}
}Claude Code
claude mcp add decispher \
-e DECISPHER_LINK=acme \
-- npx -y @decispher/mcp-serverVerify with claude mcp list, or /mcp inside a session.
VS Code with GitHub Copilot
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"decispher": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@decispher/mcp-server"],
"env": {
"DECISPHER_LINK": "acme"
}
}
}
}A key in the config instead
Every config above carries a link name and no secret. Passing the key itself is fully supported and is not going anywhere, because three situations need it: the Decispher Worker injects credentials per run into a sandbox with no home directory, CI and containers are rebuilt every run, and MCP has to work before the CLI is installed. Existing configs keep working untouched.
{
"mcpServers": {
"decispher": {
"command": "npx",
"args": ["-y", "@decispher/mcp-server"],
"env": {
"DECISPHER_API_URL": "https://api.decispher.com",
"DECISPHER_API_KEY": "dsk_your_key_here",
"DECISPHER_COMPANY_ID": "your-company-uuid"
}
}
}
}Set both and they compose field by field, with each environment variable overriding just that one field of the link.
Getting your keys
Generate an API key from Project, then Integrations, then MCP Server, then Generate Key in the dashboard. The full key is shown exactly once, so copy it immediately. Then run npx decispher@latest link to store it under a name. The configs above carry that name; the key never leaves your machine.
Environment variables. DECISPHER_LINK names a link on this machine, and DECISPHER_SET attaches memory sets by name. Instead of a link, for CI and containers: DECISPHER_API_KEY, with DECISPHER_COMPANY_ID optional since the key resolves it. DECISPHER_API_URL defaults to https://api.decispher.com.
FAQ
Common questions
Raw message text is not retained past the analysis window. Messages are processed in a queue worker, the structured context unit is extracted, and the raw text is purged on a schedule you control per source. Only the extracted knowledge persists.
Those are manual: somebody has to write the page, and somebody has to remember to update it. Decispher captures from conversations that are already happening. There is nothing to write, no habit to build, and no wiki to go stale.
That is the point. Decispher does not require ADRs, structured discussions, or any particular format. It reads ordinary engineering conversation and extracts structure from it.
Decispher installs as a GitHub App, so it holds installation-scoped tokens for only the repositories you select. No personal access token is stored anywhere, and you can narrow or revoke the installation from GitHub at any time. Private repositories are supported. GitLab connects over OAuth with the equivalent scoping.
Yes. GitLab is a first-class SCM provider: merge request capture, Lens review, and generated-file sync all work the same way. A company connects one provider, GitHub or GitLab, not both at once.
Yes. Decision Guardian is MIT licensed and stays free. The Decispher platform is the paid product, currently in closed beta with 50 free credits for every approved company.
Branch Story remembers what happened on a branch so the next session, or the next person, never starts cold. Run npx decispher init and every session opens with a briefing: last state, open questions, decisions on record, and what was already tried and abandoned. It records new context in the background and lets you promote the keepers with one click.
Raw session data behind a branch is short-lived and purged once the branch is merged or its context is promoted. Only what you choose to keep, the decisions, constraints, and lessons, persists in the knowledge base. Capture itself is free; credits are spent when you promote.
Yes. decispher pause stops new capture across every repo and every agent on your machine and resumes on its own, so it is never left off by accident. It is local and private to you. Reading keeps working while paused.
Any MCP-compatible agent, including Cursor, Claude Code, and VS Code Copilot, plus any tool that reads a generated rules file. Nine agent formats are generated automatically, so tools that cannot reach MCP still get the record.
Email us, or open an issue on the Decision Guardian repository for Phase 1 questions. Beta teams get priority email support and a reply within one business day.
Still have questions?
We are happy to walk you through a demo or answer anything specific to your stack.
Request access and get in touch