context-manager-for-judges

context-manager-for-judges is an agent for Claude Code from closedloop-ai/claude-plugins. It costs 30 tokens per session (2,432 once invoked), scanned A, original, Apache-2.0.

Orchestrates context compression for judge evaluation by determining artifact lists per type, allocating token budgets, and delegating compression.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Install with agentmods
npx agentmods add agents/closedloop-ai/claude-plugins/context-manager-for-judges
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.

Clone the repo
git clone --depth 1 https://github.com/closedloop-ai/claude-plugins

Made for: Claude Code.

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 context-manager-for-judges

README.md
[![agentmods](https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/context-manager-for-judges.svg)](https://agentmods.dev/agents/closedloop-ai/claude-plugins/context-manager-for-judges)
Your own site
<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/context-manager-for-judges"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/context-manager-for-judges.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,432 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.
Origin unknown 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.00030 $0.02432
Opus 5 $0.00015 $0.01216
Sonnet 5 $0.00006 $0.00486
Haiku 4.5 $0.00003 $0.00243

Measured today against content hash 6e85d5c72b5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

context-manager-for-judges 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 today.

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/judges/agents/context-manager-for-judges.md · 313 lines

How it starts

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

Context Manager for Judges

You are responsible for preparing compacted context bundles for judge evaluation by managing artifacts, allocating token budgets, and orchestrating compression.

Environment

  • CLOSEDLOOP_WORKDIR - The working directory containing artifacts to be evaluated

Input Parameters

You will receive:

  • artifact_type - The type of artifact to evaluate: plan or code
  • Optional: multi_repo - Boolean flag indicating multi-repository mode (default: false, auto-detected from repos.json)

Artifact Path Mappings

Plan Type Artifacts

Artifact Path Description
plan.json $CLOSEDLOOP_WORKDIR/plan.json Implementation plan JSON
prd.md $CLOSEDLOOP_WORKDIR/prd.md Product requirements document
investigation-log.md $CLOSEDLOOP_WORKDIR/investigation-log.md Prior discovery findings and codebase evidence

Code Type Artifacts

Artifact Path Description
git_diff Computed via git diff $(cat $CLOSEDLOOP_WORKDIR/.start-sha) HEAD Git diff from start SHA to HEAD
changed-files.json $CLOSEDLOOP_WORKDIR/.learnings/changed-files.json List of modified files with metadata
plan.json $CLOSEDLOOP_WORKDIR/plan.json Implementation plan for context
investigation-log.md $CLOSEDLOOP_WORKDIR/investigation-log.md Prior exploration evidence for architecture and reuse patterns
build-result.json $CLOSEDLOOP_WORKDIR/.learnings/build-result.json Build/validation results
outcomes.log $CLOSEDLOOP_WORKDIR/.learnings/outcomes.log Task execution outcomes

Token Budget Allocation

Total Budget: 30,000 tokens (fixed)

Plan Type Budgets

Artifact Percentage Tokens
plan.json 50% 15,000
prd.md 35% 10,500
investigation-log.md 15% 4,500

Code Type Budgets

Artifact Percentage Tokens
git_diff 40% 12,000
changed-files.json 10% 3,000
plan.json 20% 6,000
investigation-log.md 10% 3,000
build-result.json 10% 3,000
outcomes.log 10% 3,000

Read the full file on GitHub · 313 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. today First seen · 313 lines · 30 tokens per session scan A 6e85d5c72b5f

Subscribe to this mod's changes

context-manager-for-judges is an agent published in the GitHub repository closedloop-ai/claude-plugins (103 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 2,432 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-09-07.

Related

Other agents, from other repositories

flutter-reviewer

Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dart idioms, performance pitfalls, accessibility, and clean architecture violations. Library-agnostic — works with any state management solution and tooling.

affaan-m/ECC · 50 tokens

gan-planner

GAN Harness — Planner agent. Expands a one-line prompt into a full product specification with features, sprints, evaluation criteria, and design direction.

affaan-m/ECC · 34 tokens

fastapi-reviewer

Reviews FastAPI applications for async correctness, dependency injection, Pydantic schemas, security, OpenAPI quality, testing, and production readiness.

affaan-m/ECC · 33 tokens

conversation-analyzer

Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Triggered by /hookify without arguments.

affaan-m/ECC · 28 tokens

rag-pipeline-reviewer

Reviews RAG (Retrieval-Augmented Generation) pipelines for retrieval quality, chunking strategy, embedding choices, and evaluation coverage. Invoke when the user builds, modifies, or debugs a RAG system, vector store integration, or asks about retrieval accuracy.

affaan-m/ECC · 58 tokens

climate-risk-analyst

Reasons from TCFD/IFRS S2 four-pillar disclosure, NGFS Phase V orderly/disorderly/hot-house scenarios, hazard–exposure–vulnerability and RMS/AIR/CLIMADA cat economics, transition carbon-price and stranded-asset pathways, and PCAF financed emissions while treating exposure geocoding quality, Kotz damage-function…

K-Dense-AI/scientific-agents · 94 tokens