repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/tldr/README.md

Raw

tldr

TLDR live summary

Live TLDR widget above Pi editor.

Install / load

Loaded through root pi-ext package. See root README.

Commands / tools / settings

Commands:

Tools: none.

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 Pi editor.

## Install / load

Loaded through 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.

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 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/session changes.
- Keeps recent generated checkpoints as compact context.
- Uses upstream-style prompt constraints:
  one sentence, under 80 chars, no tool names.
- Uses in-progress vs completed tense instructions.
- Disables prompt caching for TLDR requests.
- Does not scan or redact secrets.