원클릭으로
compactor-detail
Full compactor reference — tool parameters, anti-patterns, sandbox languages, context budget, workflows.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Full compactor reference — tool parameters, anti-patterns, sandbox languages, context budget, workflows.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Long-running iterative development loops. Run arbitrarily-long tasks without diluting model attention. Triggers: ralph, ralph loop, iterative loop, long-running task, development loop.
Diagnostics — validate config, session DB, runtimes, and troubleshoot compactor issues.
Context management — compact session, recall history, run code, search content.
Stats display — context savings, session metrics, compactions, sandbox and recall/search counters.
Helps you use the /unipi:btw side-conversation workflow effectively. Use when you want to think in parallel, ask side questions without interrupting ongoing work, or inject a side thread back into the main agent.
CocoIndex content indexing and search — use when you need to search indexed project content or trigger re-indexing
| name | compactor-detail |
| description | Full compactor reference — tool parameters, anti-patterns, sandbox languages, context budget, workflows. |
compact(dryRun?: boolean)
Agent-facing compaction request. Use dryRun: true to preview estimated message reduction without compacting.
For user-triggered immediate compaction, prefer the slash command /unipi:lossless-compact.
session_recall(query: string, mode?: "bm25" | "regex", limit?: number, offset?: number, expand?: boolean)
Search current session history. BM25 is default; regex is fallback. The recall path prefers Pi's append-only session branch so it can find messages that are no longer present in live LLM context after compaction.
Deprecated alias: vcc_recall.
sandbox(language: string, code: string, timeout?: number)
Run code in a sandboxed environment. Only stdout enters context. 100MB output cap. 30s default timeout.
Deprecated alias: ctx_execute.
sandbox_file(language: string, path: string, timeout?: number)
Execute a file. File content is injected as FILE_CONTENT.
Deprecated alias: ctx_execute_file.
sandbox_batch(items: Array<{ type: "execute", language: string, code: string, timeout?: number }>)
Run multiple sandbox executions and return a single combined result.
Deprecated alias: ctx_batch_execute.
compactor_stats()
Dashboard: session events, compactions, tokens saved, compression ratio, sandbox runs, and search queries.
Deprecated alias: ctx_stats.
compactor_doctor()
Diagnostics: config file, session DB, and available runtimes (node, python3, bash).
Deprecated alias: ctx_doctor.
context_budget()
Estimate remaining context tokens and percent full. Uses Pi's live context usage when available and includes percentage auto-compaction guidance when enabled.
| Language | Binaries | Timeout | Notes |
|---|---|---|---|
| javascript | Bun/node | 30s | Default: Bun if available |
| typescript | Bun/node | 30s | Compiled via Bun transform |
| python | python3 | 30s | - |
| shell | bash | 30s | Pipelines supported |
| ruby | ruby | 30s | - |
| go | go | 30s | go run |
| rust | rustc+cargo | 30s | cargo script or rustc |
| php | php | 30s | - |
| perl | perl | 30s | - |
| r | Rscript | 30s | - |
| elixir | elixir | 30s | - |
context_budget first and compact at natural break points.session_recall for project-wide code search. It searches the conversation/session. Use CocoIndex (cocoindex_search) for indexed files when installed.sandbox for file operations. Use normal file tools for reads/writes; sandbox is for computation or quick scripts.context_budget — check pressure.session_recall("goal files decisions") — recover relevant prior context.compact(dryRun: true) — preview if context is tight./unipi:lossless-compact or compact at a clean boundary.compactor_doctor — check config, DB, runtimes.compactor_stats — verify counters and savings.session_recall(query) — find older details hidden by compaction.context_budget — decide whether another compaction is needed.compactor_stats — confirm compactions/savings are recorded.Compactor no longer owns project content indexing. Use the CocoIndex package if installed:
/unipi:cocoindex-init/unipi:cocoindex-updatecocoindex_search(query)