Empirica AI

Press Enter to search or Escape to close

Why a practice lives in git

A practice keeps a complete record of what it did, and that record has to be trustworthy.

A git history: a branch tries an idea and merges back, another is backed out, and a note on a commit holds what the AI knew and decided Your repository the record branch: try an idea tried, then backed out merge: settle on one git note what the AI knew and decided Held together by hashes A git history: a branch tries an idea and merges back, another is backed out, and a note on a commit holds what the AI knew and decided Your repository branch: try an idea tried, then backed out merge: settle on one git note what the AI knew and decided Held together by hashes

Git already has exactly the right tools for it. Empirica just wires them up so you never have to think about it.

One thing makes a practice trustworthy: you can see exactly what it did, when, and why, all the way back to when it started. That is a record problem, and git is the best record-keeping tool we have. Branches for trying things out, commits for capturing a point in time, notes for attaching context, and a history that cannot be quietly edited after the fact. The work runs on git so you never have to.

The pieces are already there

Captures a state git commit

Each step of the work is pinned to a point you can always return to.

Explores an idea git branch

Trying an approach without committing to it, the way real thinking forks and backtracks.

Settles on an answer git merge

Competing ideas resolve into one clean line once a decision is made.

Keeps the history git log

The full record of what happened, in order, that you can read back at any time.

Attaches the context git notes

What the AI knew and decided, attached to the exact commit it belongs to.

Shows what changed git diff

The difference between where the work started and where it ended up.

Why git, and not a database

Real reasoning is not a straight line. It explores, forks, and backs out, and git was built to track exactly that shape of change. Just as important: in a database, history gets overwritten. In git, the chain of what happened is held together by hashes, so any change after the fact shows. When you ask why the AI did something, the answer is on the record, and you can tell whether anyone has changed it.

Where the record lives

Four layers, from the live session in memory down to the permanent history in your repository. Each one can rebuild the one above it, so the record is very hard to lose.

The current session Live

In memory

What the AI is working on right now: its current state, active goals, and context. If a session crashes, this is rebuilt from the layers below.

The local database Record

Fast queries

Sessions, decisions, findings, and goals, stored so you can ask things like 'what did we get wrong last week' and get an answer in a moment.

Semantic memory Search

Recall by meaning

Facts and past session stories you can search by meaning, not just keywords. 'Find everything we learned about caching', across every session.

Git notes and logs Archive

Syncs with the repo

The durable record attached straight to your commits. It travels with the repository when its notes are pushed and fetched (empirica's sync does both for you), and any change after the fact shows.

No new concepts to learn

Every step maps to a git command you already trust. Nothing exotic underneath, just careful engineering on top of tools the whole software world already relies on.

What the AI is doingGit commandWhat it means
Capture a stategit commitPin this point of the work with a hash you can return to
Explore an ideagit branchFork a line of work to test an approach
Settle on an answergit mergeFold the validated work back into the main line
Back outgit checkoutThat did not work, return to a known-good point
See the changegit diffMeasure the distance between what you knew before and now

Why it matters

Building on git means the history is auditable by anyone who can read a repo, it survives long after the conversation that made it, and no one can rewrite it without leaving a trace. That is the foundation the whole thing stands on, and it is open for inspection.


See it in a piece of work

How a piece of work is structured, from the first question to the commit.