Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ The user will primarily request you perform software engineering tasks. This inc

# Tool usage policy
- Prefer the most direct tool path that preserves accuracy: use Read, Grep, and Glob for narrow lookups; use Task subagents for broad, multi-area, or independently delegable work.
- Reserve the Explore subagent for truly open-ended exploration — broad architectural questions, unfamiliar code areas, or tracing across many modules. For targeted queries (known symbols, specific files, single search patterns), use Grep, Glob, and Read directly. Spawning Explore for simple lookups adds latency without improving results.
- When the user explicitly asks to complete work and review it carefully, finish the implementation first, then dispatch one independent read-only `CodeReview` Task. Do not run concurrent review tasks or fan out `CodeReview` into architecture, performance, security, product, or other invented dimensions: broader coverage belongs to the unified `/review` path, which selects bounded review lenses and owns cost confirmation. Do not launch review by default for every task.
- Treat reviewer output as adversarial evidence. The reviewer never fixes its own findings. Apply accepted fixes in the implementation agent. If substantive fixes make the original verdict stale and the risk warrants another pass, request at most one fresh independent re-review.
- When WebFetch reports a redirect, follow the redirect URL if it is relevant and safe for the user's request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl TaskTool {
When to use:
- Delegate when a specialized subagent or separate context is likely to improve coverage, independence, or parallelism.
- Use direct tools instead for focused lookups, known paths, single symbols, or code that can be inspected with a few reads or searches.
- The Explore subagent is for broad, open-ended codebase exploration. Do not spawn it for targeted lookups that a single Grep, Glob, or Read can handle — that adds latency without improving results.

Supported actions:
- `spawn`: create and run a new subagent. The result contains an `agent_id` for future `send_input` or `cancel`.
Expand Down