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.
npx agentmods add instructions/igovet/codex-cortex-orchestrator/agents-mdgit clone --depth 1 https://github.com/igovet/codex-cortex-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/igovet/codex-cortex-orchestrator/agents-md)<a href="https://agentmods.dev/instructions/igovet/codex-cortex-orchestrator/agents-md"><img src="https://agentmods.dev/badge/instructions/igovet/codex-cortex-orchestrator/agents-md.svg" alt="Measured on agentmods" 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 | $0.02902 | $0.02902 |
| Opus 5 | $0.01451 | $0.01451 |
| Sonnet 5 | $0.00580 | $0.00580 |
| Haiku 4.5 | $0.00290 | $0.00290 |
Grade A, and why
codex-cortex-orchestrator AGENTS.md 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cortex repository development policy
This file governs work in this source checkout only. It is not an installed or
global Cortex orchestration contract. Runtime behavior for every installed
project must be fully specified below plugins/cortex/, primarily in
plugins/cortex/skills/orchestrator/SKILL.md,
plugins/cortex/skills/cortex-control/SKILL.md, the bundled supporting skills,
agent profiles, hooks, schemas, and runtime code. Tests must prove important
runtime guarantees from those bundled sources without depending on this file.
Local workflow
- Do not activate Cortex merely because a task is complex or mentions
orchestration. Use the normal Codex workflow unless the user explicitly
selects a non-help, non-
normalcortex:orchestratorroute. After explicit selection, follow the bundledorchestratorandcortex-controlskills; do not recreate their runtime protocol here. - The plugin-bundled orchestrator skill is the single authoritative skill source. Do not add or install a second repository-level copy.
- All installable profiles, skills, hooks, MCP configuration, and runtime code
live below
plugins/cortex/. Repository-root scripts, tests, and documents are development support only. When runtime behavior changes, update the bundled contract and add a parity or behavior test before trimming any local development note. - MCP argument contracts belong exclusively to each tool's advertised input schema and tool/property descriptions. Never put MCP parameter names, request shapes, required/optional field lists, enums, validation limits, or sample tool payloads in skills, agent prompts, live-dev workload prompts, or other model instructions. Those instructions may state the task-specific behavior and semantic outcome to exercise, but the model must derive every call argument from the live advertised tool contract. A tool call that needs parameter hints outside that contract is a schema/description defect; fix the tool contract and add a first-call regression test instead of teaching the call shape in a skill or prompt.
- For source-only package checks, use
./scripts/sync-cortex.sh --checkor./scripts/sync-cortex.sh --dry-run; these are read-only validation only. Do not invoke cachebuster helpers manually, runcodex plugin add, or edit marketplace or Codex configuration as a substitute. Never run normalsync-cortex.shagainst the user's stableHOMEorCODEX_HOME. - Follow semantic versioning in
plugins/cortex/.codex-plugin/plugin.json: patch for fixes, minor for backward-compatible features, and major for large or breaking changes. Do not change unrelated version components. - Source-mode validation may point the MCP server at this checkout in an isolated temporary project. This is source evidence, not installed-plugin verification. Never install, reinstall, or update the user's Cortex plugin without explicit user direction.
- Never expose secrets, credentials, private tokens, personal data, worker
reports, or raw diagnostic logs. Do not claim a check was run when it was
not. Follow
SECURITY.mdand the bundled Cortex content-safety/runtime contracts for sensitive data. - Every live-dev test must first refresh the candidate cache/version through
./scripts/cortex-dev; it is the only supported live-dev entry point. It creates or reuses the exact isolated$HOME/.cortex-devcandidate, exportsHOME=$HOME/.cortex-devandCODEX_HOME=$HOME/.cortex-dev/.codex, then runs the repository-supportedsync-cortex.shonly in that isolated environment before launching ordinary Codex. Never install, reinstall, update, or synchronize the user's real installed plugin; do not usesync-cortex.shdirectly as a live-dev mechanism. - The repository-root
./cortex-devcommand is a convenience forwarding wrapper for./scripts/cortex-dev; it uses the same isolatedHOME=$HOME/.cortex-devandCODEX_HOME=$HOME/.cortex-dev/.codexruntime and must retain the same ordinary interactive Codex and no-codex execconstraints. - Live-dev verification is an operator-controlled ordinary Codex session.
./scripts/cortex-devrefreshes only the isolatedHOME=$HOME/.cortex-devandCODEX_HOME=$HOME/.cortex-dev/.codexcandidate; it does not create tmux. Use./scripts/cortex-live-smoke startto create the exactcortex-v12-smokesession on the current user's default tmux server. The helper first creates an ordinarybashpane, attaches an output-onlytmux pipe-paneobserver to that exact pane, then inserts the fixed launcher command literally and submits it with one standalone Enter. The bounded temporary stream and its metadata are owner-only, refer only to that named session, and are removed bystop; the pipe never receives input. The launcher printsCortex live-dev exit=<status>and exits with that same status. Never usecodex exec, nested tmux, an alternate socket, or the stable plugin environment. - Observe the real session with
tmux ls,./scripts/cortex-live-smoke status,./scripts/cortex-live-smoke capture,./scripts/cortex-live-smoke events, orTERM=xterm-256color tmux -f /dev/null attach -t cortex-v12-smoke.capturereads the bounded output-only stream so an alternate-screen trust or composer redraw remains observable whencapture-paneis stale.eventsreads the exact session's bounded owner-only sanitized MCP observation stream; it is observation-only and never judges readiness, errors, replay, or acceptance. Afterstart, visibly confirm the Codex state before any workload submission.pane_current_command=codexalone is insufficient: an early send during TUI initialization can lose both text submission and Enter. If the visibly observed fresh-project trust screen requests one acknowledgement, the operator/LLM may run./scripts/cortex-live-smoke enterexactly once only after that observation; it sends one standalone Enter to the exact pane and never auto-trusts a directory or changes Codex trust configuration. Then visibly confirm that the interactive composer is rendered before sending a task prompt. Before workload submission, require a passive host-owned activation receipt proving agreement between the exact isolated candidate, registered Cortex server, and advertised catalogue identity; the transport exposes it, while the LLM/coordinator verifies it, and absence means unverified environment. Oncecortex:orchestratoris selected, the first project execution action must beopen_task; prose activation acknowledgement, shell/repository inspection, project-state checks, or worker dispatch before it is a route violation. Every task authors its own task-specific prompt based on its changed behavior; the stabilization fixture is only an example. The prompt must say the session is already live-dev and prohibit nested tmux, cortex-dev, shell validation, and repository inspection. - Submit with
./scripts/cortex-live-smoke send --prompt-file FILE. After the operator has visibly confirmed the composer, the transport normalizes the UTF-8 prompt to one line, inserts the complete prompt literally with onesend-keys -ldelivery, waits a real five seconds after insertion returns, and sends exactly one standalone namedEnterto the same exact pane. It sends no pre-submitC-morC-j. Its receipt reports insertion, the five-second wait, and one key delivery only; it never claims that the TUI accepted or submitted the prompt. The transport does not poll readiness or decide acceptance. The coordinator/LLM must confirm TUI acceptance and task progress from the real pane and bounded events. Observe actual task-relevant Cortex MCP calls and results. AnyCortex tool error,validation_error,schema_unsupported, traceback, missing success marker, or repeated successful mutation without an explicitly ambiguous prior transport result is a failed live check; backend idempotency does not excuse an unexplained replay. For the stabilization fixture, accept its sentinel only after exactly one task-creation request has produced a non-replayed success. Cleanup never changes that outcome. - For every native worker spawned by live orchestration, the LLM verifier must inspect a bounded sanitized structured event stream as well as the coordinator pane because worker MCP calls/errors may be hidden. The helper may expose events but must not decide pass/fail. Acceptance requires a clean first worker-owned report-submission success, zero prior hidden validation/tool errors or mutation replays; a final report reference alone is insufficient.
- A fresh native worker must begin by consuming the server-owned assignment evidence using the opaque assignment anchor from the exact server-rendered dispatch brief. The coordinator/host must deliver that renderer output byte-for-byte; it must not reconstruct or paraphrase it. A task-state read before evidence consumption is a failed worker bootstrap, even if it later succeeds. The evidence result is the worker's bootstrap authority for subsequent task-scoped publication.
- Before cleanup, capture the explicit
Cortex live-dev exit=0marker when applicable. Then run./scripts/cortex-live-smoke stop(or--interruptafter failure), which targets and removes only the exact named session; never kill the tmux server. Record the session, isolated target, observed tool result/error, scope, outcome, and unrun checks. - The focused E2E acceptance scenario is multi-turn and LLM-driven: in a separate test project, observe the live pane, answer exactly one product clarification with the predefined safe answer, later approve the visibly rendered plan, and continue planner → implementation → independent verification → documentation-impact assessment → closure. Inspect every native worker's bounded structured event stream, including the first report-submission event; any hidden tool error or unexplained replay fails the scenario. The transport only delivers text/keys and exposes observations; it never answers clarification, approves a plan, or decides acceptance autonomously.
cortex-live-smokeis transport-only: it never parses readiness, trust, rollout, sentinels, acceptance, approvals, MCP errors, or retry conditions. The coordinator/LLM reads the real attached or bounded captured terminal and owns every decision. Prompt delivery is one literal normalized insertion followed by one standaloneEnterkey; the separateenteraction is only an explicit transport key after a visibly observed trust screen.- The transport key is the tmux named key
Enter(not a second key or a control-key alias): after one literal prompt insertion it waits exactly five seconds and delivers exactly oneEnter. - Before finishing a change, run the smallest non-destructive check set that proves the affected behavior, then broaden validation in proportion to risk. State every unrun release gate or environmental limitation plainly.
./scripts/cortex-live-smoke start --workdir PATHmay select a separate existing canonical test-project directory for Codex's cwd; the fixed launcher and candidate refresh always use this checkout's absolutescripts/cortex-dev.- To verify process-level continuation of the same ordinary interactive Codex thread, first stop only the exact smoke session, then use
./scripts/cortex-live-smoke start --workdir PATH --resume-last. This refreshes and verifies the isolated candidate again before invoking ordinarycodex resume --lastin the same canonical cwd. Confirm the resumed transcript and existing Cortex task reference before sending continuation text; a newopen_taskis a failed resume check. Never use this flag for the first run or with a different workdir. scripts/cortex-devrecords its caller cwd, temporarily enters this checkout only for candidate refresh/sync, then restores the caller cwd beforeexec codex; therefore--workdir PATHis also the task project root seen by ordinary Codex.- After editing behavior, interfaces, commands, diagrams, or release metadata,
re-read
README.md,SECURITY.md, and every affected Markdown file. Check links, Mermaid diagrams, version strings, examples, and documented commands against current source and tests; documentation drift is a release defect. - Treat source code, tests, schemas, and executable configuration as authoritative when they conflict with generated documentation.
- Legacy compatibility must never be added or retained unless the user explicitly directs it.
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.
- 3d ago First seen · 114 lines · 2,902 tokens per session scan A 1c409a4ef18d
codex-cortex-orchestrator AGENTS.md is an instructions file published in the GitHub repository igovet/codex-cortex-orchestrator (1 stars, last pushed 3d ago), licensed MIT. It adds 2,902 tokens to every session, about $0.0145 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-31.
Other instructions, from other repositories
agent-orchestrator AGENTS.md
AGENTS.md instructions for Untrivial-ai/agent-orchestrator, covering agents.md, repo layout, commands, where to look first and distribution.
agent-orchestrator CLAUDE.md
Claude Code instructions for Untrivial-ai/agent-orchestrator, covering claude.md, app state lives under /.ao only and design system.
codex-provider-sync AGENTS.md
Instructions for Dailin521/codex-provider-sync, covering ai / agent operator guide, vnext architecture baseline, goal, choose the interface and safe operating flow.
codex-command-center AGENTS.md
Instructions for sevensir888/codex-command-center, a project described as: A local desktop control center for organizing Codex projects, engineering tasks, sessions, Git changes, Skills, and MCP configuration.
codex-loop-orchestra AGENTS.md
Instructions for LEO001020/codex-loop-orchestra, covering loop discipline, 1. decomposition discipline (single-pass plan-and-solve), 3. return convention (all subagents, mandatory), 4. recoverable compression directive and 5. kernel trigger rules (ipybox, when enabled).
dev-flow AGENTS.md
Instructions for Innocent-children/dev-flow, covering dev flow repository instructions, authority, requirement scope, documentation and internationalization and product boundary.