apex-context-management

apex-context-management is a skill for Claude Code from jonathan-vella/apex-accelerator. It costs 103 tokens per session (1,490 once invoked), scanned A, original, MIT.

A context-management procedure for reducing large inputs during agent work and auditing Copilot debug logs afterward. A context window is the amount of text an AI model can process in one exchange.

In plain words
What is it for?
Use it to choose full, summarized, or minimal artifact loading, or to review debug logs for context usage and handoff problems.
Why use it?
It helps agents stay within their input limit and helps diagnose wasted context, repeated content, or gaps between agent handoffs.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it to choose full, summarized, or minimal artifact loading, or to review debug logs for context usage and handoff problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jonathan-vella/apex-accelerator/apex-context-management
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 jonathan-vella/apex-accelerator --skill apex-context-management
Clone the repo
git clone --depth 1 https://github.com/jonathan-vella/apex-accelerator

Made for: Claude Code.

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 apex-context-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonathan-vella/apex-accelerator/apex-context-management/github.svg)](https://agentmods.dev/skills/jonathan-vella/apex-accelerator/apex-context-management)
Your own site
<a href="https://agentmods.dev/skills/jonathan-vella/apex-accelerator/apex-context-management"><img src="https://agentmods.dev/badge/skills/jonathan-vella/apex-accelerator/apex-context-management/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 apex-context-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/jonathan-vella/apex-accelerator/apex-context-management"><img src="https://agentmods.dev/badge/skills/jonathan-vella/apex-accelerator/apex-context-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,490 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.00103 $0.01490
Opus 5.5 $0.00041 $0.00596
Sonnet 5 $0.00021 $0.00298
Haiku 4.5 $0.00010 $0.00149

Measured today against content hash 14cdf7a1ed67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-23, from the pricing page.

Security

Grade A, and why

apex-context-management 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/parse-chat-logs.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.github/skills/apex-context-management/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Management Skill

Unified context-window management with two distinct lifecycles:

  • Runtime Compression — what an agent does before loading a large artifact to stay under the model context limit (during workflow execution).
  • Diagnostic Audit — what the 11-Context Optimizer agent does after the fact to find waste in agent definitions, instructions, and skill loads.

The two modes do not depend on each other — pick the section that matches your need.


Mode A: Runtime Compression

Replaces the legacy context-shredding skill.

When to Use Runtime Compression

  • Before loading a predecessor artifact file (01 through 07)
  • When conversation length suggests >60% of model context is used
  • When an agent needs to load multiple large artifacts

Compression Tiers

Tier Context Usage Strategy
full < 60% Load entire artifact — no compression
summarized 60-80% Load key H2 sections only
minimal > 80% Load compact decisions; retain required safety evidence losslessly

Hard Token Checkpoints

Percentages are advisory; absolute input-token counts override them. GPT-5.6-Terra and Luna hard-checkpoints at ≥300K input; Claude Opus 5 at ≥160K. When hit, emit a compaction message and prefer the minimal artifact tier. Required missing guidance and safety evidence must still be recovered. These are repository trip-wires, not verified model API limits; use the active harness limit when known and do not infer it from a model name. Full per-model table, checkpoint procedure, and background context (nordic-foods saturation event) in references/hard-checkpoints.md.

Rules

  1. Estimate context usage — count approximate conversation tokens
  2. Select tier based on the thresholds above
  3. Apply compression template from references/compression-templates.md
  4. If loading multiple artifacts, compress the older / less-critical ones first

Read the full file on GitHub · 151 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. today First seen · 151 lines · 103 tokens per session scan A 14cdf7a1ed67

Subscribe to this mod's changes

apex-context-management is a skill published in the GitHub repository jonathan-vella/apex-accelerator (50 stars, last pushed yesterday), licensed MIT. It adds 103 tokens to every session and 1,490 once invoked, about $0.0004 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-09-23.