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.
| Type | Claude code mod |
|---|---|
| Author | M-i-k-e-l |
| Repository | M-i-k-e-l/agent-state |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | High risk (48/100) |
| Rank | #7,160 of 9,397 Claude Code mods; #634 in Context & memory |
| License | MIT |
| Last commit | 2026-11-29 |
| Hooks | 14 events |
| Sees | classic hooks, compaction, every tool call |
| Draws on | SessionMode, 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.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.audio.play | plays audio |
$.clock.every | |
$.clock.sleep | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.http.fetch | network requests |
$.mcp.call | calls MCP servers |
$.process.run | runs processes |
$.session.cwd | |
$.session.surfaces | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.copy | draws interface |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install agent-state?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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/.
- 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.