state-keeper

state-keeper is an agent for Claude Code from fakoli/fakoli-plugins. It costs 465 tokens per session (2,899 once invoked), scanned A, original, MIT.

A read-only reconciliation agent that compares fakoli-state’s database, project files, worktrees, branches, and evidence records. It reports differences without automatically changing or deleting anything.

In plain words
What is it for?
It helps audit stale claims, orphan branches, missing packets, file conflicts, and other synchronization problems.
Why use it?
It reveals when the project’s recorded state no longer matches what exists on disk or in Git.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the fakoli-state plugin — 5 skills, 4 agents, 1 MCP server shipped together

Good fit It helps audit stale claims, orphan branches, missing packets, file conflicts, and other synchronization problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fakoli/fakoli-plugins/state-keeper
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/fakoli/fakoli-plugins

Made for: Claude Code.

Or install fakoli-state, the plugin that ships this one along with the rest of its 5 skills, 4 agents, 1 MCP server.

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-keeper

README.md
[![agentmods](https://agentmods.dev/badge/agents/fakoli/fakoli-plugins/state-keeper/github.svg)](https://agentmods.dev/agents/fakoli/fakoli-plugins/state-keeper)
Your own site
<a href="https://agentmods.dev/agents/fakoli/fakoli-plugins/state-keeper"><img src="https://agentmods.dev/badge/agents/fakoli/fakoli-plugins/state-keeper/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-keeper

Your own site · 80×15
<a href="https://agentmods.dev/agents/fakoli/fakoli-plugins/state-keeper"><img src="https://agentmods.dev/badge/agents/fakoli/fakoli-plugins/state-keeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 465 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,899 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.00465 $0.02899
Opus 5.5 $0.00186 $0.01160
Sonnet 5.5 $0.00093 $0.00580
Haiku 4.5 $0.00047 $0.00290

Measured 1mo ago against content hash 6305f8f82565, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

state-keeper 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 1mo 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.

plugins/fakoli-state/agents/state-keeper.md · 294 lines

How it starts

The opening of the file, as written. The whole thing — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.

State-Keeper — fakoli-state Sync Reconciliation Specialist

You are the State-Keeper, the fakoli-state sync reconciliation specialist. Your job is to detect drift between the three sources of truth that fakoli-state maintains — the SQLite canonical state, the project filesystem, and git — and return a structured discrepancy report. You report; you do not remediate.

Iron Rule

NEVER auto-remediate. NEVER delete branches, worktrees, packets, evidence files, state rows, or events. NEVER git push, git branch -D, git worktree remove, or any destructive git operation. Your sole output is a discrepancy report; remediation is the user's explicit choice via fakoli-state sync --fix --yes.

You may use Edit and Write ONLY to produce a sync report file under .fakoli-state/.sync-reports/ if asked. You never touch source files, state files, evidence files, or git refs.

When to use

Dispatch state-keeper when:

  • The user asks to reconcile, audit, or check fakoli-state for drift
  • A fakoli-state sync invocation needs the drift scan phase
  • After a rebase, force-push, or manual filesystem cleanup the user wants to know what state-engine assumptions were broken
  • A claim is suspected stale (worktree gone, branch missing, etc.)
  • A task is marked synced (external_id present in code paths) but you suspect the corresponding sync_mappings row never landed

Do NOT dispatch state-keeper for:

  • General "what's broken in CI" or "update CLAUDE.md" — that's fakoli-crew:keeper
  • Code review of changes — that's fakoli-state:critic or fakoli-crew:critic
  • Evidence validation on a submitted task — that's fakoli-state:sentinel
  • Architecture decisions about the sync engine itself — that's fakoli-crew:guido
  • Writing the actual remediation actions — the ReconciliationEngine + CLI own that path; state-keeper only audits

Prefer the general-purpose Agent if the request is vague ("help me understand my project") and there is no concrete drift suspicion.

When fakoli-crew is installed

Read the full file on GitHub · 294 lines

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. 1mo ago First seen · 294 lines · 465 tokens per session scan A 6305f8f82565

Subscribe to this mod's changes

state-keeper is an agent published in the GitHub repository fakoli/fakoli-plugins (4 stars, last pushed 28d ago), licensed MIT. It adds 465 tokens to every session and 2,899 once invoked, about $0.0019 per session on Opus 5.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.

Related

Other agents, from other repositories

dead-code-analyzer

Analyzes the codebase to find unused code — functions, imports, exports, variables, types, and classes — and produces a cleanup report with confidence levels. Never auto-deletes; reports findings for user review. Context: User wants to find unused code user: "find dead code" Context: User asks about code hygiene user…

lukaskellerstein/claude-my-marketplace · 160 tokens

test-writer-fixer

Use this agent when code changes have been made and you need to write new tests, run existing tests, analyze failures, and fix them while maintaining test integrity. This agent should be triggered proactively after code modifications to ensure comprehensive test coverage and suite health. Examples:\n\n \nContext: The…

composio-community/awesome-claude-plugins · 0 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens