360 Secure SkillHub
360 安全技能中心

agent-expenditure

核心功能:追踪多代理令牌使用,识别并行调度中的令牌浪费,基于布鲁克斯法则提供代理数量配置指导,配套多代理运行后的事后检查清单。典型使用场景:并行代理调度完成后、评估是否增配代理、代理密集工作流回顾时;不适用于单代理工作流及运行中分析,助力优化代理调度,降低令牌浪费与协调开销。

athola
athola
热度 62.89
最近更新 2026-08-26 21:10:14
分类:数据依赖:纯提示词应用场景:数据处理 / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nm-conserve-agent-expenditure
Metadata
name
agent-expenditure
description
Tracks per-agent token usage and flags waste in parallel dispatch
version
1.9.8
triggers
["token-waste","agent-coordination","brooks-law","parallel-dispatch","evaluating parallel agent efficiency or after a multi-agent run"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/conserve","emoji":"🦞"}}
source
claude-night-market
source_plugin
conserve

Night Market Skill — ported from claude-night-market/conserve. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Agent Token Waste Monitoring

When To Use

  • After parallel agent dispatch completes
  • When evaluating whether to increase agent count
  • During retrospectives on agent-heavy workflows
  • When plan-before-large-dispatch rule triggers

When NOT To Use

  • Single-agent workflows (no coordination overhead)
  • During active agent execution (post-hoc analysis)
  • For token budgeting (use token-conservation instead)

Brooks's Law for Agents

Dispatching more agents does not always help. Coordination overhead grows with agent count:

Agent Count Expected Overhead Guidance
1-3 Negligible Dispatch freely
4-5 10-15% Acceptable; plan first
6-8 20-30% Monitor closely
9+ 30%+ Likely counterproductive

Coordination overhead is measured as shared-file conflicts: concurrent Read/Write operations on the same file by different agents, as a percentage of total agent runtime.

Post-Dispatch Review Checklist

After parallel agent runs, evaluate:

  1. Did each agent produce unique findings?
  2. Was total token expenditure proportional to value?
  3. Did any agent duplicate another's work?
  4. Would fewer agents have produced the same result?

If 2+ questions answer no, reduce agent count in future dispatches of the same type.

Waste Signals

See modules/waste-signals.md for the 5 waste signal categories and detection criteria.

Cross-References

  • .claude/rules/plan-before-large-dispatch.md for the 4+ agent planning requirement
  • conserve:token-conservation for session-level token budgeting
  • conjure:agent-teams for dispatch coordination