agentleFS
cobusgreylingcobusgreyling/loop-engineering/skills/budget-negotiator/SKILL.md

budget-negotiator

Skill11k starsChanged 4 months agoMITView on GitHub

An advanced skill for L3 autonomous loops. When the token budget nears exhaustion, the agent analyzes its ROI and autonomously drafts a negotiation request for a budget increase rather than silently failing.

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 21 mentionsJul 2026: 6 mentionsAug 2026: 15 mentionsSep 2026: 6 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cobusgreyling/loop-engineering repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cobusgreyling/loop-engineering

The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 48

Talked about on GitHub and Bluesky (48 times).

On GitHub · 42

37 more on GitHub

On Bluesky · 6

1 more on Bluesky

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    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.

    line 13
  2. Distinctive:

    Ensure that critical work is not arbitrarily blocked by token budgets if the loop has demonstrated a high success rate and the remaining …

    line 17
  3. Very specific:

    Human Decline: If a human declines the negotiation by removing the [BUDGET NEGOTIATION] tag without increasing the budget, you must revert …

    line 24
  4. Very specific:

    Read loop-run-log.md and sum up the actions_taken, outcome (specifically successes), and tokens_estimate fields for today.

    line 30
  5. Very specific:

    Read STATE.md to identify the severity of the *remaining* actionable items in the Watch List or High Priority sections.

    line 31
  6. Distinctive:

    If the remaining items are High Priority (e.g., CI is red, P0 bugs, security vulnerabilities), draft a concise business justification.

    line 34
  7. Distinctive:

    Ensure the request is formatted clearly so a human maintainer can make a quick yes/no decision.

    line 43
  8. Very specific:

    Do not spawn further sub-agents until you read loop-budget.md on a subsequent run and verify that the human has increased your token cap.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- NOTE: This template is a mirror of skills/budget-negotiator/SKILL.md. Any changes made here must be kept byte-identical to the source skill. -->

Budget Negotiator

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).

Goal

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.

Rules & Precedence

  • Precedence: 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.
  • Safety: This skill touches L3 (unattended) safety boundaries. See Safety Boundaries for threat models.
  • Strict Cap Limitation: You are strictly forbidden from self-raising the caps in loop-budget.md. A human MUST explicitly edit loop-budget.md to increase the cap before you can resume.
  • Human Decline: If a human declines the negotiation by removing the [BUDGET NEGOTIATION] tag without increasing the budget, you must revert to report-only mode and NOT ask again today.
  • Cap the Ask: You may only request a maximum of +20% or +50k tokens per negotiation. You may only negotiate a maximum of one time per day.

Negotiation Protocol

  1. Calculate ROI:
    • Read loop-run-log.md and sum up the actions_taken, outcome (specifically successes), and tokens_estimate fields for today.
    • Read STATE.md to identify the severity of the remaining actionable items in the Watch List or High Priority sections.
  2. Draft Justification:
    • If the remaining items are High Priority (e.g., CI is red, P0 bugs, security vulnerabilities), draft a concise business justification.
    • The justification must include:
      • The current spend vs the limit.
      • The exact actions_taken count and successful outcomes you've completed today based on the JSON log.
      • The specific critical issue(s) remaining.
      • A precise request for an extension tied to the specific loop-budget.md field (e.g., "Requesting +50k tokens for the 'Validate/Audit (CI)' max tokens/day").
  3. Escalate to Humans:
    • Append your request to the High Priority section of STATE.md with the tag [BUDGET NEGOTIATION].
    • Ensure the request is formatted clearly so a human maintainer can make a quick yes/no decision.
    • Example: [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.
    • Set your internal state to WAITING_FOR_BUDGET and safely suspend execution.
  4. Resume:
    • Do not spawn further sub-agents until you read loop-budget.md on a subsequent run and verify that the human has increased your token cap.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.