Your agent acts on beliefs about your repo — what the code is for, what must hold, what's left, and why it ended up this way. yigraf holds those beliefs in one connected graph, each one justified and pinned to the code it's about, and tells your agent the moment one stops being true.
Every /clear wipes what your agent knew. What does survive — a doc, a comment, a note in a backlog — is the more dangerous half: it was true once. Source records what runs, never what it must guarantee or why it's shaped that way, and it never announces that a decision you settled weeks ago no longer holds. So your agent either relearns the repo from scratch or acts with confidence on something that stopped being true three commits ago. Nothing in your stack was maintaining the difference. yigraf does.
Storing knowledge is the easy half. A truth maintenance system is judged on what it does when the world moves underneath it.
No free-floating facts. Every belief carries its reasoning, the alternatives ruled out, and an anchor to the exact code it's about — so it can later be checked instead of merely trusted.
When anchored code changes, the belief that depended on it is flagged as drifted. Inferences arrive tagged and never outrank the evidence behind them.
A flag is settled explicitly: reaffirm it, supersede it with what's true now, or record the dispute when two live beliefs collide. yigraf never silently picks a winner.
The retracted reasoning is kept, not deleted — supersedes is an edge, so your agent can see what the repo used to believe and why it changed its mind.
The ones an agent loses on every reset — kept as a living graph beside your code, with the links between them doing the real work.
A task points at the code that implements it. A decision is pinned to the code it concerns. So when the code drifts away from what was supposed to hold, yigraf notices — ask it what governs this file? and it can answer.
It listens on your repo and speaks up at the right moments — but you can always prompt it in plain language.
Your agent asks yigraf for the governing slice over MCP. Works with every MCP-capable host — the universal floor.
yigraf injects the slice the moment your agent edits a file, at the best fidelity your host's hooks allow.