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

Manage Token Budget

技能 已验证 活跃

Monitor, cap, and recover from context accumulation in agentic systems. Covers per-cycle cost tracking, context window auditing, budget caps with enforcement policies, emergency pruning when approaching limits, and progressive disclosure integration to minimize token spend on routing. Use when running long-lived agent loops (heartbeats, polling, autonomous workflows), when context windows are growing unpredictably between cycles, when API costs spike beyond expected baselines, when designing new agentic workflows that need cost guardrails from the start, or when post-mortem analysis reveals a cost incident caused by context accumulation.

目的

To control the cost and context footprint of agentic systems by implementing robust token budget management and ensuring efficient context window utilization.

功能

  • Per-cycle cost tracking
  • Context window auditing
  • Budget caps with enforcement policies
  • Emergency context pruning
  • Progressive disclosure for routing

使用场景

  • Running long-lived agent loops
  • Managing unpredictable context growth
  • Controlling API cost spikes
  • Designing agentic workflows with cost guardrails

非目标

  • Replacing core agentic system logic
  • Managing external application costs outside the agent's context
  • Providing a generic log analysis tool

安装

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

质量评分

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

信任信号

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

类似扩展

Context Mode Ops

100

使用并行子代理军队管理 context-mode GitHub 问题、PR、发布和营销。为每个任务编排 10-20 个动态代理。在分类问题、审查 PR、发布版本、撰写 LinkedIn 帖子、宣布发布、修复错误、合并贡献、验证 ENV 变量、测试适配器或同步分支时使用。

技能
mksglu

Janitor Tokens

100

显示每个技能消耗的上下文窗口令牌数量。当用户询问有关令牌成本、上下文预算、技能大小,或希望了解哪些技能浪费了最多的上下文空间时使用。

技能
khendzel

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

Cost Booster Route

99

Route tasks through hooks_route, partition by Agent Booster availability, and report Tier 1 bypass utilization with $0 cost

技能
ruvnet

Cost Benchmark

99

Run the corpus benchmark — booster locally, optional Gemini/Sonnet/Opus baselines — and persist a verifiable measured-vs-claimed table

技能
ruvnet

Cost Mode

99

成本意识强的 Claude Code 模式。通过强制执行简洁的响应、智能的模型路由和高效的工作流模式,将输出 token 减少 40-70%,并将总体成本降低 30-60%。保持完整的技术准确性。使用 /cost-mode 或“enable cost mode”激活。

技能
Sagargupta16