1. Conduid
  2. Developer Tools
  3. Empirica
MCP server · Developer Tools

Empirica

Cognitive Operating System for AI Agents - Git-native epistemic middleware enabling self-awareness, multi-agent coordination, and measurable learning through CASCADE workflow. Turns context loss into transparent uncertainty tracking.

80Excellent

Scored 4 days ago · breakdown

About Empirica

Empirica is an MCP server published by Nubaeon in the Developer Tools category: cognitive Operating System for AI Agents - Git-native epistemic middleware enabling self-awareness, multi-agent coordination, and measurable learning through CASCADE workflow. Turns context loss into transparent uncertainty tracking. It has been installed 0 times through Conduid.

The repository has 170 stars and 21 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx empirica

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Empirica

Powered by Claude · Grounded in docs

I know everything about Empirica. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.13.34v1.13.34 · 1 Sep 2026See [CHANGELOG.md](https://github.com/EmpiricaAI/empirica/blob/main/CHANGELOG.md) for release notes. Installation pip install empirica==1.13.34 Docker docker pull nubaeon/empirica:1.13.34-alpine Homebrew brew tap nubaeon/tap && brew…
v1.13.33v1.13.33 · 28 Aug 2026See [CHANGELOG.md](https://github.com/EmpiricaAI/empirica/blob/main/CHANGELOG.md) for release notes. Installation pip install empirica==1.13.33 Docker docker pull nubaeon/empirica:1.13.33-alpine Homebrew brew tap nubaeon/tap && brew…
v1.13.32v1.13.32 · 25 Aug 2026See [CHANGELOG.md](https://github.com/EmpiricaAI/empirica/blob/main/CHANGELOG.md) for release notes. Installation pip install empirica==1.13.32 Docker docker pull nubaeon/empirica:1.13.32-alpine Homebrew brew tap nubaeon/tap && brew…
v1.13.31v1.13.31 · 24 Aug 2026See [CHANGELOG.md](https://github.com/EmpiricaAI/empirica/blob/main/CHANGELOG.md) for release notes. Installation pip install empirica==1.13.31 Docker docker pull nubaeon/empirica:1.13.31-alpine Homebrew brew tap nubaeon/tap && brew…
v1.13.30v1.13.30 · 23 Aug 2026See [CHANGELOG.md](https://github.com/EmpiricaAI/empirica/blob/main/CHANGELOG.md) for release notes. Installation pip install empirica==1.13.30 Docker docker pull nubaeon/empirica:1.13.30-alpine Homebrew brew tap nubaeon/tap && brew…

README

Empirica

We Gave AI a Mirror. Now It Measures What It Believes.

Version PyPI Python License

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.


The Problem

AI coding agents today have no self-awareness about what they know:

  • Forgets between sessions — same questions, same dead ends, every time
  • Acts before understanding — edits your code without knowing the architecture
  • Can't tell you when it's guessing — no distinction between knowledge and confabulation
  • No audit trail — reasoning evaporates with the context window

What Empirica Does

Capability What You Experience
Measures before acting AI investigates your codebase before touching it. The Sentinel gate blocks edits until understanding is demonstrated
Remembers across sessions Findings, dead-ends, and learnings persist in a 4-layer memory system. Session 3 starts where Session 2 left off
Prevents confident mistakes The CHECK gate uses domain-aware thresholds scaled by criticality — cybersec/high is stricter than default/low
Shows confidence in real-time Live statusline in your terminal: [empirica] ⚡94% ↕70% │ 🎯3 │ POST 🔍92% │ K:95% C:92%
Calibrates against reality Three-vector model: self-assessed, observed (from deterministic checks), and AI-reasoned grounded state with rationale. Domain compliance loops iterate until all checks pass
Tracks your codebase Temporal entity model auto-extracts functions, classes, and imports from every file edit — the AI knows what's alive and what's stale
Works through natural language You describe tasks normally. The AI operates the measurement system automatically

How You Use It

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 150+ 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.


Quick Start

Install + Claude Code (Recommended)

pip install empirica
empirica setup-claude-code

Then just start working. The hooks, Sentinel, system prompt, statusline, and MCP server are all configured automatically. See Claude Code Setup for details.

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-claude-code --force

--force replaces hooks in settings.json but only removes Empirica's own hooks — hooks from other plugins (Railway, Superpowers, etc.) are preserved.

Alternative Installation Methods

brew tap nubaeon/tap
brew install empirica
empirica setup-claude-code
# Security-hardened Alpine image (~276MB, recommended)
docker pull nubaeon/empirica:1.9.1-alpine

# Standard image (Debian slim, ~414MB)
docker pull nubaeon/empirica:1.9.1

# Run
docker run -it -v $(pwd)/.empirica:/data/.empirica nubaeon/empirica:1.9.1 /bin/bash
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. See System Prompts for Claude, Copilot, Gemini, Qwen, and Roo Code.

First Session

empirica onboard   # Interactive walkthrough of the full workflow

Or just start working — with Claude Code hooks active, the AI manages the epistemic workflow automatically.


The Measurement Architecture

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.

The Epistemic Transaction Cycle

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.


Live Statusline

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.

Tier Vector What It Measures
Gate engagement Is the AI actively processing or disengaged?
Foundation know Domain knowledge depth
do Execution capability
context Access to relevant information
Comprehension clarity How clear is the understanding?
coherence Do the pieces fit together?
signal Signal-to-noise in available information
density Information richness
Execution state Current working state
change Rate of progress/change
completion Task completion level
impact Significance of the work
Meta uncertainty Explicit doubt tracking

Deep dive: Epistemic Vectors Explained


How It Works With Claude Code

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:

Claude Code Does Empirica Adds
Task management Epistemic goals with measurable completion
Plan mode Investigation phase with Sentinel gating — no edits until understanding is verified
MEMORY.md Auto-curated hot cache ranked by epistemic confidence
Context window 4-layer memory that survives compaction and persists across sessions
Code editing Grounded calibration — was the AI's confidence justified by test results?
Subagent spawning Bounded autonomy with delegated work counting and budget tracking

The result: Claude Code's native capabilities, enhanced with measurement, gating, and calibration feedback that compounds over time.


Platform Support

Platform Integration Level What You Get
Claude Code Full (production) Hooks, Sentinel gate, skills, agents, statusline, MCP
Cursor, Cline MCP server Epistemic transaction workflow, memory, calibration via MCP tools
Gemini CLI, Copilot Experimental System prompt + CLI
Any AI CLI + prompt Full measurement via CLI commands and system prompt

Documentation & Training

Resource What It Covers
getempirica.com Training course, interactive guides, deep explanations
Natural Language Guide How to collaborate with AI using Empirica
Getting Started First-time setup and concepts
CLI Reference All 150+ commands documented
Architecture Technical reference for contributors
System Prompts AI prompts for Claude, Copilot, Gemini, Qwen, Roo

The Empirica Ecosystem

Project Description Status
Empirica Core measurement system — epistemic transactions, Sentinel, calibration, 13 vectors Open source
Empirica Iris Epistemic browser automation with SVG spatial indexing — Sentinel gating for visual interactions Open source
Docpistemic Epistemic documentation coverage assessment — know what your docs know Open source
Breadcrumbs Survive context compacts with git notes — dead simple session continuity Open source
Empirica Cortex Cross-project intelligence layer — serves verified predictions and accumulated learnings to condition future work Proprietary
Empirica Workspace Entity Knowledge Graph, Epistemic Prompt Engine, CRM, portfolio dashboard Proprietary

Building something with Empirica? Open an issue to get listed.


What's New in 1.9.1

v0.5 LOCAL-ARTIFACTS daemon — 16 new endpoints unlock the chrome extension's full Artifacts pane evolution. Empirica-only users (no Cortex account) can see their artifacts in the extension for the first time.

  • /api/v1/health extensionproject_id (canonical UUID), project_path, project_name, project_slug, repo_url so the extension can match its dropdown's active project against the daemon's bound project and populate the dropdown for users without Cortex.
  • 8 per-type list endpoints/goals, /findings, /decisions, /unknowns, /dead-ends, /mistakes, /assumptions, /sources. Each row carries related_to[] from the new artifact_edges table.
  • 4 single-artifact CRUD endpointsGET /artifacts/{id}, PATCH /artifacts/{id}/resolve, PATCH /artifacts/{id} (whitelisted partial update), DELETE /artifacts/{id} (three-layer cleanup: sqlite + edges + Qdrant + git notes).
  • Graph endpoint GET /artifacts/graph — bidirectional BFS over artifact_edges with seed_id / session_id / types / depth filters.
  • 3 batch endpointsPOST /artifacts/log, POST /artifacts/resolve, POST /artifacts/delete.

Bug fixes

  • /api/v1/dead-ends 500 on real-world DBs — migration 042 adds the missing impact column on project_dead_ends and mistakes_made (long- lived DBs missed migrations 007/012 for these two tables).
  • CORS preflight 400 from chrome-extension origins — the daemon's allow_origins=["chrome-extension://*", ...] literal globs never matched real origins (Starlette doesn't glob-expand). Switched to allow_origin_regex so chrome-extension preflights actually pass now.
  • Project_id slug-vs-UUID resolution — yaml's project_id is often a slug (e.g. "empirica") matching projects.name, not the canonical UUID used in artifact tables. Daemon now does the slug→UUID lookup.
  • empirica delete-artifacts git-notes gap — CLI delete now also runs git update-ref -d on refs/notes/empirica/{type}/{id}, matching the new daemon DELETE /artifacts/{id} three-layer cleanup.

Database

  • Migration 041artifact_edges table (PRIMARY KEY on from_id+to_id+ relation, (to_id, relation) inverse-query index, metadata JSON for forward-compat). Backfills existing edges from data.edges JSON. Fixes silent edge-drop bug for assumptions and decisions.
  • Migration 042impact REAL DEFAULT 0.5 on project_dead_ends and mistakes_made.

96 new tests (37+15+15+14+15 across T1-T5), full suite 2194 passed. See SERVE_API.md for the full daemon API reference.

What's New in 1.9.0

Goal-criterion bridge — quality gates that auto-evaluate

  • criterion_evaluators package — validation_method-keyed registry. Goals declare quality_gate:<metric>@<op>:<threshold> and the bridge routes to the right evaluator at POSTFLIGHT.
  • EvidenceMetricEvaluator — auto-evaluates any criterion whose metric matches an evidence bundle key (test pass-rate, ruff violations, stylometry drift, etc.).
  • Typed criterion parsergoals-create --success-criteria "quality_gate:test_pass_rate@>=:0.95" parses to typed CriterionDeclaration.

Stylometric drift collector — voice consistency for outreach work

  • 12 prosodic markers (contractions, MTLD, sentence-length stdev, etc.)
  • Voice fingerprints at ~/.empirica/voice/<name>.fingerprint.json
  • Drift direction inference (formal_pull / informal_pull / mixed / within_tolerance)

Content-aware source provenance nudge — fires at moment of artifact creation when text shows citation but no --source. Closes 0% adoption gap.

Bulk project-link CLIprojects-discover / projects-list / projects-bulk-register (Cortex-dependent).

Live-scan semantic indexsemantic_index.json regenerates when source docs are newer than the cache.

Sentinel quote-aware shell parsing — false-positive > in quoted code fixed (_has_dangerous_redirects now uses _contains_outside_quotes).

Template version parameterization (Philipp #100)CLAUDE.md and empirica-system-prompt-lean.md use {{ empirica_version }} and {{ generated_date }} placeholders. Drift cannot recur.

Documentation refreshUPGRADE_TO_1.9.md (replaces 1.7), full rewrite of PROJECT_SWITCHING_FOR_AIS.md, TMUX_MULTI_PANE_GUIDE.md cockpit section.

What's New in 1.8.20

  • empirica commit-context <sha> (new CLI). Aggregates artifacts
  • --depth N recursive walker. Walks edges from each artifact's
  • Inline edge declaration on individual *-log commands. All six
  • edge_density_nudge — POSTFLIGHT retrospective +
  • sources_discipline_nudge — same shape, counts artifacts
  • --status {planned|in_progress|completed|all|drift} flag
  • drift mode surfaces rows where the status text and
  • Default open count now uses is_completed = 0 as the canonical

What's New in 1.8.17

  • Listener subsystem — sister to cron loops, event-driven not scheduled. empirica listener register/heartbeat/list + cockpit E binding + project.yaml install hook.
  • Mechanical pause for loops — pause now cancels the next-fire CronCreate token so paused really means silent (no token bleed).
  • Cockpit sweep — domain·criticality chip per row, compliance panel with green/yellow/red glyph, services panel for scanner snapshots.

What's New in 1.8.16

  • #95 root-cause cluster closed — Cortex sync reads project_id from session row (no CWD); _run_grounded_verification accepts project_path; resolve_project_id raises ProjectNotFoundError instead of sys.exit(1). SystemExit-walks-through-Exception hazard closed at the source.
  • Per-project compliance.yaml — projects can skip_checks, declare extra_checks with regulatory mapping, override repo_hygiene sub-checks. Non-CLI/server projects no longer fail tech_docs.
  • KNOWN_ISSUES 11.29 + 11.30 — instance_isolation audit-trail entries for the subagent CLI bleed fix and the SystemExit propagation chain.

What's New in 1.8.15

  • Validate-and-heal session.project_id at session boundaries — catches the ghost-project_id pattern (cross-project --resume, ambiguous folder_name match, tmux pane reuse). Heals at post-compact CONTINUE_TRANSACTION + NEW_SESSION_PREFLIGHT and at session-init resume. Workspace.db trajectory_path is the canonical lookup — never folder_name (no 11.10/11.27 regression).
  • Voice CLIempirica voice list / show / apply loads prosodic profiles for outreach drafting. Profiles in ~/.empirica/voice/*.yaml with project-local override at .empirica/voice/. Voice samples themselves stay in Cortex/Qdrant; this CLI is the calling surface.
  • PREFLIGHT voice_guidance block — when work_type=comms or the new voice field/--voice flag is set, response includes voice tendencies + anti-patterns scoped to platform register (mirrors the noetic_guidance pattern).
  • Subagent CLI bleed fix (#95 Issue 1)subagent-start now writes ~/.empirica/active_work_<subagent_uuid>.json with is_subagent: true so the subagent's CLI calls resolve to their own child_session_id instead of falling through to the parent's via TTY. sentinel-gate._detect_subagent reads the flag. subagent-stop cleans up.
  • POSTFLIGHT pipeline restructure (#95 Issue 3) — Stage 0 pre-validates session row + project_id BEFORE any state mutation; failure → early return with loop_state: "open". Stages 5-7 wrapped in _soft_run — failures accumulate into result["warnings"] without erasing the closed-loop reflex. No more half-success.

What's New in 1.8.14

  • Notify dispatcher — single CLI verb (empirica notify emit/config/ backends/test) every loop and hook calls. Three v1 backends (stdout, rotating JSONL log, ntfy) with first-match-wins routing and fail-loud fallback to stdout when a backend isn't configured. Always-on audit at ~/.empirica/notify-dispatcher.jsonl. Cockpit + TUI surface 5 most recent emits, backend status, 24h fallback count, and a failure banner. See docs/architecture/NOTIFY.md.
  • Project-scoped TUI notifications — per-instance notifications strip now reads ~/.empirica/enp/pending.json (the file the ENP watcher actually writes). Top-bar ⊕N shows total unacked across all projects.
  • empirica goals-prune — bulk goal cleanup with four modes (test-pollution, planned, auto-stale, duplicates). Dry-run by default.
  • Empirica Cockpit — multi-instance state visibility + per-instance controls. empirica status [--all] overview, empirica tui interactive Textual app, empirica sentinel|loop|instance subcommand groups. See docs/architecture/COCKPIT.md.
  • Loop exponential backoff — empty fires lengthen the gap; found/fail snap back to base (15m → 30m → 1h → 2h → 4h cap).
  • noetic-batch CLI primitive — bundles N reads/greps/globs/investigate into one Sentinel-noetic call.

Sentinel Reframe (1.8.0)

The Sentinel is a compliance loop coordinator. Deterministic services produce information; the AI synthesizes the grounded epistemic state.

  • Domain Registry(work_type, domain, criticality) tuples map to compliance checklists. 4 built-in domains: default, remote-ops, cybersec, docs. CLI: domain-list, domain-show, domain-resolve
  • Domain-aware CHECK gate — uncertainty threshold scales by criticality. cybersec/high is stricter than default/low
  • Three-vector modelself_assessed, observed (from deterministic checks), and AI-reasoned grounded state with rationale
  • Compliance loop — POSTFLIGHT runs domain checklist, reports status, advises on follow-up for failed checks
  • Check-outcome Brier — AI predicts P(check passes), Brier measures against actual outcomes. Falsifiable calibration
  • Real check runners — pytest, ruff, and git status execute as subprocess checks (not stubs)
  • Test isolation — tests no longer pollute live sessions via TMUX_PANE inheritance

Previous Highlights (1.7.0–1.7.13)

  • Empirica Constitution — 12-section governance framework routing situations to mechanisms
  • Epistemic Persistence Protocol (EPP) — Calibrated position-holding under pushback, replacing AAP
  • Lean Core Prompt — 81% reduction in always-loaded context. setup-claude-code --lean
  • Cross-Project Search--global searches ALL projects' Qdrant collections
  • Cross-Project Artifact Writingfinding-log --project-id <name> writes to another project
  • Plugin Renamedempirica-integrationempirica. Run setup-claude-code --force
  • Brier Score Calibration — Proper scoring rule with dynamic thresholds
  • Profile Managementprofile-sync, profile-prune, profile-status

Privacy & Data

Your data stays local:

  • .empirica/ — Local SQLite database (gitignored by default)
  • .git/refs/notes/empirica/* — Epistemic checkpoints (local unless you push)
  • Qdrant runs locally if enabled

No cloud dependencies. No telemetry. Your epistemic data is yours.


Community & Support


License

MIT License — see LICENSE for details.


Author: David S. L. Van Assche Version: 1.9.1

Turtles all the way down — built with its own epistemic framework, measuring what it knows at every step.

README mirrored from the source repository 4 days ago. The original is authoritative.

Questions

About Empirica

How do I install Empirica?

Run npx empirica, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Empirica safe to use with an AI agent?

Its trust score is 80 out of 100 (excellent). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Empirica still maintained?

Yes — the latest release is v1.13.34 (1 Sep 2026), and the last commit was 6 months ago. The repository has 170 stars and 0 open issues.