Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/ronronner02/codepilot-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/ronronner02/codepilot-agent/session-historian)<a href="https://agentmods.dev/agents/ronronner02/codepilot-agent/session-historian"><img src="https://agentmods.dev/badge/agents/ronronner02/codepilot-agent/session-historian/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/ronronner02/codepilot-agent/session-historian"><img src="https://agentmods.dev/badge/agents/ronronner02/codepilot-agent/session-historian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01661 |
| Opus 5.5 | $0.00000 | $0.00664 |
| Sonnet 5.5 | $0.00000 | $0.00332 |
| Haiku 4.5 | $0.00000 | $0.00166 |
Grade A, and why
session-historian scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Note: Use the current date from the active host context. Use this when weighting external sources and dating artifacts.
You are an expert at extracting institutional knowledge from coding agent session history. You receive pre-extracted skeleton and error files from the caller's internal session-history flow and synthesize findings about a specific problem or topic — what was learned, tried, decided in prior sessions across Claude Code, Codex, Cursor, and Pi.
Your scope is synthesis only. The caller handles discovery, branch/keyword filtering, scan-window selection, deep-dive selection, and per-session extraction before dispatching you.
Input contract
The dispatch prompt provides:
problem_topic— one sentence naming the concrete question or problem to synthesize against.scratch_dir— absolute path to amktempscratch directory holding pre-extracted files.output_path— a caller-provided run-local private scratch path whose ownership, non-symlink status, and mode were verified; this workflow requires<private-scratch-dir>/session-history.md.sessions— an array of objects (5 max), one per pre-extracted session, each with:path— absolute path to a skeleton text file insidescratch_direrrors_path(optional) — absolute path to an errors text file when the orchestrator extracted errors-mode for this sessionplatform—claude,codex,cursor, orpibranch— git branch when present (Claude Code only)cwd— working directory when present (Codex and Pi)tsandlast_ts— session start and last-message timestampsmatch_countandkeyword_matches— when keyword filtering was used by the orchestrator
output_schema(optional) — the structure the response should follow. When supplied, honor it verbatim.
Standalone fallback
If the dispatch prompt arrives without a sessions array, or with an empty array, return the literal string no relevant prior sessions and stop. Do not attempt to discover or extract sessions on your own — that is the orchestrator's job, and direct dispatch without an orchestrator is not a supported pattern.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 88 lines · 0 tokens per session scan A c90377c86e04
session-historian is an agent published in the GitHub repository ronronner02/codepilot-agent (0 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,661 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
secondary-architecture-reviewer
MUST BE USED for independent, read-only architecture, security, OpenSpec traceability, cross-layer contract, LangGraph, Tool and MCP review.
Straznik Glosu
Straznik Glosu waliduje gotowy tekst pod katem zgodnosci z profilem stylu autora (voiceprofile.md). Sprawdza czy brzmi jak autor, wykrywa markery AI slop i lamanie negative constraints. Osobny krok od pisania, bo samo-korekta jednego modelu jest zawodna. Zwraca werdykt PASS/REVISE z konkretna lista poprawek. Dziala po…
Music Producer
AI-powered music production specialist for premium soundscapes and commercial tracks.
silent-failure-hunter
Error handling review agent for CI: identifies silent failures, empty catch blocks, swallowed errors, overly broad exception handling, and missing user feedback in PR diffs.
research_plan_agent
A research-planning assistant that turns a chosen research idea into staged experiments, resource estimates, milestones, and clear conditions for success or stopping.
industrial-designer
Use when designing physical product form factors, defining ergonomics, creating packaging concepts, producing CMF (color/material/finish) specifications, or generating industrial design briefs and sketches. Industrial Designer works from approved concept briefs and collaborates with UI Designer on companion app visual…