Skip to content
cosmodev ~/tools/context-window-planner

컨텍스트 윈도우 플래너

AI & Agents

시스템 프롬프트, 문서, 대화 기록을 붙여넣어 어떤 모델의 컨텍스트 윈도우를 얼마나 채우는지 확인하세요. 오버플로 경고와 출력 여유 공간도 함께 표시됩니다.

모델 — 하나 이상 선택
컨텍스트 창 사용률
프롬프트 섹션을 붙여넣으면 컨텍스트 윈도우 사용 현황이 보여요.

(문서는 영어)

What it does

The Context Window Planner shows how a real prompt fills a model’s context window. Paste the pieces of your request as labeled sections — system prompt, retrieved docs, conversation history — and the tool token-estimates each one, sums them, and lays the total against every selected model’s window as a fill bar.

It answers the two questions that break LLM requests in production: does this prompt even fit? and if it fits, how much room is left for the answer? Set an output reserve and each model reports whether the free headroom covers it, so a prompt that technically fits but starves the response gets flagged before you ship it.

How to use it

  1. Paste your System prompt, Docs, and History into the stacked sections. Add or remove sections to match your real prompt shape.
  2. Set the Output reserve — the tokens you want kept free for the model’s reply (a common cause of truncated output is a reserve of zero).
  3. Toggle the model chips (widest windows first) to compare fills across vendors and tiers.
  4. Read the fill bars: blue while the input fits, red with the overflow amount when it does not; “reserve short” marks inputs that fit but leave less headroom than your reserve.
  5. Copy summary or Copy share link to send the exact scenario.

Examples

A two-section prompt against a 1M-token window

Each section below is one 1,600-character line of prose (≈400 tokens at 4 chars/token):

System: 1,600 chars → 400 tokens
Docs:   1,600 chars → 400 tokens
beta-pro (1,000,000 ctx): 800 / 1,000,000 · free 999,200 · fits yes · reserve ok

The same prompt that fits, but starves the reserve

input 800 · output reserve 1,000,000
beta-pro: fits yes · reserve SHORT   ← raw fit passes, no room for the answer

An overflow, flagged with the amount

A single 4.4M-character paste (≈1.1M tokens) against a 1M window:

beta-pro: 1,100,000 / 1,000,000 · overflow −100,000 · fits NO

Good to know

  • Fitting the window is not the same as fitting the answer. fits means the raw input is within the context window; the reserve check means there is still room for the response. Both must pass for a healthy request.
  • Token counts are heuristic estimates (±15%), classified per line as prose, code, JSON, or CJK — not a real BPE tokenizer run. For the estimate breakdown alone, see the Token Estimator.
  • Model specs are a snapshot. Window sizes and output caps flow from one dated model snapshot — check the “Data as of” line for freshness.
  • Private: everything runs 100% client-side — no prompt text ever leaves your browser.
  • Related tools: Token Estimator, Model Picker, LLM Cost Calculator.
소스 코드14개 언어

100% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.