← Catalog

@fractaal/pi-fractal-compact

Ben/Fractal high-fidelity compaction extension for Pi.

Extension

Install

Install with PiG

pig install npm:@fractaal/pi-fractal-compact

Install with Pi

pi install npm:@fractaal/pi-fractal-compact
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.

@fractaal/pi-fractal-compact

Canonical package for Ben/Fractal's high-fidelity compaction hook.

It replaces stock compaction with a methodology-preserving summary prompt and also emits ALR-compatible compaction status events when an event bus is present.

When Pi supplies session_before_compact.summarizeNativeContext, the extension uses that checkpoint-aware callback with its existing Fractal prompt instead of making a tail-only provider request. Pi owns checkpoint replay, cancellation, and the successful plaintext checkpoint transition. Ordinary compaction keeps using the registered provider when no native callback is supplied.