DEV Community

Srinivas Kondepudi
Srinivas Kondepudi

Posted on

Your AI agent finished the work. Can you reconstruct what happened?

Chron

An AI coding session can move quickly.

You ask for a change. The assistant reads files, runs commands, edits code and gives you a final summary. The summary might be useful, but it is not the same thing as a record of the work that produced it.

A week later, you might need to answer:

  • Which instruction started the change?
  • What did the assistant actually say?
  • Which tools ran, and what did they return?
  • What changed in the code?
  • Was a credential pasted into the session?
  • Has the record itself been altered?

Those questions are why I'm building Chron.

Chron is a local-first audit trail for AI work. It records supported interactions in a SQLite database you control, so you can inspect what was captured and review it later.

What Chron records

Depending on the integration you configure, Chron can record:

  • User and assistant messages.
  • Tool calls and results.
  • Code changes, including file paths and diffs.
  • Session metadata.
  • Secret and personal-data detections with masked values.
  • Hash-chain integrity data and optional Ed25519 session signatures.

It also supports deterministic reviews against SOC 2, ISO 27001, the EU AI Act and NIST AI RMF. Those reviews are a starting point for examining evidence; they are not a certification or a substitute for an assessor.

The distinction matters: a review is only as useful as the evidence available to it.

Capture has a boundary

I don't want to claim that installing Chron automatically records everything an AI client does.

Capture depends on the integration and the events it can observe. A hook that is not configured, or does not fire, cannot record an event. Running a client outside the configured path can leave gaps.

Chron also provides a chron run wrapper:

chron run -- claude
chron run -- codex
Enter fullscreen mode Exit fullscreen mode

The wrapper journals the standard input and output channels it controls before forwarding them. If the journal write fails, it stops forwarding rather than showing output that was not recorded.

That is a useful guarantee, but it has a specific scope. The wrapper does not capture every file operation, subprocess or network request made by the client, and it cannot force someone to use the wrapper.

You can inspect the scope and verify the journal:

chron run --scope
chron verify --journal
Enter fullscreen mode Exit fullscreen mode

Integrity is also a question of scope

Chron can hash-chain recorded events and optionally sign sessions. These mechanisms help make changes detectable within their stated verification boundaries.

A hash chain alone is not magic. If someone can rewrite an entire unanchored journal, they can also recompute its hashes. That limitation belongs next to the integrity claim, not buried in a footnote.

A trustworthy audit tool should tell you both what it established and what it did not.

Try Chron

Install the CLI and MCP server:

npm install -g chron-mcp
Enter fullscreen mode Exit fullscreen mode

Then preview the setup for your client. For example:

chron setup --client=claude
Enter fullscreen mode Exit fullscreen mode

The repository contains configuration examples and explains the capture and verification limits:

Explore Chron on GitHub

Chron has now passed 14,000 downloads. If you try it, I'd especially value feedback on where the record is useful—and where the capture boundary needs to be clearer.

What would you need to see before trusting an audit trail for AI-assisted work?

Top comments (0)