Skip to main content

compact

Check context usage and compact the conversation from IPython. Use when context is filling up and substantial work remains, so the session is summarized and you keep working instead of stopping early.

소스 정보

저장소
CaseMark/prime-linc
최근 소스 활동
2026년 8월 5일 20:50
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
compact
description
Check context usage and compact the conversation from IPython. Use when context is filling up and substantial work remains, so the session is summarized and you keep working instead of stopping early.
# Compact Compaction replaces older conversation history with a dense summary, freeing context so long-running work can continue. The implementation lives in the host (the same one behind the user's `/compact` command); this skill is the kernel-side interface to it. Call it directly from IPython: ```python await compact.status() await compact.run() await compact.run("keep the failing test names and the migration checklist") ``` ## API - `await compact.status()` — current context usage as a dict: `tokens`, `context_window`, and `percent` (`None` right after a compaction until the next model response), plus `scheduled` (whether a requested compaction is already pending). - `await compact.run(instructions=None)` — schedule compaction. Returns `{"scheduled": True}`, or `{"scheduled": False, "reason": ...}` when there is nothing to compact yet. Optional `instructions` focus the summary on what matters for the remaining work. ## Rules - Compaction never runs mid-cell. A scheduled compaction runs when the current turn ends; the harness then resumes you automatically with the summary plus recent messages, and you continue the task. - The IPython kernel persists through compaction — variables, imports, and helpers you defined all remain available. - Compact at a natural boundary when context usage is high and substantial work remains, instead of becoming terse or returning to the user early. Check `await compact.status()` when unsure. - One request per turn is enough; calling `run` again before the turn ends only updates the instructions.
GitHub에서 보기