Your team fixes a logout bug.
Sign-ins move to the server, so a stolen key dies the moment someone logs out.
Hunch keeps the why behind your code in your Git repo: what you decided, what broke before, which rules must hold. Your assistant gets it before it edits. Then Hunch checks the change — with code, not another model.
It sees what the code does. Not why, not what broke last time, not what a tidy-up will break next.
Sign-ins move to the server, so a stolen key dies the moment someone logs out.
The discussion is buried. The safe code just looks overcomplicated.
The diff looks great. The logout bug is back.
Once the lesson is recorded, Hunch puts the decision, and the bug it prevents, in front of the agent before it edits the file.
Six properties you can verify in the public source. See how Hunch compares →
deterministicNo model call in the blocking path. Same change, same rules, same verdict.
git-nativePlain JSON in .hunch/. Review it in a PR, revert it, rebuild the index any time. No Hunch account.
receiptsA block cites the rule it enforces. A task report keeps apart what was delivered, what the agent said and what actually ran.
any assistantClaude Code, Codex, Cursor, VS Code/Copilot, Windsurf, Antigravity and other MCP clients. Hook coverage varies by assistant.
no meterDrafting runs on the assistant subscription you already have, or a deterministic local fallback. Metered APIs stay off unless you opt in.
human-gatedAdvice by default. Nothing blocks until a person trusts the rule, and an agent can’t change a record a human confirmed.
Hunch briefs the agent, then checks its work. The agent still writes the code.
Decisions, corrections and findings, linked to the code and the source they came from.
When a task starts, Hunch picks the memory that matters and delivers it through MCP or your assistant’s hooks.
Hunch runs the rules you trust and writes a task report: what it delivered, what the agent used, what passed.
An agent reaches for the one thing your team ruled out. The check stops the commit and names the rule.
# your team's rule: never import lodash — use src/utils # an agent just staged: + import _ from "lodash" $ hunch check --staged --strict Directly touches 1 invariant(s): ⛔ [blocking] never import lodash — use src/utils con_4f1c2a9be0 · in: src/cart.ts rationale: one shared utility layer, not two ✗ 1 high-confidence blocking invariant(s) directly in scope — review before committing. $ echo $? 1
Example session; the rule id is illustrative. Run the real one: demo/hunch-blocks-it.sh
Every task report keeps apart three things most tools blur together.
A green test alone doesn’t prove Hunch helped. No evidence, no claim: it stays unverified. Read a task report →
The headlines from the last few releases. The rest is in the changelog.
Browse, search, edit, link, remove and restore records in a local web UI. It runs on your machine, and only your click writes memory.
Deliberate ranks conflicts, stale links, duplicates and weak memory. Grill me questions a record, up to five questions, with secret-looking files withheld.
Blast radius, dependents and rule checks now work on Elixir, next to TypeScript, JavaScript, Python, Go and PHP. Static analysis, no LLM.
Mark a sentence with <!-- hunch:rule scope=… --> and it becomes a constraint. --check fails CI when doc and graph disagree.
Hunch picks the tests that import or ran the changed code. Doubt means more tests: a change it can’t trace runs the full suite.
| When a task stops | 2174 → 298 ms |
|---|---|
| Before an edit | 500 → 334 ms |
| Per prompt | 299 → 213 ms |
| Session start | 251 → 148 ms |
Median hook time on the benchmark VM, before and after 1.51.0. Hook output is identical.
Worktrees and extra clones of a repo share one memory home, chosen from the repo’s identity, not the folder you’re in.
hunch log --for <commit> shows which memory led to which feature commit.hunch mcp answers the handshake in 1.7–3.7 s. With a large overlay on Windows it used to take 28–76 s.hunch init configures only the assistants it finds.hunch uninstall removes what Hunch installed and keeps your memory.Hunch ties each reason to the code’s real dependencies and to the rules your team chose to protect.
hunch whyThe decisions, rejected ideas and past bugs behind any file or symbol.
hunch impactFollow the code’s real connections to everything a change can reach.
hunch checkFlags a change that breaks a trusted rule. Strict mode blocks only where that rule and your assistant allow it.
hunch conformFor example: does the payment path still check authorization?
hunch driftA doc still pinned to a replaced decision fails hunch drift, so CI can catch it.
hunch dna inspectThe terms and habits Hunch observed in this repo. Advice only.
Indexes TypeScript, JavaScript, Python, Go, PHP and Elixir, plus Helm, Kustomize and YAML. Beyond code, hunch serve is a self-hosted service that shares decisions, finished work and open commitments across agents. Read the docs →
Needs Node 22.13+ and a Git repository. No Hunch account.
Install the CLI, then run hunch init in your project. It sets up only the assistants you have.
Optional: draft memory from the last 90 days of Git, then review what it captured.
Reload your assistant and ask why a file is built this way. Using Codex? Trust the hooks in /hooks first.
# install from npm $ npm install -g @davesheffer/hunch # connect Hunch to this project $ cd your-repo && hunch init # learn from the last 90 days $ hunch backfill --since 90d # ask what a file is for $ hunch why src/auth/session.ts # browse your memory in the browser $ hunch ui
npm i -g @davesheffer/hunch && hunch init
hunch update. Leave with hunch uninstall: it removes what Hunch installed and keeps your memory./plugin marketplace add davesheffer/hunch → /plugin install hunch@hunchGive every agent the same memory and every change the same check. It advises by default, and one command removes it.