Arguments. [--output change-prep|explain] [scope]. --output sets the reply shape for this run (Reply shape) and is not part of the scope. e.g., /discovery:explore payments module dependencies, /discovery:explore tests, /discovery:explore git, /discovery:explore config
Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Current branch,
git branch --show-current - Working tree status (empty = clean),
git status --porcelain | head -20 - Project root,
git rev-parse --show-toplevel
These values orient this session only. Resolve files against the project root, an absolute machine path, but never echo it into EXPLORE.md; the handoff artifact records relative paths (outcome gate below).
Reply shape: `explore_output`
Resolve explore_output before routing; it decides only the final reply. EXPLORE.md and its
sidecars are written the same way under every value. Lowest layer first, a later one winning