Engineering memory for AI-assisted codebases: decisions, bug lineage and invariants, over MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Every new AI coding session can read your code. It cannot automatically see why your team chose this design, which alternative already failed, what an odd-looking line protects, or how this repository expects work to be explained and reviewed.
That is how settled decisions get reopened, fixed bugs return, and technically plausible changes arrive feeling foreign to the project.
Hunch is evidence-backed deterministic project intelligence for the AI coding tools you already use. It gives Claude, Codex, Cursor, Copilot, Windsurf, Antigravity and other MCP clients the same durable understanding of your codebase:
For precise rules your team has explicitly trusted, the promise is Never Twice: an agent may propose a different direction, but it cannot quietly re-make a decided decision or re-introduce a fixed failure without Hunch surfacing the conflict and its evidence.
Memory starts advisory. Nothing blocks until a human deliberately trusts a precise rule and opts into strict enforcement.
Requires Node 22.13+ and a Git repository.
Reload your coding assistant, then ask a normal question:
Why is this built this way?
hunch init indexes the repository, installs local lifecycle hooks and connects supported assistants without replacing their existing configuration. The next session receives the relevant story with its sources, not a giant transcript or generic prompt wall.
Lifecycle coverage depends on the harness; MCP connectivity alone does not establish automatic grounding or enforcement.
To update Hunch and configured harness pins for the current repository:
Agents receive an instruction to run this when you ask βupdate Hunchβ in generated Hunch guidance. Restart active harnesses afterward.
Check integrations after upgrading Hunch or switching assistants:
Capabilities are reported as verified, advisory-only, unsupported or untested. --require fails unless every named capability is verified.
The Codex integration currently supplies MCP and instructions, with no native lifecycle adapter. The opt-in --probe verifies a fresh MCP process, not whether an existing host session or model actually followed the memory.
Use hunch integrations check in CI to prevent pin drift; add --require for capabilities your workflow cannot operate without.
Hunch is not the agent and is not the workflow engine. The model thinks; Hunch holds deterministic, evidence-backed state about the project and validates what must remain true.
| Layer | What it adds |
|---|---|
| Engineering Memory | Decisions, rejected alternatives, corrections, bug lineage, findings and rationale a future session would otherwise miss. |
| Code Graph | Symbols, calls, imports, dependencies, components, blast radius and architectural reachability across supported languages/configuration. Memory itself works with any language. |
| Project DNA | Revision-specific, evidence-backed observations about how a repository communicates and works: vocabulary, contribution habits, review expectations, engineering conventions and culture. |
| Engineering Landscape | Durable links from product/capability to system, repository, service, interface, data, delivery resources, runbooks, ownership, dashboards and SLOs. |
| Validated Delivery | The smallest relevant evidence for the current builder/reviewer/architect, with provenance, currentness, omissions, authority and a content-addressed receipt. |
| Native Change Proof | A sealed exact-change artifact binding revisions, DNA, base/result graphs, memory, blast radius, conformance, guard verdict and explicit gaps without granting workflow authority. |
| Change Gate + Constitution | Deterministic checks for trusted constraints and architectural intent. Policies are compiled, proved, inspected and explicitly activated by a human. |
Readable JSON in .hunch/ is the repository-scoped source of truth. SQLite is a fast, rebuildable projection. Git keeps the state portable, reviewable and reversible.
Project DNA is Hunch's evidence-bound model of how a repository communicates and works. It is not a persona, does not impersonate a maintainer and does not turn frequent behavior into policy.
The deterministic baseline reads an exact Git revision, bounded commit history and committed convention files. The current release can also accept bounded, caller-authorized pull-request/review evidence. Every evidence batch is validated and sealed; raw collaboration text does not enter the profile.
Each trait keeps its category, confidence, freshness, repository revision and evidence hash. Hunch can include only the relevant DNA in normal context, explain how an artifact matches repository conventions and show profile change between revisions.
DNA may shape orientation, terminology and advisory Project Match checks. It cannot create or override a decision, constraint, finding, conformance rule, policy or permission.
Read the Project DNA contract and broader Project DNA vision.
| Command | Use it for |
|---|---|
hunch context "<task>" --profile builder | Get a bounded builder/reviewer/architect brief before work starts |
hunch why <file-or-symbol> | See decisions, bugs, constraints and blast radius behind code |
hunch structure [target] | Inspect indexed repository shape without repeated search rounds |
hunch findings [scope] | Inherit known-but-unfixed gaps instead of rediscovering them |
hunch check --working | Review the current tree against trusted project rules |
hunch conform | Prove the code still satisfies recorded architectural intent |
hunch impact origin/main | See the dependency and memory surface of a branch |
hunch compare branch-a branch-b | Rank candidate changes by invariant/decision conflicts |
hunch prove origin/main --public-only | Produce a publication-safe hunch.change-proof/1 artifact for an exact committed change |
hunch landscape review | Inspect a hash-bound repository landscape without writing authority |
hunch now | See recent memory and live decision-backed roadmap |
hunch escalations | See questions that genuinely require a human answer |
hunch doctor | Diagnose setup, provider, index or overlay problems |
When you are ready for deterministic enforcement:
Captured memory cannot silently hard-block on its own.
Repository memory solves one version of a larger problem.
As organizations give every employee an agent that can work across CRM, email, messaging, repositories and other tools, the agents become probabilistic writers/readers of the same organization. If each one independently reconstructs what was decided, what was already done or what is still owed, the organization gets multiple conflicting realities.
The active roadmap asks whether Hunch can become the deterministic state layer between those agents and the organization:
Agents are probabilistic. Organizations need deterministic state. Hunch is the state layer between them.
The target is one product, one authorized state graph and one versioned state contract across repository, user, team and organization scopes.
Planned state includes:
Agents continue to own live connector mechanics. Hunch must not become a managed proxy that fetches Gmail, CRM, WhatsApp or GitHub on an agent's behalf.
Instead:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hunch-2)<a href="https://allmcps.com/mcp/hunch-2"><img src="https://allmcps.com/api/badge/hunch-2?style=directory" alt="Hunch on AllMCPs" /></a>