compact
Skill14 starsChanged 8 months agoMITView on GitHub
Clean up old episodic memory entries to free space. Keeps recent sessions intact.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- Thingscorp/skillstheir own version, first seen Sep 25, 2026
- Kali-Decoder/Midnight-Skillstheir own version, first seen Sep 17, 2026
- crisandrews/ClawCodetheir own version, first seen Sep 12, 2026
- ChasePassion/skillstheir own version, first seen Sep 5, 2026
- atharh/career-corpus-kittheir own version, first seen Sep 3, 2026
- shamilkayal/ultragoaltheir own version, first seen Aug 3, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- crisandrews/ClawCode★ 63same name
- xiaobei930/cc-best★ 48same name
- shamilkayal/ultragoal★ 17same name
- Kali-Decoder/Midnight-Skills★ 16same name
- atharh/career-corpus-kit★ 4same name
- ChasePassion/skills★ 2same name
- Thingscorp/skills★ 1same name
- tusharpamnani/Midnight-Skills★ 1same name
- chanhyeok-made/ccx★ 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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- forgetSkill
- memory-auditSkill
- memory-configSkill
- memory-doctorSkill
- memory-purgeSkill
- memory-statusSkill
- rememberSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Call the memory_compact tool (optionally with maxAgeDays and keepSessions parameters)
- Distinctive: line 13
If nothing was deleted, inform the user that episodic memory is already clean
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Clean up old episodic memory by invoking the memory_compact MCP tool.
By default, removes episodic entries older than 30 days while keeping the 5 most recent sessions intact. Semantic memories (decisions) are never deleted.
What to do
- Call the
memory_compacttool (optionally withmaxAgeDaysandkeepSessionsparameters) - Present the results: how many entries were deleted, how many remain, how many sessions remain
- If nothing was deleted, inform the user that episodic memory is already clean
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.

