Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add brcampidelli/chimera-agent --skill chimera-budget-the-contextgit clone --depth 1 https://github.com/brcampidelli/chimera-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/brcampidelli/chimera-agent/chimera-budget-the-context)<a href="https://agentmods.dev/skills/brcampidelli/chimera-agent/chimera-budget-the-context"><img src="https://agentmods.dev/badge/skills/brcampidelli/chimera-agent/chimera-budget-the-context/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/brcampidelli/chimera-agent/chimera-budget-the-context"><img src="https://agentmods.dev/badge/skills/brcampidelli/chimera-agent/chimera-budget-the-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.01390 |
| Opus 5 | $0.00018 | $0.00695 |
| Sonnet 5 | $0.00007 | $0.00278 |
| Haiku 4.5 | $0.00004 | $0.00139 |
Grade A, and why
chimera-budget-the-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Trigger
You are running a loop that appends to a message list every step — a ReAct agent, a coding turn, a tool-calling assistant — and the list only ever grows. Symptoms: the provider raises on context length, or the run survives but starts working on the wrong file after a long stretch.
It does not apply to a single-shot call whose prompt you assembled yourself and can measure once. There is no eviction policy to design when nothing accumulates.
Do
- Write down two numbers before touching the loop: the model's advertised window, and the fraction
of it you will spend on the prompt. Chimera spends 0.6 (
DEFAULT_BUDGET_FRACTIONinchimera/core/context_budget.py). The rest pays for the completion and for the gap between your token estimate and the provider's real count. - Fire compaction on a share of the budget, not of the window — Chimera triggers at 0.8 of the budget. Compaction needs room to compact into; a trigger set at the window fires when there is none left.
- Measure the fixed floor separately from the growing part. The system message plus the
tools=payload are re-sent on every step and no amount of message compaction touches them. Runchimera schema-bench(or count the JSON yourself) before you assume the history is what is expensive. A verbose MCP or OpenAPI import can put tens of thousands of tokens under every single step of the run. - If the floor is a problem, shrink the floor: strip annotation-only schema keys (
examples,title,default,$comment) and trim parameter prose to the first sentence, keepingtype,properties,requiredandenumintact so tool selection and argument validity are unchanged. That is whatchimera/tools/schema_compact.pydoes. Advertise fewer tools if it is still too big. - Fix the eviction order explicitly: system message never, recent turns verbatim (Chimera keeps 6), the older span replaced by a summary or a factual note. Never rewrite the system message — it is the stable prefix the prompt cache is keyed on, and editing it invalidates every cached turn behind it.
- After compacting, re-inject what the run needs to still be itself: the task verbatim, the plan, the task list with status, and the file currently being edited. Re-read the file from disk rather than restoring a remembered copy.
- When you estimate token size yourself, count the
tool_callspayload as well ascontent. Tool arguments ride on the assistant message and are not incontent; a size estimate that reads onlycontentunder-reports exactly the messages that grew.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 113 lines · 36 tokens per session scan A 63f202117c1f
chimera-budget-the-context is a skill published in the GitHub repository brcampidelli/chimera-agent (23 stars, last pushed today), licensed Apache-2.0. It adds 36 tokens to every session and 1,390 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
git-checkpoint
Use git as a safety net - create a checkpoint commit before risky or large changes and roll back cleanly if a change makes things worse. Use before multi-file refactors.
synthesize-report
Produces a citation-grounded summary across one or more workspace source files for summaries, briefings, literature reviews, or comparisons.
data-analysis
Statistical data analysis skill — use when the user asks to analyze numbers, compute statistics, or summarize datasets.
summarizer
Use when the user asks for a summary, TL;DR, or condensed version of any content.
weknora-shared
Use when driving a WeKnora RAG server through the weknora CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora- skill.
skill-creator-primer
You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill. Triggers include creating, editing, reviewing, or contributing to any part of an Agent Skill (description, frontmatter, body, references, scripts, trigger evals, conflicts, etc).