
Security News
OpenCode User Hit with Hostile Backlash After Reporting Free AI Loophole
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.
@capyup/pi-auto-compact
Advanced tools
Pre-turn auto-compaction extension for pi. Proactively manages context window usage to prevent overflow errors.
Pi's default auto-compaction only checks after agent_end. This means context can overflow during long multi-tool turns before compaction triggers.
This extension checks tokens at three points:
turn_start)turn_end)context event as a last resortIt also handles the session resume case: when an existing session is reopened above the threshold, compaction kicks off as soon as the session starts.
ctx.compact() aborts the running agent internally, so without a nudge the
session would sit idle once the summary is written. After every
auto-triggered compaction this extension sends a short English follow-up
user message to make pi resume the in-flight task. The exact wording depends
on which check fired (pre-turn, mid-turn, emergency, or session-resume).
The follow-up is suppressed in two cases:
/compact manually — the callback path used here only fires
for compactions this extension started, so manual compaction is never
touched.| Strategy | Description |
|---|---|
keep-recent | Keep only the most recent messages (default) |
keep-bookends | Keep oldest + newest messages, compact the middle |
summarize-all | Remove everything except the last user message |
Use /auto-compact to open the interactive settings menu:
/auto-compact # Open settings menu
/auto-compact status # Show current status
/auto-compact reset # Reset to defaults
| Setting | Default | Options |
|---|---|---|
| Auto-compact threshold | 90% | 80%, 85%, 90%, 95% |
| Keep recent budget | 15% | 5%, 10%, 15%, 20% |
| Strategy | keep-recent | keep-recent, keep-bookends, summarize-all |
| Debug logging | off | on/off |
For a 200K context window model:
As a pi package:
pi install npm:@capyup/pi-auto-compact
Or via git:
pi install git:github.com/capyup/pi-auto-compact
Or run directly:
pi -e ./extensions/auto-compact.ts
| Aspect | Pi Default | This Extension |
|---|---|---|
| Check timing | After agent_end only | Before requests + after tools |
| Overflow protection | None | Emergency truncation |
| Mid-turn handling | None | Checks after each tool batch |
| Auto-continue | No | Yes — sends an English follow-up nudge after auto-compaction |
MIT
FAQs
Pre-turn auto-compaction for pi
The npm package @capyup/pi-auto-compact receives a total of 0 weekly downloads. As such, @capyup/pi-auto-compact popularity was classified as not popular.
We found that @capyup/pi-auto-compact demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.