본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

context-viz

furukama 제작

Web & Frontend Development
427clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Visualize the current context window usage — token estimates per component (system prompt, tools, workspace files.

설명

이 스킬이 하는 일

Estimates and displays a breakdown of the current context window, showing how many tokens each component (system prompt, workspace files, messages, free space) is consuming. Uses a Python script for file token estimation and the session_status tool for live context data. Also lists memory files stored on disk that aren't currently loaded.

Gives a per-component token breakdown rather than just a single usage percentage, so you can pinpoint exactly what to trim.

사용 시점

  • Checking how full the context is before a long task
  • Diagnosing which workspace files are eating the most tokens
  • Deciding when to compact or clear context
  • Auditing memory accumulation across sessions
  • Comparing token usage across different model context sizes

예시 워크플로

입력

User asks: how full is my context right now?

에이전트
  1. 1

    Call session_status to get model, tokens used, tokens total, and compaction count

  2. 2

    Run scripts/estimate_tokens.py against the workspace path to get per-file token estimates

  3. 3

    Subtract file tokens and system overhead from total context used to estimate message tokens

  4. 4

    Calculate free space as total minus used

  5. 5

    Render the monospace bar chart with proportional ░ blocks per component

출력

A formatted context breakdown showing ~Xk tokens per component with bar lengths scaled to percentage of total context, followed by a memory-on-disk inventory grouped by category

설치

clawhub install furukama/context-viz

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크