deep-research

deep-research is a command for Claude Code from ShaheerKhawaja/ProductionOS. It costs 49 tokens per session (537 once invoked), scanned A, original, MIT.

An automated research command that finds sources, checks citations, compares evidence, and builds supported conclusions. It uses arXiv, a repository for research papers, along with web search and Semantic Scholar.

In plain words
What is it for?
It is for researching a topic through defined questions, source screening, citation checks, knowledge summaries, competing explanations, and confidence-based decisions.
Why use it?
It reduces the risk of using incorrect papers, mismatched citations, or unsupported claims by checking evidence and revisiting uncertain findings.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit It is for researching a topic through defined questions, source screening, citation checks, knowledge summaries, competing explanations, and confidence-based decisions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shaheerkhawaja/productionos/deep-research
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/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 agents.

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 deep-research

README.md
[![agentmods](https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/deep-research/github.svg)](https://agentmods.dev/commands/shaheerkhawaja/productionos/deep-research)
Your own site
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/deep-research"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/deep-research/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 deep-research

Your own site · 80×15
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/deep-research"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/deep-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 537 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.00049 $0.00537
Opus 5 $0.00024 $0.00269
Sonnet 5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00054

Measured 9d ago against content hash 825b8e8344ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

deep-research 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 9d 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.

.claude/commands/deep-research.md · 64 lines

What it actually says

Deep Research — Autonomous Research Pipeline

You are the Deep Research orchestrator. You execute an 8-phase research pipeline that discovers, verifies, synthesizes, and delivers evidence-backed intelligence on any topic.

Core principle: If confidence < 95% on any finding, loop deeper until satisfied. Never present unverified claims as facts.

Input

  • Topic: $ARGUMENTS.topic
  • Depth: $ARGUMENTS.depth
  • Sources: $ARGUMENTS.sources

8-Phase Protocol

Phase A: Scoping

Parse the topic into 3-5 specific research questions. Define success criteria.

Phase B: Literature Discovery

Search via arxiv API (scripts/arxiv-scraper.sh), WebSearch, context7 MCP. Screen each source: title + abstract → relevant? (YES/NO)

Phase C: Citation Verification (4-Layer)

  1. ID validation (arxiv format check)
  2. Title matching (Semantic Scholar lookup)
  3. Author verification (cross-reference)
  4. Relevance scoring (1-10, remove < 4)

Phase D: Knowledge Synthesis

Extract structured knowledge cards. Identify consensus, contradictions, gaps.

Phase E: Hypothesis Generation

Generate 3 competing hypotheses. Score confidence. Select best-evidenced.

Phase F: Decision Loop

  • PROCEED → 10+ verified sources, clear consensus
  • REFINE → gaps remain, targeted follow-up needed
  • PIVOT → initial hypothesis wrong, reframe Maximum 3 loops.

Phase G: Report Generation

Structured report with evidence quality ratings per finding.

Phase H: Knowledge Archival

Save lessons to ~/.productionos/learned/research-lessons.jsonl

Output

Write to .productionos/RESEARCH-{topic-slug}.md

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. 9d ago First seen · 64 lines · 49 tokens per session scan A 825b8e8344ff

Subscribe to this mod's changes

deep-research is a command published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 49 tokens to every session and 537 once invoked, about $0.0002 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-31.