Measurement and calibration layer for AI — track what it knows, gate what it does
pip install empirica==1.13.44 Copy PIP instructions
We Gave AI a Mirror. Now It Measures What It Believes.
Epistemic infrastructure for AI — measurement, memory, and calibration across sessions.
Empirica tracks what AI knows, gates what it does, and compounds learning across session boundaries. It measures the gap between what AI predicts and what's true — making AI agents measurably more reliable.
Training & Guides | CLI Reference | Architecture
Important: Empirica is an AI measurement framework. It has no cryptocurrency, token, coin, or blockchain component. Any token using the Empirica name (including "$EMPIRICA" on Solana) is unauthorized and not affiliated with this project or Empirica AI GmbH.
AI coding agents today have no self-awareness about what they know:
You talk to your AI normally. Empirica works in the background:
You: "Fix the authentication bug in the login flow" Empirica: [AI investigates → logs findings → passes Sentinel gate → implements fix → measures learning] You see: ⚡87% ↕70% │ 🎯1 │ POST 🔍85% │ K:88% C:82% │ Δ +K You direct. The AI measures.
Empirica's CLI has 240+ commands spanning investigation, measurement, calibration, and memory — like a cockpit instrument panel. You don't need to learn any of them. The AI reads the instruments, operates the controls, and reports back in natural language. The statusline gives you the flight data at a glance.
For power users, direct CLI access is always available: empirica goals-list, empirica calibration-report, empirica project-search --task "...", and more.
Learn the full workflow: getempirica.com has interactive training, guides, and deep explanations of every concept.
pip install empirica empirica setup Then just start working. The hooks, Sentinel, system prompt, statusline, and MCP server are all configured automatically.
empirica setup --harness picks the harness. It resolves from --harness, else $EMPIRICA_HARNESS, else claude-code. An unsupported harness is refused by name and nothing is written — previously it wrote ~/.claude/ regardless and reported success, which on any other harness configured a path that harness never reads.
Codex is refused deliberately: ecodex is self-provisioning (it vendors the plugin into its own binary), so there is nothing here to write, and the refusal points you at that pipeline. setup-claude-code remains as an alias and pins claude-code regardless of environment.
See Claude Code Setup for details — including a "What the hooks inject" section for Claude sessions that want to see the contract (which hook fires when, what it adds to the AI's context, source pointers for every emission) before agreeing to install.
Already have Claude Code configured? Use --force to replace your default Claude Code settings with Empirica's epistemic hooks. Without --force, setup only writes files that don't already exist — so if you've already used Claude Code, the default internals stay in place and Empirica's hooks won't activate.
empirica setup --force --force replaces hooks in settings.json but only removes Empirica's own hooks — hooks from other plugins (Railway, Superpowers, etc.) are preserved.
brew tap empiricaai/tap brew install empirica empirica setup Docker # Security-hardened Alpine image (~276MB, recommended) docker pull nubaeon/empirica:1.13.44-alpine # Standard image (Debian slim, ~414MB) docker pull nubaeon/empirica:1.13.44 # Run docker run -it -v $(pwd)/.empirica:/data/.empirica nubaeon/empirica:1.13.44 /bin/bash Manual / Other AI Platforms pip install empirica pip install empirica-mcp # MCP Server (for Cursor, Cline, etc.) cd your-project && empirica project-init The CLI works standalone on any platform. The full epistemic workflow (epistemic transactions, Sentinel, calibration) requires loading the system prompt into your AI — the easiest path is empirica setup, which wires the lean prompt into ~/.claude/empirica-system-prompt.md and references it from your ~/.claude/CLAUDE.md. See Claude Code Setup for details.
empirica onboard # Interactive walkthrough of the full workflow Or just start working — with Claude Code hooks active, the AI manages the epistemic workflow automatically.
empirica setup writes to eleven locations, and six of them are files Claude Code owns and writes continuously. So uninstall shows you the plan first and only removes what is actually ours:
empirica setup --uninstall # the plan — names every location, changes nothing empirica setup --uninstall --apply # remove, reporting anything it refused Removed the plugin directory, our system-prompt file, active_work.json, the listener service Edited settings.json, ~/.claude.json, the plugin registries — our keys only, yours untouched Reported, never touched the @include line in your own ~/.claude/CLAUDE.md That last row is deliberate. Setup appended one line to a file you author. If you have reorganised around it, we cannot tell which edit is safe — so uninstall tells you the line number and leaves the decision to you.
Two more things it will not do: it refuses rather than writing a shared config it could not parse, and it refuses if Claude Code modified the file while uninstall was preparing its write. In both cases nothing is removed and it says why. Your .empirica/ project data — findings, goals, git notes — is never touched; this removes the integration, not your epistemic record.
Empirica works through nested abstraction layers:
Plan └── Transaction 1 (Goal A) ├── NOETIC: investigate, search, read → findings, unknowns, dead-ends ├── CHECK: Sentinel gate → proceed / investigate more ├── PRAXIC: implement, write, commit → goals completed └── POSTFLIGHT: measure learning delta → persists to memory └── Transaction 2 (Goal B, informed by T1's findings) └── ... Plans decompose into transactions — one per goal or Claude Code task. Each transaction is a noetic-praxic loop: investigate first (noetic), then act (praxic), with the Sentinel gating the transition. Along the way, the AI collects and reads artifacts (findings, unknowns, assumptions, dead-ends, decisions) while using semantic search to surface relevant epistemic patterns and anti-patterns from the project's history. Top artifacts are ranked by confidence and fed into each project's MEMORY.md as a hot cache.
PREFLIGHT ────────► CHECK ────────► POSTFLIGHT │ │ │ Baseline Sentinel Learning Assessment Gate Delta │ │ │ "What do I "Am I ready "What did I know now?" to act?" learn?" PREFLIGHT: AI assesses its knowledge state before starting work. CHECK: Sentinel gate validates readiness before allowing code edits. POSTFLIGHT: AI measures what it learned, creating a delta that persists.
With Claude Code hooks enabled, you see the AI's epistemic state in real-time:
[empirica] ⚡94% ↕70% │ 🎯3 ❓12/5 │ POST 🔍92% │ K:95% C:92% │ Δ +K +C Signal Meaning ⚡94% Overall epistemic confidence ↕70% Sentinel threshold (know gate) — user-facing only 🎯3 ❓12/5 Open goals (3), unknowns (12 total, 5 blocking) POST 🔍92% Transaction phase + work state (🔍 investigating / 🔨 acting) with composite score K:95% C:92% Knowledge and Context vectors (color-coded by gap to threshold) Δ +K +C Learning delta (POSTFLIGHT only) — which vectors improved The 13 Epistemic Vectors These vectors emerged from 600+ real working sessions across multiple AI systems. They measure the dimensions that consistently predict success or failure in complex tasks.
Empirica doesn't replace or reinvent anything Claude Code already does. Claude Code owns tasks, plans, memory, and projects. Empirica adds the measurement layer on top:
The result: Claude Code's native capabilities, enhanced with measurement, gating, and calibration feedback that compounds over time.
16 skills ship with the plugin — the transaction discipline, graph gardening, the quality sweep, mesh messaging, and more. They are lazy: a skill does nothing until it loads, so knowing when each fires matters more than knowing what it holds. → Skills reference
This section describes an optional layer. Empirica core — measurement, calibration, artifacts, goals, project-search, sentinel gating — works fully standalone. The mesh is an opt-in capability for users who run multiple Claude sessions across projects and want them to coordinate as peers. If you only use one AI in one repo, skip this section.
The mesh runs on top of Empirica Cortex (proprietary serving layer) plus an optional browser extension for ECO triage. At a high level:
empirica AI ── proposes work ──► ECO Accept/Decline ──► peer AI wakes + acts │ completion handshake (commit SHA) │ empirica AI ◄────────── outbox/completed event ──────────────┘ Capability What it does Mesh proposals (two flavors) A noetic flavor is auto-accepted (FYI / question / discussion). Praxic flavors (code change / architecture / investigation) are ECO-gated — they wait for an Accept/Decline decision before the target AI acts empirica mailbox reply One CLI verb closes the AI-to-AI handshake atomically — single-step completion ack instead of two Persistent listener service systemd-user / launchd daemon holds a push stream open. Idle sessions wake the moment a peer's proposal is decided, not on next user prompt Canonical loops (opt-in) Wake-on-event is the standing trigger, so nothing is scheduled by default. Inbox polling (30s adaptive) exists for harnesses that cannot do wake-on-event, and daily housekeeping is a cron loop — both are opt-in, registered with empirica loop register. See Trigger Model The browser-side ECO surface (Accept/Decline, inbox triage, publish review) lives in the proprietary Empirica Extension. The full API surface for proposals, listener events, and the trust pipeline is documented at getempirica.com.
Requires Empirica Cortex (proprietary). Everything in this section — mesh proposals, the persistent listener, the Shared Epistemic Record, and the empirica mesh command cluster — is a Cortex-served layer. It is not available in empirica core on its own; without Cortex, empirica is a single-AI measurement layer.
The cross-AI coordination layer. Practitioners in different practices coordinate not via text-only chat but via epistemic envelopes that carry calibrated state, source-tagged provenance, noetic/praxic intent, and workflow position.
Empirica's workspace stores entities (projects, contacts, organisations, engagements, users) in entity_registry with typed edges in entity_memberships. The Practice Model frames this consistently:
Four CLI verbs query the graph without raw SQL:
empirica entity-list [--type project|contact|organization|engagement|user] empirica entity-show # full record + incoming/outgoing edges empirica entity-walk --depth 3 # BFS membership graph, cycle-safe empirica entity-search "query" [--type T] All read-only, all support --output json. Backs cross-project orchestration, CRM workflows, and the entity-aware POSTFLIGHT retrospective.
Two harnesses are supported. Everything else is untested — prompt and rules files may exist for other tools, but their presence is not support, and we would rather say so than let you find out mid-project.
empirica-mcp exists for harnesses that cannot run the CLI integration — Claude Desktop, Gipitee-style clients. Use it when you have no alternative.
The reason matters: an MCP surface cannot enforce the Sentinel gate the way a blocking pre-tool hook does. So an MCP-only deployment gives you the measurement layer with a weaker guarantee — the noetic/praxic firewall becomes advisory. That is a real difference in what the system promises, and it should be a deliberate choice rather than something you infer from a feature table.
Building something with Empirica? Open an issue to get listed.
The Empirica Foundation stewards the open ecosystem — the public projects above and the community growing around them — keeping the commons healthy as it scales.
The open-source projects are free for everyone. What the Foundation adds is a seat at the table: contributors who help build the community get to use the rest of the ecosystem too — the otherwise-paid layers (Cortex, Workspace, the Extension) and the collaborative mesh that lets practitioners coordinate as peers. Build the commons, use the whole thing.
Want in? Open an issue or a PR with your reasons — that's the whole application. Everyone who wants to help shape where this goes is welcome.
No cloud dependencies. No telemetry. Your epistemic data is yours.
Author: David S. L. Van Assche Version: 1.13.44
Turtles all the way down — built with its own epistemic framework, measuring what it knows at every step.
tui api vector vision mcp prose all test lint typecheck dev
ai llm epistemic self-assessment metacognition calibration
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters Copy
Details for the file empirica-1.13.44.tar.gz.
The following attestation bundles were made for empirica-1.13.44.tar.gz:
Publisher: release.yml on EmpiricaAI/empirica




