claw-orchestrator: Instructions file for Codex

AGENTS.md

claw-orchestrator AGENTS.md is an instructions file for Codex, OpenCode from Enderfga/claw-orchestrator. It costs 3,513 tokens per session, scanned C, a copy of claw-orchestrator CLAUDE.md, MIT.

A project instruction file for the Claw Orchestrator codebase. It documents the architecture, important source files, development conventions, and testing expectations for coding agents working on that repository.

In plain words
What is it for?
Use it when developing or reviewing Claw Orchestrator, a system that wraps several coding command-line tools in managed sessions and exposes them through a plugin.
Why use it?
It gives an agent the repository context needed to change the correct parts of the system and follow its local rules. Without it, an agent may misunderstand how the session and command-line integrations fit together.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; runs codex exec.

This is Enderfga/claw-orchestrator's own configuration. It tells Codex and OpenCode how to work on claw-orchestrator 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 claw-orchestrator configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Enderfga/claw-orchestrator. 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/Enderfga/claw-orchestrator/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Enderfga/claw-orchestrator

Made for: Codex, OpenCode.

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 claw-orchestrator AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/enderfga/claw-orchestrator/agents-md/github.svg)](https://agentmods.dev/instructions/enderfga/claw-orchestrator/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/enderfga/claw-orchestrator/agents-md"><img src="https://agentmods.dev/badge/instructions/enderfga/claw-orchestrator/agents-md/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 claw-orchestrator AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/enderfga/claw-orchestrator/agents-md"><img src="https://agentmods.dev/badge/instructions/enderfga/claw-orchestrator/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,513 This file is loaded in full into every session.
When invoked 3,513 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% 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.1 $0.03513 $0.03513
Opus 5.5 $0.01405 $0.01405
Sonnet 5.5 $0.00703 $0.00703
Haiku 4.5 $0.00351 $0.00351

Measured yesterday against content hash 2be07c4f1920, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

claw-orchestrator AGENTS.md scanned grade C with 2 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.

Recursive force deletehighDestructive command

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

The `build` script must clean `dist/` first (it does: `rm -rf dist && tsc && ...`).

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Plugin installation requires `--dangerously-force-unsafe-install` (child_process usage)
Origin

This is a copy

94% identical to claw-orchestrator CLAUDE.md — 237 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.md · 237 lines

How it starts

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

AGENTS.md — claw-orchestrator

This file provides context for coding agents (Claude Code, Codex, OpenCode, and others) working on this project. CLAUDE.md only imports it, so there is one copy to keep current.

Architecture

Claw Orchestrator wraps coding CLIs (Claude Code, Codex, Antigravity, Grok Build, plus arbitrary custom CLIs) into a managed, programmable session layer for claw-style agent systems. Runs as a standalone CLI/server, with first-class OpenClaw plugin support. Key source files:

File Purpose
src/index.ts Plugin entry — registers all 78 canonical tools
src/session-manager.ts Core orchestrator — session lifecycle, council, ultraplan/ultrareview
src/base-oneshot-session.ts Abstract base class for one-shot (process-per-send) engines
src/persistent-session.ts Claude Code CLI wrapper (spawn, JSON protocol, stream parsing)
src/persistent-codex-session.ts Codex CLI wrapper (codex exec --full-auto)
src/persistent-gemini-session.ts Gemini CLI wrapper — legacy: Gemini CLI is sunset, superseded by Antigravity (agy). Kept working for existing callers; not documented as an option and not version-tracked.
src/persistent-agy-session.ts Google Antigravity CLI wrapper (agy -p, plain text, log-harvested conversation resume)
src/persistent-cursor-session.ts Cursor Agent CLI wrapper — legacy: superseded in this lineup by Grok Build (grok). Kept working for existing callers; not documented as an option and not version-tracked. Binary is cursor-agent, never the contested agent name.
src/persistent-grok-session.ts Grok Build CLI wrapper (grok -p --output-format json) — engine-reported cost, resumable session id
src/persistent-opencode-session.ts sst/opencode CLI wrapper (opencode run --format json)
src/persistent-custom-session.ts Custom engine — any CLI via user-provided CustomEngineConfig
src/persistent-acp-session.ts ACP engine — drives any Agent Client Protocol agent over stdio (kimi acp, dsh --profile acp, opencode acp)
src/council.ts Multi-agent collaboration engine with git worktree isolation and post-processing
src/consensus.ts Consensus voting parser for council
src/kernel/types.ts One state vocabulary — RunState, RunOutcome, WorkflowSpec, node specs
src/kernel/engine.ts The run kernel — checkpointed execution, resume, retry, timeout, cancel, steer
src/kernel/store.ts Durable run store (~/.claw-orchestrator/wf/<runId>/) — guards, leases, and the one storage transaction
src/kernel/file-lock.ts The one exclusive file lock, shared by the run store and the ultraapp build queue
src/kernel/exec.ts The single child-process wrapper — non-throwing, timeout kills the process group, output capped
src/kernel/agent-step.ts The single start→send→stop lifecycle; success reads turnsSucceeded
src/kernel/nodes/ One executor per node kind; thin wrappers over the existing engines
src/kernel/templates/ Built-in workflows (solve, council, fanout, ultraapp)
src/verify/contract.ts AcceptanceContract + CheckSpec, and the normalizer that keeps agent-authored contracts out
src/verify/runner.ts Runs the checks — the generalisation of ultraapp's fix-on-failure
src/verify/baseline.ts Base-commit capture and change sets that include created files
src/verify/protected-tests.ts Refutes a run that changed the tests its contract runs
src/verify/evidence.ts Evidence bundles — verdict, per-check logs, patch, screenshots
src/run-ledger.ts Durable per-turn record (~/.claw-orchestrator/runs/*.jsonl) — append, query, summarize, verdict join
src/concurrency.ts Bounded parallel map — fan-out and council start no more agents than there are session slots
src/budget.ts Runtime-enforced maxBudgetUsd spend cap (all engines, not just Claude Code)
src/models.ts Centralized model registry — pricing, aliases, engine/provider mapping
src/engine-presets.ts Community engine presets — tiering, provenance validation, customEngine id resolution
src/types.ts Shared types, interfaces; re-exports from models.ts
src/logger.ts Structured Logger interface + console implementation
src/circuit-breaker.ts Engine failure tracking with exponential backoff
src/inbox-manager.ts Cross-session messaging (inbox) manager
src/handoff.ts Session handoff — per-session conversation record, and its replay onto another engine
src/embedded-server.ts HTTP server for standalone/CLI usage
src/openai-compat.ts OpenAI-compatible /v1/chat/completions endpoint
src/acp-server.ts Agent Client Protocol adapter — runs the orchestrator as an ACP agent
src/proxy/ Multi-model proxy (Gemini, GPT via Anthropic format translation)
bin/cli.ts CLI entry point (commander-based)
bin/acp-server.ts ACP stdio entry (clawo-acp / clawo acp)

Read the full file on GitHub · 237 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 Changed · +1 lines · +46 tokens per session 2be07c4f1920
  2. 3d ago Changed 7f4e190cbeda
  3. 8d ago Changed d90e3fb4501f
  4. 14d ago Changed 8db9fda5c91c
  5. 16d ago Changed · +22 tokens per session 4dc374278622
  6. 18d ago Changed 505c3ca68a57
  7. 19d ago Changed 9eb62915d323
  8. 20d ago Changed f57340375815
  9. 25d ago Changed cde36673b63a
  10. 26d ago First seen · 236 lines · 3,445 tokens per session scan C 2d460728addc

Subscribe to this mod's changes

claw-orchestrator AGENTS.md is an instructions file published in the GitHub repository Enderfga/claw-orchestrator (598 stars, last pushed yesterday), licensed MIT. It adds 3,513 tokens to every session, about $0.0141 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, runs shell commands). It is 94% identical to claw-orchestrator CLAUDE.md, differing in 237 lines, and is treated as a copy.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens