ackit-context-optimization

ackit-context-optimization is a skill for Claude Code, Codex from Cynrath/agent-context-kit. It costs 20 tokens per session (366 once invoked), scanned A, original, MIT.

A guide for preparing smaller, focused context packs for coding-agent sessions. It can rank relevant files and estimate whether a pack fits a chosen token budget.

In plain words
What is it for?
It is for creating context packs, reviewing which files were included or excluded, and finding ways to shorten oversized instructions.
Why use it?
It reduces the amount of irrelevant repository content an agent must process, which helps keep sessions focused and within context limits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit It is for creating context packs, reviewing which files were included or excluded, and finding ways to shorten oversized instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cynrath/agent-context-kit/ackit-context-optimization
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 Cynrath/agent-context-kit --skill ackit-context-optimization
Clone the repo
git clone --depth 1 https://github.com/Cynrath/agent-context-kit

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 ackit-context-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/cynrath/agent-context-kit/ackit-context-optimization/github.svg)](https://agentmods.dev/skills/cynrath/agent-context-kit/ackit-context-optimization)
Your own site
<a href="https://agentmods.dev/skills/cynrath/agent-context-kit/ackit-context-optimization"><img src="https://agentmods.dev/badge/skills/cynrath/agent-context-kit/ackit-context-optimization/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 ackit-context-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/cynrath/agent-context-kit/ackit-context-optimization"><img src="https://agentmods.dev/badge/skills/cynrath/agent-context-kit/ackit-context-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 366 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.00020 $0.00366
Opus 5.5 $0.00008 $0.00146
Sonnet 5.5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00037

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

Security

Grade A, and why

ackit-context-optimization 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 1mo 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/skills/ackit-context-optimization/SKILL.md · 24 lines

What it actually says

Context Optimization

Activate when the user asks to prepare context for an agent session or reduce token usage.

See ranking signals for deterministic ordering.

Steps

  1. ackit pack --max-tokens <budget> [--format markdown|json] [--include <globs...>] [--changed] [--profile codex|claude|copilot|gemini|generic] [--task <id>] [--resume] to generate a deterministic pack with a manifest of included/excluded files and reasons (relativePath, action, reason, estimatedTokens, sha256, bytes). Task-aware ranking (--task) and checkpoint resume (--resume) keep packs scoped; greedy fill excludes over-budget candidates with budget exhausted.
  2. Review exclusions; add explicit includes only when the ranking missed real relevance (explicit include is the highest signal; no embeddings).
  3. For bloated instructions, run ackit optimize [--profile <name>] [--category <cat>] [--min-severity low|medium|high] [--explain] [--format terminal|json|markdown|sarif] (read-only by default) and apply suggestions manually or with ackit optimize --fix [--dry-run] [--diff] — fixes apply ONLY to ACKit-managed surfaces.

Notes

  • Token counts are character-class estimates (~4 chars/token); treat budgets as soft targets.
  • Safety gates run before scoring: secret-shaped content excluded, duplicate hashes deduped, machine-local paths scrubbed to <local-path>.
  • Never paste repository content into external services.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 979007f74fb8
  2. 1mo ago First seen · 24 lines · 20 tokens per session scan A 1def1ee184f5

Subscribe to this mod's changes

ackit-context-optimization is a skill published in the GitHub repository Cynrath/agent-context-kit (14 stars, last pushed 12d ago), licensed MIT. It adds 20 tokens to every session and 366 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

git-ai-search

Search and restore AI conversation context from git history.

git-ai-project/git-ai · 13 tokens

remember

Save the decisions, facts, dead ends and architecture this conversation established to Atlas's shared memory, so other agents and future sessions can build on them.

pacifio/atlas · 32 tokens

brain-setup

Bootstrap the Open Project Brain Standard into the current project — prefer brain init (ensure BRAIN.md, scaffold empty brain brainRoot-aware, default-wire CLAUDE.md + AGENTS.md). Optionally install a pre-commit hook and a Claude Code or Codex SessionStart hook.

mindmuxai/brain.md · 63 tokens

brain-bootstrap

Seed a freshly-scaffolded brain with real project knowledge — on an existing (brownfield) project read the code, docs, and git log, then draft only the root pages that have meaningful content and capture key historical decisions; on a near-empty (greenfield) project interview the user. Every write goes through the…

mindmuxai/brain.md · 79 tokens

brain-ingest

The process for digesting a conversation, document, or research result, classifying it, and writing it down as brain content (a root-page update or a new/updated page) through the brain CLI.

mindmuxai/brain.md · 48 tokens

immune

Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning. Triggers on: "scan for errors", "immune scan", "check output quality", "antibody scan". NOT for PR review (use pr-review) or repo audits (use repo-sentinel).

Mathews-Tom/armory · 73 tokens