Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By onlooker-communityv0.13.4MITIn 1 marketplace
Episodic memory layer. At SessionEnd, chunks and sanitizes the session transcript and stores chunks under $ONLOOKER_DIR/historian/<project-key>/sessions/ (default $HOME/.onlooker). On UserPromptSubmit, embeds the prompt and performs similarity retrieval over stored chunks to surface relevant past context. Builds on the Onlooker ecosystem plugin.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Episodic memory layer for past Claude Code sessions.
At every SessionEnd, Historian launches a detached indexer (scripts/run-index.sh) and returns immediately. That indexer reads the session transcript, splits it into overlapping chunks at turn boundaries — splitting mid-turn when a single turn is larger than the character target — redacts secret-shaped substrings, embeds each chunk via a local Ollama daemon, and persists the chunks under ~/.onlooker/historian/<project-key>/sessions/<session-id>.jsonl. At every UserPromptSubmit, Historian embeds the prompt and retrieves the most similar past chunk (within a similarity floor and freshness window), then injects an additionalContext block whose first line is a "looks similar" pointer and whose body is a multi-line excerpt of the matched chunk.
Historian is a sibling plugin to ecosystem and assumes the Onlooker observability substrate (~/.onlooker/) is present. It is parallel to librarian (which consolidates session decisions into the typed memory store) — both turn session-scoped material into something queryable across sessions, but at different levels of distillation. Librarian distills; historian preserves verbatim.
See docs/design.md and ADR-001 for the full design, including the local-embeddings-by-default decision.
| Hook | What Historian does |
|---|---|
SessionEnd | Launches scripts/run-index.sh detached and exits. The indexer reads the transcript at transcript_path, drops tool calls and tool results (keeps user + assistant messages), chunks inside the configured character target with overlap, runs the sanitizer (secret redaction + [historian:skip] markers + path-deny list), embeds each surviving chunk via the configured backend, and appends one JSONL line per chunk to the session's file. Emits historian.indexing.*, historian.chunk.*, historian.embedder.unavailable and historian.embedder.failed events along the way. |
UserPromptSubmit | Rate-gated retrieval: short prompts, cooldown windows, and per-session caps short-circuit before the embedder runs. Otherwise embeds the prompt, streams every JSONL chunk for the project, and injects an additionalContext block — a header pointer line plus a multi-line excerpt — for the top cosine-similarity match above the floor. A chunk stored without a vector is matched by term overlap instead and ranks below every vector match. When the prompt itself cannot be embedded, every chunk is matched by term overlap and retrieval.complete carries query_unembedded. Excludes chunks from the current session id (a session retrieving its own chunks is the degenerate case). Emits historian.retrieval.started when the rate gate clears (with prompt_chars, plus embed_chars when the query had to be fitted to the embedder's max_input_chars), historian.retrieval.surfaced on the surfaced outcome (with match: vector|lexical), and historian.retrieval.complete with outcome: surfaced|empty|skipped and a skip_reason enum for skipped runs (embedder_unavailable there now means backend: "none"). |
Install via the marketplace:
/plugin install historian@onlooker-community
See config.json for the full set of tunable defaults.
A SessionEnd hook that declares no timeout is killed at 1500ms, and the
indexing pass does not fit in that budget:
| work | measured |
|---|---|
| one warm embed | 51ms, so about 29 chunks fit the budget |
| a real 8.5MB transcript | 117 chunks, roughly 6s of embedding |
a cold nomic-embed-text load | 11.24s, against an 8s request timeout |
Run inline, both failures were silent. Every historian.indexing.complete
with outcome: "ok" in the live log had indexed exactly 2 chunks — not
historian working, just the only size that fit — while larger sessions appear
in hook-health.jsonl as terminated at 1503-1527ms. Detached, the pass can
take its cold load and its 117 embeds while the session closes immediately
(ONL-123).
Two consequences worth knowing:
SessionEnd path nothing.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub onlooker-community/ecosystem --plugin historianPlugins from other owners that cover similar ground