context-compaction

context-compaction is a skill for Claude Code, Codex from igovet/codex-cortex-orchestrator. It costs 41 tokens per session (555 once invoked), scanned A, original, MIT.

A recovery guide for continuing an internal task after context has been compressed or reset.

In plain words
What is it for?
Use it to restore project facts, task state, governance details, publication progress, and verification references during an ongoing Cortex task.
Why use it?
It preserves the important decisions, evidence, files, and next actions without keeping the entire conversation history.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to restore project facts, task state, governance details, publication progress, and verification references during an ongoing Cortex task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igovet/codex-cortex-orchestrator/context-compaction
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.

Any agent
npx skills add igovet/codex-cortex-orchestrator --skill context-compaction
Clone the repo
git clone --depth 1 https://github.com/igovet/codex-cortex-orchestrator

Made for: Claude Code, Codex.

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 context-compaction

README.md
[![agentmods](https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/context-compaction/github.svg)](https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/context-compaction)
Your own site
<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.

agentmods 80×15 button for context-compaction

Your own site · 80×15
<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>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

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

Security

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.

plugins/cortex/skills/context-compaction/SKILL.md · 53 lines

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.

Read the full file on GitHub · 53 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. 2mo ago Changed · +7 lines 2cbc81ab069d
  2. 2mo ago Changed · +21 tokens per session 1fa186092c04
  3. 2mo ago Changed · -1 lines · -8 tokens per session ece795d331f6
  4. 2mo ago Changed · -48 lines · -4 tokens per session 76c8d5093448
  5. 3mo ago First seen · 95 lines · 32 tokens per session scan A c6f4ae389243

Subscribe to this mod's changes

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.

Related

context-compaction compared with skills from other repositories

context-compaction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-compactionigovet/codex-cortex-orchestratorSkill21mo agoMITA41Claude Code, Codex
using-aoUntrivial-ai/agent-orchestratorSkill15kyesterdayApache-2.0A71Claude Code, Codex
model-routerrexleimo/aiosSkill626d agoMITA60Claude Code, Codex
outsourcereralexgreensh/outsourcererSkill209todaynoneA50Claude Code
cas-delegateZhuxi140/codex-agent-switchSkill628d agoMITA28Codex
cas-slimZhuxi140/codex-agent-switchSkill628d agoMITA29Claude Code, Codex
agency-chief-of-staffpapperrollinggery/zhijuan-codex-agency-chief-of-stafSkill32mo agoMITA72Codex