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 stefan-jansenv1.0.0MITIn 1 marketplace
Carries context from past Claude Code sessions into new ones, so earlier decisions and fixes resurface automatically. Runs hooks on every tool call and session start, batching observations through claude -p with a Claude subscription and no API key.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
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.
Automatic cross-session memory for Claude Code. Captures tool observations during sessions, batch-processes them with claude -p, and injects relevant context into future sessions.
During session: PostToolUse hook → buffer observations to JSONL
After session: SessionEnd hook → background claude -p → SQLite
Next session: SessionStart hook → query SQLite → inject context
No server process. No API keys. No vector database. Uses your Claude Max subscription via claude -p --model haiku.
| Approach | Calls/Session | Architecture |
|---|---|---|
| claude-mem (Agent SDK) | N+1 (per observation) | Persistent worker + subprocess |
| observer (batched) | 1 (end of session) | Stateless hooks + background script |
Add to your project's .claude/settings.json:
{
"enabledPlugins": {
"observer@local": true
}
}
Add these hooks to your project's .claude/settings.json. Replace PLUGIN_PATH with the absolute path to the observer plugin directory.
{
"hooks": {
"PostToolUse": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "python3 PLUGIN_PATH/scripts/buffer.py",
"timeout": 5000
}
]
}
],
"SessionStart": [
{
"matcher": "startup|clear|compact",
"hooks": [
{
"type": "command",
"command": "PLUGIN_PATH/hooks/session-start.sh",
"timeout": 30000
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "PLUGIN_PATH/hooks/session-end.sh",
"timeout": 10000
}
]
}
]
}
}
All data stored in ~/.claude-toolkit/observer/:
~/.claude-toolkit/observer/
├── observer.db # SQLite database (sessions, observations, summaries)
├── buffers/ # Temporary JSONL files during active sessions
└── errors.log # Processing failures
/observer:search <query>Search past observations using full-text search.
/observer:search "authentication bug"
/observer:search "database" --project factory --type decision
Appends raw tool observations to a per-session JSONL buffer. Filters out uninteresting tools (TodoWrite, AskUserQuestion, Skill, MCP tools, etc.). Truncates large payloads (>5KB). Targets <50ms execution.
Spawns process.py in the background via nohup. Never blocks session termination.
claude -p --model haiku --no-session-persistenceQueries SQLite for recent observations and summaries for the current project. Formats as concise markdown and returns via hookSpecificOutput.additionalContext.
Also processes any orphaned buffers from previous sessions that failed to process.
sessions (session_id, project, observation_count, created_at, completed_at)
observations (session_id, project, type, title, narrative, facts, files_read, files_modified)
summaries (session_id, project, request, learned, completed, next_steps)
FTS5 virtual table indexes observation titles, narratives, and facts for full-text search.
sqlite3 stdlib module)claude CLI in PATH (Max subscription)git (for project detection)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 stefan-jansen/coding-agent-plugins --plugin observerPlugins from other owners that cover similar ground