codex-cortex-orchestrator AGENTS.md

codex-cortex-orchestrator AGENTS.md is an instructions file for Codex, OpenCode from igovet/codex-cortex-orchestrator. It costs 2,902 tokens per session, scanned A, original, MIT.

Repository instructions for developing the Cortex orchestration project. They describe its development policy, local workflow, diagnostics, and required follow-up work.

In plain words
What is it for?
Guiding work on the Cortex repository, including local development, diagnostics, testing expectations, and orchestration-related changes.
Why use it?
They clarify which project files define runtime behavior and when Cortex should or should not be activated.

Instructions file for CodexOpenCode

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 instructions/igovet/codex-cortex-orchestrator/agents-md
Clone the repo
git clone --depth 1 https://github.com/igovet/codex-cortex-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 codex-cortex-orchestrator AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/igovet/codex-cortex-orchestrator/agents-md.svg)](https://agentmods.dev/instructions/igovet/codex-cortex-orchestrator/agents-md)
Your own site
<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>
Per session 2,902 This file is loaded in full into every session.
When invoked 2,902 The same file — it is already loaded in full.
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.02902 $0.02902
Opus 5 $0.01451 $0.01451
Sonnet 5 $0.00580 $0.00580
Haiku 4.5 $0.00290 $0.00290

Measured 3d ago against content hash 1c409a4ef18d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 114 lines

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-normal cortex:orchestrator route. After explicit selection, follow the bundled orchestrator and cortex-control skills; 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 --check or ./scripts/sync-cortex.sh --dry-run; these are read-only validation only. Do not invoke cachebuster helpers manually, run codex plugin add, or edit marketplace or Codex configuration as a substitute. Never run normal sync-cortex.sh against the user's stable HOME or CODEX_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.md and 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-dev candidate, exports HOME=$HOME/.cortex-dev and CODEX_HOME=$HOME/.cortex-dev/.codex, then runs the repository-supported sync-cortex.sh only in that isolated environment before launching ordinary Codex. Never install, reinstall, update, or synchronize the user's real installed plugin; do not use sync-cortex.sh directly as a live-dev mechanism.
  • The repository-root ./cortex-dev command is a convenience forwarding wrapper for ./scripts/cortex-dev; it uses the same isolated HOME=$HOME/.cortex-dev and CODEX_HOME=$HOME/.cortex-dev/.codex runtime and must retain the same ordinary interactive Codex and no-codex exec constraints.
  • Live-dev verification is an operator-controlled ordinary Codex session. ./scripts/cortex-dev refreshes only the isolated HOME=$HOME/.cortex-dev and CODEX_HOME=$HOME/.cortex-dev/.codex candidate; it does not create tmux. Use ./scripts/cortex-live-smoke start to create the exact cortex-v12-smoke session on the current user's default tmux server. The helper first creates an ordinary bash pane, attaches an output-only tmux pipe-pane observer 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 by stop; the pipe never receives input. The launcher prints Cortex live-dev exit=<status> and exits with that same status. Never use codex 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, or TERM=xterm-256color tmux -f /dev/null attach -t cortex-v12-smoke. capture reads the bounded output-only stream so an alternate-screen trust or composer redraw remains observable when capture-pane is stale. events reads the exact session's bounded owner-only sanitized MCP observation stream; it is observation-only and never judges readiness, errors, replay, or acceptance. After start, visibly confirm the Codex state before any workload submission. pane_current_command=codex alone 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 enter exactly 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. Once cortex:orchestrator is selected, the first project execution action must be open_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 one send-keys -l delivery, waits a real five seconds after insertion returns, and sends exactly one standalone named Enter to the same exact pane. It sends no pre-submit C-m or C-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. Any Cortex 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=0 marker when applicable. Then run ./scripts/cortex-live-smoke stop (or --interrupt after 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-smoke is 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 standalone Enter key; the separate enter action 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 one Enter.
  • 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 PATH may select a separate existing canonical test-project directory for Codex's cwd; the fixed launcher and candidate refresh always use this checkout's absolute scripts/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 ordinary codex resume --last in the same canonical cwd. Confirm the resumed transcript and existing Cortex task reference before sending continuation text; a new open_task is a failed resume check. Never use this flag for the first run or with a different workdir.
  • scripts/cortex-dev records its caller cwd, temporarily enters this checkout only for candidate refresh/sync, then restores the caller cwd before exec codex; therefore --workdir PATH is 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.

Read the full file on GitHub · 114 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. 3d ago First seen · 114 lines · 2,902 tokens per session scan A 1c409a4ef18d

Subscribe to this mod's changes

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.

Related

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.

Untrivial-ai/agent-orchestrator · 2,350 tokens

agent-orchestrator CLAUDE.md

Claude Code instructions for Untrivial-ai/agent-orchestrator, covering claude.md, app state lives under /.ao only and design system.

Untrivial-ai/agent-orchestrator · 486 tokens

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.

Dailin521/codex-provider-sync · 1,480 tokens

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.

sevensir888/codex-command-center · 556 tokens

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).

LEO001020/codex-loop-orchestra · 2,161 tokens

dev-flow AGENTS.md

Instructions for Innocent-children/dev-flow, covering dev flow repository instructions, authority, requirement scope, documentation and internationalization and product boundary.

Innocent-children/dev-flow · 1,856 tokens