strategic-compact

strategic-compact is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 21 tokens per session (570 once invoked), scanned A, original, Apache-2.0.

A method for managing an agent's working context by summarising information at natural phase changes. The summary preserves important plans, findings, and decisions.

In plain words
What is it for?
Deciding when to compact context during research, planning, implementation, testing, and debugging.
Why use it?
It reduces clutter from earlier research and debugging while keeping the information needed for the next phase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the TodoWrite tool.

Good fit Deciding when to compact context during research, planning, implementation, testing, and debugging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxoesneon/ciel/strategic-compact
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 jxoesneon/Ciel --skill strategic-compact
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

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 strategic-compact

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/strategic-compact/github.svg)](https://agentmods.dev/skills/jxoesneon/ciel/strategic-compact)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/strategic-compact"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/strategic-compact/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 strategic-compact

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxoesneon/ciel/strategic-compact"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/strategic-compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 570 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.00021 $0.00570
Opus 5 $0.00010 $0.00285
Sonnet 5 $0.00004 $0.00114
Haiku 4.5 $0.00002 $0.00057

Measured 9d ago against content hash a2113d5db4e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

strategic-compact 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 9d 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.

skills/strategic-compact/SKILL.md · 53 lines

What it actually says

CIEL ADAPTATION: Strategic Compact (Phase-Based Memory)

This skill formalizes the practice of "Strategic Compaction"—manual invocation of the /compact command at logical boundaries rather than relying on arbitrary, token-triggered auto-compaction.

The Compaction Decision Guide

Boundary Compact? Rationale
Research → Planning YES Research traces are bulky; the Plan is the distilled output.
Planning → Implementation YES The plan is in TodoWrite; clear the reasoning space for code.
Implementation → Testing MAYBE Keep if tests require deep code context; compact if focus shifts.
Debug → Next Task YES Error traces and logs heavily pollute unrelated work.
Mid-Implementation NO Losing variable names and partial state is catastrophic.

Operational Protocol

  1. Pre-Compact Audit: Before compacting, ensure all vital state (Plans, Findings, Decisions) is written to durable storage (MEMPALACE, TodoWrite, or project files).
  2. Summary Command: Use /compact [summary] to preserve a high-level intent marker across the compaction boundary.
  3. Trigger Threshold: Suggest compaction to the user every 50 tool calls if a major phase transition has occurred.

Benefits

  • Response Coherence: Prevents the model from becoming "confused" by stale reasoning from a prior task.
  • Efficiency: Maximizes available context for active implementation.
  • Determinism: Ensures that the most important context (The Plan) is always in the most recent (high-priority) part of the window.

Anti-Patterns

  • Blind Compaction: Compacting in the middle of a complex multi-file edit.
  • The Amnesia Trap: Compacting before writing down the current implementation hypothesis.
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. 9d ago First seen · 53 lines · 21 tokens per session scan A a2113d5db4e6

Subscribe to this mod's changes

strategic-compact is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 5d ago), licensed Apache-2.0. It adds 21 tokens to every session and 570 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

build-personal-brain

Create, resume, validate, connect, or maintain a private cross-project memory for AI assistants. Use when a person asks to build a personal memory from local work folders and past assistant conversations, continue an interrupted memory audit, connect an existing memory to another local assistant, verify that the…

mikeshu2001/personal-brain-builder · 81 tokens

squad-bootstrap

Skill de inicialização da squad. Faz a varredura do projeto e popula a memória técnica e de negócios em memories/. ATENÇÃO - SÓ DEVE ser executada se houver solicitação explícita do usuário ("instalar a squad", "fazer setup inicial", "bootstrap do projeto") ou logo após o instalador (install.sh) ter configurado a…

rcelebrone/DotAgents · 84 tokens

compound

Persistência de aprendizados nas memórias vivas ao final de cada ciclo. Use para "atualizar memória", "guardar aprendizados" ou "sincronizar contexto do projeto". Executada pelo Tech Lead após o PO definir Status entregue.

rcelebrone/DotAgents · 52 tokens

macrodata-onboarding

Guide new users through macrodata setup. Creates identity, human profile, and workspace files. Use when getcontext returns isFirstRun true, or user asks to set up their profile.

Kacper0199/Opencode-Ultrathinker · 42 tokens

macrodata-distill

Extract distilled actions and facts from today's conversations. Spawns sub-agents per conversation to avoid context blowup.

Kacper0199/Opencode-Ultrathinker · 27 tokens

macrodata-memory-maintenance

End of day memory maintenance. Runs distillation, updates state files, prunes stale info. Runs in background with no user interaction.

Kacper0199/Opencode-Ultrathinker · 33 tokens