auto-clear-context

by Indji · ★ 0 · updated 9 days ago

PanesGuardsCommandsPromptTools & agentsvalidates

0

Vicino alle soglie di contesto (morbida, dura, margine di sicurezza) Claude salva lo stato in un handoff validato; la mod esegue /clear e fa ripartire il lavoro nella sessione pulita.

install auto-clear-context

Install

/plugin marketplace add IndjiWR/auto-clear-context
/plugin install auto-clear-context@auto-clear-context

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.measureclassic.PostToolUseprompt.submitturn.completesession.endclassic.SessionStartsession.starttool.callcommand.runui.render
API calls
$.agent.list$.clock.after$.clock.now$.command.register$.command.run$.config.list$.config.set$.fs.read$.fs.stat$.fs.write$.prompt.submit$.session.id$.session.root$.session.usage$.state.get$.state.set$.store.delete$.store.get$.store.set$.tool.register$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.toast
Draws
Pane
Can see
classic hooksevery promptmcp__auto-clear-context__context_usage calls
Reach
level 2 of 3 writes fileschanges configdrives Claudereads filesreads settingsreads mod statepersists 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/IndjiWR/auto-clear-context
Path in repo
mod
Source commit
125fa96 the exact code the scan read
Author
Indji @IndjiWR
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.