session-historian

session-historian is an agent for Claude Code from ronronner02/codepilot-agent. It costs 0 tokens per session (1,661 once invoked), scanned A, original, MIT.

An agent that records session history and uses the computer's current date when judging external sources or dated materials.

In plain words
What is it for?
Recording session history and applying the current date when evaluating external sources and artifacts.
Why use it?
It helps keep notes and source assessments tied to the correct time.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Recording session history and applying the current date when evaluating external sources and artifacts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ronronner02/codepilot-agent/session-historian
Install

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.

Clone the repo
git clone --depth 1 https://github.com/ronronner02/codepilot-agent

Made for: Claude Code.

Wrote 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.

agentmods badge for session-historian

README.md
[![agentmods](https://agentmods.dev/badge/agents/ronronner02/codepilot-agent/session-historian/github.svg)](https://agentmods.dev/agents/ronronner02/codepilot-agent/session-historian)
Your own site
<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.

agentmods 80×15 button for session-historian

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,661 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash c90377c86e04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/spec-first/workflows/spec-compound/references/agents/session-historian.md · 88 lines

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 a mktemp scratch 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 inside scratch_dir
    • errors_path (optional) — absolute path to an errors text file when the orchestrator extracted errors-mode for this session
    • platform — claude, codex, cursor, or pi
    • branch — git branch when present (Claude Code only)
    • cwd — working directory when present (Codex and Pi)
    • ts and last_ts — session start and last-message timestamps
    • match_count and keyword_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.

Read the full file on GitHub · 88 lines

Changes

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.

  1. 1mo ago First seen · 88 lines · 0 tokens per session scan A c90377c86e04

Subscribe to this mod's changes

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.

Related

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.

HsienW/chat-gun-react-agent · 36 tokens

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…

TheJacksonCode/Agent-Architecture · 108 tokens

Music Producer

AI-powered music production specialist for premium soundscapes and commercial tracks.

frankxai/agentic-creator-os · 16 tokens

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.

rube-de/cc-skills · 38 tokens

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.

BingHanOfUESTC/open_agent_team · 30 tokens

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…

10Legs/freelance-developer-harness · 58 tokens