claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Tracks per-agent token usage and flags waste in parallel dispatch. Use when evaluating parallel agent efficiency or after a multi-agent run.
Claude Code
$ npx -y skills add athola/claude-night-market --skill agent-expenditure --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill agent-expenditure -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill agent-expenditure -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill agent-expenditure -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill agent-expenditure -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill agent-expenditure -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill agent-expenditure -a windsurf -y
name: agent-expenditure
role: entrypoint
description: Tracks per-agent token usage and flags waste in parallel dispatch. Use when evaluating parallel agent efficiency or after a multi-agent run.
alwaysApply: false
category: resource-optimization
tags:
- token-waste
- agent-coordination
- brooks-law
- parallel-dispatch
progressive_loading: true
dependencies:
hub: []
modules:
- modules/waste-signals.md
complexity: basic
estimated_tokens: 300Dispatching 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.
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.
See `modules/waste-signals.md` for the 5 waste signal categories and detection criteria.
roster, each agent's scope, and the output contract it returns. 1-3 agents may dispatch directly.
yes/no per agent (unique findings, proportional expenditure, no duplication, fewer agents sufficient)
the completed run; any triggered signal named with the category
or "dispatch was efficient" with coordination overhead percentage
reduction is stated for future dispatches of the same type
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.