state-manager

state-manager is an agent for Claude Code from Smart-AI-Memory/attune-ai. It costs 8 tokens per session (145 once invoked), scanned A, original, Apache-2.0.

An agent that stores execution state, run history, checkpoints, and audit records so an AI agent can recover after a failure.

In plain words
What is it for?
Use it to persist agent state, track outcomes, resume from checkpoints, and review execution records when debugging runs.
Why use it?
It reduces lost progress and makes failed or interrupted agent runs easier to inspect and resume.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to persist agent state, track outcomes, resume from checkpoints, and review execution records when debugging runs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/smart-ai-memory/attune-ai/state-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for state-manager

README.md
[![agentmods](https://agentmods.dev/badge/agents/smart-ai-memory/attune-ai/state-manager/github.svg)](https://agentmods.dev/agents/smart-ai-memory/attune-ai/state-manager)
Your own site
<a href="https://agentmods.dev/agents/smart-ai-memory/attune-ai/state-manager"><img src="https://agentmods.dev/badge/agents/smart-ai-memory/attune-ai/state-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for state-manager

Your own site · 80×15
<a href="https://agentmods.dev/agents/smart-ai-memory/attune-ai/state-manager"><img src="https://agentmods.dev/badge/agents/smart-ai-memory/attune-ai/state-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 145 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.00145
Opus 5 $0.00004 $0.00072
Sonnet 5 $0.00002 $0.00029
Haiku 4.5 $0.00001 $0.00015

Measured 6d ago against content hash 4e407195f3eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

state-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/attune/commands/agents/state-manager.md · 29 lines

What it actually says

State Manager Agent

Provides storage, retrieval, and recovery of agent execution history and checkpoint data.

Features

  • State Store: Persistent agent state records
  • Execution History: Track agent runs and outcomes
  • Recovery: Automatic checkpoint and resume on failure
  • Audit Trail: Full execution record for debugging

Components

Component Purpose
AgentStateStore Persistent state storage
AgentStateRecord State data model
AgentExecutionRecord Execution history
AgentRecoveryManager Failure recovery
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 29 lines · 8 tokens per session scan A 4e407195f3eb

Subscribe to this mod's changes

state-manager is an agent published in the GitHub repository Smart-AI-Memory/attune-ai (10 stars, last pushed today), licensed Apache-2.0. It adds 8 tokens to every session and 145 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.