context-budget-planner

context-budget-planner is a skill for Codex from ucsahinn/codex-chef. It costs 53 tokens per session (618 once invoked), scanned A, original, MIT.

A planning method for managing context and token use during broad, research-heavy, or long-running coding work.

In plain words
What is it for?
Use it to define source priorities, tool routes, context limits, verification gates, and handoff notes for extended tasks.
Why use it?
It helps decide what must be read, what can wait, and how to preserve progress when the working context becomes large.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

Good fit Use it to define source priorities, tool routes, context limits, verification gates…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ucsahinn/codex-chef/context-budget-planner
Install

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.

Any agent
npx skills add ucsahinn/codex-chef --skill context-budget-planner
Clone the repo
git clone --depth 1 https://github.com/ucsahinn/codex-chef

Made for: Codex.

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

agentmods badge for context-budget-planner

README.md
[![agentmods](https://agentmods.dev/badge/skills/ucsahinn/codex-chef/context-budget-planner.svg)](https://agentmods.dev/skills/ucsahinn/codex-chef/context-budget-planner)
Your own site
<a href="https://agentmods.dev/skills/ucsahinn/codex-chef/context-budget-planner"><img src="https://agentmods.dev/badge/skills/ucsahinn/codex-chef/context-budget-planner.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 618 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00618
Opus 5 $0.00026 $0.00309
Sonnet 5 $0.00011 $0.00124
Haiku 4.5 $0.00005 $0.00062

Measured 7d ago against content hash 061ca05e4c5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

context-budget-planner 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 7d 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.

plugins/codex-chef-workflows/skills/context-budget-planner/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Budget Planner

Use this skill before broad, long-running, or multi-source Codex work. The goal is to keep useful capability while reducing wasted context.

Output

Return:

  1. Objective and completion evidence
  2. Must-load context
  3. Defer-until-needed context
  4. Ignore or exclude list
  5. Tool and source routing
  6. Token-saving tactics
  7. Compaction-safe handoff
  8. Verification gates

Reference Routing

Read references/context-strategy.md for broad repo work, research-heavy tasks, multi-agent delegation, long command outputs, compaction handoffs, surface-routing decisions, or token/context tradeoffs.

Rules

  • Preserve user constraints, approval gates, file paths, exact commands, and named artifacts.
  • Prefer current files and command outputs over memory or guesses.
  • Load indexes, manifests, catalogs, and summaries before full files when that still gives reliable evidence.
  • Read a selected authoritative instruction file completely before acting on it.
  • Do not paste huge logs into the main thread. Summarize the key lines and keep command names exact.
  • Do not move secrets, tokens, auth files, session data, private memory, or private local paths into prompts, docs, diagrams, or issue comments.
  • Use subagents for bounded read-heavy work only when they reduce noise or produce clearer evidence.
  • Put durable behavior in the right surface: prompt, AGENTS.md, skill, plugin, MCP, hook, memory, rule, config, or script.
  • Use current official docs or verified sources when external facts affect the answer.
  • Keep overlapping optional skills discoverable, but prefer the smallest default set that covers the task without duplicate trigger noise.

Context Budget Template

Objective:
- ...

Completion evidence:
- ...

Must load now:
- ...

Defer until needed:
- ...

Ignore/exclude:
- ...

Tool/source routing:
- Local repo:
- Official docs:
- External docs:
- Browser/UI:
- Security/release:

Token-saving tactics:
- Start from indexes/manifests/catalogs before full files.
- Read only the relevant sections after symbol or text search.
- Summarize long command output instead of copying it wholesale.
- Keep exact commands, paths, versions, and failures.

Compaction handoff:
- Current decision:
- Files changed or inspected:
- Commands run:
- Known blockers:
- Next verification:

Verification gates:
- ...

Read the full file on GitHub · 100 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 7d ago First seen · 100 lines · 53 tokens per session scan A 061ca05e4c5a

Subscribe to this mod's changes

context-budget-planner is a skill published in the GitHub repository ucsahinn/codex-chef (6 stars, last pushed 20d ago), licensed MIT. It adds 53 tokens to every session and 618 once invoked, about $0.0003 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-31.