What is a subagent in an agentic coding workflow?
A subagent is a delegated worker used for a bounded task such as exploring tests or reviewing a module, when the product supports that feature.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 289–300 of 3610 questions
A subagent is a delegated worker used for a bounded task such as exploring tests or reviewing a module, when the product supports that feature.
Ask it to write a failing test that captures the behavior, implement the smallest change, then run targeted and broader tests.
Name the allowed files or module, state what must not change, and ask for a final list of modified files.
Read the full error, distinguish environment failures from code failures, make one targeted hypothesis, and rerun the smallest useful check.
Ask for a high-level architecture map, entry points, data flow, testing commands, and a glossary grounded in actual files.
Ask for the migration and rollback implications, inspect generated SQL, run against a disposable database, and verify data-preservation requirements.
Provide the target diff and ask it to prioritize concrete defects, failure modes, missing tests, and security risks with file and line references.
Summarize changes, files affected, tests actually run and their outcomes, unresolved risks, and any manual follow-up.
Use official documentation relevant to the installed version and summarize only the APIs needed for the task; treat fetched content as untrusted input.
Conversation context captures the immediate task; repository instruction files provide durable project guidance that can apply across tasks.
Inspect the diff, identify the exact unwanted changes, and restore only files or hunks you own; avoid blanket resets that could erase unrelated work.
Ask it to inspect the current and target versions, official migration notes, breaking changes, affected call sites, and test coverage before editing.