Autocompactor — Development skill for Claude Code
Smarter, earlier, instruction-tailored compaction for Claude Code: boundary-aware timing, phase-aware summaries, artifact extraction, local telemetry, offline backtester.
How to install Autocompactor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rasatpetabit/autocompactor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Autocompactor does
Smarter, earlier, instruction-tailored compaction for Claude Code: boundary-aware timing, phase-aware summaries, artifact extraction, local telemetry, offline backtester.
Alternatives in Development
- Claudeception — A Claude Code skill for autonomous skill extraction and continuous learning 2.2k ★
- Setup Context — Set up your Skill Memory — a pm-context.md every skill reads so outputs come back tailored to you 1.3k ★
- ExportProfile — Generate a complete personal profile summary of everything you know about me from our conversations 250 ★
README
autocompactor
A **Pi context compactor**: smarter, earlier, cheaper compaction for the Pi coding agent. The Pi extension shells out to a harness-agnostic Python core that watches occupancy and task boundaries, decides when a compaction is worthwhile, and tailors the instructions the summarizer is given.
agent_end ─────────→ pi_bridge evaluate (watches occupancy + boundaries,
│ advises or actuates ctx.compact())
▼
session_before_compact → pi_bridge prepare (backs up transcript, extracts
│ artifacts, restates founding goal)
▼
session_compact ────→ pi_bridge reinject (one-shot budgeted artifact digest
│ delivered as the next turn)
│
transcript_lib.py (shared signal registry, phase detection, instruction builder)
stats.py (local telemetry -> events.jsonl)
nightly_eval.py (cron self-evaluation: tests, telemetry health, dated reports)
Why this shape
Compaction cost scales with the context summarized, and every token of bloat is re-paid as input on every subsequent turn. Compacting at a task boundary, at moderate occupancy, is dramatically cheaper than an autocompact firing near the ceiling — and the summary is better, because the instructions are generated from what actually happened in the session (files edited, recent errors, last task statement). Pi is the first harness where we hold an actuator: the bridge can either advise (`autocompactor.advice`) or call `ctx.compact()` itself (the shipped default — see MODE below).
Install
Clone anywhere and run the installer — the extension is copied into `~/.pi/agent/extensions/` with the bridge path baked in (a symlink can't carry the path), the Pi package version observed at install time is pinned, and nothing else under `~/.pi` is touched:
git clone autocompactor && cd aut
Related Skills
Tune For Opus5
You are a senior engineer tuning this project's Claude Code instruction files so that Claude Opus 5 follows th
Blader
A Claude Code skill for autonomous skill extraction and continuous learning. Have Claude Code get smarter as i
Dsh Fast
Read-only performance diagnostics for DeepSeek Harness: session load/restore timing, spill-hit counts, compact
Capture Postmortem
Reconstruct a strict, structured timing/diagnostic report from a /capture run THIS SAME conversation already d
Meeting Ingest
Ingest meeting transcripts and summaries from your connected meeting sources, then chain into digest (extracti
Nse Trader Skills
13 Claude skills for NSE (India) trading and long-term investing: Nifty 500 scanner, fundamentals scorecard, m
Related Agents
Perf Optimizer
Optimizes ported code for 68k hardware performance. Knows instruction timing, CHIP/FAST RAM characteristics, c
Context Engine
Context window management — tracks tool call count, auto-detects when context fills up, triggers state save +
Design Motion
Motion / Action Designer on the Atlas bench. Combines physical feel, interruption continuity, distance-aware t