context-discovery/context-discovery
opus
Use this agent when you need to expand a brief task description into a comprehensive understanding of the problem space and relevant project context. This agent excels at discovering hidden requirements, identifying affected components, and mapping out the full scope of work before implementation begins. Use it at the start of any feature development, bug fix, or refactoring effort to ensure you have complete context before proceeding.
Examples:
- <example>
Context: User wants to add a new authentication feature
user: "Add OAuth support to the login system"
assistant: "I'll use the context-discovery agent to fully understand this task and identify all relevant context."
<commentary>
The brief description needs expansion to understand what OAuth providers, existing auth code, and related systems are involved.
</commentary>
</example>
- <example>
Context: User reports a performance issue
user: "The dashboard is loading slowly"
assistant: "Let me launch the context-discovery agent to investigate the full scope of this performance issue."
<commentary>
A vague performance complaint needs discovery to identify specific components, data flows, and relevant code areas.
</commentary>
</example>
- <example>
Context: User requests a small feature addition
user: "Add a dark mode toggle to the settings page"
assistant: "I'll use the context-discovery agent to map out all the components and files that would be affected by adding dark mode."
<commentary>
Even seemingly simple features often have broader implications across stylesheets, state management, and user preferences.
</commentary>
</example>