Hooks for the CLIs you use
Install the OpenCode plugin in your repository with libra agent add opencode, then restart OpenCode there. OpenCode 2.0.29 can capture ordinary session content; reasoning-provider fields require separate verified support.
Git remembers what changed. As agents write more of the code, that's no longer enough. Libra is an AI-native, Git-compatible version control system that also records how the work was made — and keeps that memory in your repo.
curl --proto '=https' --tlsv1.2 -sSf https://download.libra.tools/install.sh | shbrew tap libra-tools/libra && brew install libraWhen an agent produces a 600-line change, the diff tells you the destination but hides the flight path — the conversation and tool activity that led to it. Capture makes the available source evidence inspectable; it does not invent plans, test results or approvals.
Reviewing generated code without its intent and evidence is guesswork at scale.
Chat logs live outside the repo and disappear. The reasoning is gone by the next PR.
Attribution and audit trails sit in someone else's SaaS, not in your version control.
Opt in to local capture for Claude Code, Codex and OpenCode. Inspect sessions and checkpoints in Libra, with capped, redacted transcript exports and explicit control over sharing. DeepSeek Harness is a separate bundle, not a libra agent add hook.
Install the OpenCode plugin in your repository with libra agent add opencode, then restart OpenCode there. OpenCode 2.0.29 can capture ordinary session content; reasoning-provider fields require separate verified support.
List captured sessions, inspect checkpoints by ID, and export a redacted transcript. Use agent doctor for capture diagnostics and JSON agent list schema 2 for exporter readiness; an empty export is not proof of success.
$ libra agent session list$ libra agent checkpoint list$ libra agent checkpoint export <id> -o checkpoint.jsonl$ libra agent doctor$ libra --json agent list --schema-version 2DeepSeek Harness connects through the independent @libra-tools/dsh-bundle package. It is not a capture hook, and libra agent add does not install it.
A real version control system underneath, with a capture layer designed around privacy, portability and control.
Import an existing Git repository and keep working. Libra speaks Git's object model, so your history and remotes come along.
Records are typed and stored in the open — queryable and exportable. Your creation history is data you own, not a vendor's black box.
Transcript and stderr are capped and redacted; raw export needs explicit flags and an audit entry.
RPC adapters are off until trusted; unsupported agents are refused with actionable errors, never silent fallbacks.
Clean stopped-session checkpoints, garbage-collect by age, and push trace refs to a remote only when you decide.
Developed in the open under a permissive MIT license. Read the code, self-host it, fork it — the record layer belongs to everyone who uses it.
The record layer is the foundation. Next: line-level attribution, search across creation history, and team review surfaces for agent-scale work.
Bring an existing project into Libra and start recording your agents' work — without changing how you run them.
Open, local-first, and MIT-licensed. Keep the how — not just the what — of everything your agents build.
Join our community on Discord