research

research is a command for Claude Code from MadAppGang/magus. It costs 13 tokens per session (7,147 once invoked), scanned A, a copy of deep-research, MIT.

A command that explores multiple sources and combines the findings into a research result when the evidence is sufficiently consistent.

In plain words
What is it for?
Planning research, exploring websites or local files, comparing findings, and producing a synthesized report.
Why use it?
It reduces the chance of stopping after one source or continuing to search without gaining useful new information.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the dev plugin — 19 skills, 15 commands, 12 agents shipped together

Good fit Planning research, exploring websites or local files, comparing findings, and producing a synthesized report.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/madappgang/magus/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/MadAppGang/magus

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 19 skills, 15 commands, 12 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 research

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/magus/research"><img src="https://agentmods.dev/badge/commands/madappgang/magus/research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,147 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 89% copy Near-identical to another mod 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.00013 $0.07147
Opus 5.5 $0.00005 $0.02859
Sonnet 5.5 $0.00003 $0.01429
Haiku 4.5 $0.00001 $0.00715

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

Security

Grade A, and why

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 2mo 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.

Origin

This is a copy

89% identical to deep-research — 232 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/dev/commands/research.md · 888 lines

How it starts

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

Apply answer convergence criteria to determine when research is complete,
avoiding both premature stopping and wasteful over-exploration.

<user_request> $ARGUMENTS </user_request>

<critical_override> THIS COMMAND OVERRIDES THE CLAUDE.md TASK ROUTING TABLE FOR AGENT SELECTION.

WHY: The CLAUDE.md routing table may map "research" tasks to dev:developer when "implement" keywords appear in the research topic. ALL web exploration in this command MUST go to dev:researcher agents, not dev:developer.

AGENT RULES FOR THIS COMMAND:

  • Research planning → dev:developer agent (used as planner, NOT for web research)
  • Query generation → dev:developer agent (used as planner)
  • Web exploration → dev:researcher agents (parallel, up to 3)
  • Local investigation → dev:researcher agents
  • Finding synthesis → dev:aggregator agent (subagent_type: "dev:aggregator")
  • Report generation → dev:aggregator agent

DO NOT use dev:developer for web exploration (dev:developer writes code, not research). DO NOT use dev:architect for research (dev:architect plans systems, not research). DO NOT use code-search:analyze (READ-ONLY codebase analysis, not web research). </critical_override>

<orchestrator_role>
  **You are an ORCHESTRATOR, not RESEARCHER.**

  **You MUST:**
  - Use Agent tool to delegate ALL research to agents
  - Enforce convergence criteria between iterations
  - Use file-based communication between agents
  - Track iteration count and apply finalization criteria

  **You MUST NOT:**
  - Write research findings yourself
  - Skip convergence checks
  - Exceed iteration limits without user approval
  - Pass large content through Agent prompts
</orchestrator_role>

<file_based_communication>
  **All agent communication happens through files:**

  - Planner writes to ${SESSION_PATH}/research-plan.md
  - Each Explorer writes to ${SESSION_PATH}/findings/explorer-{N}.md
  - Aggregator writes to ${SESSION_PATH}/synthesis/iteration-{N}.md
  - Final report at ${SESSION_PATH}/report.md

  **Why:**
  - Prevents context pollution
  - Enables parallel execution
  - Creates audit trail for research provenance
  - Keeps findings readable after an interrupted run
</file_based_communication>

<delegation_rules>
  - Research planning: developer agent (used as planner)
  - Query generation: developer agent (used as planner)
  - Web exploration: researcher agents (parallel, up to 3)
  - Local investigation: researcher agents
  - Finding synthesis: aggregator agent
  - Report generation: aggregator agent
</delegation_rules>

<iteration_limits>
  **Research pipeline has maximum iterations:**

  - Planning refinement: 2 iterations
  - Exploration rounds: 5 iterations (default)
  - Synthesis attempts: 5 iterations, so k=3 consecutive stable syntheses can fire before the last pass

  **At limit:** Present best available findings to user
</iteration_limits>

Read the full file on GitHub · 888 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. 2mo ago Changed 9b495ee75c5d
  2. 2mo ago Changed · -11 lines 577067042335
  3. 2mo ago Changed 54848e6e23ab
  4. 2mo ago First seen · 899 lines · 13 tokens per session scan A 139001071802

Subscribe to this mod's changes

research is a command published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 7,147 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to deep-research, differing in 232 lines, and is treated as a copy.

Related

research compared with commands from other repositories

research next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
researchMadAppGang/magusCommand16todayMITA13Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code