repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/decay/README.md

Raw

Decay

Recency-weighted structured compaction for Pi.

Load extensions/decay/index.ts through Pi's package discovery.

Set the optional compaction model in Pi settings:

{
  "decay": {
    "model": "provider/model"
  }
}

Omit model or set it to null to use the current session model.

Failed Decay runs delegate to Pi's default compactor and append a bounded decay-diagnostic custom entry containing the stage, model, sanitized reason, and timestamp. The custom entry is persisted in session JSONL but excluded from model context.

Repeated compactions provide the classifier a bounded prior-atom identity catalog so paraphrased facts can reuse exact recurrence keys without counting catalog entries as new occurrences.

Interactive progress uses a passive fixed-height widget above Pi's editor, preserving native steering submission and Escape cancellation during compaction.

The binding behavior and visual artifacts live in the Decay plan.

Markdown source
File outline
# Decay

Recency-weighted structured compaction for Pi.

Load `extensions/decay/index.ts` through Pi's package discovery.

Set the optional compaction model in Pi settings:

```json
{
  "decay": {
    "model": "provider/model"
  }
}
```

Omit `model` or set it to `null` to use the current session model.

Failed Decay runs delegate to Pi's default compactor and append a bounded `decay-diagnostic` custom entry containing the stage, model, sanitized reason, and timestamp.
The custom entry is persisted in session JSONL but excluded from model context.

Repeated compactions provide the classifier a bounded prior-atom identity catalog so paraphrased facts can reuse exact recurrence keys without counting catalog entries as new occurrences.

Interactive progress uses a passive fixed-height widget above Pi's editor, preserving native steering submission and Escape cancellation during compaction.

The binding behavior and visual artifacts live in the [Decay plan](../../docs/super/plans/2026-08-22-decay-compaction.md).