context-budget
Skill20 starsChanged 7 months agoMITView on GitHub
Know how much context window you have left before Claude loses memory mid-task. Stop getting surprised by truncation on long coding sessions. You are 90 minutes into a refactor. Claude has read 15 files, written 400 lines, discussed 3 design decisions. Then it starts forgetting things from the beginning of the conversation. You did not know you were near the limit. Now you are. This skill tracks your context budget and warns you before it runs out. When you are…
27 other projects use a version of this.
Adopted by
Most recently taken up by
- Univers42/claude-deal-with-the-deviltheir own version, first seen Oct 4, 2026
- hahuyhungdev/ai-coding-configtheir own version, first seen Oct 2, 2026
- trinhhaox/context-budgettheir own version, first seen Sep 22, 2026
- OneWave-AI/claude-skillstheir own version, first seen Sep 21, 2026
- mxrsv/agents-skillstheir own version, first seen Sep 19, 2026
- YogirajA/Claude-Skillstheir own version, first seen Sep 17, 2026
Used with
Projects with it also use agent-sort, lead-intelligence and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JamkrisSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 4 projects that use this
JamkrisSkilllead-intelligence
AI-native lead intelligence and outreach pipeline. Replaces Apollo, Clay, and ZoomInfo with agent-powered signal scoring, mutual ranking, warm path discovery, source-derived voice modeling, and channel-specific outreach across email, LinkedIn, and X. Use when the user wants to find, qualify, and reach high-value contacts.
Also in 4 projects that use this
JunMysterySkillecc-guide
Guide users through ECC's current agents, skills, commands, hooks, rules, install profiles, and project onboarding by reading the live repository surface before answering.
Also in 3 projects that use this
JunMysterySkillrecsys-pipeline-architect
Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI's open-sourced For You algorithm. Use this skill whenever the user is building any system that picks "the top K items for a (user, context)" — social feeds, content CMSs, RAG rerankers, task prioritizers, notification triage, search reranking, ad ranking.
Also in 3 projects that use this
Exploration-labsSkilltoken-budget-advisor
Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.
Also in 5 projects that use this
thanvish21Skillbenchmark-optimization-loop
Optimization loops for Hermes benchmarks
Also in 3 projects that use this
- +5 more from Jamkris
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- Archive228/loopkit★ 756same name
- coco-research/coco★ 437same name
- OneWave-AI/claude-skills★ 321same name
- loulanyue/awesome-claude-notes★ 272same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- felvieira/claude-skills-fv★ 23same name
- woxiangyangzhimao/skills★ 14same name
- mxrsv/agents-skills★ 8same name
- cveralyon/axel-setup★ 4same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- llms.txtllms.txt
- claude-cost-trackerSkill
- commit-roastSkill
- debug-trailSkill
- env-doctorSkill
- ev-calculatorSkill
- git-standupSkill
- growth-trackerSkill
- investment-briefing-agentSkill
- multi-agent-orchestratorSkill
- news-sentiment-engineSkill
- options-flow-analyzerSkill
- price-monitor-alertSkill
- pr-review-prepSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 61
When you are near the limit, this skill can generate a CHECKPOINT.md:
- Distinctive: line 122
No API keys needed — estimates based on conversation structure
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Budget Tracker
Know how much context window you have left before Claude loses memory mid-task. Stop getting surprised by truncation on long coding sessions.
The problem
You are 90 minutes into a refactor. Claude has read 15 files, written 400 lines, discussed 3 design decisions. Then it starts forgetting things from the beginning of the conversation. You did not know you were near the limit. Now you are.
This skill tracks your context budget and warns you before it runs out.
What it does
- Estimates tokens used so far in the current session
- Shows remaining budget as a percentage
- Recommends when to checkpoint (summarize + start fresh)
- Identifies which parts of context are most expensive (large file reads, long outputs)
- Suggests what to prune if you need to extend the session
Usage
Check my context budget.
Estimate tokens used in this session.
Show: used, remaining, percentage, biggest consumers.
Warn me if I am past 70%.Example Output
Context Budget — Current Session
Model: claude-opus-4-6 (200k token window)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
USAGE ESTIMATE
Used: 142,000 tokens (71%)
Remaining: 58,000 tokens (29%)
Status: YELLOW — consider checkpointing soon
TOP CONSUMERS
src/options/analyzer.ts ~18,000 tokens (full file read x2)
src/db/schema.ts ~12,000 tokens (full file read)
Conversation history ~45,000 tokens (90 messages)
Code outputs generated ~38,000 tokens (4 large code blocks)
Tool results ~29,000 tokens (15 Bash + 8 Read calls)
RECOMMENDATIONS
You have ~2-3 more large file reads before hitting 90%.
If you need to continue this session:
→ Ask me to summarize decisions made so far (saves ~30k tokens)
→ Avoid re-reading files already discussed
If starting fresh:
→ I can write a CHECKPOINT.md with full context to paste into next sessionCheckpoint mode
When you are near the limit, this skill can generate a CHECKPOINT.md:
Generate a checkpoint for this session.
Include: what we were building, decisions made, files changed, next steps.
Keep it under 2000 words so it fits in a fresh context window.Output:
# Session Checkpoint — 2026-05-13 23:14
## What we were building
Refactoring the options scanner to separate real vs lottery calls.
The core insight: options with premium < $0.10 are speculative noise...
## Key decisions
1. Threshold: premium < $0.10 OR delta < 0.05 = lottery
2. Adjusted P/C computed on real volume only, not total OI
3. Anomaly detection baseline unchanged — runs on adjusted ratio
## Files changed
- src/options/analyzer.ts — splitRealVsLottery() added
- src/types/index.ts — LotteryMetrics type added
- tests/options.test.ts — 4 new test cases
## Next steps
- [ ] Add per-expiry breakdown (weekly vs monthly vs LEAPS)
- [ ] Test RXRX edge case: what if ALL options are lottery?
- [ ] PR description needs risk assessment section
## Key context to preserve
The RXRX case: P/C 0.38 raw → 2.37 adjusted. Signal completely inverted.
This is the core motivation for the whole feature.Paste this at the start of your next session and pick up exactly where you left off.
Budget tiers
| Usage | Status | Recommendation |
| 0-50% | GREEN | No action needed |
| 50-70% | YELLOW | Start planning checkpoint |
| 70-85% | ORANGE | Checkpoint recommended |
| 85-95% | RED | Checkpoint now, fresh session for next task |
| 95%+ | CRITICAL | Summarize immediately |
Why this matters
Claude Code sessions fail gracefully — the model does not crash. But degraded context means:
- Forgetting early decisions → contradicting itself later
- Losing track of file structure already read
- Repeating tool calls for files already in context
- Subtle bugs from incomplete information
A checkpoint every 60-70% of budget prevents all of these.
Requirements
- Works with any Claude model (context window varies: Haiku 200k, Sonnet 200k, Opus 200k / 1M)
- No API keys needed — estimates based on conversation structure
- Token estimates are approximate (±15%) — treat as guidance, not precision
Free
Fully free and open source.
→ https://github.com/tellmefrankie/news-engine
Author
Built after losing 45 minutes of work when Claude forgot the first half of a refactor session. The checkpoint system saved 3 sessions in the first week of use.
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
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.

