An AI agent's idea almost became the owner's decision
An agent's proposal was written down next to a real decision of the owner. A later session could easily have read it as approved.
What it protects you from
Decision Map keeps every decision the owner of a project makes as one small Markdown note: the date, the owner's exact words, a one-line ruling, which projects and files it covers, and which older decision it replaces. A validator keeps the notes honest.
Claude Code hooks put the relevant decisions in front of the agent when it touches a file a decision names, and when your message touches a decision's topic. The notes are also an Obsidian vault. Plain Node.js, no dependencies, no server, no network.
A decision made weeks ago lives only in an old chat; a new session undoes it
each decision is a note; the file hook shows it when the agent reads or edits a file the note names
The agent proposes something you already rejected
the topic hook matches your message against decision titles, keywords and rulings and shows the ruling first
"The owner decided X" turns out to be the agent's paraphrase or its own idea
source: owner requires the owner's words verbatim in quote; an agent's proposal stays pending until the owner says yes
An old decision is deleted, and nobody can tell why the code looks the way it does
decisions are never deleted; decision supersede links old and new both ways and the validator checks the chain
Two notes say the opposite and both look current
superseded and expired decisions drop out of the current list and the hook index
A note names a file that was moved, so the hook never fires again
the validator checks that every referenced file of an active decision exists
A typo in a project name creates a second, empty "project" and the decision vanishes from the real list
scope must match the note's folder exactly; decision new refuses near-miss project and topic names
A header value wraps onto a second line, a # or a backslash sneaks in, a file gets a BOM: the note is silently half-read
the validator reads the header the way Obsidian would and reports each of these by name
The same decision is pasted into the context again and again
each decision is shown once per session (and once per subagent); after /compact or /clear it can be shown again
How it works
decision check validates every note, then writes CURRENT-<project>.md (what the agent reads at session start), HOME.md and the index the hooks read. One bad note does not take the lists down.
Takes the path from Read, Edit, Write and NotebookEdit, or the paths it finds in a Bash or PowerShell command, and shows the full note of each active or pending decision naming that file.
Matches your message against decision titles, keywords and rulings and shows at most a few decisions, each with its one-line ruling.
Each decision is shown once per session and once per subagent. After /compact or /clear the reset hook lets it be shown again.
The hooks always exit 0. Errors go to a log, and decision check reports them.
---
type: decision
date: 2026-04-02
status: active
source: owner
quote: "50 was too low, margins are gone. Make it 75."
ruling: "Orders of 75 or more ship free; below that the carrier rate is charged."
scope: [shop]
topics: ["[[Shipping]]"]
files: [src/cart/shipping.js]
supersedes: ["[[2026-02-14 Free shipping from 50]]"]
---
# Free shipping from 75
Full text: the question, the options that were offered, measurements, reasons.The example note from the README: one decision, with the owner's words in the quote field.
What is inside
Requirements
Reference
| Command | What it does |
|---|---|
decision new --project <p> --topic "<t>" --title "<t>" ... | writes a new note with a correct header, shows the active decisions on the same topic, and validates |
decision supersede "<old>" "<new>" | links both ways and sets the old one to superseded; nothing is deleted |
decision find <words...> | notes containing all the words, with status and ruling |
decision file <project> <path> | the decisions the file hook would show for that file |
decision check [--quiet] [--dry-run] | validates every note and regenerates the lists and the hook index |
decision init [<folder>] | creates an empty vault with the Obsidian config; never overwrites |
decision settings | prints the Claude Code hooks snippet for this vault |
Limitations
Taken from the product's README, which is the place to check before you buy.
The hooks were tested with the JSON input Claude Code documents. If a Claude Code version changes those fields, the hooks stay silent rather than fail.
Not run on macOS, Linux or Node 18.
The graph colour groups use Obsidian's documented search syntax; they were not opened in an Obsidian version.
Multi-line values, nested maps and escapes inside quotes are rejected on purpose.
It will sometimes miss a decision or show one that does not fit. It is tuned for English.
files: trigger the file hookA decision with no files is seen through the current list and the topic hook only.
Paths built from variables (cat $DIR/x.js) are not seen.
An edit that goes against a decision is already made when the decision appears; the agent has to correct it. Nothing is blocked.
No stemming outside English; tested with Cyrillic, Greek, Turkish and Chinese examples only.
The index is rebuilt by walking all notes whenever one changes. Large-vault timing is not measured by our test suite.
Pre-release. The validator, command line and hooks are tested; not inside a live Claude Code session.
tests/run.sh (195 checks as of 0.1.4) on Windows (Git Bash, Node 24).0.1.4 (2026-12-01): Fixes for an outside "customer's eye" test.
Editions
Commercial
ViaCustos commercial licence, Solo or Agency edition
Commercial editions come as Solo (for your own projects) and Agency (for delivering projects to clients). Pricing and licence terms are announced at launch.
Where it came from
An agent's proposal was written down next to a real decision of the owner. A later session could easily have read it as approved.
Works well with
Runs your checks on the exact commit you are about to ship and refuses to deploy anything the checks did not see. Open-source core.
A 19-item launch standard and a one-file Python checker that measures the live URL and gives every item PASS, FAIL, HINT or MANUAL.
A verifier subagent that compares an agent's "done" with measured probe values, a probe runner with a negative test per probe, and a council with a mandatory dissent.