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.
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OSnpx agentmods add skills/dds-solutions/ai-tadpole-os/context-compressionWrote 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.
[](https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/context-compression)<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>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.
| Model | Per session | Once 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 |
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.
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
/orchestrateand/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.
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.
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.
- 8d ago First seen · 46 lines · 38 tokens per session scan A 9fc9d71895bd
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.
Other skills, from other repositories
query-clickhouse-via-metabase
Run ClickHouse system.querylog analysis via the internal Metabase API. Use when investigating slow queries, materialization candidates, per-team query performance, ClickHouse cost or memory issues, or any system.querylog question. Covers prod-us and prod-eu, SSO-gated cookie auth via hogli, and ready-to-run query…
context-layer-dreaming
Synthesizes recent organizational activity into a durable context wiki. Use when running a nightly or incremental context-layer dream, or when updating sourced organizational context from completed work.
context-layer-consolidation
Keep the context wiki coherent using the deterministic lint report queue.
context-layer-health-check
Semantic review of context wiki quality after deterministic consolidation.
lessons
How to propose and query distilled lessons (the experiential memory). Only project-steward persists; every other agent proposes/queries. Use when you discover a durable lesson or need prior experience for the current task.
ax-rust-agent-context
Use when writing Rust code with axllm for deciding between context maps, trajectory context policy, offline optimization (ACE/GEPA), and memory recall for long-context agents.