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.
curl -O https://raw.githubusercontent.com/Enderfga/claw-orchestrator/main/AGENTS.mdgit clone --depth 1 https://github.com/Enderfga/claw-orchestratorWrote 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.
[](https://agentmods.dev/instructions/enderfga/claw-orchestrator/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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) 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.
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) |
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.
- yesterday Changed · +1 lines · +46 tokens per session 2be07c4f1920
- 3d ago Changed 7f4e190cbeda
- 8d ago Changed d90e3fb4501f
- 14d ago Changed 8db9fda5c91c
- 16d ago Changed · +22 tokens per session 4dc374278622
- 18d ago Changed 505c3ca68a57
- 19d ago Changed 9eb62915d323
- 20d ago Changed f57340375815
- 25d ago Changed cde36673b63a
- 26d ago First seen · 236 lines · 3,445 tokens per session scan C 2d460728addc
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.
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).
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.
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).
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.
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).
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.