Subagent Orchestration
PostHog/code
How and when to delegate work to subagents via the subagent tool (Explore, Plan, General).
Label each context chunk keep, drop or replace-with-a-pointer and pass the survivors through byte for byte instead of summarising, with key-shaped chunks decided locally and never sent, and a…
$ npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mrmps/classifier-dev context-compaction-keep-or-drop --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mrmps/classifier-dev.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/_rejected/context-compaction-keep-or-drop .claude/skills/context-compaction-keep-or-drop && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "context-compaction-keep-or-drop" agent skill from https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-drop into .claude/skills/context-compaction-keep-or-drop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-compaction-keep-or-drop", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-dropType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mrmps/classifier-dev context-compaction-keep-or-drop --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrmps/classifier-dev.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/_rejected/context-compaction-keep-or-drop .agents/skills/context-compaction-keep-or-drop && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "context-compaction-keep-or-drop" agent skill from https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-drop into .agents/skills/context-compaction-keep-or-drop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-compaction-keep-or-drop", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mrmps/classifier-dev context-compaction-keep-or-drop --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrmps/classifier-dev.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/_rejected/context-compaction-keep-or-drop .cursor/skills/context-compaction-keep-or-drop && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "context-compaction-keep-or-drop" agent skill from https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-drop into .cursor/skills/context-compaction-keep-or-drop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-compaction-keep-or-drop", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mrmps/classifier-dev.git --path skills/_rejected/context-compaction-keep-or-drop--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mrmps/classifier-dev context-compaction-keep-or-drop --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrmps/classifier-dev.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/_rejected/context-compaction-keep-or-drop .gemini/skills/context-compaction-keep-or-drop && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "context-compaction-keep-or-drop" agent skill from https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-drop into .gemini/skills/context-compaction-keep-or-drop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-compaction-keep-or-drop", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mrmps/classifier-dev context-compaction-keep-or-dropInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mrmps/classifier-dev.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/_rejected/context-compaction-keep-or-drop .github/skills/context-compaction-keep-or-drop && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "context-compaction-keep-or-drop" agent skill from https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-drop into .github/skills/context-compaction-keep-or-drop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-compaction-keep-or-drop", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mrmps/classifier-dev context-compaction-keep-or-drop --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrmps/classifier-dev.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/_rejected/context-compaction-keep-or-drop .opencode/skills/context-compaction-keep-or-drop && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "context-compaction-keep-or-drop" agent skill from https://github.com/mrmps/classifier-dev/tree/main/skills/_rejected/context-compaction-keep-or-drop into .opencode/skills/context-compaction-keep-or-drop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-compaction-keep-or-drop", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
context-compaction-keep-or-dropLabel each context chunk keep, drop or replace-with-a-pointer and pass the survivors through byte for byte instead of summarising, with key-shaped chunks decided locally and never sent, and a…
Context Compaction Keep Or Drop is an agent skill from mrmps/classifier-dev. Label each context chunk keep, drop or replace-with-a-pointer and pass the survivors through byte for byte instead of summarising, with key-shaped chunks decided locally and never sent, and a checksum row per chunk. Use when a session runs out of room, or on "compact" or "trim the history".
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Context engineering. It works with Bash. The repository describes itself as: Zero-shot text classification over plain HTTP — no API key, no account. One Cloudflare Worker, a CLI, and an MCP server. https://classifier.dev. The licence is MIT.
Read from SKILL.md and the folder at commit 629df75. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
classifier.devFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context Compaction Keep Or Drop loads about 1.5k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 493 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mrmps/classifier-dev at commit 629df75, republished under its MIT licence (© mrmps). 493 words, ~1,511 tokens.
.claude/skills/context-compaction-keep-or-drop/SKILL.md (or your agent's skills folder).A summary rewrites the one line you needed into a sentence about it. Label each chunk instead and pass the keepers through unchanged: verbatim in, verbatim out.
Never the transcript. Per chunk, a header line and at most its first 2,000 characters, redacted, and only if it passes a local rule:
Decided here, never sent. A chunk holding bearer text, a key, token,
secret or password word, an armoured block or NAME=value lines is labelled
by rule: kept if it is part of the live step, dropped if not, as local.
Redacted, then sent. The rest has bearer headers, fields named for a key, token, secret or password, runs of 40 characters or more and mail addresses replaced by a placeholder. Past two placeholders it falls back to the rule above.
in curl -H 'authorization: Bearer tok_9f2a7c31d4' https://api.example.com/charges
out curl -H 'authorization: Bearer [redacted]' https://api.example.com/chargesThe service states that it stores no input text, and forwards it to the model provider that answers: https://classifier.dev/privacy. Read that against your policy. If the transcript is confidential, put none of it on a network: ask the agent's own model the same three labels with the same thresholds. Only who answers changes.
A chunk is one tool result, message or file read, with a header naming it and how to fetch it again. Every chunk gets a ledger row, and the assertion fails if one is lost.
import hashlib, json, re, urllib.request
LABELS = ["keep in context, the current task needs the exact text",
"drop, it is noise or already superseded",
"replace with a pointer, it can be fetched again if needed"]
KEEP, DROP, POINTER = LABELS
SENSITIVE = re.compile(r"\b(bearer|api[_-]?key|token|secret|password)\b"
r"|-{5}BEGIN|^[A-Z_]{3,}=\S+$", re.I | re.M)
REDACT = [(re.compile(r"\b(bearer|basic)\s+[^\s'\"]+", re.I), r"\1 [redacted]"),
(re.compile(r"([\w.-]*(?:key|token|secret|password)[\w.-]*)\s*[=:]\s*\S+", re.I), r"\1=[redacted]"),
(re.compile(r"\b[A-Za-z0-9_-]{40,}\b"), "[redacted]"),
(re.compile(r"\b[\w.+-]+@[\w-]+\.[\w.]+\b"), "[redacted]")]
digest = lambda t: hashlib.sha256(t.encode("utf-8")).hexdigest()[:12]
def local(chunk): # decided here, never sent
t = chunk["head"]
for rx, to in REDACT: t = rx.sub(to, t)
if SENSITIVE.search(chunk["head"]) or t.count("[redacted]") > 2:
return (KEEP if chunk["live"] else DROP), t
return None, t
def classify(texts, task):
body = json.dumps({"labels": LABELS, "inputs": [t[:2000] for t in texts],
"instructions": f"The current task is: {task}. Judge each chunk only "
"by whether its exact text is needed to finish it."}).encode()
req = urllib.request.Request("https://classifier.dev/v1/classify", data=body,
headers={"content-type": "application/json", "user-agent": "compact/1"})
return json.load(urllib.request.urlopen(req))["results"]
def compact(chunks, task):
held = [local(c) for c in chunks]
send = [i for i, (v, _) in enumerate(held) if v is None]
got = dict(zip(send, classify([held[i][1] for i in send], task) if send else []))
kept, ledger = [], []
for i, (c, (v, _)) in enumerate(zip(chunks, held)):
score = "local"
if v is None:
s = got[i]["scores"]
v = DROP if s[DROP] >= 0.9 else POINTER if s[POINTER] >= 0.5 else KEEP
score = s[v] # unsure keeps
ledger.append({"id": c["id"], "sha": digest(c["text"]), "score": score,
"verdict": v.split(",")[0], "refetch": c["refetch"]})
if v == KEEP: kept.append(c["text"]) # verbatim, not rewritten
elif v == POINTER:
kept.append(f"[{c['id']} {digest(c['text'])} refetch: {c['refetch']}]")
assert len(ledger) == len(chunks)
return kept, ledgerFour of ten rows, task "fix a double charge in the retry path":
Bash#14 e8428025c464 drop 0.9
Bash#19 0652466c0d6d keep in context local
Grep#8 a09ee1f0a8ae replace with a pointer 0.62
Read#7 7ddbe075eee8 drop local
10 chunks in, 8 sent, 6 keptBash#19 was a worker environment block, Read#7 a scratch file with a
bearer header: both decided by rule, neither left the machine.
The classifier returns labels, scores and a calibrated confidence, and writes
nothing. The usual rule is act at 0.9 and above, look again from 0.5 to 0.9,
escalate below. Here the reversible and irreversible outcomes get different
bars: drop at 0.9 and above only, since dropping is the one move you
cannot undo from inside the session; pointer at 0.5 and above, since it
keeps the id, checksum and refetch command; the rest is kept. Threshold on
scores[label], not confidence, which is the top label's.
keep and drop, these chunks
scored an install log 0 to drop where the full ones gave 0.9.Skip it when you are not near the limit, when the harness already compacts, or when everything in context is cheap to refetch. If losing anything is unacceptable, use the pointer and keep verdicts only.
© mrmps, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/_rejected/context-compaction-keep-or-drop of mrmps/classifier-dev.
Open the folder on GitHubat commit 629df75
Context Compaction Keep Or Drop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Context Compaction Keep Or Drop this skillmrmps/classifier-dev | 424 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Subagent OrchestrationPostHog/code | 179 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 38k | 11 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Plugin Settings Patternanthropics/claude-plugins-official | 38k | 7 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Crush Configurationcharmbracelet/crush | 29k | — | ~3.7k | Automated safety check: Pass | Custom licence |
PostHog/code
How and when to delegate work to subagents via the subagent tool (Explore, Plan, General).
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
anthropics/claude-plugins-official
Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
charmbracelet/crush
Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
mrmps/classifier-dev
Sort many texts into your own categories without reading them, using a keyless HTTP API that returns a calibrated confidence per answer.
mrmps/classifier-dev
Pick a browser or desktop agent's next action by choosing among the actions actually on screen instead of inventing one.
mrmps/classifier-dev
Check user-generated text against a written policy before it is published.
mrmps/classifier-dev
Label each page of an intake packet with a document type and a page role before extraction runs, so only confident pages reach an extractor and the rest reach a person.
mrmps/classifier-dev
Filter hundreds or thousands of headlines, search results or feed items against a written brief before opening any of them, using a two-stage cascade that spends a fast model on everything and a…
mrmps/classifier-dev
Type candidate (subject, sentence, object) triples against a fixed relation schema and flag triples that contradict each other, batched, with a calibrated confidence per edge so only confident edges…
Works with
Categories
Label each context chunk keep, drop or replace-with-a-pointer and pass the survivors through byte for byte instead of summarising, with key-shaped chunks decided locally and never sent, and a…. Context Compaction Keep Or Drop is an agent skill from mrmps/classifier-dev. Label each context chunk keep, drop or replace-with-a-pointer and pass the survivors through byte for byte instead of summarising, with key-shaped chunks decided locally and never sent, and a checksum row per chunk.
Context Compaction Keep Or Drop fits situations like: A session runs out of room; trim the history.
Run `npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a claude-code`. Or copy the skill folder (skills/_rejected/context-compaction-keep-or-drop in mrmps/classifier-dev) into .claude/skills/context-compaction-keep-or-drop in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a codex`. Or copy the skill folder (skills/_rejected/context-compaction-keep-or-drop in mrmps/classifier-dev) into .agents/skills/context-compaction-keep-or-drop in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mrmps/classifier-dev --skill context-compaction-keep-or-drop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-compaction-keep-or-drop, .gemini/skills/context-compaction-keep-or-drop, .github/skills/context-compaction-keep-or-drop and .opencode/skills/context-compaction-keep-or-drop in your project.
SKILL.md names no scripts, command-line tools or credentials: Context Compaction Keep Or Drop is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 1 domain. In commands or code: classifier.dev; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Context Compaction Keep Or Drop is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Context Compaction Keep Or Drop: Subagent Orchestration (PostHog/code, 179 stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mrmps (a GitHub user) maintains it in mrmps/classifier-dev, which has 424 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 7, 2026.
Source: mrmps/classifier-dev on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.