SuperAPIAI Directory

reinwatch

github.com · AI agents

Monitor and manage Claude Code agents.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose: reinwatch is a token and runaway monitoring tool for Claude Code, used to observe, warn about, and stop the subagents, teammates, and workflow agents that Claude Code runs for you. Claude Code's built-in background tasks view can list tasks, show elapsed time, open records, and stop tasks; reinwatch adds per-agent statistics, warnings, notifications, historical summaries, and stop controls on top of that. Project URL:https://github.com/sofumel/reinwatch。

Main capabilities:

  1. Per-agent statistics for new tokens and active time. Token statistics count new tokens, including input, cache writes, and output; cache reads are not included in statistics and token warnings and are only shown in Details. Active time counts only the time the model and tools are actually working.
  2. Warnings and notifications. When an agent is out of control or appears stuck, reinwatch issues a warning, which can be delivered via notification; after each conversation round it provides a summary, and it also provides a 30-day total.
  3. Stop and request stop. Stop can be used for a single agent or for one agent in a workflow; there is also Ask to stop. No agent is ever stopped automatically. Stop rejects new tool calls for that agent and, on its next model call, returns a reply asking it to report its situation and not continue. Running tools finish first, and the inline display then shows stopping (a tool is still running); Allow resume lifts the stop; stopping one agent does not stop the workflow it is in.
  4. Status line. Displays e.g. agents 2 running · 310k tok · 26m active; when warnings are open it appends · 1 warning; when no agents are running it displays reinwatch: 1 warning.
  5. /reinwatch panel. One row per agent, including status, name, tokens, active time, type, model, rounds, and buttons, and displays open warnings, the latest summary, Last 30 days: 12 agents · 1.1M tok · 3h active, and Peaks: 26m active · 2.1M tok per agent (limits 30m · 1M) for adjusting limits. Dismissed warnings remain under Dismissed warnings for the current session; the summary's Details button lists each agent's share; each Stop remains under Stopped and records that agent's tokens, time, and last tool.
  6. Hint strip above the input box. Displays open warnings and their buttons; after each round it displays e.g. 3 agents · 420k tok · 14m active combined · longest: “Explore the repo” 9m active summary. When using a Claude subscription, if the 5-hour usage limit changes during a turn, it displays · 5h limit 34% → 41% this turn, which includes usage from other sessions. Its Details button lists each agent’s share.

Usage: Open the panel via /reinwatch to view each agent row, warnings, summary, and 30-day data. Plugin options can set notify (default true), openPaneOnWarning (default false), redact (default true, masks key-like text in descriptions by appearance), and mute (default empty string, comma-separated warning types to mute, e.g. burst,run). Setting values in minutes and millions can include decimals, e.g. 0.5. After setting priceInput and priceOutput (per million tokens), cost estimates can be shown per row and per session; currency sets the currency symbol, default $; cache writes are calculated at 1.25× input, cache reads at 0.1×. In the terminal, warnings also go to the terminal's own notifications; in the desktop app they are shown only through the user's own Notification hook, see docs/notifications.md. Requires Claude Code 2.1.326 or later, and can be used in the terminal or the Code tab of the desktop app. The material does not provide a specific installation command; see CONTRIBUTING.md in the repository for environment setup, testing, and engine rules.

Use cases: Suitable for scenarios where you need to observe the multi-agent run status, token consumption, and active time of Claude Code, or to intervene manually when an agent is out of control or appears stuck; it can also be used to view cost estimates for each agent and session after setting prices.

Limitations: reinwatch does not access the network, execute shell commands, or call models. Across sessions, only 30 days of records are retained, storing by local date the number of agents, number of new tokens, active milliseconds, and each agent's peak; prompts, outputs, and tool inputs are never saved—tool inputs only become in-memory hashes used to detect duplicates. redact only replaces key-like text with [redacted] by appearance, to prevent accidental leakage, and is not a guarantee. View is onlyavailable in the terminal; View and Ask to stop require the agent to appear in Claude Code's agent list, and workflow agents are not in that list. After reloading the mod, a row may keep showing running until the agent list (checked every 10 seconds) reports completion; workflow rows persist until the session ends; work after the last summary is not included in the 30-day totals. The project is under the MIT License; see LICENSE for details.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools