context-compressor
Skill2 starsChanged 39 days agoApache-2.0View on GitHub
Use for session compression and full-text search.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- jthiruveedula/agentkittheir own version, first seen Nov 22, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- lihao-24/claude-skillstheir own version, first seen Oct 25, 2026
- fatih-developer/fth-skillstheir own version, first seen Oct 13, 2026
- toonight/get-shit-done-for-antigravitytheir own version, first seen Oct 8, 2026
- cyfung1031/skillstheir own version, first seen Jun 17, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- toonight/get-shit-done-for-antigravity★ 952same name
- fatih-developer/fth-skills★ 7same name
- cyfung1031/skills★ 2same name
- zedarvates/frugal-skills★ 1same name
- jthiruveedula/agentkit★ 0same name
- lihao-24/claude-skills★ 0same name
- PengEjeen/claude_skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository303 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a2a-brain-meshlearn-verifySkill
- apple-notesSkill
- apple-remindersSkill
- findmySkill
- imessageSkill
- asi-core-integrationSkill
- asi-integration-architectureSkill
- asi-narrativeSkill
- asi-research-labSkill
- asi-capability-summarySkill
- asi-coreSkill
- asi-identitySkill
- auto-env-checkerSkill
- auto-best-practice-from-officialSkill
- auto-competitor-intelligence-ai-codingSkill
- auto-competitor-intelligence-an-aiSkill
- auto-competitor-intelligence-autogpt-improvemSkill
- auto-competitor-intelligence-claudepowered-aiSkill
- auto-competitor-intelligence-contractmd-theSkill
- auto-competitor-intelligence-crush-glamourousSkill
- auto-competitor-intelligence-devin-aiSkill
- auto-competitor-intelligence-electricity-useSkill
- auto-competitor-intelligence-intent-weavingSkill
- auto-competitor-intelligence-jetbrains-idesSkill
- auto-competitor-intelligence-jetbrains-zedSkill
- auto-competitor-intelligence-layerfs-aSkill
- auto-competitor-intelligence-mouse-precisionSkill
- auto-competitor-intelligence-okf-agentSkill
- auto-competitor-intelligence-opencode-aiSkill
- auto-competitor-intelligence-opencode-openSkill
- auto-competitor-intelligence-openhands-agentSkill
- auto-competitor-intelligence-pythonopenaichatSkill
- auto-competitor-intelligence-some-uncomfortabSkill
- auto-competitor-intelligence-stack-overflowSkill
- auto-competitor-intelligence-the-secretSkill
- auto-competitor-intelligence-things-iSkill
- auto-competitor-intelligence-undisclosed-addiSkill
- auto-competitor-intelligence-we-askedSkill
- auto-competitor-intelligence-what-iSkill
- auto-efficiency-learning-advanced-quantizatioSkill
- auto-efficiency-learning-a-visualSkill
- auto-efficiency-learning-edge-aiSkill
- auto-efficiency-learning-efficientqat-llmSkill
- auto-efficiency-learning-finetuning-llmsSkill
- auto-efficiency-learning-ondevice-llmSkill
- auto-efficiency-learning-pushing-theSkill
- auto-efficiency-learning-quantization-techniqSkill
- auto-efficiency-learning-quip-2bitSkill
- auto-efficiency-learning-ragkit-withSkill
- auto-efficiency-learning-show-hnSkill
- auto-efficiency-learning-small-languageSkill
- auto-efficiency-learning-splitquantv2-enhanciSkill
- auto-efficiency-learning-towards-optimalSkill
- auto-efficiency-learning-vptq-extremeSkill
- auto-explain-how-sleep-consolidationSkill
- auto-how-does-energy-efficiencySkill
- auto-internet-learning-40-ofSkill
- auto-internet-learning-ai-agentSkill
- auto-internet-learning-ai-agentsSkill
- The first 60 shown.
The file
Files
Context Compressor
Intelligente Session-Komprimierung aus der OpenAmer state.db:
- Komprimiert Session-Transkripte um 60-80% durch Redundanz-Entfernung
- Extrahiert Entscheidungen, Action-Items, Learnings und offene Punkte
- Volltextsuche über alle komprimierten Sessions
- Batch-Archivierung aller Sessions in JSON-Archiven
Standort
- Script:
$OPENAMER_HOME\scripts\context-compressor.py - Archiv:
$OPENAMER_HOME\context-compressor\archives\ - Index:
$OPENAMER_HOME\context-compressor\index.json
CLI-Übersicht
| Flag | Beschreibung |
--session <id> | Einzelne Session komprimieren → JSON on stdout |
--batch [Tage] | Alle Sessions älter als N Tage archivieren (default: 7) |
--stats | Kompressionsrate + Extraktions-Statistiken anzeigen |
--search <query> | Volltextsuche in allen komprimierten Sessions |
Beispiel
# Einzelne Session komprimieren
python scripts/context-compressor.py --session 20260821_233243_387822
# Batch-Verarbeitung (alle Sessions >7 Tage)
python scripts/context-compressor.py --batch
# Alle Sessions verarbeiten (auch aktuelle)
python scripts/context-compressor.py --batch 0
# Statistiken anzeigen
python scripts/context-compressor.py --stats
# Volltextsuche
python scripts/context-compressor.py --search "API-Key"
python scripts/context-compressor.py --search "entscheidung"Ausgabe-Struktur (pro Session)
{
"session_id": "20260821_233243_387822",
"title": "...",
"raw_chars": 59414,
"compressed_chars": 4756,
"compression_percent": "92.0%",
"decisions": ["..."],
"action_items": ["..."],
"learnings": ["..."],
"open_points": ["..."],
"messages": [
{"id": 24014, "role": "user", "compressed": "...", "original_len": 89, "compressed_len": 89},
{"id": 24016, "role": "tool", "compressed": "[JSON] keys=[...]", "original_len": 8125, "compressed_len": 221}
]
}Kompressions-Strategie
- Boilerplate entfernen:
<antthinking>,<tool_call>, lange Code-Blöcke - Duplikat-Sätze entfernen: Wiederholungen innerhalb derselben Nachricht
- Tool-Outputs massiv kürzen:
- JSON-Outputs →
[JSON] keys=[...](auf Schlüssel reduziert) - Lange Tool-Outputs → auf max 200 Zeichen gekürzt
- JSON-Outputs →
- Entscheidungen extrahieren: Pattern-basiert (DE + EN)
- Deduplizieren: Gleiche Entscheidungen/Actions nur einmal
Datenquelle
- state.db aus
OPENAMER_HOME(default:$OPENAMER_HOME\state.db) - Tabellen:
sessions,messages - Komprimierte Sessions:
context-compressor/archives/batch_<timestamp>.json
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

