session-tidy
Skill8 starsChanged 2 months agoMITView on GitHub
Use when context fills, before compact, on handoff to another session, after a large task, or on request. Not for primary routing or memory writes.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex_setting/AGENTS.mdAGENTS.md
- opencode_setting/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude_setting/CLAUDE.mdCLAUDE.md
- analyze-projectSkill
- analyze-userSkill
- artifact-projection-readSkill
- auditSkill
- autopilot-applySkill
- autopilot-codeSkill
- autopilot-designSkill
- autopilot-draftSkill
- autopilot-labSkill
- autopilot-refineSkill
- autopilot-researchSkill
- autopilot-shipSkill
- autopilot-specSkill
- code-executeSkill
- code-planSkill
- code-refineSkill
- code-reportSkill
- code-testSkill
- design-componentsSkill
- design-handoffSkill
- design-initSkill
- design-refsSkill
- design-reviewSkill
- design-tokensSkill
- draft-refineSkill
- draft-strategySkill
- post-itSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Distinctive: line 18
Write the handoff card yourself, queue the memory tidy, and let the window clear itself when it is safe.
- Distinctive: line 28
Card: Write four short fields in the user's language and pipe them in: what is in progress, the decisions still waiting, what to do next, …
- Very specific: line 41
Queue the tidy: Do not wait for it. For 정리만 add --no-clear.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
session-tidy (정리)
Write the handoff card yourself, queue the memory tidy, and let the window clear itself when it is safe; the new session then picks the work up from the card by itself. Nothing here is required input and nothing waits for a confirmation.
Modes: 정리 (default), 정리만 (same, but keep this window) and 인계 <받을 세션> (same
work, then pass the card to a peer session; only this calling window is cleared, never the
target). The tool is python3 $AGENT_HOME/utilities/session_tidy.py.
Steps
Card. Write four short fields in the user's language and pipe them in: what is in progress, the decisions still waiting, what to do next, and the related paths, PRs and sessions. Point to artifacts; do not summarize them again.
python3 "$AGENT_HOME/utilities/session_tidy.py" card <<'CARD' 진행 중: … 기다리는 결정: … 다음 할 일: … 관련: … CARDQueue the tidy. Do not wait for it. For
정리만add--no-clear; when the user asked to stop after tidying ("정리하고 끝"), add--no-continue.python3 "$AGENT_HOME/utilities/session_tidy.py" enqueue # 정리 / 인계 python3 "$AGENT_HOME/utilities/session_tidy.py" enqueue --no-clear # 정리만 python3 "$AGENT_HOME/utilities/session_tidy.py" enqueue --no-continue # 정리하고 끝It prints one line and returns. A detached runner reads the conversation after the last tidy (plus recent untidied sessions of this seat), starts one registered memory worker, applies its proposal through
mem tidy-apply, and leaves one result line for the next session of this seat — with the command that undoes it. A long conversation is read from its recent end first; the line says일부만 읽음(범위)when an older part is still waiting for the next tidy. A failure leaves the card as it was and says so in one line; if some writes had landed or may have landed, that line counts them and keeps the undo command.Inside herdr the same call books the window's clear (
clear=scheduled): once this turn has ended and the window is idle, with no form open and an empty input box, the harness's own new-conversation command is typed once (Claude/clear, Codex/clear, OpenCode/new) and the new session receives the card. Once the clear is confirmed and the new session waits with an empty box and no message yet, the same helper types이어서해once, so it carries on from the card. Neither step waits for the memory tidy. A prompt typed after the card cancels the clear (clear=skipped); a prompt typed into the new session first, a new card or a handoff cancels the이어서해quietly. Anything else the helper cannot decide leaves the window as it is plus one result line at the next prompt.Handoff only. For
인계 <받을 세션>, after step 2:python3 "$AGENT_HOME/utilities/session_tidy.py" handoff <target>Report its one line as printed (
prompted=true|failed|queued|unverifiedand the exit code); do not retry or send the card any other way. A failed handoff does not change the clear of this window; they are separate results. The work now belongs to the target, so this window is cleared but not continued.- Report one line, from the
clear=word of step 2 (do not start more work after aclear=scheduled):clear=scheduled→ "곧 이 창이 자동으로 비워지고, 새 세션이 카드를 받아 이어서 진행합니다.";clear=scheduled continue=off, orclear=scheduledwith a handoff → "곧 이 창이 자동으로 비워집니다.";clear=off→ "이 창은 그대로 둡니다. 이제 /clear 하거나 닫아도 됩니다.";clear=manual hint=<cmd>orclear=skipped→ "이제<cmd>하거나 닫아도 됩니다." (<cmd>is the hint, or/clearafterskipped; OpenCode's is/new).
A route that was still running when the window was cleared is taken over by the new session at
the same pane: its card carries one line with the verified route and the usual resume command
(capability-route.py start --route <file> --jobs <registry>), the new session may resume it,
and it receives the completion. The registered launch identity does not change.
The next session at this seat receives the latest card once, at start or on its first
prompt, together with any pending result line and a short "참고할 기억" list (ids and titles
only, read with mem show <id> when needed). If the tidy ends after that session started, the
list arrives once at its next prompt.
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.

