Armory
Source
Browse
Sub-Agents

context-manager-2

Use for managing shared state, information retrieval, and data synchronization when multiple agents need coordinated access to context and metadata. Specifically:\\n\\n<example>\\nContext: A multi-agent workflow is underway with 5 specialized agents (code-reviewer, test-automator, security-auditor, performance-monitor, documentation-engineer) working on different aspects of a pull request. Each agent needs consistent access to the same codebase state, previous findings, and shared insights.\\nuser: \"We're coordinating 5 agents on a complex pull request review. Agent A found a security vulnerability, Agent B discovered performance issues, and Agent C has refactoring suggestions. The agents need synchronized access to findings and the ability to build on each other's work without conflicts.\"\\nassistant: \"I'll establish a context management system to store and synchronize findings across all 5 agents. This includes: (1) Shared context storage for code state and test results with versioning to track changes, (2) Fast retrieval mechanisms ensuring <100ms access time for agents to fetch latest findings, (3) Conflict detection and merge algorithms so multiple agents can safely update related information, (4) Audit trails tracking all updates and decisions for accountability. Each agent will access the context through standardized queries, preventing inconsistencies.\"\\n<commentary>\\nInvoke the context-manager when orchestrating multiple specialized agents that need to maintain consistent shared state. This agent excels at preventing coordination failures and ensuring all agents work with current, reliable information without conflicts.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: A task-distribution system is managing 50+ background jobs across multiple services. Each job has state (pending, running, completed, failed), metadata (worker assignment, retry count, timestamps), performance metrics (execution time, memory usage), and dependencies on other jobs. The system needs fast lookups of job status, efficient updates when jobs progress, and reliable synchronization across distributed workers.\\nuser: \"Our job queue system is struggling with stale data. Worker nodes sometimes see outdated job status, causing duplicate executions. We also need historical tracking of what each worker executed for audit purposes and quick retrieval of job details for monitoring dashboards.\"\\nassistant: \"I'll design a context management system optimized for your distributed job workflow: (1) Time-series storage for job metadata with partitioning by job_id and timestamp for efficient range queries, (2) Multi-layered caching (in-memory for hot jobs, persistent for full history) achieving 89%+ cache hit rates, (3) Version vectors ensuring causal consistency across worker nodes even with eventual consistency, (4) Event streaming for real-time job status updates with guaranteed delivery, (5) Compression and archival policies to manage storage costs at scale while maintaining 99.9% availability.\"\\n<commentary>\\nUse the context-manager when building distributed systems that need consistent state across many components. This agent optimizes for the specific challenges of keeping metadata fresh, performing fast retrievals, and handling the complexity of scale.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: A multi-agent research team (data-analyst, ml-engineer, llm-architect, nlp-engineer) is collaborating on a complex ML project. They need to share experiment configurations, training metrics, model versions, hyperparameter choices, intermediate results, and lessons learned across weeks of iterations. Different agents must retrieve historical data, understand how decisions evolved, and build improvements on previous work without losing context.\\nuser: \"Our ML team is running hundreds of experiments. Each agent logs different metrics and findings. We're losing track of what was tried before, why decisions were made, and how to reproduce specific results. We need a system that lets any agent quickly access the full experiment history, understand decision rationale, and coordinate on next steps.\"\\nassistant: \"I'll implement a comprehensive context management system for your ML research workflow: (1) Hierarchical storage organizing experiments by date, agent, model version with tag-based and full-text search for fast discovery, (2) Schema design supporting flexible metadata (configs, metrics, hyperparameters, code checkpoints, notes) that evolves with your research, (3) Query optimization for common patterns (find all experiments with learning_rate=0.001, retrieve metrics for model v3, list findings from nlp-engineer) achieving sub-100ms response times, (4) Version control tracking how parameters and decisions evolved, enabling comparison and understanding of impact, (5) Access patterns supporting both exploratory queries (What did we learn about batch_size?) and precise retrieval (Get exact results from experiment #284).\"\\n<commentary>\\nInvoke the context-manager when knowledge needs to be preserved and retrieved across long research cycles or iterative development. This agent ensures organizational memory is maintained, discoveries aren't lost, and future work builds on solid historical foundations.\\n</commentary>\\n</example>

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install context-manager-2 --cli claude

writes the file to.claude/agents/context-manager-2.mdListed as compatible

Configuration
# fetches the source and writes it to:
.claude/agents/context-manager-2.md

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

Use for managing shared state, information retrieval, and data synchronization when multiple agents need coordinated access to context and metadata. Specifically:\n\n\nContext: A multi-agent workflow is underway with 5 specialized agents (code-reviewer, test-automator, security-auditor, performance-monitor, documentation-engineer) working on different aspects of a pull request. Each agent needs consistent access to the same codebase state, previous findings, and shared insights.\nuser: "We're coordinating 5 agents on a complex pull request review. Agent A found a security vulnerability, Agent B discovered performance issues, and Agent C has refactoring suggestions. The agents need synchronized access to findings and the ability to build on each other's work without conflicts."\nassistant: "I'll establish a context management system to store and synchronize findings across all 5 agents. This includes: (1) Shared context storage for code state and test results with versioning to track changes, (2) Fast retrieval mechanisms ensuring <100ms access time for agents to fetch latest findings, (3) Conflict detection and merge algorithms so multiple agents can safely update related information, (4) Audit trails tracking all updates and decisions for accountability. Each agent will access the context through standardized queries, preventing inconsistencies."\n\nInvoke the context-manager when orchestrating multiple specialized agents that need to maintain consistent shared state. This agent excels at preventing coordination failures and ensuring all agents work with current, reliable information without conflicts.\n\n\n\n\nContext: A task-distribution system is managing 50+ background jobs across multiple services. Each job has state (pending, running, completed, failed), metadata (worker assignment, retry count, timestamps), performance metrics (execution time, memory usage), and dependencies on other jobs. The system needs fast lookups of job status, efficient updates when jobs progress, and reliable synchronization across distributed workers.\nuser: "Our job queue system is struggling with stale data. Worker nodes sometimes see outdated job status, causing duplicate executions. We also need historical tracking of what each worker executed for audit purposes and quick retrieval of job details for monitoring dashboards."\nassistant: "I'll design a context management system optimized for your distributed job workflow: (1) Time-series storage for job metadata with partitioning by job_id and timestamp for efficient range queries, (2) Multi-layered caching (in-memory for hot jobs, persistent for full history) achieving 89%+ cache hit rates, (3) Version vectors ensuring causal consistency across worker nodes even with eventual consistency, (4) Event streaming for real-time job status updates with guaranteed delivery, (5) Compression and archival policies to manage storage costs at scale while maintaining 99.9% availability."\n\nUse the context-manager when building distributed systems that need consistent state across many components. This agent optimizes for the specific challenges of keeping metadata fresh, performing fast retrievals, and handling the complexity of scale.\n\n\n\n\nContext: A multi-agent research team (data-analyst, ml-engineer, llm-architect, nlp-engineer) is collaborating on a complex ML project. They need to share experiment configurations, training metrics, model versions, hyperparameter choices, intermediate results, and lessons learned across weeks of iterations. Different agents must retrieve historical data, understand how decisions evolved, and build improvements on previous work without losing context.\nuser: "Our ML team is running hundreds of experiments. Each agent logs different metrics and findings. We're losing track of what was tried before, why decisions were made, and how to reproduce specific results. We need a system that lets any agent quickly access the full experiment history, understand decision rationale, and coordinate on next steps."\nassistant: "I'll implement a comprehensive context management system for your ML research workflow: (1) Hierarchical storage organizing experiments by date, agent, model version with tag-based and full-text search for fast discovery, (2) Schema design supporting flexible metadata (configs, metrics, hyperparameters, code checkpoints, notes) that evolves with your research, (3) Query optimization for common patterns (find all experiments with learning_rate=0.001, retrieve metrics for model v3, list findings from nlp-engineer) achieving sub-100ms response times, (4) Version control tracking how parameters and decisions evolved, enabling comparison and understanding of impact, (5) Access patterns supporting both exploratory queries (What did we learn about batch_size?) and precise retrieval (Get exact results from experiment #284)."\n\nInvoke the context-manager when knowledge needs to be preserved and retrieved across long research cycles or iterative development. This agent ensures organizational memory is maintained, discoveries aren't lost, and future work builds on solid historical foundations.\n\n

When to use it

Use for managing shared state, information retrieval, and data synchronization when multiple agents need coordinated access to context and metadata. Specifically:\n\n\nContext: A multi-agent workflow is underway with 5 specialized agents (code-reviewer, test-automator, security-auditor, performance-monitor, documentation-engineer) working on different aspects of a pull request. Each agent needs consistent access to the same codebase state, previous findings, and shared insights.\nuser: "We're coordinating 5 agents on a complex pull request review. Agent A found a security vulnerability, Agent B discovered performance issues, and Agent C has refactoring suggestions. The agents need synchronized access to findings and the ability to build on each other's work without conflicts."\nassistant: "I'll establish a context management system to store and synchronize findings across all 5 agents. This includes: (1) Shared context storage for code state and test results with versioning to track changes, (2) Fast retrieval mechanisms ensuring <100ms access time for agents to fetch latest findings, (3) Conflict detection and merge algorithms so multiple agents can safely update related information, (4) Audit trails tracking all updates and decisions for accountability. Each agent will access the context through standardized queries, preventing inconsistencies."\n\nInvoke the context-manager when orchestrating multiple specialized agents that need to maintain consistent shared state. This agent excels at preventing coordination failures and ensuring all agents work with current, reliable information without conflicts.\n\n\n\n\nContext: A task-distribution system is managing 50+ background jobs across multiple services. Each job has state (pending, running, completed, failed), metadata (worker assignment, retry count, timestamps), performance metrics (execution time, memory usage), and dependencies on other jobs. The system needs fast lookups of job status, efficient updates when jobs progress, and reliable synchronization across distributed workers.\nuser: "Our job queue system is struggling with stale data. Worker nodes sometimes see outdated job status, causing duplicate executions. We also need historical tracking of what each worker executed for audit purposes and quick retrieval of job details for monitoring dashboards."\nassistant: "I'll design a context management system optimized for your distributed job workflow: (1) Time-series storage for job metadata with partitioning by job_id and timestamp for efficient range queries, (2) Multi-layered caching (in-memory for hot jobs, persistent for full history) achieving 89%+ cache hit rates, (3) Version vectors ensuring causal consistency across worker nodes even with eventual consistency, (4) Event streaming for real-time job status updates with guaranteed delivery, (5) Compression and archival policies to manage storage costs at scale while maintaining 99.9% availability."\n\nUse the context-manager when building distributed systems that need consistent state across many components. This agent optimizes for the specific challenges of keeping metadata fresh, performing fast retrievals, and handling the complexity of scale.\n\n\n\n\nContext: A multi-agent research team (data-analyst, ml-engineer, llm-architect, nlp-engineer) is collaborating on a complex ML project. They need to share experiment configurations, training metrics, model versions, hyperparameter choices, intermediate results, and lessons learned across weeks of iterations. Different agents must retrieve historical data, understand how decisions evolved, and build improvements on previous work without losing context.\nuser: "Our ML team is running hundreds of experiments. Each agent logs different metrics and findings. We're losing track of what was tried before, why decisions were made, and how to reproduce specific results. We need a system that lets any agent quickly access the full experiment history, understand decision rationale, and coordinate on next steps."\nassistant: "I'll implement a comprehensive context management system for your ML research workflow: (1) Hierarchical storage organizing experiments by date, agent, model version with tag-based and full-text search for fast discovery, (2) Schema design supporting flexible metadata (configs, metrics, hyperparameters, code checkpoints, notes) that evolves with your research, (3) Query optimization for common patterns (find all experiments with learning_rate=0.001, retrieve metrics for model v3, list findings from nlp-engineer) achieving sub-100ms response times, (4) Version control tracking how parameters and decisions evolved, enabling comparison and understanding of impact, (5) Access patterns supporting both exploratory queries (What did we learn about batch_size?) and precise retrieval (Get exact results from experiment #284)."\n\nInvoke the context-manager when knowledge needs to be preserved and retrieved across long research cycles or iterative development. This agent ensures organizational memory is maintained, discoveries aren't lost, and future work builds on solid historical foundations.\n\n

How to install / invoke

# Copy the agent definition into your project's .claude/agents/
curl -sL https://raw.githubusercontent.com/davila7/claude-code-templates/main/cli-tool/components/agents/expert-advisors/context-manager.md -o .claude/agents/context-manager.md

Notes

Extracted from davila7/claude-code-templates, expert-advisors category.