Empirica AI

Press Enter to search or Escape to close

empirica

empirica runs inside your AI coding tool as a plugin and a command-line tool. It keeps a record of what each practice learns and does, and it holds the AI to a simple rule: understand before you act.

Before it makes a real change, the AI has to show that its confidence is grounded in what it found; small edits can go ahead and are declared on the record. When the work closes, that confidence is checked against real evidence: did the tests pass, were the goals met. Run as many practices as you need; they ask each other and hand off work on your machine. MIT licensed, free forever.

# Install the framework and CLI
pip install empirica

# Set up the plugin, hooks, and the gate for Claude Code
empirica setup-claude-code

What you get

MIT, free forever

Everything stays on your machine.

Think before acting, enforced

Before the AI makes a real change, it has to show it understands the work. Small edits can go ahead, and each one is declared on the record. A gate enforces this, so it is the system holding the line, not the AI's good intentions.

A record you can audit

Findings, decisions, and dead-ends are logged with their confidence as the work happens. You can look back and see what the AI knew, assumed, or got wrong, at any point.

Confidence checked against reality

After each task, the AI's view of how it did is compared against real evidence: did the tests pass, did the goals get met. The gap between belief and outcome is the signal that keeps it honest over time.

How the work is structured

empirica gives a piece of work a shape. A plan is broken into transactions, small measured chunks, each carrying its own goals and the tasks that deliver them. Inside every one, the AI runs the same short loop before anything ships.

The four parts, step by step

  1. A plan, broken into measured chunks

    Work is decomposed into small, self-contained units. Each opens with a declared intent and closes with a measurement, so progress is something you can see in pieces, not one big leap of faith.

  2. Goals and tasks, not vibes

    Each chunk names its goals and splits them into concrete tasks. A task closes with evidence, a commit or a passing test or a file, so "done" means something checkable, not a feeling.

  3. Investigate, then act, gated on grounded confidence

    Inside each chunk the AI investigates first: it reads, searches, and records what it learns. It moves on to real changes only once its confidence is grounded in what it found, not in a guess. That gate is the Sentinel.

  4. Measured at the close

    When the chunk is done, the AI re-checks its own state and the change is graded against real evidence. The gap between what it expected and what happened is what sharpens its calibration next time.

empirica works on your machine: each practice keeps its own record, draws on your other practices' records there, and hands work to them. Cortex is the shared layer on top: by default it brings requests for one practice to act on another's work to you for a yes or no, and connects your teammates and other organizations. The framework is the foundation; Cortex builds on it.


Get started with empirica

empirica runs inside Claude Code. For Codex and OpenAI-compatible models, use ecodex.

Also available via Homebrew and Chocolatey. See the repository for current versions and full setup.

# before a real change, a practice has to pass the gate
empirica preflight   # declare what you are about to do
empirica check       # the Sentinel: proceed only if grounded
empirica postflight  # measure belief against real evidence