context-compression

context-compression is a skill for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 38 tokens per session (540 once invoked), scanned A, original, MIT.

A session-management skill that keeps long coding-agent conversations organized by summarizing finished work and preserving important decisions.

In plain words
What is it for?
It helps maintain checkpoints during long sessions, summarize large command results, and prepare handoffs between sessions.
Why use it?
Long conversations can become harder for an agent to follow as old details pile up. It reduces information drift by keeping the most relevant context available.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Workflow Binding**: Used directly during [`/orchestrate`](../../workflows/orchestrate.md) and [`/onboard`](../../workflows/onboard.md)..

Good fit It helps maintain checkpoints during long sessions, summarize large command results, and prepare handoffs between sessions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OS
agentmods
npx agentmods add skills/dds-solutions/ai-tadpole-os/context-compression

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/context-compression.svg)](https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/context-compression)
Your own site
<a href="https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/context-compression"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/context-compression.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 540 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.00038 $0.00540
Opus 5 $0.00019 $0.00270
Sonnet 5 $0.00008 $0.00108
Haiku 4.5 $0.00004 $0.00054

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

Security

Grade A, and why

context-compression 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 8d 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.

.agent/skills/context-compression/SKILL.md · 46 lines

What it actually says

[!IMPORTANT] AI Context & Knowledge Heritage

  • Subsystem: Agent Skills Registry / context-compression
  • Architecture: @docs ARCHITECTURE:Documentation
  • Failure Path: Information drift, legacy terminology, or documentation mismatch.
  • Observability: Traceability via execution/parity_guard.py ([SKILL])

Context Compression & Session Management

Purpose: Prevent context degradation across long multi-turn sessions (20+ turns) by distilling completed work into high-signal checkpoints. Workflow Binding: Used directly during /orchestrate and /onboard.


🎯 Progressive Disclosure & L3 Reference Index

Read REQUIRED compression rules below; consult deep L3 Reference Guides on demand:

L3 Reference Guide Purpose Trigger / When to Load
references/checkpoint_and_handoff_templates.md Level 1/2/3 checkpoint formats and multi-session handoff files Session checkpointing & multi-turn handoffs

🚦 1. Compression Triggers & Levels

Level Scope When to Trigger Result / Benefit
Level 1: Micro-Compact Large Tool Output Grep/Find outputs > 100 lines Summarize key files & match counts
Level 2: Phase Summary Completed Phase Transitioning from Research to Code Preserve decisions & discard raw reads
Level 3: Session Checkpoint Full Session 20+ turns or user asks for summary Emit structured progress checkpoint

🧭 2. Preservation vs Discard Directives

  • Preserve: Architecture decisions, file paths/line numbers touched, test verification results.
  • Discard: Raw file dumps, verbose tool invocation syntax, transient intermediate logs.
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. 8d ago First seen · 46 lines · 38 tokens per session scan A 9fc9d71895bd

Subscribe to this mod's changes

context-compression is a skill published in the GitHub repository DDS-Solutions/AI-TadPole-OS (8 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 540 once invoked, about $0.0002 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-08-31.