context-rollover
by Aymen Graoui · ★ 0 · updated 9 days ago
Rolls long-running (multi-agent) Claude Code work over into fresh sessions before the context gets too large: persists a compact, verified continuation of the project state, starts a genuinely fresh session and resumes the highest-priority work. Publishes its lifecycle as shared state for the Cockpit sidebar.
Install
git clone https://github.com/aymengraoui/claude-code-context-rolloverclaude --plugin-dir ./claude-code-context-rolloverThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startturn.startturn.stepsession.measureturn.completetool.callclassic.SessionStartclassic.SubagentStartclassic.SubagentStopcommand.run- API calls
$.agent.list$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.command.run$.env.get$.fs.exists$.fs.list$.fs.read$.fs.write$.model.fork$.process.run$.prompt.fill$.prompt.submit$.session.append$.session.cwd$.session.id$.session.messages$.session.send$.session.usage$.state.get$.state.set$.tool.call$.tool.list$.turn.abort$.ui.log$.ui.toast- Can see
every tool callclassic hooks- Reach
- level 2 of 3 runs processeswrites filesdrives Claudewrites the prompt boxreads filesreads env varsreads the transcriptreads mod 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/aymengraoui/claude-code-context-rollover
- Path in repo
- repository root
- Source commit
02d072dthe exact code the scan read- Author
- Aymen Graoui @aymengraoui
- License
- No license declared — ask the author before reusing code.
- 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.