agent-expenditure
Track multi-agent token consumption and identify parallelization waste
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 parallelization waste Full Skill content: https://321skill.com/skills/agent-expenditure-x-3/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 challenge of quantifying token waste in multi-agent parallel scheduling. In practical development, when dispatching multiple agents to execute tasks simultaneously, coordination overhead (e.g., file conflicts, duplicated work) can significantly increase token consumption, yet developers often lack a clear view of which agents are inefficient. This tool tracks each agent's token usage, analyzes the proportion of coordination overhead based on Brooks' Law, and automatically flags waste signals.
Usage is straightforward: simply run this Skill after parallel scheduling is complete. It automatically reads agent execution logs, calculates each agent's token consumption and coordination overhead ratio (based on shared file read/write conflicts), and generates a post-hoc review checklist. You can then query specific agent waste details using natural language instructions, such as "Show the three agents with the highest token consumption" or "Check for any duplicated work."
It is particularly suitable for teams or individuals who frequently engage in multi-agent parallel scheduling, especially those experiencing soaring token costs without being able to pinpoint the root cause. For complex projects managing 10 or more agents, this tool can help decide whether to reduce the number of agents to lower coordination overhead. It is also useful during project retrospectives to evaluate the cost-effectiveness of parallel scheduling.
We recommend using this tool for review after each large-scale parallel scheduling session. Note that it is primarily designed for static analysis after parallel scheduling and is not suitable for single-agent workflows or real-time monitoring scenarios. Additionally, the tool relies on the Claude Code plugin environment and requires complete agent execution logs for accurate analysis.
Key Features
Unlike token-conservation (budget control), agent-expenditure focuses on post-parallel-scheduling waste diagnosis, quantifying coordination overhead ratio via Brooks' Law and providing specific recommendations for optimizing the number of agents.
Limitations
Requires the Claude Code plugin environment; supports only offline analysis after parallel scheduling is complete, not real-time token monitoring; depends on the completeness of agent execution logs.
FAQ
Can this Skill monitor token consumption in real time?
No, it only supports post-hoc analysis after parallel scheduling is complete, requiring agents to be run and logs to be generated first.
How does it differ from token-conservation?
token-conservation is for session-level token budget control, while agent-expenditure analyzes waste in multi-agent parallel scheduling, focusing on coordination overhead.
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-3/raw/index.md to read the original Skill definition (Markdown format) for agent-expenditure, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-expenditure-x-3/raw/index.md