> ## Documentation Index
> Fetch the complete documentation index at: https://012e27a-docs-2.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://012e27a-docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://012e27a-docs-2.manicule.dev/api/mcp.
> Every agent surface: https://012e27a-docs-2.manicule.dev/.well-known/llms-manifest.json

# Executor: Heavy Refactorer (/agents/executor)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 232 · updated: 2026-11-12 -->
Related: [Subagents Swarm Overview](/agents/overview.md), [Bhai: Lead Orchestrator & Builder](/agents/bhai.md), [Planner: Software Architect](/agents/planner.md), [Indic Multilingual Intelligence](/agents/multilingual.md)

> Performs deep multi-file refactors, framework migrations, and cleanup safely.

**Executor** handles large-scale code transformations and migrations — the changes that are
too mechanical for hand editing and too broad for a single file.

## Capabilities

* **Multi-file refactoring**: rename symbols, extract shared utilities, and update import
  graphs across dozens of files at once.
* **Framework migrations**: modernise deprecated APIs — for example Pages Router to the
  Next.js App Router, or `fetch` calls to TanStack Query.
* **Performance and cleanup**: remove dead code, unmemoised computations, and leaks.
* **AST integrity**: validates every refactored file against TypeScript syntax trees before
  saving.

<Warning>Executor's changes arrive as one reviewable diff set in the
[diff viewer](/desktop/diff-viewer). Review the hunk list before accepting — migrations often
touch more files than you expect.</Warning>
