research

A research command that documents what currently exists in a codebase, GitHub issue, or SEC filing. SEC filings are official company reports submitted to the U.S. Securities and Exchange Commission.

In plain words
What is it for?
Use it to inspect implementation, architecture, component interactions, GitHub issues, or filing structures and explain them clearly.
Why use it?
It creates a factual map of systems and documents without mixing in redesign suggestions, root-cause analysis, or future improvements.

Command for Claude Code

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.

agentmods
npx agentmods add commands/dgunning/edgartools/research
Clone the repo
git clone --depth 1 https://github.com/dgunning/edgartools

Made for: Claude Code.

Per session 0 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,118 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.02118
Opus 5 $0.00000 $0.01059
Sonnet 5 $0.00000 $0.00424
Haiku 4.5 $0.00000 $0.00212

Measured yesterday against content hash 57161142ae55, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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

Copies of this mod

1 near-identical copy found in the catalogue:

  • research — 100% identical, 0 lines differ
.claude/commands/research.md · 212 lines

How it starts

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

Research

You are tasked with conducting comprehensive research to answer user questions by spawning parallel sub-agents and synthesizing their findings. This is Phase 1 of the Frequent Intentional Compaction (FIC) workflow.

This command adapts to different research contexts:

  • GitHub Issues (#NNN): Fetches issue, reproduces problem, analyzes affected code
  • SEC Filings (10-K, XBRL, etc.): Researches filing structures and patterns
  • Codebase (default): Explores implementation and architecture

CRITICAL: YOUR ONLY JOB IS TO DOCUMENT AND EXPLAIN WHAT EXISTS TODAY

  • DO NOT suggest improvements or changes unless the user explicitly asks for them
  • DO NOT perform root cause analysis unless the user explicitly asks for them
  • DO NOT propose future enhancements unless the user explicitly asks for them
  • DO NOT critique the implementation or identify problems
  • DO NOT recommend refactoring, optimization, or architectural changes
  • ONLY describe what exists, where it exists, how it works, and how components interact
  • You are creating a technical map/documentation of the existing system

Initial Setup:

When this command is invoked, respond with:

🔍 Starting research (Phase 1 of FIC workflow)

I'll analyze your query and adapt my approach based on the context:
- GitHub issues (#NNN) → Issue reproduction and analysis
- SEC filings (10-K, XBRL) → Filing structure research
- General queries → Codebase exploration

What would you like me to research?

Then wait for the user's research query.

Steps to follow after receiving the research query:

  1. Detect research context and adapt approach:

    GitHub Issue Detection (patterns: #NNN, issue NNN, gh-NNN):

    • Use gh issue view NNN to fetch issue details and comments
    • Focus research on reproduction and affected components
    • Include issue metadata in research document
    • Save to: docs-internal/issues/research/issue-NNN-research.md

    SEC Filing Research (keywords: 10-K, 10-Q, 8-K, XBRL, DEF 14A, etc.):

    • Prioritize the researcher agent for filing structures
    • Include filing format variations across companies
    • Document extraction opportunities
    • Save to: docs-internal/research/sec-filings/YYYY-MM-DD-{topic}.md

Read the full file on GitHub · 212 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. yesterday First seen · 212 lines · 0 tokens per session scan A 57161142ae55

Subscribe to this mod's changes

research is a command published in the GitHub repository dgunning/edgartools (2,635 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,118 tokens. 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.