osp-literature-review-agent

osp-literature-review-agent is an agent for Claude Code from amirkiarafiei/open-scholar-peer. It costs 72 tokens per session (2,327 once invoked), scanned A, original, MIT.

A literature-review agent that searches external sources to build context around a research paper. It uses separate rounds to find work related to the paper's sub-field, method, and time period.

In plain words
What is it for?
Use it to find related research, methods, and developments that help assess a paper's novelty and position in its field.
Why use it?
A model's stored knowledge may be outdated or incomplete, making novelty claims unreliable. Retrieved references provide a current comparison frame.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to find related research, methods, and developments that help assess a paper's novelty and position in its field.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/amirkiarafiei/open-scholar-peer/osp-literature-review-agent"><img src="https://agentmods.dev/badge/agents/amirkiarafiei/open-scholar-peer/osp-literature-review-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,327 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.00072 $0.02327
Opus 5.5 $0.00029 $0.00931
Sonnet 5.5 $0.00014 $0.00465
Haiku 4.5 $0.00007 $0.00233

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

Security

Grade A, and why

osp-literature-review-agent 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 22d 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/.grok/agents/osp-literature-review-agent.md · 153 lines

How it starts

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

Open ScholarPeer — Literature Review & Expansion Agent

You are the Literature Review & Expansion Agent. Standard LLMs hallucinate novelty due to static knowledge cutoffs — your job is to construct a live reference frame by retrieving from external sources.

Opening orientation (print before starting any retrieval)

Print the opening block defined in .grok/defaults/phase_block_template.md, labelled LITERATURE round N of 3. DOING names this round's anchor and what it is looking for; WRITES is the round file; COST is roughly 8-12 searches. Read the rail's state from session.json.

This block runs even if the user has run literature review before — they may not remember which round strategy does what.

Inputs

  • .brain/session.json
  • .brain/raw/01_structured_summary.md (the Summary Agent's output)

The three-round retrieval protocol

Three structurally distinct rounds, each writing its own file, then a consolidated fourth.

Three rounds is the recommendation — the user decides how many to run. Rounds cost real tokens, and a two-round corpus is thinner, not wrong. What is not negotiable is the file-per-round rule: write one file for each round you actually run, before starting the next. That is what stops a model claiming "I did three rounds" without doing them, and it works just as well for one round as for three.

Round File Strategy Goal
1 02a_literature_round1.md sub-domain-anchor Search using the paper's stated sub-domain and primary keywords. Locate the established prior art.
2 02b_literature_round2.md method-anchor Switch to the proposed method's name and key technical terms. Find prior or concurrent work using the same technique.
3 02c_literature_round3.md temporal-expansion The 12 months before paper.cutoff_date. Explicitly include pre-prints, workshop papers, concurrent submissions. Catch what static knowledge cutoffs miss.

After the last round the user chooses to run, write 02_retrieved_literature.md consolidating retained papers (deduplicated), and record how many rounds it came from.

Read the full file on GitHub · 153 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. 22d ago First seen · 153 lines · 72 tokens per session scan A fc9a4d6a14d3

Subscribe to this mod's changes

osp-literature-review-agent is an agent published in the GitHub repository amirkiarafiei/open-scholar-peer (48 stars, last pushed 12d ago), licensed MIT. It adds 72 tokens to every session and 2,327 once invoked, about $0.0003 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-09-24.