跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

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

工作流

  1. Identify the two clocks (observation and action)
  2. Design the digest format (compact, human-readable, machine-parseable)
  3. Implement the fast clock (analysis scripts)
  4. Implement the slow clock (action script)
  5. Configure idle detection for minimal overhead
  6. Validate the cost model for savings

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
96 /100
about 23 hours ago 分析

信任信号

最近提交2 days ago
星标14
许可证MIT
状态
查看源代码

类似扩展

Cloud Architect

100

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

技能
jeffallan

Autonomous Agent Patterns

95

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

技能
davila7

V3 Ddd Architecture

100

Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.

技能
ruvnet

Pathfinder

100

将代码库映射为按功能分组的流程图,识别不同功能之间的重复关注点,并提出统一的架构。在被要求“寻找理想路径”、统一重复系统或在重构前审计架构时使用。输出一个建议的统一流程图以及针对每个系统的“制定计划”提示。

技能
thedotmack

Understand

100

分析代码库以生成交互式知识图谱,用于理解架构、组件和关系

技能
Lum1104

API Design Patterns

100

Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices

技能
bobmatnyc