agent-estate

agent-estate is a skill for Claude Code from majiayu000/claude-skill-registry. It costs 36 tokens per session (1,274 once invoked), scanned A, original, MIT.

A Claude Code work loop that keeps an agent running across repeated cycles and stores progress in a persistent ledger. It uses a stop hook to restart the agent until someone explicitly stops it.

In plain words
What is it for?
Use it for ongoing autonomous tasks that need repeated work cycles, progress tracking, and explicit start, stop, and status controls.
Why use it?
It addresses the problem of an autonomous agent stopping after one cycle or losing track of previous work. The ledger preserves state between sessions.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it for ongoing autonomous tasks that need repeated work cycles, progress tracking, and explicit start, stop, and status controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/claude-skill-registry/agent-estate
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.

Any agent
npx skills add majiayu000/claude-skill-registry --skill agent-estate
Clone the repo
git clone --depth 1 https://github.com/majiayu000/claude-skill-registry

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 agent-estate

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/claude-skill-registry/agent-estate/github.svg)](https://agentmods.dev/skills/majiayu000/claude-skill-registry/agent-estate)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/claude-skill-registry/agent-estate"><img src="https://agentmods.dev/badge/skills/majiayu000/claude-skill-registry/agent-estate/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 agent-estate

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/claude-skill-registry/agent-estate"><img src="https://agentmods.dev/badge/skills/majiayu000/claude-skill-registry/agent-estate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,274 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 96
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00036 $0.01274
Opus 5 $0.00018 $0.00637
Sonnet 5 $0.00007 $0.00255
Haiku 4.5 $0.00004 $0.00127

Measured 8d ago against content hash 73dfbda47415, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

agent-estate 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 8d 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.

skills/agent/agent-estate/SKILL.md · 123 lines

How it starts

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

Agent Estate

Perpetual autonomous work loop plugin for Claude Code. Turns Claude into an agent that works cycle after cycle, maintaining a persistent ledger across all sessions, never stopping until explicitly told to.

Overview

Agent Estate creates an infinite work loop by intercepting Claude's stop events via a shell hook. Each time Claude tries to exit, the hook blocks the exit, increments the cycle counter, and re-injects the prompt — creating a true perpetual agent.

Architecture

agent-estate/
├── .claude-plugin/plugin.json   # Plugin manifest (name, version, author)
├── commands/
│   ├── start.md                 # /agent-estate:start — activates the loop
│   ├── stop.md                  # /agent-estate:stop — removes state file to allow exit
│   └── status.md                # /agent-estate:status — shows cycle count, ledger summary
├── hooks/
│   ├── hooks.json               # Registers stop-hook.sh on the "Stop" event
│   └── stop-hook.sh             # Core engine: blocks exit, increments cycle, re-injects prompt
├── scripts/
│   └── setup-estate.sh          # Creates .claude/agent-estate.local.md state file
├── LICENSE
└── README.md

Key Components

Stop Hook (hooks/stop-hook.sh)

The core engine. Runs on every Claude "Stop" event:

  1. Checks if .claude/agent-estate.local.md exists (is the loop active?)
  2. If not active: exits normally (exit 0)
  3. If done (done: true in frontmatter): removes state file, exits normally (auto-stop)
  4. If active and not done:
    • Detects rate limits (429) → waits 60s
    • Detects API overload (529) → waits 30s
    • Increments cycle counter in the state file
    • Outputs a JSON {"decision": "block", "reason": "..."} to prevent exit
    • Re-injects the prompt for the next cycle

Setup Script (scripts/setup-estate.sh)

Creates the state file at .claude/agent-estate.local.md with YAML frontmatter (active, cycle, started_at, user_prompt) and the full cycle protocol instructions. If already active, outputs current state and continues.

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 123 lines · 36 tokens per session scan A 73dfbda47415

Subscribe to this mod's changes

agent-estate is a skill published in the GitHub repository majiayu000/claude-skill-registry (604 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,274 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

find-skills

Use when automatically discover, evaluate, and activate community skills when local skills don't cover user needs. Includes credibility scoring and safety checks for complete OpenClaw self-sufficiency.

oyi77/1ai-skills · 39 tokens

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

guanyang/open-agent-hub · 63 tokens

obsidian-cli

Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their…

guanyang/open-agent-hub · 102 tokens

macos-maintenance

Periodic macOS maintenance + optimization — read-only health sweep (pending OS/brew updates, disk health + SMART, memory pressure + swap, battery condition, Time Machine recency, Spotlight indexing state, crash/panic reports, uptime, login-item load) -> ok/attention/action report -> confirmed fixes. Use when the user…

pivoshenko/pivoshenko.ai · 169 tokens

knap

Render Markdown from templates and structured data using Knap CLI. Use when the user asks to apply a Knap template, turn JSON or CSV data into notes, batch-generate Markdown files, or format Defuddle output into a note.

guanyang/open-agent-hub · 50 tokens

stay-within-limits

Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming only when the window is clear.

BuilderIO/skills · 45 tokens