Pillar · Experience-driven

Agents that learn from their own mistakes.

Not facts stored: skill compounded. Each outcome is scored, from resolved at 1.0 down to reverted at 0.0, and what tomorrow recalls leans on what actually worked.

The short answer

An experience-driven agent turns session outcomes into compounding skill instead of disposable transcripts. Anvaya's learning loop runs in five stages: a ledger records every tool call append-only; episode shaping cuts sessions at intent and file-disjoint boundaries and keeps only learning-rich shapes (struggles resolved, reverts, corrections); contrastive extraction pulls grounded claims with counterfactuals through ten reject filters; adjudication holds claims invisible until independent sessions corroborate them; shadow evaluation scores candidates against real queries before anything goes live. Research backs the thesis: MemCoder's commit-history co-evolution hit state-of-the-art on SWE-bench with +9.4% over its base model. The motto: memory shrinks as capability grows.

Experience, aging honestly

What a project taught you, fading on schedule.

A bug fix matters most the week you made it; a design decision for a year.

Experience field · live
Day240

● strong○ fading◌ nearly gone· forgotten● just re-read● kept by use

One mark per memory node. Copper is a fresh re-read, which resets that node's clock.anvaya-mind-rs/crates/mind-types/src/config.rs

The learning loop

Ledger to instinct in five stages.

Each gate exists because the naive version fails: raw logs bloat, naive summaries hallucinate, uncorroborated rules mislead.

Ledger: record everythingEvery tool call lands in an append-only, TTL-bound ledger: args, output, error, duration, denials. Total recall of what happened, cheap to keep, bounded to forget.
Episodes: shape the storySessions are cut into episodes; shapes like Struggle-Resolved, Reverted and User-Corrected mark where learning lives. Clean runs are skipped.
Extract: contrast, don't summarizeOne pass per episode pulls contrastive claims: what was tried, what failed, the counterfactual. Ten filters reject vague or duplicate lessons.
Adjudicate: corroborate or waitClaims stay hypotheses until N-of-M sessions corroborate or contradict them. Nothing is deleted.
Shadow: prove it before servingCandidates are scored against real queries in shadow first. Only what beats the baseline goes live.

Why believe it

Failure is the dataset.

Flat memories store what happened. Experience stores what it meant, with the receipt attached.

Counterfactuals requiredEvery claim carries what would have worked instead. Lessons without alternatives are rejected at extraction, no fortune-cookie rules.
N-of-M corroborationOne session's pain is a hypothesis; repeated independent confirmation is knowledge. The Beta posterior tracks the difference numerically.
History preservedSuperseded claims leave the live index but keep full version chains. Audit any lesson back to the sessions that forged it.

Questions

Asked about learning agents.

What is an experience-driven agent?

An agent that converts session outcomes into durable skill: failures become lessons, corrections become rules, successes become corroborated knowledge. Instead of accumulating facts linearly, its memory evolves, incidents captured, confirmed into behavioral rules, generalized into principles. Memory shrinks as capability grows.

How is this different from training or fine-tuning?

No weights change. Learning happens in the memory layer between sessions: structured claims with grounding, durability, and utility scores. It works with any provider model (Ollama to frontier APIs) and each project's lessons stay project-scoped unless explicitly federated.

What stops the agent learning the wrong lesson?

Four gates: contrastive extraction requires counterfactuals (what would have worked), adjudication requires independent corroboration before serving, shadow eval measures against baselines first, and git-anchored drift detection demotes knowledge the codebase has outgrown. A bad session corrupts nothing.

What is shadow evaluation?

New candidate knowledge is scored against real historical queries in parallel with live serving (measured, never served) until it proves better than baseline. It is the memory equivalent of a canary deploy: promote on evidence, not optimism.

How do I see what my agent learned?

Everything is inspectable: the ledger, episode shapes, claim status (hypothesis → confirmed → superseded), utility scores, and shadow results. mind_stats exposes graph size, session counts, and mean injection utility, the number that should climb as your project matures.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.