close-session
Skill0 starsChanged 2 months agoMITView on GitHub
Close a working session: save what it taught where the next session will read it, retire what went stale, leave nothing hanging. Triggers: close the session, wrap up, let's call it a day, sum up the work, that's it for today, закрываем сессию, закрывай сессию, закругляемся, на сегодня заканчиваем, подведи итоги, подводим итоги, на сегодня всё
11 other projects use a version of this.
Adopted by
Most recently taken up by
- eranw2000/multi-phase-skills-frameworktheir own version, first seen Nov 18, 2026
- oze-xxbumpxx/cookpittheir own version, first seen Nov 16, 2026
- cristobaltormo/cortex-mdtheir own version, first seen Nov 15, 2026
- vinaySankar2004/vuhritheir own version, first seen Nov 3, 2026
- Dmkdok/product-factorytheir own version, first seen Oct 25, 2026
- dave8172/skillstheir own version, first seen Oct 25, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- eranw2000/multi-phase-skills-framework★ 10same name
- vinaySankar2004/vuhri★ 3same name
- cristobaltormo/cortex-md★ 1same name
- dave8172/skills★ 1same name
- Dmkdok/product-factory★ 1same name
- oze-xxbumpxx/cookpit★ 1same name
- ai-erp-collab/deterministic-context-routing-plugin★ 0same name
- herreraspaintingba-hub/second-brain-starter-kit★ 0same name
- sheldor26/Blastdoor★ 0same name
- sheldor26/whatloads★ 0same name
1 more not listed
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.
The file
Files
close-session
A session's knowledge dies with its context. Closing it means writing down whatever the next session would otherwise rediscover, in the place that session will actually read, and removing what stopped being true
Steps
- Gather. Work from the live context. If it was compacted, the summary is not evidence: reopen the current session's transcript through the harness's history or log capability and recover the user's corrections and exact error texts. Identify the current session explicitly rather than taking the newest file
- Route each fact to its owner. A rule every session needs belongs in the agent's instructions (CLAUDE.md, AGENTS.md…) and a fact a skill governs belongs in that skill: propose those as an exact edit and change them only on the user's yes. Everything else goes to the memory of the project it is about, the one a session started there will load, not the current directory's. When the harness scopes memory per project, a fact every project needs never goes there, and one shared by a few projects that no skill governs goes where the user says
- Save what is new. One fact per memory, self-sufficient: what happened, why, the exact command, path or error text, and what to do instead, so a session that reads it neither falls into the same pitfall nor searches again for what was found. A secret, a token or a private value is never written, only its shape. If the memory keeps an index, the fact's line there says when to open it. Extend an existing memory rather than add a neighbour, and skip what the code, the history or the instructions already say. Address a memory in another store by its full path or identifier, because a local-name link resolves only inside the store that contains it
- Retire what went stale. Every memory the session contradicted, finished or made obsolete is rewritten, deleted, or marked with what replaced it, in every project the session touched, together with its index line. A memory another live session is writing belongs to that session: ask it, or the user, before changing it
- Leave nothing hanging. Save the remaining tasks as tasks and the plans as plans. Name uncommitted changes, running background jobs and open watches: they are the user's to decide, not yours to commit or stop
- Report in one table, the rows that need the user's decision first.
Whereis the address the next session would use — a memory's full path, the agent's instructions, a skill, a repository, a task in the tracker — never a bare name
| Action | Where | What |
| Proposed | CLAUDE.md / AGENTS.md, <skill> | the exact edit, waiting on the user's yes |
| Open | <repo>, <task>, <job> | uncommitted changes, a running job, a watch, a task written down but not done |
| Added | <project>/<memory store>/<name> | the fact, and when a session should open it |
| Updated | <project>/<memory store>/<name> | what changed in it and why |
| Retired | <project>/<memory store>/<name> | what stopped being true, and what replaced it |
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.

