5-osp-qa

5-osp-qa is a command for Claude Code from amirkiarafiei/open-scholar-peer. It costs 20 tokens per session (1,042 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; mentions Claude Code; mentions Gemini CLI.

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,042 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.01042
Opus 5 $0.00010 $0.00521
Sonnet 5 $0.00004 $0.00208
Haiku 4.5 $0.00002 $0.00104

Measured 11d ago against content hash 62dd3c053114, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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 · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 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 Antigravity).

Activation

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

Prerequisites

  • phases.summary.status, phases.literature.status, phases.historian.status, phases.baseline_scout.status all "completed".
  • qa_criteria[] is non-empty in session.json.

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:

    ⚠️  Q&A Engine — resource estimate
       Criteria:  C
       Pairs/criterion: N  (currently set in session.json)
       Total subagent calls: C × N = <total>
       Estimated time: ~<total × 45s> at typical API latency
    
       Pair count guide:
         2  — quick scan, catches the most obvious issues         (default)
         5  — thorough coverage, good for most reviews
         10 — exhaustive, suitable for high-stakes decisions
    
  4. Ask the user: "How many Q&A pairs per criterion? Press Enter for [N] or type a number (2–10):"

  5. If the user enters a number, update session.json.qa_pairs_per_criterion to that value and use it. If the user presses Enter, use the existing value.

Mode selection

  • Subagent mode (default): Claude Code, Cursor, Gemini CLI, GitHub Copilot CLI. The Query Agent delegates each question to the Answer Generator as a subagent with a fresh, minimal context bundle.
  • Self-reflection mode (Antigravity only): The Query Agent uses strict turn markers (=== Query Agent === ... === END === === Answer Generator === ...) within the main context window.

Read the full file on GitHub · 86 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. 11d 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 (27 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 1,042 once invoked, about $0.0001 per session on Opus 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.