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.10.6MITIn 1 marketplace
Structured session memory across context truncation: extracts decisions, dead ends, and open questions on PreCompact and reinjects the most important items at SessionStart. Builds on the Onlooker ecosystem plugin.
Run automatically on Claude Code events. Claude doesn't decide.
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.
Structured session memory across context truncation.
When Claude Code compacts a long conversation, Archivist extracts the decisions made, dead ends hit, and open questions raised — then reinjects the most relevant items at the start of the next session. Context windows are finite; important context shouldn't be.
Archivist is a sibling plugin to ecosystem and assumes the Onlooker observability substrate (~/.onlooker/) is present.
| Hook | What Archivist does |
|---|---|
PreCompact | Reads the transcript tail, calls claude -p with a structured-extraction prompt, validates referenced file paths against the current repo, and writes ULID-keyed JSON artifacts under ~/.onlooker/archivist/<project-key>/. |
SessionStart | Loads artifacts for the current project key, ranks them (pinned first, then recency), and emits them as invisible additionalContext within a token budget. |
SessionEnd | Mines commits on the default branch since a per-project watermark (mined.json) into decision artifacts, oldest first, at most mining.max_commits_per_run per session. The watermark advances after each commit, so a backlog clears over a few sessions instead of being retried whole. |
Install Archivist from the marketplace:
/plugin install archivist@onlooker-community
Once installed, the plugin is active automatically — no extra configuration required.
All keys are optional. Unset keys fall back to the plugin's config.json defaults.
{
"archivist": {
"extraction": {
"model": "claude-haiku-4-5-20251001",
"max_output_tokens": 1500,
"transcript_tail_chars": 60000
},
"injection": {
"max_items": 8,
"max_chars": 2400,
"include_open_questions": true,
"include_dead_ends": true
},
"mining": {
"max_commits_per_run": 10
}
}
}
| Key | Default | Description |
|---|---|---|
extraction.model | claude-haiku-4-5-20251001 | Model used for transcript extraction. Haiku is fast and cheap; the extraction prompt is structured and does not require deep reasoning. |
extraction.max_output_tokens | 1500 | Token ceiling for the extraction response. |
extraction.transcript_tail_chars | 60000 | How many characters of the transcript tail to feed into extraction. Larger values capture more context at higher cost. |
injection.max_items | 8 | Maximum number of artifacts to inject at SessionStart. |
injection.max_chars | 2400 | Hard ceiling on total injected context characters. |
injection.include_open_questions | true | Whether to inject open question artifacts. |
injection.include_dead_ends | true | Whether to inject dead end artifacts. |
mining.max_commits_per_run | 10 | Most commits mined per SessionEnd. Each costs roughly 40–60ms, and the CLI gives the whole SessionEnd batch 1500ms, which a plugin cannot raise. 0 removes the cap. |
~/.onlooker/archivist/<project-key>/
├── manifest.json # project_key, remote_url, repo_root, last_compact_at
├── decisions/<ulid>.json
├── dead_ends/<ulid>.json
├── open_questions/<ulid>.json
└── pinned.json # ULIDs that always inject first, regardless of recency
Each artifact:
{
"id": "01J...",
"kind": "decision",
"project_key": "abc123def456",
"source": "local",
"created_at": "2026-05-22T10:00:00Z",
"updated_at": "2026-05-22T10:00:00Z",
"summary": "One-line headline.",
"detail": "Optional longer text.",
"files": ["relative/path/from/repo/root.ts"],
"session_id": "..."
}
The source field is "local" today. Future cloud sync may set it to "cloud" or "team:<id>".
Two layers ensure artifacts from one repo never surface in another:
files[] entry extracted from the transcript is resolved against git rev-parse --show-toplevel. Entries referencing paths outside the repo or that don't exist are stripped before persisting.ecosystem plugin installed (for ~/.onlooker/ substrate).claude CLI on PATH for extraction.jq for JSON manipulation.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 archivistPlugins from other owners that cover similar ground