/harness-engineering:context engineering:research research-questionfrom harness-engineering
Spawns parallel sub-agents to research a codebase comprehensively, using locator, analyzer, and synthesis agents, and documents findings in memory-bank/research/.
Ships in harness-engineering. Installing the plugin adds it to Claude Code.
You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesizing their findings. All research documents must be stored in the memory-bank/research/ directory, following the YAML frontmatter and content structure below.
When this command is invoked, respond with:
I'm ready to research the codebase. Please provide your research question or area of interest, and I'll analyze it thoroughly by exploring relevant components and connections.
Then wait for the user's research query.
Read any directly mentioned files first:
Analyze and decompose the research question:
Spawn parallel sub-agent tasks for comprehensive research:
YOU MUST DEPLOY THESE 3 IN PARELLEL YOU WILL BE PUNISHED FOR NOT DEPLOYING SUBAGENTS IN PARELLEL
For codebase research:
The key is to use these agents intelligently:
Wait for all sub-agents to complete and synthesize findings:
Gather metadata for the research document:
memory-bank/research/YYYY-MM-DD_HH-MM-SS_topic.mdGenerate research document:
memory-bank/research/:
# Research – <TASK_NAME>
**Date:** {{date}}
**Owner:** {{agent or user}}
**Phase:** Research
## Goal
Summarize all *existing knowledge* before any new work.
- Additional Search:
- `grep -ri "<term>" .claude/`
## Findings
- Relevant files & why they matter:
- `<file>` → `<reason>`
- `<file>` → `<reason>`
## Key Patterns / Solutions Found
- `<pattern>`: short description, relevance
## Knowledge Gaps
- Missing context or details for next phase
## References
- Links or filenames for full review
Add GitHub permalinks (if applicable):
git branch --show-current and git statusgh repo view --json owner,namehttps://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}memory-bank/research/ paths where applicable.Handle follow-up questions:
last_updated and last_updated_by to reflect the updatelast_updated_note: "Added follow-up research for [brief description]" to frontmatter## Follow-up Research [timestamp]Always use parallel Task agents to maximize efficiency and minimize context usage
Always run fresh codebase research - never rely solely on existing research documents
The thoughts/ directory provides historical context to supplement live findings
Focus on finding concrete file paths and line numbers for developer reference
Research documents should be self-contained with all necessary context
Each sub-agent prompt should be specific and focused on read-only operations
Consider cross-component connections and architectural patterns
Include temporal context (when the research was conducted)
Link to GitHub when possible for permanent references
Keep the main agent focused on synthesis, not deep file reading
Encourage sub-agents to find examples and usage patterns, not just definitions
Explore all of thoughts/ directory, not just research subdirectory
File reading: Always read mentioned files FULLY (no limit/offset) before spawning sub-tasks
Critical ordering: Follow the numbered steps exactly
Path handling: The thoughts/searchable/ directory contains hard links for searching
Always document paths by removing ONLY "searchable/" - preserve all other subdirectories
NEVER change allison/ to shared/ or vice versa - preserve the exact directory structure
This ensures paths are correct for editing and navigation
Frontmatter consistency:
last_updated, git_commit)DO NOT CODE YOU WILL BE PUNISHED FOR CODING
SAVE THE DOCUMENT YOU MUST SAVE IN THE CORRECT FORMAT FOR THE NEXT DEV
ALWAYS FOLLOW BEST PRACTISES
What the command file sets; muted values are Claude Code's defaults
codebase-research, sub-agents, parallel-search, documentation
7-day visitors to each command page
16 commands in this plugin
/COMMANDSHow to Create Slash CommandsA comprehensive guide to creating custom slash commands for Claude Code./context engineering:deep-researchResearch CodebaseConduct comprehensive codebase research using parallel sub-agents/context engineering:executeExecute PlanExecutes a plan with gated checks, atomic commits, build/package/deploy, full validation, and immutable execution logsGenerated from the plugin's indexed repository (alchemiststudiosdotai/harness-engineering) — no native marketplace selected
npx claudepluginhub p/alchemiststudiosdotai-harness-engineeringOther plugins' commands for the same job