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 $0.00012 $0.00166
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 11d ago against content hash 2dd32e7eea6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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. 11d 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 1mo ago), licensed MIT. It adds 23 tokens to every session and 332 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

ln-31-performance-optimizer

Profiles and improves a measured latency, throughput, CPU, memory, or I/O problem. Not for speculative tuning or cosmetic refactoring.

levnikolaevich/claude-code-skills · 34 tokens

strategic-compact

Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction. Use when a session is approaching a context limit and a task phase is a natural place to compact.

affaan-m/ECC · 47 tokens

unified-memory

Share durable, inspectable context and handoffs between Claude, Codex, Hermes, Cursor, OpenCode, and other agents through the local ECC Memory Vault. Use when an agent must save work state, transfer context, resume another agent's task, or search shared project knowledge.

affaan-m/ECC · 60 tokens

agents-md-improver

Audit and improve project-rules files (AGENTS.md, CLAUDE.md, .agents/instructions, local overrides) so the agent keeps accurate project context. Use when the user asks to check, audit, review, update, improve, or fix their AGENTS.md or CLAUDE.md, mentions "project rules maintenance" or "agent context optimization", or…

waybarrios/opencode-power-pack · 125 tokens

agents-md-revise

Capture learnings from the current session into the project-rules file (AGENTS.md, CLAUDE.md, or local override) so future sessions benefit. Use when the user says "revise the rules", "update AGENTS.md / CLAUDE.md with what we just learned", "save this to project memory", "remember this for next time", or at the end…

waybarrios/opencode-power-pack · 114 tokens

report

Writes the session final report to a file, then prints only the path and a one-line summary. Fires when the prompt contains "Report per memstack:report", and also when the prompt begins with a standing trigger configured through MEMSTACKREPORTONTASKPROMPTS or MEMSTACKREPORTTRIGGERS. Dormant otherwise.

cwinvestments/memstack · 67 tokens