OpenLore
Code intelligence and guardrails for AI coding agents.
OpenLore maps your code on your machine, tells your agent what it needs to know while it works,
and checks what it changes. Local. Deterministic. No API key.
Why
Coding agents are fast and confident, and they forget your codebase after every session. So they
guess. They rename a function three services still call. They call a helper that does not exist.
They loosen a test until it passes.
OpenLore solves both halves. It gives the agent a map of your code, and it checks the agent's work
against that map, inside the loop, while the agent works.
Intelligence: your agent knows the code
OpenLore builds a graph of every function, who calls it, which tests assert on it, which decisions
govern it, and which infrastructure deploys it. The graph stays current as files change, and
OpenLore hands the agent the part that matters:
| When | Your agent gets |
|---|
| A session starts | A short brief on the repository, then what changed since its last session |
| You send a prompt | The functions, callers, and tests behind the code you named |
| It first touches a file | Who calls into it, the decisions tied to it, and the tests that assert on it |
| A sub-agent starts | A brief for that sub-agent's own task |
| Its context is compacted | A handoff of the work in flight, computed from the repository |
The agent can also ask. "Who calls this?" "What breaks if I change it?" "Is this function dead?"
verify_claim answers confirmed, refuted, or unverifiable, with the file and line as proof.
Two details make these answers safe to build on:
- Facts expire. Every answer carries an epistemic lease. When the code it described changes,
the agent gets a short, factual freshness note and checks again instead of acting on an old
belief.
- Memory follows the code. Notes and decisions are anchored to symbols. A rename carries them
along. A change to the code marks them stale.
Governance: the agent's work gets checked
OpenLore watches the agent's edits as they happen:
| When | What OpenLore catches |
|---|
| Before an edit | An import or call that does not resolve, or an edit to a generated or vendored file |
| After an edit | A weakened test: a skipped test, a removed assertion, a changed expected value, an added @ts-ignore |
| Before the agent stops | You get one receipt: what changed, which tests reach it, which exports and API contracts it breaks, and who uses them |
Every finding carries proof and one action: the agent fixes it, records a decision, or raises it to
you. When there is nothing new, OpenLore says nothing.
When you want rules, turn them on:
openlore enforce is one commit gate for every finding. Set each one to blocking, frozen,
advisory, or off. Frozen accepts today's debt and blocks only new findings. Outputs SARIF.
- Architecture rules. Declare "the domain layer must not import infrastructure." The agent can
ask before it writes the import and get a yes or no.
- Sensitive areas. Mark auth or billing as a protected surface. A change that opens a new path
into it gets flagged.
- Decisions. The agent records design choices with
openlore decisions record. They sync into
your specs at commit, so the reason stays next to the code.
- Pull requests.
openlore review writes a structural review of a branch. No LLM, no API key.
Everything is advisory until you choose to block.
Install
Works with Claude Code, Codex, Pi, Cursor, Cline, Continue, and any MCP client.
npm install -g openlore && openlore install
openlore install finds the agents on your machine, wires each one, and builds the index. New
repositories index themselves the first time you work in them.
Pi: pi install npm:openlore. See the Pi guide.
Claude Code plugin: claude plugin marketplace add clay-good/OpenLore, then
claude plugin install openlore@openlore. See the plugin README.
Any MCP client: