context-budget
하는 일
이 도구는 AI를 사용할 수 있는 남은 공간(또는 ‘예산’)이 얼마나 되는지 이해하도록 돕습니다. 현재 사용량을 확인하거나, 요청할 때만 자세한 설정 분석을 수행합니다.
사용하는 경우
- ✓AI를 사용할 수 있는 남은 ‘공간’이 얼마나 되는지 알고 싶을 때.
- ✓설치된 항목과 그것이 차지하는 공간에 대한 요약을 원할 때.
- ✓AI 설정에 대한 더 깊은 분석이 필요할 때.
스킬 링크
https://github.com/affaan-m/ECC/blob/main/skills/context-budget/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“현재 맥락 예산이 얼마나 남았나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI 프로그램의 특정 명령을 사용해 실시간 사용량을 확인합니다. 더 자세한 분석을 요청하면 모든 내용을 읽지 않고 설정 파일을 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Context Budget
Use the provider's native meter for live session usage. Keep the separate, estimated installation audit behind an explicit opt-in.
Default: Live Context
Treat an invocation with no audit request as a live-context request. This includes requests for the current window, remaining capacity, headroom, token usage, or a context breakdown.
For this default path:
- Do not call or use tools.
- Do not scan or read files.
- Do not run shell commands, provider CLIs, debug logging, or MCP discovery.
- Reply with only the native command and one short explanation.
Route by the active harness:
| Harness | Native command | Guidance |
|---|---|---|
| Codex CLI | /status |
Shows current token usage and remaining context capacity. Use /statusline and enable Context stats plus Token counters for a persistent footer meter. |
| Codex app | /status |
Shows current thread context usage and rate limits. |
| Claude Code | /context |
Shows the live context breakdown. Use /context all for expanded items. |
| Other or unknown | None verified | State that ECC cannot read live provider state and ask which harness is active. |
These commands are documented in the Codex command reference and Claude Code command reference.
A skill cannot invoke a TUI slash command on the user's behalf. Never replace the native command with an estimated scan and never infer an audit request from phrases such as “context is heavy” or “how much is left.”
Explicit Static Audit
Run an installation/configuration audit only when the user explicitly says
--audit, “audit installed components,” or equivalent unambiguous wording.
--verbose changes report detail; it does not opt into an audit by itself.
If the audit scope is ambiguous, ask for the harness and installation root before reading anything. Keep every audit bounded and read-only:
- Inspect only the named plugin/install root and the named harness's known configuration files.
- Never recursively enumerate the workspace root, home directory, provider cache, transcripts, debug logs, or unrelated worktrees.
- Never launch a provider CLI, MCP server, or debug session to count tools.
- Cap inventory output at 50 entries per component class. Summarize the rest.
- Do not write temporary logs or copy configuration content into the report.
Audit only the component metadata relevant to eager discovery:
- agent and skill descriptions;
- command descriptions when the harness discovers them eagerly;
- always-loaded instruction files in the explicitly named scope;
- configured MCP tool schemas when an existing bounded manifest exposes them.
Full skill, agent, command, and rule bodies are generally on-demand content. Report their disk size separately from estimated eager overhead instead of adding every body to the session baseline.
Audit Output
Return a compact report containing:
- harness and exact paths inspected;
- estimated eager/discovery overhead by component class;
- installed counts and the heaviest metadata entries;
- assumptions, unavailable measurements, and up to three optimizations.
Every calculated token number is an estimate of static configuration overhead, not live session context. Do not claim that an estimate is provider-reported, current, exact, or evidence of realized savings. Direct the user back to the native live-context command for current usage.
Optional Selected-Record Diagnostic
Inspect a persisted record only when the user explicitly selects that file for this diagnostic. This is separate from the default live-context request and the installation audit.
For a local file diagnostic, explicitly select a stable, regular JSONL file or a snapshot you intend to inspect. Replace the example path below; this does not find or reconnect a session. The snippet prints aggregate byte counts only. It reads one line at a time, so memory use depends on the largest record; avoid very large records and actively growing files.
python3 - "/path/to/selected-session.jsonl" <<'EOF'
import json
import sys
total = attachment = other = unclassified = 0
try:
with open(sys.argv[1], "rb") as source:
for raw in source:
size = len(raw)
total += size
try:
record = json.loads(raw.decode("utf-8"))
except (UnicodeDecodeError, json.JSONDecodeError):
…
자주 묻는 질문
AI를 너무 많이 쓰고 있는지 어떻게 알 수 있나요?
‘토큰 사용량이 얼마인가요?’ 또는 ‘남은 공간은 얼마나 되나요?’라고 물어 현재 상태를 확인할 수 있습니다.
‘설치 감사’란 무엇인가요?
설치된 구성 요소와 그 설정을 자세히 점검하는 것입니다. 더 많은 자원을 사용하므로 명시적으로 요청할 때만 실행합니다.
AI에게 특정 파일을 확인해 달라고 요청할 수 있나요?
아니요. 이 도구는 개별 파일이 아니라 AI의 전체 사용량과 설정에 집중합니다.
상세 정보
작성자의 원본 설명
Routes live context checks to the native Codex or Claude Code meter without scanning files, and performs a bounded static component audit only when explicitly requested. Use for context-budget requests about remaining capacity or installed context overhead.
repo: affaan-m/ECC
인기도
- GitHub 스타
- 280k
- 순위
- #285
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
accessibility
280k에이전트가 모든 사람이 쓸 수 있는 인터페이스를 만들도록 돕습니다. 시각 장애나 운동 장애가 있는 사람도 쓸 수 있게 합니다.
agent-architecture-audit
280k에이전트가 모든 것이 올바르게 작동하는지 점검하도록 돕습니다. AI 시스템의 문제를 찾아 고쳐서 기대대로 작동하게 합니다.
agent-eval
280k에이전트가 서로 다른 AI 코딩 도구를 비교하도록 돕습니다. 특정 작업에서 어느 도구가 더 빠르고, 저렴하고, 믿을 만한지 측정합니다.
agent-harness-construction
280k에이전트가 작업을 더 잘 이해하도록 돕습니다. 에이전트가 쓰는 도구와 지시문을 최적화해 성공 가능성을 높입니다.
비슷한 스킬
knowledge-automation
394k에이전트가 정해진 일정에 따라 새 콘텐츠를 Knowledge 볼트에 넣는 반복 작업을 설정하고, 작업이 실행되는지 확인하도록 돕습니다.
knowledge-source-ingest
394k에이전트가 이미 저장한 항목은 다시 추가하지 않고, 채팅 채널이나 피드의 새 항목을 Knowledge 보관함에 계속 반영하도록 돕습니다.
watchers
260kRSS 피드, JSON 엔드포인트, GitHub 활동을 일정에 따라 감시하고, 마지막 확인 이후 새로 생긴 항목만 보고하도록 에이전트를 돕습니다.