strategic-compact

strategic-compact is a skill for Claude Code, Codex from masrisystems/dot-agents. It costs 47 tokens per session (1,257 once invoked), scanned B, original, no licence file.

A skill that suggests manually shortening the conversation context at sensible points in a task. Context is the information an assistant can keep available while working.

In plain words
What is it for?
Choosing logical moments to compact context during longer coding tasks, especially when moving between phases of work.
Why use it?
It helps preserve relevant information as a long session approaches its context limit. It bases the timing on task phases rather than an arbitrary point.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Part of the ecc plugin — 70 skills, 71 commands, 55 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/masrisystems/dot-agents/strategic-compact
Any agent
npx skills add masrisystems/dot-agents --skill strategic-compact
Clone the repo
git clone --depth 1 https://github.com/masrisystems/dot-agents

Made for: Claude Code, Codex.

Or install ecc, the plugin that ships this one along with the rest of its 70 skills, 71 commands, 55 agents, 1 MCP server.

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/masrisystems/dot-agents/strategic-compact.svg)](https://agentmods.dev/skills/masrisystems/dot-agents/strategic-compact)
Your own site
<a href="https://agentmods.dev/skills/masrisystems/dot-agents/strategic-compact"><img src="https://agentmods.dev/badge/skills/masrisystems/dot-agents/strategic-compact.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin unknown 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.00047 $0.01257
Opus 5 $0.00023 $0.00629
Sonnet 5 $0.00009 $0.00251
Haiku 4.5 $0.00005 $0.00126

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

Security

Grade B, and why

strategic-compact scanned grade B with 1 finding 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Add to your `~/.claude/settings.json`:
catalogs/ecc/.agents/skills/strategic-compact/SKILL.md · 108 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 5d ago First seen · 108 lines · 47 tokens per session scan B b63d2ca24009

Subscribe to this mod's changes

strategic-compact is a skill published in the GitHub repository masrisystems/dot-agents (0 stars, last pushed 4d ago), with no licence file. It adds 47 tokens to every session and 1,257 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

session-recovery

Seamless continuation across sessions and IDEs — on session start, read .toh/memory/ and greet the user with where the last session left off so nothing needs re-explaining. Handles first run (no memory yet), mid-task resume, and returns after days or weeks. Use at the start of every new session or when the user says…

wasintoh/toh-framework · 82 tokens

memory-system

Tiered, low-token project memory protocol for .toh/memory/ — 7 files across 3 tiers (Tier 1 active.md + summary.md always read, 800 tokens; Tier 2 architecture/components for build work and changelog for debug work; Tier 3 decisions/agents-log only on demand). Auto-saves after task completion with zero user effort…

wasintoh/toh-framework · 114 tokens

PARA Kit

PARA workspace structure reference — schema, layout, kernel governance, and intelligence routing.

pageel/para-workspace · 21 tokens

self-improvement

Enables the AI Agent to continuously improve developer velocity and code quality by recording terminal failures, recurring TDD errors, and architectural drift into the para-graph memory, and retrieving past resolutions to avoid repeating mistakes.

pageel/para-workspace · 46 tokens

PARA Knowledge Sidecar

Sidecar data and templates for the /para-knowledge workflow.

pageel/para-workspace · 19 tokens

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

addyosmani/agent-skills · 43 tokens