What is an Advisor?

A database waits for you to ask the right question. An advisor builds enough context to raise its hand first — to tell you why a choice was made before you re-litigate it, to enforce a standard before the violation lands, to flag a contradiction while it is still cheap to fix. Engrams is the second kind of tool.

Retrieval vs. advice

Retrieval (a database)Advice (engrams)
Sits idle until queried.Surfaces context at session start, unprompted (engrams prime).
Answers only the exact keyword you searched.Intercepts edits with the playbook and decisions behind the file you're touching (engrams advise <paths>).
Stores isolated records; synthesis is your problem.Groups recurring decisions into human-confirmed playbooks (Schemas) and tracks supersedes / depends_on lineage.
Lets your AI repeat a settled mistake.Enforces registered regex and AST checks against staged code (engrams check --staged).

The difference is not a better query engine. It is that engrams accumulates a model ofwhy your project looks the way it does — and puts that model in front of you and your agent at the moment it matters.

What engrams advises on

Recalled decisions

On 2026-08-05 this repo logged decision #44: “Path A ratified: TTSR-export-led policy engine.” The same day, the implementation progress entry was linked implements → #44, and the workspace-isolation bug fix (#45) was linked part_of it. Anyone touching the policy engine now inherits the reasoning, not just the code.

Enforced patterns

“Borrowed SQL Parameters Only” is a registered system pattern born of the v0.8.0 zero-allocation hardening — machine-checkable, not prose in a wiki.engrams check scans staged files against patterns like it and exits 1 on violation. The standard is enforced before the commit, not after the review.

Caught contradictions

Two days after “Support both JSON and human-readable plain text outputs”(2026-07-10), the project reversed course: “JSON-only CLI output” was logged and linked supersedes to the original. The old decision stops advising but stays auditable — settled questions stay settled.

DOGFOODED ON ENGRAMS-CLI (v0.17.0)

The architecture memory an advisor reasons over

Real feature work on this repository: 318 graph nodes and 808 edges connecting architectural decisions, machine-checkable Rust standards, code files, and 3 human-confirmed Schemas (performance-rules, what-to-build-next, and graph-ontology-and-rebuild). Explore these exact specimens interactively in the Knowledge Atlas ↗.

Advice compounds

On day 1 engrams can only fetch — the graph is nearly empty, so there is little to advise with. Every decision logged, every pattern registered, every link added makes the next piece of advice sharper. That is the compounding: the tool you run in month two is strictly smarter than the one you installed, because you taught it.

NextSee the densification arc with real numbers inHow Memory Matures, then the cycle that drives it inThe Advisor Loop. For the commands a human runs, go toFor You; for what your agent stores and retrieves, seeFor Your Agent.