Compactor — Full Reference
SkillDev toolsFull compactor reference — tool parameters, anti-patterns, sandbox languages, context budget, workflows.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Compactor — Full Reference skill
What this skill tells your AI
The instructions your AI receives, as published by neuron-mr-white/unipi in packages/compactor/skills/compactor-detail/SKILL.md and read by ahel’s review.
Tool Parameter Reference
compact
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
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
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
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
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
compactor_stats()
Dashboard: session events, compactions, tokens saved, compression ratio, sandbox runs, and search queries.
Deprecated alias: ctx_stats.
compactor_doctor
compactor_doctor()
Diagnostics: config file, session DB, and available runtimes (node, python3, bash).
Deprecated alias: ctx_doctor.
context_budget
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.
Sandbox Language Reference
| 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 | - |
Anti-Patterns
- Don't compact in a tight loop. Use
context_budgetfirst and compact at natural break points. - Don't use
session_recallfor project-wide code search. It searches the conversation/session only — useread/bash(rg) for files. - Don't use
sandboxfor file operations. Use normal file tools for reads/writes; sandbox is for computation or quick scripts. - Don't use empty or vague recall queries. Search for specific filenames, issue numbers, commands, or decisions.
- Don't compact mid-thought if avoidable. Finish the current step, then compact.
Workflow Patterns
Before Complex Work
context_budget— check pressure.session_recall("goal files decisions")— recover relevant prior context.compact(dryRun: true)— preview if context is tight./unipi:lossless-compactorcompactat a clean boundary.
Diagnose Compactor Health
compactor_doctor— check config, DB, runtimes.- Fix reported issues.
compactor_stats— verify counters and savings.
Long Session Recovery
session_recall(query)— find older details hidden by compaction.context_budget— decide whether another compaction is needed.compactor_stats— confirm compactions/savings are recorded.
Project Search
Compactor does not own project content indexing. For code search use bash with rg.
bashwithrgfor code search
Signals
- GitHub stars
- 64
- Forks
- 15
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
compactor-detail- Source
- github.com/neuron-mr-white/unipi