3-osp-historian

3-osp-historian is a command for Claude Code from amirkiarafiei/open-scholar-peer. It costs 13 tokens per session (849 once invoked), scanned A, original, MIT.

A command for turning collected research papers into a chronological explanation of how a research subfield developed.

In plain words
What is it for?
Use it after literature retrieval to write the domain narrative, place the paper under review in that history, and update the research session.
Why use it?
It helps replace a disconnected list of papers with a timeline showing major approaches, turning points, and related earlier work.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it after literature retrieval to write the domain narrative, place the paper under review in that history, and update the research session.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/amirkiarafiei/open-scholar-peer/3-osp-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/amirkiarafiei/open-scholar-peer

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 3-osp-historian

README.md
[![agentmods](https://agentmods.dev/badge/commands/amirkiarafiei/open-scholar-peer/3-osp-historian/github.svg)](https://agentmods.dev/commands/amirkiarafiei/open-scholar-peer/3-osp-historian)
Your own site
<a href="https://agentmods.dev/commands/amirkiarafiei/open-scholar-peer/3-osp-historian"><img src="https://agentmods.dev/badge/commands/amirkiarafiei/open-scholar-peer/3-osp-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 3-osp-historian

Your own site · 80×15
<a href="https://agentmods.dev/commands/amirkiarafiei/open-scholar-peer/3-osp-historian"><img src="https://agentmods.dev/badge/commands/amirkiarafiei/open-scholar-peer/3-osp-historian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 849 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.00013 $0.00849
Opus 5.5 $0.00005 $0.00340
Sonnet 5.5 $0.00003 $0.00170
Haiku 4.5 $0.00001 $0.00085

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

Security

Grade A, and why

3-osp-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.

extensions/.claude/commands/3-osp-historian.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/3-osp-historian — Sub-Domain Historian

Compresses the retrieved literature into a chronological narrative that mimics a senior researcher's mental model of the sub-domain.

Activation

Invoke the osp-historian-agent skill.

Inputs — none of these is a gate

  • phases.literature.status == "completed" and 02_retrieved_literature.md exists. Without it you have no retrieved corpus, so the narrative rests on your own knowledge alone — which has a cutoff and will miss recent work. Build it anyway, mark the phase's own limits in Provenance, and say plainly in the narrative that no literature was retrieved. Recommend /2-osp-literature once.

Record any skip before you start. The orchestrator is not in the loop when the user runs this command directly, so it falls to you: for every earlier phase still pending, set phases.<name>.status = "skipped" and phases.<name>.skip_reason to their reason, or "user ran /3-osp-historian first". A phase left pending reads as "not reached yet", and the final review cannot tell the difference.

Opening block (print before step 1)

Render the opening block exactly as .claude/defaults/phase_block_template.md defines it — that file holds the rail, the rules and the widths, and it is the only place they are written down. This is phase 4 of 7 (historian); read the rail's state from session.json. Values:

  DOING    build the sub-field's chronological narrative
  READS    .brain/raw/01_structured_summary.md
           .brain/raw/02_retrieved_literature.md
  WRITES   .brain/raw/03_domain_narrative.md
  COST     ~2 min, no external calls

Steps

  1. Read .brain/session.json, .brain/raw/01_structured_summary.md, .brain/raw/02_retrieved_literature.md.
  2. Activate the osp-historian-agent skill.
  3. The skill builds a chronological narrative grouped by inflection points (eras), each characterized by its dominant approach and what triggered the transition out.
  4. The skill places the paper under review in the narrative — same era it claims, or a different one — and identifies its closest precedents.
  5. Write .brain/raw/03_domain_narrative.md.
  6. Update session.json:
    • phases.historian.status = "completed"
    • phases.historian.completed_at = <now>
    • phases.historian.notes = "<N> eras identified; paper placed in era <N>"
    • resume_from = "baseline_scout"

Read the full file on GitHub · 70 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 Changed · +24 lines e03cc52c59de
  2. 2mo ago First seen · 46 lines · 13 tokens per session scan A 01f3726b5452

Subscribe to this mod's changes

3-osp-historian is a command published in the GitHub repository amirkiarafiei/open-scholar-peer (51 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 849 once invoked, about $0.0001 per session on Opus 5.5. 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-30.

Related

3-osp-historian compared with commands from other repositories

3-osp-historian next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
3-osp-historianamirkiarafiei/open-scholar-peerCommand51yesterdayMITA13Claude Code
run-experimentEvoClaw/amplifyCommand118mo agoMITA9Claude Code
write-paperEvoClaw/amplifyCommand118mo agoMITA13Claude Code
ars-planImbad0202/academic-research-skillsCommand56k2d agononeA19Claude Code
plotzhouziyue233/great-econometricsCommand86mo agononeA44Claude Code
graphite-morphology-classifyDaxxSec/cognitropy-labCommand14mo agononeA0Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code