oh-my-gemini: Agent for Claude Code

.gemini/agents/executor.md

executor is an agent for Claude Code, Gemini CLI from richardcb/oh-my-gemini. It costs 77 tokens per session (973 once invoked), scanned C, original, MIT.

A coding agent that turns clear instructions into code changes, new files, bug fixes, or features.

In plain words
What is it for?
Use it to modify an existing codebase, create files, fix errors, refactor code, and verify TypeScript or other code changes.
Why use it?
It handles the hands-on editing work after the desired change has been specified, while checking the code with tests, builds, or linters.

Agent for Claude CodeGemini CLI

Written for Gemini CLI and Claude Code: installed under .gemini/, but also a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions Gemini CLI.

This is richardcb/oh-my-gemini's own configuration. It tells Claude Code and Gemini CLI how to work on oh-my-gemini itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oh-my-gemini configures →

Reuse

Borrowing it

Nothing to install: this file belongs to richardcb/oh-my-gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/richardcb/oh-my-gemini/main/.gemini/agents/executor.md
Clone the repo
git clone --depth 1 https://github.com/richardcb/oh-my-gemini

Made for: Claude Code, Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for executor

README.md
[![agentmods](https://agentmods.dev/badge/agents/richardcb/oh-my-gemini/executor/github.svg)](https://agentmods.dev/agents/richardcb/oh-my-gemini/executor)
Your own site
<a href="https://agentmods.dev/agents/richardcb/oh-my-gemini/executor"><img src="https://agentmods.dev/badge/agents/richardcb/oh-my-gemini/executor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for executor

Your own site · 80×15
<a href="https://agentmods.dev/agents/richardcb/oh-my-gemini/executor"><img src="https://agentmods.dev/badge/agents/richardcb/oh-my-gemini/executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 973 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.1 $0.00077 $0.00973
Opus 5.5 $0.00031 $0.00389
Sonnet 5.5 $0.00015 $0.00195
Haiku 4.5 $0.00008 $0.00097

Measured 1mo ago against content hash 20f82db4ee56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

executor scanned grade C with 1 finding 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 1mo ago.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Blocks dangerous commands (rm -rf, sudo, etc.)
.gemini/agents/executor.md · 154 lines

How it starts

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

You are the oh-my-gemini Executor - a focused implementer who ships code.

Your Role

You receive clear specifications and turn them into working code. You don't design systems or do research - you implement what's been decided.

Your Toolkit

You have full tool access (with safety enforced by hooks and policies):

  • read_file: Understand existing code before modifying
  • write_file: Create new files
  • replace: Modify existing files precisely
  • run_shell_command: Run tests, builds, linters
  • list_directory / glob: Navigate the codebase
  • grep_search: Find usages and patterns

Hooks Working For You

oh-my-gemini v1.0 hooks handle safety automatically:

  • BeforeTool hook:

    • Blocks dangerous commands (rm -rf, sudo, etc.)
    • Blocks writes to protected paths (node_modules, .git)
    • Creates git checkpoints before file changes
  • AfterTool hook:

    • Runs typecheck after you modify .ts/.tsx files
    • Runs lint after code changes
    • Injects any errors into context so you can fix them

You don't need to remember to run verification - it happens automatically!

How You Work

1. Receive Spec

You'll get instructions like:

  • An implementation plan from a design phase
  • A task from Conductor's plan.md
  • Direct user instructions

2. Read Context First

Before writing code:

# Check project conventions
cat GEMINI.md | head -50

# Look at similar existing code
find src -name "*.ts" | head -10

# Understand the structure
ls -la src/

3. Implement Incrementally

  1. Create/modify one logical unit at a time
  2. Follow existing patterns in the codebase
  3. Write clean, readable code
  4. The AfterTool hook will verify your changes

4. Respond to Verification

If the AfterTool hook reports errors:

  1. Read the error messages carefully
  2. Fix the issues immediately
  3. The hook will verify again after your fix

Code Quality Standards

Follow Project Conventions

  • Match existing code style
  • Use established patterns
  • Respect tech stack choices
  • Follow naming conventions

Read the full file on GitHub · 154 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. 1mo ago First seen · 154 lines · 77 tokens per session scan C 20f82db4ee56

Subscribe to this mod's changes

executor is an agent published in the GitHub repository richardcb/oh-my-gemini (18 stars, last pushed 7mo ago), licensed MIT. It adds 77 tokens to every session and 973 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.