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

context-budgeting

sarielwang93 제작

Coding Agents & IDEs
2.1kclawskills.sh가 보고한 다운로드 수
4스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Manage and optimize OpenClaw context window usage via partitioning, pre-compression checkpointing, and information.

설명

이 스킬이 하는 일

A framework for managing context window usage in OpenClaw agents. It partitions context into defined zones (goals, history, decisions, background knowledge), checkpoints state before compaction, and runs a cleanup script to recover capacity without restarting the session.

Checkpointing to HOT_MEMORY.md before compaction preserves task state that standard compaction would otherwise discard, allowing the agent to resume accurately.

사용 시점

  • Preventing memory loss during long multi-step coding sessions
  • Recovering task state after automatic context compaction
  • Reducing token costs on extended agent workflows
  • Managing multi-megabyte JSON outputs without flooding the context
  • Keeping long-running agents on track past the 80% context threshold

예시 워크플로

입력

User asks: Keep my refactoring task going after the context fills up

에이전트
  1. 1

    Check current context usage via /status

  2. 2

    Confirm context exceeds 80% threshold

  3. 3

    Update memory/hot/HOT_MEMORY.md with current status, key decisions made, and next step

  4. 4

    Execute scripts/gc_and_checkpoint.sh to clear raw data and finalize compaction

  5. 5

    Resume the task using the checkpoint as the new working context

출력

Task continues from the last checkpoint without losing prior decisions or progress

설치

clawhub install sarielwang93/context-budgeting

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

링크