graceful-stop

by Renaud Couttet · ★ 1 · updated 2 days ago

BandsReskinsGuardsCommandswarnings

0

Winds agents down cleanly as the session's credit runs out and has the orchestrator write a resume memo.

install graceful-stop

Install

/plugin marketplace add Rctt27/clean-end-of-session
/plugin install graceful-stop@graceful-stop

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startconfig.describesession.measureturn.startturn.completeturn.stepagent.spawntool.callcommand.runui.render
API calls
$.agent.list$.clock.after$.clock.every$.clock.now$.command.register$.fs.exists$.fs.list$.fs.read$.fs.write$.http.fetch$.prompt.submit$.session.append$.session.authorize$.session.id$.session.repo$.session.root$.session.send$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.invalidate$.ui.resolve$.ui.toast
Draws
UserMessageAssistantMessageCommandOutputAbovePrompt
Can see
subagent spawnsevery tool call
Reach
level 3 of 3 other: $.state.getother: $.state.setnetworkwrites filesdrives Claudereads filesreads the transcriptpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Rctt27/clean-end-of-session
Path in repo
repository root
Source commit
2957efa the exact code the scan read
Author
Renaud Couttet @Rctt27
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.