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; use night-market-operations.
Tracks per-agent token usage and flags waste in parallel dispatch. Use when evaluating parallel agent efficiency or after a multi-agent run.
$ npx -y skills add athola/claude-night-market --skill agent-expenditure --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-expenditureContext preview
The summary Claude sees to decide when to auto-load this skill.
Tracks per-agent token usage and flags waste in parallel dispatch. Use when evaluating parallel agent efficiency or after a multi-agent run.
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
model_hint: fast
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; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.