Codex
historia agent install codexHistoria does not rewrite a CLI application’s private session database. Instead, it gives agents a stable retrieval interface over the Git archive and installs a portable skill describing how to search, expand, cite, and verify that history.
This keeps provider- and CLI-specific storage formats outside the archive contract while still making earlier web conversations available during local work.
Codex
historia agent install codexKimi
historia agent install kimiInstall at project scope instead of the user profile:
historia agent install codex --scope projecthistoria agent install kimi --scope projectThe skill is written to:
| Agent | User scope | Project scope |
|---|---|---|
| Codex | ${CODEX_HOME:-~/.codex}/skills/historia-chat-agent/ |
.codex/skills/historia-chat-agent/ |
| Kimi | ${KIMI_CODE_HOME:-~/.kimi-code}/skills/historia-chat-agent/ |
.kimi-code/skills/historia-chat-agent/ |
historia chat indexindex is incremental. It reads source refs, processes newly reachable archive
commits, stores new immutable revisions once, and updates checkpoints. Delete the
SQLite file and use --rebuild when a complete projection refresh is required.
historia chat search "Hestia private rooms"Narrow the result set:
historia chat search "agent keys" \ --role user \ --role assistant \ --since 2026-07-01 \ --limit 20Search old message revisions as well as the current revision:
historia chat search "earlier architecture" --historicalhistoria context build \ "Hestia keys, private rooms and ledger signing" \ --budget 12000 \ --max-conversations 8 \ --radius 2 \ --include-branches \ --format markdown \ --output /tmp/historia-context.mdThe bundle records:
Refresh the index before relying on newly imported or browser-collected work.
historia chat indexUse the narrowest search that can answer the task.
Expand context only around relevant messages and conversation snapshots.
Preserve Historia citation labels in conclusions, implementation notes, or generated plans.
Distinguish provider timestamps from archive observation and import times.
Treat structural or lexical similarity as ranking evidence—not proof that two messages, decisions, or code structures are equivalent.
A result can be resolved back through:
source ref → archive commit → conversation manifest path → logical message identity → immutable revision OID → message object path → raw provider record OIDThis means an agent can report not merely that “the user discussed private rooms,” but which imported or observed conversation, commit, branch, and message revision supports the claim.
An agent without a dedicated skill can consume the same deterministic interface:
historia chat search "query" > /tmp/results.jsonhistoria context build "query" --format markdown > /tmp/context.mdThe core retrieval path requires no MCP server, embedding provider, remote vector database, or LLM call. An MCP adapter can be added later without changing the Git or SQLite contracts.