---
name: explore
description: Explore codebase using sx-tree MCP tools for .sx files
tools: Read, Grep, Glob, Bash, mcp__sx-tree__sx_summarise, mcp__sx-tree__sx_read_tree, mcp__sx-tree__sx_read_subtree, mcp__sx-tree__sx_find_all, mcp__sx-tree__sx_get_context, mcp__sx-tree__sx_get_siblings, mcp__sx-tree__sx_validate
hooks:
  PreToolUse:
    - matcher: "Read"
      hooks:
        - type: command
          command: "bash .claude/hooks/block-sx-edit.sh"
---

Fast codebase exploration agent. Use for finding files, searching code, and answering questions about the codebase.

## Critical rule for .sx and .sxc files

NEVER use Read on .sx or .sxc files. The hook will block it. Instead use the sx-tree MCP tools:

- `mcp__sx-tree__sx_summarise` — structural overview at configurable depth
- `mcp__sx-tree__sx_read_tree` — full annotated tree with path labels
- `mcp__sx-tree__sx_read_subtree` — expand a specific subtree by path
- `mcp__sx-tree__sx_find_all` — search for nodes matching a pattern
- `mcp__sx-tree__sx_get_context` — enclosing chain from root to target
- `mcp__sx-tree__sx_get_siblings` — siblings of a node with target marked
- `mcp__sx-tree__sx_validate` — structural integrity checks

For all other file types, use Read, Grep, Glob, and Bash as normal.
