omp packages

@lune_99/pi-recap0.2.0

Independent session recap for Pi using Lune Core settings and panel infrastructure

lune_99 Published 5 days ago MIT ~35 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Lune Recap

npm version npm downloads license

Lune Recap preview

A short reminder for returning to a Pi session: the goal, the progress and what needs attention next.

Lune Recap brings the thread back into focus after you step away. Run /recap for a reminder near the editor, or enable automatic recaps to have one ready when you return.

Quick start

Install from npm:

pi install npm:@lune_99/pi-recap

Then start Pi normally:

pi

After the current task and pending prompts finish, run:

/recap

What it does

  • Gets to the point. A recap covers the active goal, concrete progress, the current blocker and at most one supported next step, following your latest correction and language.
  • Stays close to the editor. A dim moon-marked widget wraps to the terminal width and clears when you start the next task.
  • Uses the context that matters. Recaps draw on the retained compaction summary and recent activity, leaving large tool bodies, thinking blocks and images out of the request.
  • Lets you choose the model. Follow the session model or select a dedicated recap model and thinking level.
  • Reuses a matching recap. A saved recap can reappear after reload or branch restoration without another model request.
  • Follows the active session. New input, navigation and changes to the recap model, thinking level, retries or automatic mode invalidate pending generation, so a late answer cannot become a reminder for a different task.

Automatic recap

Lune Recap settings

Open /lune-core-settings recap and turn on Automatic recap. It defaults to off; /recap works independently of that switch.

Automatic mode uses terminal focus reports. After a substantial completed round (at least five tool results or sixty seconds from prompt to final reply), the delay starts when the agent settles. When the delay elapses and the terminal reports that you are away, Recap can prepare a reminder to show when you return. The agent must be idle and pending prompts must be closed.

Use /recap in terminals that do not report focus. A recap uses the selected model as a separate request; each attempt, including retries, can incur its normal provider charges.

Recap settings

The Recap tab controls automatic mode, its delay, the recap model, thinking level and Maximum retries. The default model follows the session, and recap thinking defaults to off.

Auto recap delay (seconds) defaults to 180 seconds. Set it to 0 to allow automatic generation as soon as the focus and eligibility conditions are met.

Maximum retries defaults to 3: the initial request plus up to three retries, for at most four attempts. Set it to 0 to disable retries. Both manual and automatic recaps use Pi's retry policy for temporary provider errors only. Non-retryable errors, incomplete responses (including toolUse and length), tool calls and empty text end the operation without another attempt.

Intermediate failures stay silent. A successful retry shows the recap normally; a final failure produces one warning with the actual attempt count. Cancellation produces no warning. Automatic mode does not repeat a failed snapshot, including after reload; run /recap to start a fresh attempt sequence. Final failure records retain bounded protocol metadata, attempt counts and a Recap-owned error summary, not raw provider errors or response content.

Ctrl+G switches global/project scope; Ctrl+R removes the selected override. Changing Maximum retries does not regenerate a matching saved recap. Recaps are limited to 400 characters and wrap near the editor.

Development

npm install
npm run build
npm test
npm run typecheck
npm run tui:demo
npm run tui:smoke
npm run docs:images # regenerate docs/*.svg + docs/*.png (needs rsvg-convert)

License

MIT