Deterministic StateWhat deterministic state means, in plain words.Read the thesis →

Your agents forget.
Hunch remembers.

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.

the missing context

AI reads your code. It wasn’t there when you decided.

It sees what the code does. Not why, not what broke last time, not what a tidy-up will break next.

Monday

Your team fixes a logout bug.

Sign-ins move to the server, so a stolen key dies the moment someone logs out.

Months later

The code stays. The reason doesn’t.

The discussion is buried. The safe code just looks overcomplicated.

Next session

An AI “cleans it up.”

The diff looks great. The logout bug is back.

With Hunch

The reason shows up first.

Once the lesson is recorded, Hunch puts the decision, and the bug it prevents, in front of the agent before it edits the file.

Hunch Memory in 2 minutes. Then the 7-episode series: setup, hooks, capture, delivery, rules, drift and teams.
why hunch

Built to be checked, not trusted.

Six properties you can verify in the public source. See how Hunch compares →

deterministic

Rules are checked by code

No model call in the blocking path. Same change, same rules, same verdict.

git-native

Your memory stays in your repo

Plain JSON in .hunch/. Review it in a PR, revert it, rebuild the index any time. No Hunch account.

receipts

Every claim shows its source

A block cites the rule it enforces. A task report keeps apart what was delivered, what the agent said and what actually ran.

any assistant

One memory, every assistant

Claude Code, Codex, Cursor, VS Code/Copilot, Windsurf, Antigravity and other MCP clients. Hook coverage varies by assistant.

no meter

No per-token bill

Drafting runs on the assistant subscription you already have, or a deterministic local fallback. Metered APIs stay off unless you opt in.

human-gated

People decide what’s true

Advice by default. Nothing blocks until a person trusts the rule, and an agent can’t change a record a human confirmed.

how hunch works

Remember. Retrieve. Check.

Hunch briefs the agent, then checks its work. The agent still writes the code.

01 / remember

Save what you learned.

Decisions, corrections and findings, linked to the code and the source they came from.

02 / retrieve

Bring it back at the right moment.

When a task starts, Hunch picks the memory that matters and delivers it through MCP or your assistant’s hooks.

03 / check

Check, then show the receipt.

Hunch runs the rules you trust and writes a task report: what it delivered, what the agent used, what passed.

Watch a rule hold.

An agent reaches for the one thing your team ruled out. The check stops the commit and names the rule.

  • No model in the blocking path
  • Cites the rule, the file and the reason
  • Runs before a commit and in CI
  ~/acme-checkout
# 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

see the evidence

Don’t trust the agent. Read the receipt.

Every task report keeps apart three things most tools blur together.

deliveredwhat Hunch handed the agent
reportedwhat the agent says it used
checkedwhat rules and commands actually ran

A green test alone doesn’t prove Hunch helped. No evidence, no claim: it stays unverified. Read a task report →

new in 1.52

What’s new in Hunch.

The headlines from the last few releases. The rest is in the changelog.

hunch ui1.52

Your repo’s memory, in your browser.

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 · Grill me1.52

A review queue for what needs a person.

Deliberate ranks conflicts, stale links, duplicates and weak memory. Grill me questions a record, up to five questions, with secret-looking files withheld.

Elixir1.52

Elixir joins the graph.

Blast radius, dependents and rule checks now work on Elixir, next to TypeScript, JavaScript, Python, Go and PHP. Static analysis, no LLM.

hunch derive-rules1.49

Write the rule in your docs. Hunch enforces it.

Mark a sentence with <!-- hunch:rule scope=… --> and it becomes a constraint. --check fails CI when doc and graph disagree.

hunch verify1.46

Run only the tests a change needs.

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.

hooks1.51

Hooks that stay out of your way.

Median hook time before and after 1.51.0, in milliseconds
When a task stops2174 → 298 ms
Before an edit500 → 334 ms
Per prompt299 → 213 ms
Session start251 → 148 ms

Median hook time on the benchmark VM, before and after 1.51.0. Hook output is identical.

memory home1.51

One memory per repository.

Worktrees and extra clones of a repo share one memory home, chosen from the repo’s identity, not the folder you’re in.

Also new since 1.44
  • 1.51
    hunch log --for <commit> shows which memory led to which feature commit.
  • 1.51
    hunch mcp answers the handshake in 1.7–3.7 s. With a large overlay on Windows it used to take 28–76 s.
  • 1.50
    A correction can retire the rule it reverses. Nothing is deleted.
  • 1.50
    When a test run fails, the hook names the past bug it matches.
  • 1.48
    Licensed FSL-1.1-ALv2. Each release converts to Apache-2.0 two years after it ships.
  • 1.45
    hunch init configures only the assistants it finds.
  • 1.44
    hunch uninstall removes what Hunch installed and keeps your memory.
  • 1.44
    Agent writes over MCP can’t change a record a human confirmed.
under the hood

Know what a change breaks before you make it.

Hunch ties each reason to the code’s real dependencies and to the rules your team chose to protect.

hunch why

Find the reason

The decisions, rejected ideas and past bugs behind any file or symbol.

hunch impact

See what depends on it

Follow the code’s real connections to everything a change can reach.

hunch check

Guard the rules you trust

Flags a change that breaks a trusted rule. Strict mode blocks only where that rule and your assistant allow it.

hunch conform

Check the code keeps its promises

For example: does the payment path still check authorization?

hunch drift

Catch docs that fell behind

A doc still pinned to a replaced decision fails hunch drift, so CI can catch it.

hunch dna inspect

Learn the house style

The terms and habits Hunch observed in this repo. Advice only.

get started

Start in one repository.

Needs Node 22.13+ and a Git repository. No Hunch account.

01

Install and connect

Install the CLI, then run hunch init in your project. It sets up only the assistants you have.

02

Teach it your history

Optional: draft memory from the last 90 days of Git, then review what it captured.

03

Ask why

Reload your assistant and ask why a file is built this way. Using Codex? Trust the hooks in /hooks first.

Claude CodeCodexCursorVS Code / CopilotWindsurfAntigravityany MCP client
  ~/your-repo
# 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
  • Advice by default. Nothing blocks until you say so.
  • Update with hunch update. Leave with hunch uninstall: it removes what Hunch installed and keeps your memory.
  • Claude Code? Install as a plugin: /plugin marketplace add davesheffer/hunch → /plugin install hunch@hunch
  • VS Code? Get the extension on Open VSX

Stop re-explaining your codebase.

Give every agent the same memory and every change the same check. It advises by default, and one command removes it.