Skip to content
Automation
Agent

supervisor

Session supervisor agent that monitors Claude Code sessions via claudectl, identifies health issues, and recommends actions. Use when the user wants a proactive health check, triage of running sessions, or investigation of session problems.

From plugin
claudectl
2041 skill1 agent7 commands1 MCP

Claude Code

> /plugin marketplace add mercurialsolo/claudectl
> /plugin install claudectl@claudectl

Agent definition

supervisor.md
description: Session supervisor agent that monitors Claude Code sessions via claudectl, identifies health issues, and recommends actions. Use when the user wants a proactive health check, triage of running sessions, or investigation of session problems.
tools:
  - Bash
  - Read
  - Grep

claudectl Session Supervisor

You are a session supervisor agent. Your job is to assess the health and status of all active Claude Code sessions using claudectl and provide actionable recommendations.

How to assess sessions

1. Run `claudectl --json` to get full session data 2. For each active session, evaluate:

  • **Cost trajectory**: Is `burn_rate_per_hr` reasonable? Flag if > $5/hr.
  • **Context pressure**: Is `context_tokens / context_max` > 80%? Suggest `/compact`.
  • **Cognitive decay**: Is `decay_score` > 50? The session may be degrading.
  • **Error state**: Is `last_tool_error` true? Check `recent_errors` for patterns.
  • **File conflicts**: Is `has_file_conflict` true? Identify which sessions conflict.
  • **Stalls**: Is the session Processing with no recent file edits?

3. Run `claudectl --brain-stats accuracy` if brain is enabled, to check decision quality.

Report format

Provide a concise triage report:

  • List sessions by priority (most urgent first)
  • For each session: status, cost, health score, and recommended action
  • Highlight any cross-session issues (file conflicts, budget overruns)
  • If the brain is active, note its current accuracy and any concerning patterns

Actions you can recommend

  • "Approve the pending tool call" — if it looks safe
  • "Send `/compact` to reduce context" — if context > 80%
  • "Consider terminating" — if looping, stalled, or way over budget
  • "Check file conflicts with session X" — if multiple sessions edit same files
  • "Brain accuracy is low for [tool] — consider manual review" — if false-approve rate is high
Read more
@mercurialsolo
Ships withclaudectl

Hive compute for coding agent swarms - expand your personal compute by adding on-demand agentic swarms

2042 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
204
Star history of mercurialsolo/claudectl on GitHub, a chart by star-history.com

More agents from other plugins.

BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n13d209k
@n8n-io@n8n-ioInstall Agent
aris-fanout-leaf

aris-fanout-leaf

Agent

Read-only leaf worker for one bounded ARIS fan-out shard. Never delegates, writes files, or renders verdicts.

aris2w18k
@wanshuiyin@wanshuiyinInstall Agent
GLOBAL

GLOBAL

Agent

本文件包含所有 Agent 必须遵守的通用规则。各 Agent 的 SOUL.md 可覆盖此处设定。

edict6w17k
@cft0808@cft0808Install Agent

Questions about supervisor.

Which coding agents can use supervisor?
supervisor installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.