Long Horizon Prompting
guanyang/open-agent-hub
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal…
An advanced skill for L3 autonomous loops. An agent skill from cobusgreyling/loop-engineering.
$ npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cobusgreyling/loop-engineering budget-negotiator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cobusgreyling/loop-engineering.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/budget-negotiator .claude/skills/budget-negotiator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "budget-negotiator" agent skill from https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiator into .claude/skills/budget-negotiator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "budget-negotiator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cobusgreyling/loop-engineering budget-negotiator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cobusgreyling/loop-engineering.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/budget-negotiator .agents/skills/budget-negotiator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "budget-negotiator" agent skill from https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiator into .agents/skills/budget-negotiator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "budget-negotiator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cobusgreyling/loop-engineering budget-negotiator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cobusgreyling/loop-engineering.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/budget-negotiator .cursor/skills/budget-negotiator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "budget-negotiator" agent skill from https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiator into .cursor/skills/budget-negotiator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "budget-negotiator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cobusgreyling/loop-engineering.git --path skills/budget-negotiator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cobusgreyling/loop-engineering budget-negotiator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cobusgreyling/loop-engineering.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/budget-negotiator .gemini/skills/budget-negotiator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "budget-negotiator" agent skill from https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiator into .gemini/skills/budget-negotiator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "budget-negotiator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cobusgreyling/loop-engineering budget-negotiatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cobusgreyling/loop-engineering.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/budget-negotiator .github/skills/budget-negotiator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "budget-negotiator" agent skill from https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiator into .github/skills/budget-negotiator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "budget-negotiator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cobusgreyling/loop-engineering budget-negotiator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cobusgreyling/loop-engineering.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/budget-negotiator .opencode/skills/budget-negotiator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "budget-negotiator" agent skill from https://github.com/cobusgreyling/loop-engineering/tree/main/skills/budget-negotiator into .opencode/skills/budget-negotiator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "budget-negotiator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
budget-negotiatorAn advanced skill for L3 autonomous loops. An agent skill from cobusgreyling/loop-engineering.
Budget Negotiator is an agent skill from cobusgreyling/loop-engineering. 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.
Its SKILL.md is about 860 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Autonomous loops and LLM cost and token optimization. The repository describes itself as: Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny)… The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f914d15. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Budget Negotiator loads about 864 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 433 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from cobusgreyling/loop-engineering at commit f914d15, republished under its MIT licence (© cobusgreyling). 433 words, ~864 tokens.
.claude/skills/budget-negotiator/SKILL.md (or your agent's skills folder).<!--
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.
-->
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.© cobusgreyling, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/budget-negotiator of cobusgreyling/loop-engineering.
Open the folder on GitHubat commit f914d15
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in cobusgreyling/loop-engineering, which our catalogue first saw on October 7, 2026.
Budget Negotiator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Budget Negotiator this skillcobusgreyling/loop-engineering | 11k | 1 repos | ~864 | Automated safety check: Pass | MIT | |
| Long Horizon Promptingguanyang/open-agent-hub | 977 | 1 repos | ~6.4k | Automated safety check: Pass | MIT | |
| Agents Best PracticesDenisSergeevitch/agents-best-practices | 2.4k | — | ~7.4k | Automated safety check: Pass | MIT | |
| Context Compressionguanyang/open-agent-hub | 977 | 2 repos | ~4.6k | Automated safety check: Pass | MIT | |
| Amazon Bedrockaws/agent-toolkit-for-aws | 2.8k | — | ~8.6k | Automated safety check: Pass | Apache-2.0 | |
| Show Me Your Work Decision Logcursor/plugins | 11k | 8 repos | ~1.6k | Automated safety check: Pass | None |
guanyang/open-agent-hub
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal…
DenisSergeevitch/agents-best-practices
A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.
guanyang/open-agent-hub
This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…
aws/agent-toolkit-for-aws
Builds generative AI applications on Amazon Bedrock. An agent skill from aws/agent-toolkit-for-aws.
cursor/plugins
Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.
uditgoenka/autoresearch
Runs an autonomous modify, verify, keep-or-discard loop against any metric, with subcommands for planning, debugging, fixing, security audits, shipping and more.
cobusgreyling/loop-engineering
Installs Loop Engineering into a project through the single @cobusgreyling/loop CLI, scaffolding a report-only loop and a readiness score.
cobusgreyling/loop-engineering
Loads a project's loop-constraints.md before any other action and blocks pushes, edits or merges that violate the rules it defines.
cobusgreyling/loop-engineering
Acts as a skeptical checker for changes an implementer sub-agent made, running the tests, confirming the diff scope and returning approve, reject or escalate to a human.
cobusgreyling/loop-engineering
Makes the smallest code change that fixes one well-scoped problem, such as a CI failure, review comment or typo, without refactoring anything unrelated.
cobusgreyling/loop-engineering
Scans merges to main since the last tag or date, extracting titles, labels and breaking-change or security signals as structured input for a release notes drafter.
cobusgreyling/loop-engineering
Parse CI failures, identify failing job/step, classify as flake, regression, env, or config.
Categories
An advanced skill for L3 autonomous loops. An agent skill from cobusgreyling/loop-engineering. Budget Negotiator is an agent skill from cobusgreyling/loop-engineering. An advanced skill for L3 autonomous loops.
Budget Negotiator fits situations like: tasks that involve Autonomous loops; tasks that involve LLM cost and token optimization.
Run `npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a claude-code`. Or copy the skill folder (skills/budget-negotiator in cobusgreyling/loop-engineering) into .claude/skills/budget-negotiator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a codex`. Or copy the skill folder (skills/budget-negotiator in cobusgreyling/loop-engineering) into .agents/skills/budget-negotiator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cobusgreyling/loop-engineering --skill budget-negotiator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/budget-negotiator, .gemini/skills/budget-negotiator, .github/skills/budget-negotiator and .opencode/skills/budget-negotiator in your project.
SKILL.md names no scripts, command-line tools or credentials: Budget Negotiator is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Budget Negotiator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 864 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Budget Negotiator: Long Horizon Prompting (guanyang/open-agent-hub, 977 stars), Agents Best Practices (DenisSergeevitch/agents-best-practices, 2.4k stars), Context Compression (guanyang/open-agent-hub, 977 stars) and Amazon Bedrock (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cobusgreyling (a GitHub user) maintains it in cobusgreyling/loop-engineering, which has 11,486 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 11, 2026.
Source: cobusgreyling/loop-engineering on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.