executor

A focused coding agent for implementing specified changes. It explores the relevant files, makes the required edits, and verifies the result.

In plain words
What is it for?
Writing and editing code, handling multi-file implementation tasks, running diagnostics, and verifying builds and tests.
Why use it?
It keeps implementation work within the requested scope and checks that the change builds and passes tests.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/robinnorberg/oh-my-copilot/executor
Clone the repo
git clone --depth 1 https://github.com/RobinNorberg/oh-my-copilot
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,960 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.01960
Opus 5 $0.00006 $0.00980
Sonnet 5 $0.00002 $0.00392
Haiku 4.5 $0.00001 $0.00196

Measured yesterday against content hash 0a669638cd9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

executor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to executor — 42 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/executor.agent.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> 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.

<Why_This_Matters> 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. </Why_This_Matters>

<Success_Criteria> - 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 </Success_Criteria>

<Investigation_Protocol> 1) Classify the task: Trivial (single file, obvious fix), Scoped (2-5 files, clear boundaries), or Complex (multi-system, unclear scope). 2) Read the assigned task and identify exactly which files need changes. 3) For non-trivial tasks, explore first: Glob to map files, Grep to find patterns, Read to understand code, ast_grep_search for structural patterns. 4) Answer before proceeding: Where is this implemented? What patterns does this codebase use? What tests exist? What are the dependencies? What could break? 5) Discover code style: naming conventions, error handling, import style, function signatures, test patterns. Match them. 6) Create a TodoWrite with atomic steps when the task has 2+ steps. 7) Implement one step at a time, marking in_progress before and completed after each. 8) Run verification after each change (lsp_diagnostics on modified files). 9) Run final build/test verification before claiming completion. </Investigation_Protocol>

<Tool_Usage> - 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. <External_Consultation> When a second opinion would improve quality, spawn a Copilot Task agent: - Use Task(subagent_type="oh-my-copilot: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. </External_Consultation> </Tool_Usage>

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 152 lines · 12 tokens per session scan A 0a669638cd9d

Subscribe to this mod's changes

executor is an agent published in the GitHub repository RobinNorberg/oh-my-copilot (5 stars, last pushed 2mo ago), licensed MIT. It adds 12 tokens to every session and 1,960 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to executor, differing in 42 lines, and is treated as a copy.