Session Monitoring

Session Monitoring is a skill for Claude Code from mercurialsolo/claudectl. It costs 38 tokens per session (631 once invoked), scanned A, original, MIT.

A monitoring guide and command-line tool for tracking Claude Code sessions, including their status, health, spending, and coordination.

In plain words
What is it for?
Use it to list and watch sessions, inspect costs and history, check session health, review brain decisions, and detect file conflicts.
Why use it?
It helps identify stalled or unhealthy sessions and shows how much work and cost they generate.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the claude-plugin plugin — 1 skill, 7 commands, 1 MCP server shipped together

Good fit Use it to list and watch sessions, inspect costs and history, check session health, review brain decisions, and detect file conflicts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mercurialsolo/claudectl/session-monitoring
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 mercurialsolo/claudectl --skill session-monitoring
Clone the repo
git clone --depth 1 https://github.com/mercurialsolo/claudectl

Made for: Claude Code.

Or install claude-plugin, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 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 Session Monitoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/mercurialsolo/claudectl/session-monitoring/github.svg)](https://agentmods.dev/skills/mercurialsolo/claudectl/session-monitoring)
Your own site
<a href="https://agentmods.dev/skills/mercurialsolo/claudectl/session-monitoring"><img src="https://agentmods.dev/badge/skills/mercurialsolo/claudectl/session-monitoring/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 Session Monitoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/mercurialsolo/claudectl/session-monitoring"><img src="https://agentmods.dev/badge/skills/mercurialsolo/claudectl/session-monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 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 Excessive Agency · line 39
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00038 $0.00631
Opus 5 $0.00019 $0.00316
Sonnet 5 $0.00008 $0.00126
Haiku 4.5 $0.00004 $0.00063

Measured 13d ago against content hash 865f19931331, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

Session Monitoring 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 13d 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.

claude-plugin/skills/session-monitoring/SKILL.md · 67 lines

How it starts

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

claudectl Session Monitoring

You have access to claudectl, a local session supervisor for Claude Code. Use it when the user asks about:

  • How many sessions are running, their status, or what they're doing
  • Session costs, burn rates, or budget tracking
  • Session health (cognitive rot, loops, stalls, context saturation)
  • Brain decisions, learning progress, or accuracy
  • File conflicts between sessions
  • Multi-session orchestration

Available CLI Flags

# Setup
claudectl --init                   # Wire up Claude Code hooks (one-time)
claudectl --init -s project        # Wire up hooks for this project only
claudectl --uninstall              # Remove claudectl hooks

# Session status
claudectl --list                   # Human-readable session list
claudectl --json                   # Machine-readable JSON with full data
claudectl --watch                  # Stream status changes

# Cost and history
claudectl --stats --since 24h     # Aggregated statistics
claudectl --history --since 24h   # Completed session history
claudectl --summary --since 8h    # Activity summary

# Brain
claudectl --mode status     # Show current brain gate mode
claudectl --mode on         # Brain evaluates tool calls (default)
claudectl --mode off        # Disable brain gate
claudectl --mode auto       # Brain auto-approves above threshold
claudectl --brain-stats accuracy  # Per-tool accuracy breakdown
claudectl --brain-stats learning-curve  # Correction rate over time
claudectl --brain-stats baseline  # Brain vs static rules comparison
claudectl --brain-stats false-approve   # Safety: false positive rate

# Diagnostics
claudectl --doctor                # Check terminal integration
claudectl --brain-prompts         # List prompt template sources

Health Check Icons

When reporting session health from JSON output, these are the severity indicators:

  • Critical: cognitive rot (score > 70), context > 90%, error loops
  • Warning: context > 80%, cost spikes, stalls, early decay
  • Info: proactive compaction suggestion, low cache

Read the full file on GitHub · 67 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. 13d ago First seen · 67 lines · 38 tokens per session scan A 865f19931331

Subscribe to this mod's changes

Session Monitoring is a skill published in the GitHub repository mercurialsolo/claudectl (199 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 631 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-08-30.

Related

Other skills, from other repositories