Du Dum: Batch Then Act Pattern
技能 已验证 活跃Separate expensive observation from cheap decision-making in autonomous agent loops using a two-clock architecture. A fast clock accumulates data into a digest file; a slow clock reads the digest and acts only when something is pending. Idle cycles cost nothing because the action clock returns immediately after reading an empty digest. Use when building autonomous agents that must observe continuously but can only afford to act occasionally, when API or LLM costs dominate and most cycles have nothing to do, when designing cron-based agent architectures with observation and action phases, or when an existing heartbeat loop is too expensive because it calls the LLM on every tick.
To provide a clear architectural pattern for building cost-efficient autonomous agents that need to observe continuously but act only occasionally, particularly when LLM or API costs are a significant concern.
功能
- Two-clock architecture for observation and action separation
- Digest file for low-bandwidth communication between clocks
- Cost optimization for autonomous agent loops
- Guidance on designing cron-based agent workflows
- Handling of idle cycles with minimal cost
使用场景
- Building autonomous agents on a budget with continuous observation
- Reducing costs in agent loops that frequently call LLMs or APIs unnecessarily
- Designing decoupled agent systems with distinct analysis and action phases
- Implementing efficient cron-based agent architectures
非目标
- Providing concrete executable code for the agent loop
- Implementing specific LLM summarization or response generation logic
- Handling real-time event processing that requires sub-second action
工作流
- Identify the two clocks (observation and action)
- Design the digest format (compact, human-readable, machine-parseable)
- Implement the fast clock (analysis scripts)
- Implement the slow clock (action script)
- Configure idle detection for minimal overhead
- Validate the cost model for savings
安装
/plugin install agent-almanac@pjt222-agent-almanac质量评分
已验证类似扩展
Cloud Architect
100Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost optimization, disaster recovery, landing zones, security architecture, serverless design.
Autonomous Agent Patterns
95Design patterns for building autonomous coding agents. Covers tool integration, permission systems, browser automation, and human-in-the-loop workflows. Use when building AI agents, designing tool APIs, implementing permission systems, or creating autonomous coding assistants.
V3 Ddd Architecture
100Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.
Pathfinder
100将代码库映射为按功能分组的流程图,识别不同功能之间的重复关注点,并提出统一的架构。在被要求“寻找理想路径”、统一重复系统或在重构前审计架构时使用。输出一个建议的统一流程图以及针对每个系统的“制定计划”提示。
Understand
100分析代码库以生成交互式知识图谱,用于理解架构、组件和关系
API Design Patterns
100Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices