claude

session-guard

Keeps Claude Code sessions persistent, self-repairing and always resumable. Mirrors every transcript to an append-only archive, auto-fixes the corruption that makes `claude --resume` fail, and keeps a queryable SQLite store of token usage with CSV rollups.

0 on GitHubby Eduard Secureanuv2.0.0MITupdated 1 month ago

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin session-guard in FiredMosquito831/claude-session-guard. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (2)

  • session-doctor

    Diagnose Claude Session Guard health — check that the transcript archive is in sync with live sessions, detect whether anything is deleting or truncating Claude Code session data, verify the usage database, and restore missing sessions from the archive. Use when the user suspects session data or usa

  • usage-report

    Report Claude Code token usage and cost from the Claude Session Guard database — hourly, daily, weekly, or monthly, with an optional per-model breakdown, plus arbitrary SQL over the full history. Use when the user asks how many tokens they have used, what Claude Code is costing them, which model or

Hooks (14)

  • SessionStart

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_indexer_v2 register

  • SessionStart

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_indexer_v2 scan

  • SessionStart

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_detect

  • SessionStart

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_archive_v2 sync

  • SessionStart

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" api_repair_v2 fix --all

  • Stop

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_archive_v2 sync

  • Stop

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_indexer_v2 merge

  • Stop

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" usage_db sync

  • Stop

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" usage_db export

  • PreCompact

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_archive_v2 sync

  • PreCompact

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" jsonl_repair_v2 --all

  • PreCompact

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" api_repair_v2 fix --all

  • PreCompact

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" session_indexer_v2 merge

  • SessionEnd

    sh "${CLAUDE_PLUGIN_ROOT}/scripts/run.sh" api_repair_v2 from-hook

View source on GitHub

Problems found in this repo's manifests

  • .claude-plugin/marketplace.json is not valid JSON

Similar plugins

telemetry

claude

Plugin analytics: hooks $.telemetry's two events, so a plugin logs an event or marks a feature's use as a first-party row, sent in batches with the session's own credential.

anthropics/claude-code 155,476

Token usage tracking, model cost attribution per agent, budget alerts, and optimization recommendations

24 skills · 1 command · 1 agent · hooks

ruvnet/ruflo 81,589

Skill: add headroom-ai compress() to a Python or TypeScript app to cut LLM input tokens (tool outputs, logs, JSON, chat history). No API key.

1 skill

headroomlabs-ai/headroom 79,508

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

Install the "AAS Data Analytics & Business Intelligence" editorial skill bundle for Claude Code.

16 skills

sickn33/agentic-awesome-skills 49,620

azure

claude

Transform Claude into an Azure expert. This plugin integrates the Azure MCP server and specialized Azure skills to move beyond generic advice. It enables Claude to perform real-world tasks: listing resources, validating deployments, diagnosing infrastructure issues, and optimizing costs across 50+ Azure services.

44 skills · 1 MCP server

anthropics/claude-plugins-official 47,076

Maintain session-guard?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted