session-state
by Isaac Kargar · ★ 2 · updated 8 days ago
0
Keeps a ledger of a long chat (what you asked and decided, what was learned, the files that matter, one line per turn) that the agent can read, and hands it back after Claude Code compacts.
Install
/plugin marketplace add kargarisaac/session-state/plugin install session-state@session-stateThen 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.startsession.endprompt.submitturn.starttool.callsession.compactturn.completeprompt.composecommand.runui.render- API calls
$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.env.get$.fs.list$.fs.read$.fs.stat$.fs.write$.http.fetch$.model.complete$.process.run$.session.cwd$.session.id$.state.get$.state.set$.ui.close$.ui.copy$.ui.open$.ui.resolve- Draws
Pane- Can see
every promptevery tool callcompaction- Reach
- level 3 of 3 networkruns processeswrites filesdrives Claudewrites the clipboardreads filesreads env varsreads 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/kargarisaac/session-state
- Path in repo
- repository root
- Source commit
9c082acthe exact code the scan read- Author
- Isaac Kargar @kargarisaac
- 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.