/agent-thread-tools:thread-healthfrom Agent Thread Tools
Reports Claude Code session health including context size, automatic handoff distance, compactions, and project-level handoff savings.
Ships in Agent Thread Tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Report on this session and this project. Run the tools that ship with this skill:
python3 "${CLAUDE_PLUGIN_ROOT}/tools/agent-thread-<command>.py" <arguments>. If that
file does not exist, use the installed agent-thread-tools <command> instead.
ls ~/.claude/projects/*/${CLAUDE_SESSION_ID}.jsonl.python3 "${CLAUDE_PLUGIN_ROOT}/tools/agent-thread-health.py" check <session-file>.
Exit 2 is WARN and 3 is DANGER; both are results, not failures.Context: and Automatic handoff at: lines
from step 2 exactly; do not recompute them. The default threshold is 300k on a
1M-context model and half the window on a smaller one; with an OpenRouter key the handoff comes at the first natural break past it, and at
1.25 times it regardless.python3 "${CLAUDE_PLUGIN_ROOT}/tools/agent-thread-health.py" savings --agent claude --project "$(pwd)".Reply in a few lines, not raw output: the session's status and why, its context (for example "142k of 1M; next handoff after 300k"), compactions if any, and the project's net tokens saved, handoff count, and possible corrections. Mention a WARN or DANGER reason in plain words. Do not run a handoff unless the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub zenzig/agent-thread-tools --plugin agent-thread-tools