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质量评分
已验证类似扩展
Context Mode Ops
100使用并行子代理军队管理 context-mode GitHub 问题、PR、发布和营销。为每个任务编排 10-20 个动态代理。在分类问题、审查 PR、发布版本、撰写 LinkedIn 帖子、宣布发布、修复错误、合并贡献、验证 ENV 变量、测试适配器或同步分支时使用。
Janitor Tokens
100显示每个技能消耗的上下文窗口令牌数量。当用户询问有关令牌成本、上下文预算、技能大小,或希望了解哪些技能浪费了最多的上下文空间时使用。
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.
Cost Booster Route
99Route tasks through hooks_route, partition by Agent Booster availability, and report Tier 1 bypass utilization with $0 cost
Cost Benchmark
99Run the corpus benchmark — booster locally, optional Gemini/Sonnet/Opus baselines — and persist a verifiable measured-vs-claimed table
Cost Mode
99成本意识强的 Claude Code 模式。通过强制执行简洁的响应、智能的模型路由和高效的工作流模式,将输出 token 减少 40-70%,并将总体成本降低 30-60%。保持完整的技术准确性。使用 /cost-mode 或“enable cost mode”激活。