repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/tldr/README.md

Raw

tldr

TLDR live summary

Live TLDR widget above the Pi editor.

Install / load

This extension is loaded through the root pi-ext package. See root README.

Commands / tools / settings

Commands:

Tools: none.

Hooks: observes prompt, assistant, tool, result, and final-response activity.

Settings:

{
  "tldr": {
    "model": "provider/model"
  }
}

If tldr.model is missing, invalid, unavailable, or unauthenticated, tldr uses the current Pi model. If that has no API key, the widget shows tldr unavailable.

Behavior

Markdown source
File outline
# tldr

<!-- demo:tldr:start -->

![TLDR live summary](assets/tldr.gif)

<!-- demo:tldr:end -->

Live TLDR widget above the Pi editor.

## Install / load

This extension is loaded through the root pi-ext package.
See [root README](../../README.md).

## Commands / tools / settings

Commands:

- `/tldr` — toggle widget.
- `/tldr on` — enable widget.
- `/tldr off` — disable widget and clear display.
- `/tldr status` — show enabled state and configured model.
- `/tldr help` — show command syntax.

Tools:
none.

Hooks:
observes prompt, assistant, tool, result, and final-response activity.

Settings:

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

If `tldr.model` is missing, invalid, unavailable, or unauthenticated, tldr uses
the current Pi model. If that has no API key, the widget shows
`tldr unavailable`.

## Behavior

- Records bounded prompt, assistant, tool, result, and final-response activity.
- Sends bounded snippets to the TLDR model.
- Uses one in-flight TLDR request at a time.
- Coalesces noisy normal activity before requesting a checkpoint.
- Drops stale model results after new runs or session changes.
- Keeps recent generated checkpoints as compact context.
- Requests one plain-text sentence under 80 characters.
- Avoids tool names, file names, markdown, JSON, code, bullets, and quotes.
- Uses in-progress tense while work is active and completed tense for final
  activity.
- Disables prompt caching for TLDR requests.
- Sanitizes terminal/control characters and caps displayed TLDR text.
- Does not scan or redact secrets.