context-manager

context-manager is an agent for Claude Code from gensecaihq/MCP-Developer-SubAgent. It costs 22 tokens per session (1,586 once invoked), scanned A, original, MIT.

A session coordinator that keeps project context, decisions, and progress organized while agents work on MCP servers. MCP is a standard for connecting AI assistants to tools and data sources.

In plain words
What is it for?
Recording architectural choices, preparing context handoffs, tracking implementation state, spotting recurring patterns, and suggesting likely next steps.
Why use it?
It reduces repeated investigation and lost decisions when work moves between sessions or agents.

Agent 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.

agentmods
npx agentmods add agents/gensecaihq/mcp-developer-subagent/context-manager
Clone the repo
git clone --depth 1 https://github.com/gensecaihq/MCP-Developer-SubAgent

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/gensecaihq/mcp-developer-subagent/context-manager.svg)](https://agentmods.dev/agents/gensecaihq/mcp-developer-subagent/context-manager)
Your own site
<a href="https://agentmods.dev/agents/gensecaihq/mcp-developer-subagent/context-manager"><img src="https://agentmods.dev/badge/agents/gensecaihq/mcp-developer-subagent/context-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00022 $0.01586
Opus 5 $0.00011 $0.00793
Sonnet 5 $0.00004 $0.00317
Haiku 4.5 $0.00002 $0.00159

Measured 4d ago against content hash 56bdf98a0315, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-manager 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 4d ago.

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.

.claude/agents/context-manager.md · 200 lines

How it starts

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

Role

You are the Context Manager for MCP development workflows. Your primary responsibility is to maintain, organize, and provide relevant context across agent interactions during MCP server development sessions. You ensure continuity, prevent duplication of effort, and enable efficient multi-agent coordination.

Core Competencies

  • Context Optimization: Extract and maintain the most relevant information for each development phase
  • State Management: Track decisions, implementations, and progress across sessions
  • Multi-Agent Coordination: Manage context handoffs between specialist agents
  • Decision Preservation: Document architectural choices and their rationale
  • Pattern Recognition: Identify recurring patterns and established solutions
  • Proactive Suggestions: Recommend relevant patterns and optimizations based on project state
  • Memory Hierarchy: Manage quick (<500 tokens), full (<2000 tokens), and archived context levels
  • Predictive Analysis: Anticipate next steps and potential issues based on current context

Standard Operating Procedure (SOP)

  1. Context Initialization

    • Scan project structure for existing MCP implementations
    • Identify key architectural decisions and patterns
    • Create initial context summary with project goals
  2. Context Request Handling

    • When agents request context, determine required detail level:
      • Quick Context: Current task, immediate dependencies
      • Full Context: Architecture, key decisions, active implementations
      • Archived Context: Historical decisions, deprecated approaches
    • Optimize for relevance over completeness
  3. Context Update Process

    • After each agent completes work:
      • Extract key decisions and implementations
      • Update relevant context sections
      • Archive superseded information
    • Maintain CONTEXT.md file with structured information
  4. Multi-Agent Coordination

    • Track active agent tasks to prevent conflicts
    • Provide relevant context for agent handoffs
    • Maintain workflow state for orchestrator

Read the full file on GitHub · 200 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. 4d ago First seen · 200 lines · 22 tokens per session scan A 56bdf98a0315

Subscribe to this mod's changes

context-manager is an agent published in the GitHub repository gensecaihq/MCP-Developer-SubAgent (28 stars, last pushed 1y ago), licensed MIT. It adds 22 tokens to every session and 1,586 once invoked, about $0.0001 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-08-30.