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 skills add igovet/codex-cortex-orchestrator --skill context-compactiongit 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/skills/igovet/codex-cortex-orchestrator/context-compaction)<a href="https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/context-compaction"><img src="https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/context-compaction/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/skills/igovet/codex-cortex-orchestrator/context-compaction"><img src="https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/context-compaction.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.00041 | $0.00555 |
| Opus 5.5 | $0.00016 | $0.00222 |
| Sonnet 5.5 | $0.00008 | $0.00111 |
| Haiku 4.5 | $0.00004 | $0.00056 |
Grade A, and why
context-compaction 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 2mo 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 — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context recovery
Use this skill after summarization, compaction, reset, restart or terminal worker recovery. The recovery summary is an index into durable state, not a replacement for the original request, pipeline or evidence. Reload the next needed live tool declaration; remembered field names and values are not authoritative. Prefer its declared defaults.
Coordinator
Resume the same native thread and task. Recover the current pipeline and reread the original request, later user messages, attachment routes and as many bounded evidence pages as needed to restore exact requirements and make the next decision. Restore the user-facing language from the user's own prose and any explicit response-language preference before replying; an English recovery summary does not change it.
Restore the current advisory governance from public response metadata, not an old replayed operation receipt or a remembered mode. Read its rationale report when needed, then apply its depth to remaining assignments and checks. Unavailable governance is diagnostic; user requirements and observed risk still govern work. The coordinator owns the causal model across specialist handoffs; preserve separate implementation and independent verification responsibilities.
Reconstruct active and cancelled conditions, decisions, assignments, resource owners, open actions, required checks, worker handles, source revisions, artifact revisions and report pointers. Reconcile active workers before overlapping work. Apply queued steering and decide whether change signals invalidate prior evidence. Restore ownership before project work: original user sources, attachments and bounded evidence pages may be reread by the coordinator, while project reads and checks go to the worker that owns them. Repeat a project check for missing or contradictory evidence, changed requirements or source/artifact revisions, or changed worker state.
Worker
Resume English-only reasoning and communication immediately; the coordinator's user-facing language does not apply to workers. Restore the assigned worker skill, exact assignment, model and effort, source revision, owned resources, artifact state, command receipts, report pointers and any unpublished draft. Reread the assignment, clarifications and evidence required for correctness. Inspect current state before mutation and preserve the same ownership when continuation is possible.
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.
- 2mo ago Changed · +7 lines 2cbc81ab069d
- 2mo ago Changed · +21 tokens per session 1fa186092c04
- 2mo ago Changed · -1 lines · -8 tokens per session ece795d331f6
- 2mo ago Changed · -48 lines · -4 tokens per session 76c8d5093448
- 3mo ago First seen · 95 lines · 32 tokens per session scan A c6f4ae389243
context-compaction is a skill published in the GitHub repository igovet/codex-cortex-orchestrator (2 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 555 once invoked, about $0.0002 per session on Opus 5.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.
context-compaction compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| context-compactionigovet/codex-cortex-orchestrator | Skill | 2 | 1mo ago | MIT | A | 41 | Claude Code, Codex |
| using-aoUntrivial-ai/agent-orchestrator | Skill | 15k | yesterday | Apache-2.0 | A | 71 | Claude Code, Codex |
| model-routerrexleimo/aios | Skill | 62 | 6d ago | MIT | A | 60 | Claude Code, Codex |
| outsourcereralexgreensh/outsourcerer | Skill | 209 | today | none | A | 50 | Claude Code |
| cas-delegateZhuxi140/codex-agent-switch | Skill | 6 | 28d ago | MIT | A | 28 | Codex |
| cas-slimZhuxi140/codex-agent-switch | Skill | 6 | 28d ago | MIT | A | 29 | Claude Code, Codex |
| agency-chief-of-staffpapperrollinggery/zhijuan-codex-agency-chief-of-staf | Skill | 3 | 2mo ago | MIT | A | 72 | Codex |