megg-state

megg-state is a skill for Claude Code from ToruAI/toru-claude-agents. It costs 23 tokens per session (332 once invoked), scanned A, original, MIT.

A session handoff tool that records what an unfinished coding session was doing, what was completed, and what should happen next. It can also display or clear the saved handoff state.

In plain words
What is it for?
Saving progress, blockers, pending decisions, and next steps; viewing the current handoff; or marking it complete.
Why use it?
It prevents important context from being lost when work moves to another session. The next agent can see blockers and immediate follow-up tasks.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the toru-claude-agents plugin — 15 skills, 7 agents, 1 MCP server shipped together

Good fit Saving progress, blockers, pending decisions, and next steps; viewing the current handoff; or marking it complete.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toruai/toru-claude-agents/megg-state
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 ToruAI/toru-claude-agents --skill megg-state
Clone the repo
git clone --depth 1 https://github.com/ToruAI/toru-claude-agents

Made for: Claude Code.

Or install toru-claude-agents, the plugin that ships this one along with the rest of its 15 skills, 7 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 megg-state

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/toruai/toru-claude-agents/megg-state"><img src="https://agentmods.dev/badge/skills/toruai/toru-claude-agents/megg-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 332 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.00023 $0.00332
Opus 5.5 $0.00009 $0.00133
Sonnet 5.5 $0.00005 $0.00066
Haiku 4.5 $0.00002 $0.00033

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

Security

Grade A, and why

megg-state 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/megg-state/SKILL.md · 60 lines

What it actually says

Session State Management

Capture or manage session state for cross-session handoff.

Process

Default (no argument) - Capture State

  1. Review what was worked on in this session
  2. Summarize into this format:
## Working On
[One-liner: the main task/goal]

## Progress
- [What's been done]
- [Current status]

## Next
- [Immediate next steps]

## Context
[Relevant files, blockers, pending decisions - keep brief]
  1. Call the mcp__megg__state tool with the content:

    mcp__megg__state({ content: "<formatted content>" })
    
  2. Confirm to user that state was saved

clear - Clear State

  1. Call mcp__megg__state({ status: "done" })
  2. Confirm state was cleared

show - Display Current State

  1. Call mcp__megg__state() with no arguments
  2. Display the current state or "No active state"

Notes

  • State is ephemeral - overwritten each session
  • Auto-expires after 48 hours or when marked done
  • Hard limit of 2k tokens to prevent bloat
  • Keep content concise and actionable
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 · 60 lines · 23 tokens per session scan A 2dd32e7eea6b

Subscribe to this mod's changes

megg-state is a skill published in the GitHub repository ToruAI/toru-claude-agents (15 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 332 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

principle-guard-the-context-window

Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents; keep summaries in the main thread, not raw payloads.

michael-denyer/pstack-claude · 46 tokens

session-handoff

Create consistent session handoff documents for context transfer between sessions. Use when closing a session, reaching 75% token consumption, or when user requests handoff. Ensures proper YAML headers for metrics collection, LF line endings, and complete documentation of progress, decisions, and next steps.

QBall-Inc/the-bulwark · 61 tokens

domain-extract

Extract domain knowledge from existing project sources and generate domain rules. Also handles vault sync and domain listing.

luiseiman/dotforge · 24 tokens

capture-practice

Captures an insight or practice discovered during work and registers it in the dotforge practices/inbox.

luiseiman/dotforge · 24 tokens

update

Integrate external info (research, status changes, reference material, deliverables) into the ops repo's knowledge base. Drop files in .update/ or pass content inline.

OdinMB/ops-workflow · 37 tokens

harden-memories

Audit the bd remember store and recommend which entries to prune, so each one earns its per-session bd prime injection cost. Read-only: it proposes a triage table plus the exact bd forget / migration commands; you run them. Use when bd remember entries have accumulated, feel stale, redundant, or conflicting, or when…

voxpelli/claude-beads · 185 tokens