/loop-engineering:budget-negotiatorfrom loop-engineering
Negotiates token budget extensions when nearing daily caps during autonomous L3 loops, based on ROI from completed work and remaining high-priority items.
Ships in loop-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When you detect that you are nearing your daily token cap (e.g., ≥90% spend) via the loop-budget skill, DO NOT just exit silently. You must negotiate for an extension based on your Return on Investment (ROI).
Ensure that critical work is not arbitrarily blocked by token budgets if the loop has demonstrated a high success rate and the remaining work is critical.
budget-negotiator ONLY activates when loop-budget would otherwise hard-exit (i.e. ≥90% spend), and ONLY when there are High Priority items remaining. If work is not High Priority, yield to the standard loop-budget exit sequence.loop-budget.md. A human MUST explicitly edit loop-budget.md to increase the cap before you can resume.[BUDGET NEGOTIATION] tag without increasing the budget, you must revert to report-only mode and NOT ask again today.Calculate ROI:
loop-run-log.md and sum up the actions_taken, outcome (specifically successes), and tokens_estimate fields for today.STATE.md to identify the severity of the remaining actionable items in the Watch List or High Priority sections.Draft Justification:
actions_taken count and successful outcomes you've completed today based on the JSON log.loop-budget.md field (e.g., "Requesting +50k tokens for the 'Validate/Audit (CI)' max tokens/day").Escalate to Humans:
STATE.md with the tag [BUDGET NEGOTIATION].[BUDGET NEGOTIATION] I have burned 95k/100k tokens for the 'Daily Triage' loop today. However, I have successfully executed 4 actions with a 'fix-proposed' outcome. There is 1 critical CI failure remaining on the main branch. I request a temporary bump of 'Daily Triage' max tokens/day by +50k to resolve it.WAITING_FOR_BUDGET and safely suspend execution.Resume:
loop-budget.md on a subsequent run and verify that the human has increased your token cap.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cobusgreyling/loop-engineering --plugin loop-engineering7 skills in this plugin
/install-loopInstall Loop Engineering into a project via the unified CLI front door (@cobusgreyling/loop). Prefer this over invoking loop-init / loop-audit separately. Week-one is report-only; never enable auto-merge or unattended fixes unless the human explicitly asks and doctor is healthy.
/loop-budgetCheck token budget and run-log spend before and after a loop run. Enforces early exit when over budget or when there is no actionable work./loop-constraintsRead loop-constraints.md at the start of every run and enforce every rule. This skill runs BEFORE triage or any action skill. Constraints are binding.
/loop-triageTriage recent changes, CI failures, issues, and conversations. Produces a concise, actionable findings report suitable for a loop to consume. Writes structured output to a state file or Linear board.
/loop-verifierIndependent verification agent for loop-produced changes. Finds reasons to reject. Runs tests. Confirms diff scope. Use after minimal-fix or any implementer sub-agent — never in the same role as the implementer.
/minimal-fixProduce the smallest possible code change that fixes a specific, well-scoped issue (CI failure, reviewer comment, typo). Use only when the fix target is explicit. Never refactor unrelated code.
Other plugins' skills for the same job