2-osp-literature

2-osp-literature is a command for Claude Code from amirkiarafiei/open-scholar-peer. It costs 20 tokens per session (1,401 once invoked), scanned A, original, MIT.

A literature-review command that performs one round of external paper searches per invocation. It searches by research area, method, or recent work and records progress across up to three rounds.

In plain words
What is it for?
Use it after the summary stage to search for related work in the paper's subfield, find papers using the same method, and expand the review to research from the last 12 months.
Why use it?
It expands the paper's references and surrounding research in a controlled order instead of performing all searches at once. It also checks that the paper summary and required earlier files exist.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it after the summary stage to search for related work in the paper's subfield, find papers using the same method, and expand the review to research from the last 12 months.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/amirkiarafiei/open-scholar-peer/2-osp-literature"><img src="https://agentmods.dev/badge/commands/amirkiarafiei/open-scholar-peer/2-osp-literature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 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,401 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.00020 $0.01401
Opus 5.5 $0.00008 $0.00560
Sonnet 5.5 $0.00004 $0.00280
Haiku 4.5 $0.00002 $0.00140

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

Security

Grade A, and why

2-osp-literature 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/2-osp-literature.md · 101 lines

How it starts

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

/2-osp-literature — Literature Review & Expansion

Runs ONE round of external retrieval per invocation. Three rounds are recommended; the user decides how many to run. After each round it reports what it found and offers both routes: another round, or move on.

Activation

Invoke the osp-literature-review-agent skill.

Inputs — none of these is a gate

  • phases.summary.status == "completed" and 01_structured_summary.md exists. Without it, read .brain/input/paper.md and derive the query terms yourself; say in Provenance that you did.
  • Rounds run in order (1 → 2 → 3) because each strategy builds on the last. How many you run is the user's choice — one round is a valid, thinner corpus, not an error.

Resource notice

⚠️ Each invocation makes ~8-12 API calls across whichever databases this project installed, plus native web search. Expect 1-3 minutes per round.

Round definitions

# Anchor Goal
1 sub-domain-anchor Search using the paper's stated sub-domain and primary keywords
2 method-anchor Search using the method's name and key technical terms
3 temporal-expansion Filter to last 12 months; include arXiv pre-prints, concurrent submissions

Opening block (print before the round starts)

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 is the only place they are written down. This is phase 3 of 7 (literature); the rail carries ◐ while rounds remain. Values:

  DOING    <the anchor for this round, in one line>
  READS    .brain/raw/01_structured_summary.md
  WRITES   .brain/raw/02<a|b|c>_literature_round<N>.md
  COST     ~1-3 min, ~8-12 searches

Steps

  1. Read .brain/session.json.
    • Determine next_round = phases.literature.rounds_completed + 1 (default 0 → next = 1).
    • If next_round > 3, all three recommended rounds are done: consolidate if that has not happened yet, and point at /3-osp-historian.
    • If any earlier round file is missing, resume from that round instead.

Read the full file on GitHub · 101 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 · +30 lines 8959061aae59
  2. 2mo ago First seen · 71 lines · 20 tokens per session scan A b62a904988a2

Subscribe to this mod's changes

2-osp-literature is a command published in the GitHub repository amirkiarafiei/open-scholar-peer (51 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 1,401 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

2-osp-literature compared with commands from other repositories

2-osp-literature next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
2-osp-literatureamirkiarafiei/open-scholar-peerCommand51yesterdayMITA20Claude Code
ars-mark-readImbad0202/academic-research-skillsCommand56k2d agononeA23Claude Code
ars-cache-invalidateImbad0202/academic-research-skillsCommand56k2d agononeA20Claude Code
ars-disclosureImbad0202/academic-research-skillsCommand56k2d agononeA21Claude Code
ars-revision-coachImbad0202/academic-research-skillsCommand56k2d agononeA27Claude Code
ars-abstractImbad0202/academic-research-skillsCommand56k2d agononeA17Claude Code
ars-fullImbad0202/academic-research-skillsCommand56k2d agononeA16Claude Code