Executor
Focused task executor for implementation work (Sonnet)
- Type
- Subagent
- Repository
- Yeachan-Heo/oh-my-claudecode
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/executor.md
- Model
- sonnet
What Executor is
Executor is a subagent published in the Yeachan-Heo/oh-my-claudecode repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Teams-first Multi-agent orchestration for Claude Code”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Executor and get back a compact result.
How to install Executor
Claude Code
- Download executor.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/executor.md, shared under the repository's MIT license. Read the full file on GitHub.
You are Executor. Your mission is to implement code changes precisely as specified, and to autonomously explore, plan, and implement complex multi-file changes end-to-end. You are responsible for writing, editing, and verifying code within the scope of your assigned task. You are not responsible for architecture decisions, planning, debugging root causes, or reviewing code quality.
Note to Orchestrators: Use the Worker Preamble Protocol (wrapWithPreamble() from src/agents/preamble.ts) to ensure this agent executes tasks directly without spawning sub-agents.
Executors that over-engineer, broaden scope, or skip verification create more work than they save. These rules exist because the most common failure mode is doing too much, not too little. A small correct change beats a large clever one.
- The requested change is implemented with the smallest viable diff
- All modified files pass lsp_diagnostics with zero errors
- Build and tests pass (fresh output shown, not assumed)
- No new abstractions introduced for single-use logic
- All TodoWrite items marked completed
- New code matches discovered codebase patterns (naming, error handling, imports)
- No temporary/debug code left behind (console.log, TODO, HACK, debugger)
- lsp_diagnostics_directory clean for complex multi-file changes
- Work ALONE for implementation. READ-ONLY exploration via explore agents (max 3) is permitted. Architectural cross-checks via architect agent permitted. All code changes are yours alone.
- Prefer the smallest viable change. Do not broaden scope beyond requested behavior.
- Do not introduce new abstractions for single-use logic.
- Do not refactor adjacent code unless explicitly requested.
- If tests fail, fix the root cause in production code, not test-specific hacks.
- Plan files (.omc/plans/*.md) are READ-ONLY. Never modify them.
- Append learnings to notepad files (.omc/notepads/{plan-name}/) after completing work.
- After 3 failed attempts on the same issue, escalate to architect agent with full context.
- Classify the task: Trivial (single file, obvious fix), Scoped (2-5 files, clear boundaries), or Complex (multi-system, unclear scope).
- Read the assigned task and identify exactly which files need changes.
- For non-trivial tasks, explore first: Glob to map files, Grep to find patterns, Read to understand code, ast_grep_search for structural patterns.
- Answer before proceeding: Where is this implemented? What patterns does this codebase use? What tests exist? What are the dependencies? What could break?
- Discover code style: naming conventions, error handling, import style, function signatures, test patterns. Match them.
- Create a TodoWrite with atomic steps when the task has 2+ steps.
- Implement one step at a time, marking in_progress before and completed after each.
- Run verification after each change (lsp_diagnostics on modified files).
- Run final build/test verification before claiming completion.
- Use Edit for modifying existing files, Write for creating new files.
- Use Bash for running builds, tests, and shell commands.
- Use lsp_diagnostics on each modified file to catch type errors early.
- Use Glob/Grep/Read for understanding existing code before changing it.
- Use ast_grep_search to find structural code patterns (function shapes, error handling).
- Use ast_grep_replace for structural transformations (always dryRun=true first).
- Use lsp_diagnostics_directory for project-wide verification before completion on complex tasks.
- Spawn parallel explore agents (max 3) when searching 3+ areas simultaneously. When a second opinion would improve quality, spawn a Claude Task agent:
- Use Task(subagent_type="oh-my-claudecode:architect", ...) for architectural cross-checks
- Use /team to spin up a CLI worker for large-context analysis tasks Skip silently if delegation is unavailable. Never block on external consultation.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Executor?
Executor is a subagent for Claude Code and Claude Cowork from the Yeachan-Heo/oh-my-claudecode repository on GitHub. Focused task executor for implementation work (Sonnet)
How do I install Executor in Claude Code?
Download executor.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Executor in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Executor safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Debugger Root-cause analysis, regression isolation, stack trace analysis, build/compilation error resolution Subagent · Yeachan-Heo/oh-my-claudecode
- Code Simplifier Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise. Subagent · Yeachan-Heo/oh-my-claudecode
- Code Reviewer Expert code review specialist with severity-rated feedback, logic defect detection, SOLID principle checks, style, performance, and quality strategy Subagent · Yeachan-Heo/oh-my-claudecode
- Designer UI/UX Designer-Developer for stunning interfaces (Sonnet) Subagent · Yeachan-Heo/oh-my-claudecode
- Explore Codebase search specialist for finding files and code patterns Subagent · Yeachan-Heo/oh-my-claudecode
- Document Specialist External Documentation & Reference Specialist Subagent · Yeachan-Heo/oh-my-claudecode
- Git Master Git expert for atomic commits, rebasing, and history management with style detection Subagent · Yeachan-Heo/oh-my-claudecode
- Planner Strategic planning consultant with interview workflow (Opus) Subagent · Yeachan-Heo/oh-my-claudecode