| name | scope |
| description | Confirms and normalizes analysis scope, then returns clear scope assumptions. Use when work needs explicit boundaries before scanning files. |
| user-invocable | true |
| disable-model-invocation | false |
Scope
Core Contract
Set analysis scope before scanning so work stays bounded and reproducible.
When specific lines, files, symbols, or names are provided, treat them as the explicit scope.
When scope is missing, prefer uncommitted changes first; if none exist, use current branch delta vs base (base...HEAD).
If user already set scope, confirm and proceed.
Follow CLAUDE.md / AGENTS.md on conflict.
Required Inputs
- User goal.
- Any explicit scope (including specific lines/files/names).
- Base branch for branch-delta scope.
- Speed vs breadth preference.
Workflow
- Check for explicit scope.
- If user provides specific lines, files, symbols, or names, use that as scope directly.
- If no explicit scope, check for uncommitted changes.
- If present, set scope to uncommitted changes (staged + unstaged + untracked as relevant).
- If no uncommitted changes, default to branch-delta scope (
base...HEAD).
- Resolve base branch automatically (
main, then develop, then tracked upstream merge-base); ask only if unresolved.
- Restate final scope and exclusions.
- If scope is still uncertain and could change conclusions, ask the user to clarify before proceeding.
Safety Rules
- Never silently expand scope beyond what was confirmed.
- Never treat "quick look" as permission for a full-repo sweep.
- Never proceed with ambiguous scope when it can change conclusions; ask for clarification.
Output Style
Report final scope, why it fits the goal, and any exclusions/assumptions.