claude-sdk-rs: Command for Claude Code

.claude/commands/initial-research.md

initial-research is a command for Claude Code from bredmond1019/claude-sdk-rs. It costs 0 tokens per session (939 once invoked), scanned A, original, Apache-2.0.

A command for investigating a question in the codebase or in outside resources and returning an organized report. It can also save the research as notes for use when planning work.

In plain words
What is it for?
Use it to investigate an architecture, behavior, bug, or external topic, with an optional request to write the findings to a pre-plan notes file.
Why use it?
It gathers the relevant code, documentation, and architectural decisions before implementation, reducing guesswork about how an existing system works. The capture option preserves the findings for later planning.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

This is bredmond1019/claude-sdk-rs's own configuration. It tells Claude Code how to work on claude-sdk-rs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-sdk-rs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bredmond1019/claude-sdk-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bredmond1019/claude-sdk-rs/main/.claude/commands/initial-research.md
Clone the repo
git clone --depth 1 https://github.com/bredmond1019/claude-sdk-rs

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/initial-research"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/initial-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 939 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.00000 $0.00939
Opus 5.5 $0.00000 $0.00376
Sonnet 5.5 $0.00000 $0.00188
Haiku 4.5 $0.00000 $0.00094

Measured 11d ago against content hash f64b09407089, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

initial-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 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.

.claude/commands/initial-research.md · 74 lines

How it starts

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

Initial Research — Conduct reconnaissance on a topic and report back

Conducts deep research into the codebase or external resources based on a detailed description. Reports back with highly structured, comprehensive context. Optionally captures this research directly into a pre-plan notes file if the --capture flag is provided.

Variables

$ARGUMENTS — a detailed description of the research topic, optionally including the --capture flag. Example: "--capture How does our current authentication flow handle token refresh?" Example: "Investigate the memory leak in the data processing pipeline"

Execution Model

Spawn a subagent (Agent tool) to execute all steps below. Pass the resolved $ARGUMENTS and this whole Instructions section in the subagent prompt. Return the subagent's result to the user.

Instructions

Step 1 — Parse arguments

  1. From $ARGUMENTS, determine the core research goal.
  2. Check if the --capture flag is present.

Step 2 — Conduct the research

  1. Act as a senior engineer conducting a deep reconnaissance mission. Investigate the topic thoroughly by reading code, documentation, and existing architectural decisions — but reading is not the only mode. Where the subject can be run, run it once; that outranks reading about it. A command, a script, a test, a server endpoint observed actually executing settles a question that reading its source can only suggest. Read first to know what to run, then run it.
  2. Critical Mandate: You must gather ALL important details during your investigation. Do not just summarize. You MUST collect:
    • File paths
    • Class/struct names, function signatures
    • Important snippets of relevant code
    • Any architectural nuances, constraints, or context that clarifies why things are the way they are.
    • Pointers on where to look to review/investigate further. This content must be EXTREMELY easy for the next agent or the user to dig into and know exactly what was discovered and how you reached your conclusions.

Read the full file on GitHub · 74 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 · 74 lines · 0 tokens per session scan A f64b09407089

Subscribe to this mod's changes

initial-research is a command published in the GitHub repository bredmond1019/claude-sdk-rs (23 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 939 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-10-26.

Related

initial-research compared with commands from other repositories

initial-research next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
initial-researchbredmond1019/claude-sdk-rsCommand231mo agoApache-2.0A0Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code