agent-state

agent-state is a Claude Code mod by M-i-k-e-l that shows the state of Claude (working, permission, input, idle, background, compacting) in the iTerm2 tab subtitle and in a Sessions pane in the desktop app, which can also push to your phone.

Updated 2026-11-29

What is agent-state?

agent-state is a Claude Code mod by M-i-k-e-l that shows the state of Claude (working, permission, input, idle, background, compacting) in the iTerm2 tab subtitle and in a Sessions pane in the desktop app, which can also push to your phone. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
AuthorM-i-k-e-l
RepositoryM-i-k-e-l/agent-state
Popularityno public popularity data yet
CategoryContext & memory
SecurityHigh risk (48/100)
Rank#7,160 of 9,397 Claude Code mods; #634 in Context & memory
LicenseMIT
Last commit2026-11-29
Hooks14 events
Seesclassic hooks, compaction, every tool call
Draws onSessionMode, Pane

Is agent-state safe to install?

agent-state scores 48/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. It passed 3 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
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.audio.playplays audio
$.clock.every
$.clock.sleep
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.mcp.callcalls MCP servers
$.process.runruns processes
$.session.cwd
$.session.surfaces
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.copydraws interface
$.ui.invalidatedraws interface
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install agent-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/M-i-k-e-l/agent-state
    claude plugin validate ./agent-state/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add M-i-k-e-l/agent-state && claude plugin install agent-state@agent-state

Or ask Claude to set it up

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

Install the "agent-state" Claude Code mod from https://github.com/M-i-k-e-l/agent-state. Run claude plugin validate on it first and show me what it can access before you enable it.