5-osp-qa

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

A question-and-answer stage in Open ScholarPeer, a workflow for reviewing research papers. It creates probing question-and-answer pairs for each review criterion using separate question and answer roles.

In plain words
What is it for?
It is for generating structured questions and answers about a paper's summary, literature, history, baselines, and other configured criteria.
Why use it?
It helps test research claims against review criteria after the earlier investigation stages are complete.

Command for Claude Code

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

Good fit It is for generating structured questions and answers about a paper's summary, literature, history, baselines, and other configured criteria.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/amirkiarafiei/open-scholar-peer/5-osp-qa"><img src="https://agentmods.dev/badge/commands/amirkiarafiei/open-scholar-peer/5-osp-qa.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,574 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.01574
Opus 5.5 $0.00008 $0.00630
Sonnet 5.5 $0.00004 $0.00315
Haiku 4.5 $0.00002 $0.00157

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

Security

Grade A, and why

5-osp-qa 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/5-osp-qa.md · 119 lines

How it starts

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

Tool capability: This tool supports subagents. The Query Agent MUST delegate each question to osp-answer-generator-agent as a subagent with a fresh, minimal context bundle. Do NOT use self-reflection.

/5-osp-qa — Multi-Aspect Q&A Engine

For each criterion in session.json.qa_criteria[], generate N probing Q&A pairs (N = qa_pairs_per_criterion, default 2). The Query Agent runs in the main thread; the Answer Generator runs as a subagent (or self-reflects on the few tools that lack them).

Activation

Invoke the osp-query-agent skill (main thread). The Query Agent will spawn osp-answer-generator-agent per question.

Inputs — none of these is a gate

  • phases.summary.status, phases.literature.status, phases.historian.status and phases.baseline_scout.status. Each one that is missing removes a source of evidence, not the phase: no summary means you question the paper directly; no literature or narrative means novelty claims cannot be checked against prior work; no baseline scout means no missing-baseline questions. Run with what exists, name each gap in the artifact's Provenance, and let the answers say "could not be verified" rather than guessing.
  • qa_criteria[] in session.json. If it is empty, onboarding never ran — use the generic criteria from .claude/defaults/generic_review_guidelines.md and record that you did.

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 /5-osp-qa first". A phase left pending reads as "not reached yet", and the final review cannot tell the difference.

Step 0 — Resource check and pair count (run BEFORE any Q&A work)

  1. Read session.json. Count qa_criteria[] items (call it C).
  2. Read qa_pairs_per_criterion from session.json (default 2 if absent).
  3. Print the resource estimate:

Read the full file on GitHub · 119 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 · +28 lines 4cf203692f40
  2. 1mo ago Changed · +5 lines a6ec87b6cb03
  3. 2mo ago First seen · 86 lines · 20 tokens per session scan A 62dd3c053114

Subscribe to this mod's changes

5-osp-qa 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,574 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

5-osp-qa compared with commands from other repositories

5-osp-qa next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
5-osp-qaamirkiarafiei/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