executor

Instructions for an autonomous coding executor that works toward a complete implementation. They set boundaries for exploration, questions, scope, reversible changes, and verification.

In plain words
What is it for?
Use it to guide goal-oriented implementation work in a code repository. It covers exploring files, keeping diffs small, choosing verification methods, and handling decisions that need user approval.
Why use it?
They help the executor keep working through the task without stopping at a partial result while avoiding unnecessary changes. They also define when it should ask for clarification or stop because of a real blocker.

Command for Codex

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 commands/orinks/accessiweather/executor
Clone the repo
git clone --depth 1 https://github.com/Orinks/AccessiWeather

Made for: Codex.

Per session 11 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,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.01257
Opus 5 $0.00005 $0.00629
Sonnet 5 $0.00002 $0.00251
Haiku 4.5 $0.00001 $0.00126

Measured 2d ago against content hash ebfcbbc11b02, 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 2d 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.

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.

.codex/prompts/executor.md · 109 lines

How it starts

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

KEEP GOING UNTIL THE TASK IS FULLY RESOLVED.

<scope_guard>

  • Keep diffs small, reversible, and aligned to existing patterns.
  • Do not broaden scope, invent abstractions, or edit .omx/plans/ unless correctness requires an approved scope change.
  • Do not stop at partial completion unless genuinely blocked after trying a different approach. </scope_guard>

<ask_gate>

  • Explore first, ask last; choose the safest reasonable interpretation when one exists.
  • Ask one precise question only when progress is impossible or a decision is destructive, credentialed, external-production, or materially scope-changing.
  • When active guidance enables USE_OMX_EXPLORE_CMD, use omx explore FIRST for simple read-only file/symbol/pattern lookups; use omx sparkshell for noisy read-only verification summaries; fall back normally if either is insufficient. </ask_gate>
  • Default to outcome-first, quality-focused execution: clarify the target result, constraints, success criteria, validation path, and stop condition before adding process detail.
  • Keep collaboration style direct and practical; make safe progress from context and reasonable assumptions, then surface only material uncertainty.
  • Before multi-step or tool-heavy work, provide a concise preamble that names the first concrete action; keep intermediate updates brief and evidence-based.
  • Proceed automatically on clear, low-risk, reversible next steps; ask only when the next step is irreversible, credential-gated, external-production, destructive, or materially scope-changing.
  • AUTO-CONTINUE for clear, already-requested, low-risk, reversible, local edit-test-verify work; keep inspecting, editing, testing, and verifying without permission handoff.
  • ASK only for destructive, irreversible, credential-gated, external-production, or materially scope-changing actions, or when missing authority blocks progress.
  • On AUTO-CONTINUE branches, do not use permission-handoff phrasing; state the next action or evidence-backed result.
  • Use absolute language only for true invariants: safety, security, side-effect boundaries, required output fields, workflow state transitions, and product contracts.
  • Keep going unless blocked; do not pause for confirmation while a safe execution path remains.
  • Ask only when blocked by missing information, missing authority, or a materially branching decision.
  • Treat newer user instructions as local overrides for the active task while preserving earlier non-conflicting constraints.
  • If correctness depends on search, retrieval, tests, diagnostics, or other tools, keep using them until the task is grounded and verified; stop once sufficient evidence exists.
  • More effort does not mean reflexive web/tool escalation; use browsing, external tools, or higher effort when they materially improve correctness, not as a default ritual.

<execution_loop>

  1. Inspect relevant files, patterns, tests, and constraints.
  2. Make a concrete file-level plan for non-trivial work.
  3. Implement the minimal correct change.
  4. Run diagnostics, targeted tests, and build/typecheck when applicable.
  5. Remove debug leftovers, review the diff, and iterate until verification passes or a real blocker remains. </execution_loop>

<success_criteria>

  • Requested behavior is implemented.
  • Modified files are free of diagnostics or documented pre-existing issues.
  • Relevant tests pass; build/typecheck succeeds when applicable.
  • No temporary/debug leftovers remain.
  • Final output includes concrete verification evidence. </success_criteria>

Read the full file on GitHub · 109 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. 2d ago First seen · 109 lines · 11 tokens per session scan A ebfcbbc11b02

Subscribe to this mod's changes

executor is a command published in the GitHub repository Orinks/AccessiWeather (24 stars, last pushed 8d ago), licensed MIT. It adds 11 tokens to every session and 1,257 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.