subagent-context

A monitoring add-on that reports how much conversation space each helper agent is using and warns when one may be too full for another task.

In plain words
What is it for?
It is for tracking helper-agent usage and deciding when to stop, replace, or reassign a helper agent.
Why use it?
It helps prevent helper agents from being given work when their remaining conversation space is too limited, which can lead to incomplete or confused results.

Plugin for Claude Code

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.

Claude Code
/plugin marketplace add msshives-gif/claude-plugins
agentmods
npx agentmods add plugins/msshives-gif/claude-plugins/subagent-context
Clone the repo
git clone --depth 1 https://github.com/msshives-gif/claude-plugins

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

subagent-context 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 yesterday.

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.

plugins/subagent-context/.claude-plugin/plugin.json · 20 lines

What it actually says

{
  "name": "subagent-context",
  "description": "Reports each subagent's context size to the orchestrating agent and warns before an overloaded subagent gets re-tasked.",
  "version": "0.5.0",
  "author": {
    "name": "msshives-gif"
  },
  "license": "MIT",
  "homepage": "https://github.com/msshives-gif/claude-plugins/tree/main/plugins/subagent-context",
  "repository": "https://github.com/msshives-gif/claude-plugins",
  "keywords": [
    "hooks",
    "subagents",
    "context",
    "tokens",
    "orchestration",
    "observability"
  ]
}
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. yesterday First seen · 20 lines scan A e54e3f9458f6

Subscribe to this mod's changes

subagent-context is a plugin published in the GitHub repository msshives-gif/claude-plugins (2 stars, last pushed 5d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-31.

Related

Other plugins, from other repositories

token-guard

Token consumption guards for Claude Code. Warns on large file reads (100KB+), limits unique file reads per session, estimates token budget, and caps subagent spawns. From 800+ hours of autonomous operation data.

yurukusa/cc-safe-setup · not measured

mainframe

Personal hub of global Claude Code customizations — skills, hooks, and commands — that take effect across every project on the machine. Author's personal-use tool, published under MIT.

CATWILLgh/MAINFRAME · not measured

ai-methodology

AI-assisted development methodology — scaffolding skills, talk pipeline (6 stages), landing page generator, context engineering, and design templates.

FlorianBruniaux/claude-code-plugins · not measured

brief-agents

A subagent inherits none of your durable rules — not your CLAUDE.md, not your memory, not your installed-plugin nudges — so it can blindly violate one it never heard of. brief-agents scans all three layers into one compact /.claude/agent-briefing-index.md (auto-regenerated when the sources change) and nudges you to br.

haiggoh/brief-agents · not measured

create-plugin

Guide for creating new plugins in this repository with consistent structure and conventions.

cboone/agent-harness-plugins · not measured

tavs

Visual terminal state indicators for Claude Code sessions using OSC escape sequences. Changes background color and tab title based on Claude's state (processing, permission, idle, complete, compacting, subagent, toolerror).

cstelmach/terminal-agent-visual-signals · not measured