En

agent-expenditure

Track multi-agent token consumption and identify parallel scheduling waste

开发流程 分析Token消耗监控资源消耗核算AI调用成本 claude ★ 1.1k Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: agent-expenditure.
It is used for: Track multi-agent token consumption and identify parallel scheduling waste
Full Skill content: https://321skill.com/skills/agent-expenditure-x-10/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses the issues of uncontrolled token consumption and excessive coordination overhead when scheduling multiple AI agents in parallel. In real-world development, developers often dispatch multiple agents simultaneously to perform tasks but lack fine-grained tracking of each agent's token usage, leading to soaring costs and redundant outputs. Through post-hoc analysis, this Skill quantifies the token expenditure of each agent and flags wasteful behavior based on Brooks's law, helping teams optimize the number of agents.

Usage is straightforward: after parallel agent execution completes, simply trigger the Skill via a natural language instruction for post-analysis. It automatically checks whether each agent's output is unique, whether token expenditure is proportional to value, and generates a report including coordination overhead percentage and agent count recommendations. You can then evaluate each item in the report's "Post-Dispatch Review Checklist" to decide whether to reduce the number of agents in future dispatches.

It is ideal for teams or individuals managing multiple AI agents, especially those already experiencing skyrocketing token costs, agent redundancy, or inefficient coordination. Project managers can use it to quantify scheduling efficiency, agent developers can adjust parallel strategies accordingly, and operations engineers can monitor resource consumption. For single-agent workflows or real-time token budget control scenarios, this Skill is not needed.

It is recommended to run this Skill uniformly after each large-scale parallel dispatch for retrospective analysis, combined with the "plan-before-large-dispatch" rule to pre-plan agent counts. Note that it is primarily for post-hoc analysis, does not support real-time interception or budget control, and relies on the Claude Code plugin environment. Additionally, when the number of agents exceeds nine, coordination overhead may surpass 30%, in which case reducing agents should be prioritized over adding more.

Key Features

Unlike general token monitoring tools (e.g., token-conservation), it specifically targets parallel scheduling scenarios, quantifies coordination overhead (e.g., shared file conflict rates) using Brooks's law, and provides concrete agent count recommendations (1–3 for free scheduling, 9+ may be counterproductive), rather than merely aggregating total token statistics.

Limitations

Requires the Claude Code plugin environment, supports only post-hoc analysis, and does not support real-time token budget control or single-agent scenarios.

FAQ

Can this Skill control token consumption in real time?

No, it is only for retrospective analysis after parallel scheduling completes. For real-time budget control, use the token-conservation skill.

Can it be used for single-agent workflows?

Not needed. Single-agent workflows have no coordination overhead; this Skill is designed specifically for multi-agent parallel scheduling.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-expenditure-x-10/raw/index.md to read the original Skill definition (Markdown format) for agent-expenditure, and install it according to the instructions.