Chatlog
Chatlog is a local, provider-agnostic context layer for coding agents. It turns
Claude Code, Codex, Pi, OMP, ChatGPT, and Anthropic activity into portable
evidence, governed insights, and bounded context for later sessions.
Pre-release: v0.1.0-rc.1 is ready for local evaluation. Storage formats
and operator workflows can still change before v0.1.0.
The feedback loop
work -> events -> evidence -> insights -> context -> better work
Chatlog:
- reads provider histories without modifying them;
- normalizes supported records into immutable, redacted agent events;
- keeps exact provenance and reports semantic loss at adapter boundaries;
- provides local search, project state, evidence lookup, and bounded recall;
- requires explicit human authority before a derived claim becomes active;
- records context delivery, feedback, and observed outcomes separately.
It does not merge private provider session stores or silently rewrite an
agent's native memory. Context is delivered through supported startup hooks,
MCP tools, or inert prompt artifacts.
Install and first launch
The pre-release Nix package supports x86_64-linux and aarch64-linux.
Install Nix with flakes enabled first. From a
checkout of the pre-release:
nix profile install --refresh .#chatlog
chatlog --version
chatlog ingest
chatlog-workbench
For a temporary launch without installing, run nix run .#workbench.
chatlog ingest discovers local histories under ~/.claude/projects,
~/.codex/sessions, ~/.pi/agent/sessions, and ~/.omp/agent/sessions.
It writes the redacted corpus and derived views to
${XDG_DATA_HOME:-~/.local/share}/chatlog. The command does not run as a
watcher. Run it again after new agent work.
Each run adapts at most 256 new, changed, or recipe-stale files per harness.
Chatlog samples those candidates across their modification-time range. It also
defers files modified during the last five seconds. Repeated runs drain the
deferred backlog without repeatedly parsing unchanged histories. The result
reports deferred and unsettled counts for each harness.
Set these variables to change the bounds:
export CHATLOG_INGEST_MAX_SOURCES_PER_ADAPTER=1024
export CHATLOG_INGEST_MIN_SOURCE_AGE_MS=0
chatlog ingest
chatlog-workbench prints a one-time loopback URL. Open that URL to browse
projects and sessions, search prior attempts, inspect evidence, review
patterns, and manage released context. The server sends no hosted analytics.
Set one persistent custom data root before ingestion and agent startup if
required:
export CHATLOG_DATA_ROOT=/path/to/operator-owned/chatlog
The data root must exist for agent plugins and must be outside the active
repository.
Connect Claude Code and Codex
The installed package contains one local marketplace for both plugin systems:
CHATLOG_MARKETPLACE="$(chatlog plugin path)"
claude plugin marketplace add "$CHATLOG_MARKETPLACE"
claude plugin install chatlog-memory@chatlog --scope user
codex plugin marketplace add "$CHATLOG_MARKETPLACE"
codex plugin add chatlog-memory@chatlog
Open a new Claude Code or Codex session after installation. The plugin exposes
bounded local MCP tools for search, evidence, recent work, project state,
governed context, and recursive recall. A startup hook binds governed delivery
only when the data root contains a current insight projection for that
project. It never injects complete transcripts or promotes a candidate.
OMP and Pi histories are ingested. Their current context-delivery adapters
produce operator-authorized fresh-session prompt artifacts; no automatic
plugin installation is provided for those harnesses in this pre-release.
Import provider exports
Preview an export before it changes local state. Copy sourceContentHash and
proposalId from each preview. Both values are required for the matching import:
chatlog preview chatgpt /path/to/chatgpt-export.zip personal
chatlog import chatgpt /path/to/chatgpt-export.zip personal \
--source-content-hash <sha256> --proposal-id <sha256>
chatlog preview anthropic /path/to/anthropic-export.zip personal
chatlog import anthropic /path/to/anthropic-export.zip personal \
--source-content-hash <sha256> --proposal-id <sha256>
The import stops if the source or proposal changed after the preview.
The generic chatlog/generic-events-v1 importer supports versioned external
adapters. See
docs/workbench.md.
What works in this pre-release