session-state

session-state is a Claude Code mod by kargarisaac that 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.

Updated 2026-11-13

What is session-state?

session-state is a Claude Code mod by kargarisaac that 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. It is listed under Context & memory and has 2 GitHub stars.

TypeClaude code mod
Authorkargarisaac
Repositorykargarisaac/session-state
Popularity2 GitHub stars
CategoryContext & memory
SecurityHigh risk (28/100)
Rank#2,429 of 9,397 Claude Code mods; #230 in Context & memory
Last commit2026-11-13
Hooks10 events
Seescompaction, every prompt, every tool call
Draws onPane

Is session-state safe to install?

session-state scores 28/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 0 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.model.completedrives Claude
$.process.runruns processes
$.session.cwd
$.session.id
$.state.get
$.state.set
$.ui.closedraws interface
$.ui.copydraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface

How do I install session-state?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/kargarisaac/session-state
    claude plugin validate ./session-state/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add kargarisaac/session-state && claude plugin install session-state@session-state

Or ask Claude to set it up

Paste this into Claude Code and it installs session-state for you:

Install the "session-state" Claude Code mod from https://github.com/kargarisaac/session-state. Run claude plugin validate on it first and show me what it can access before you enable it.