Skip to main content

zettcode-recap

A ZettCode plugin. It adds /recap, and writes one on its own when you step away.

A recap is one sentence about where the session is: the goal, what is done, and the next thing to do. It is for a reader coming back to a long conversation — the model's own context is not touched, and neither the question nor the answer is stored as part of the conversation.

  • /recap writes one now, whatever the clock says. It needs a request to have finished. While the model answers, the pinned row says Recap … writing, and Ctrl-C or Escape stops it; the answer follows as a quoted message.
  • On its own, once no new turn has started for long enough and the conversation is worth summarising: at least 3 messages you typed, and at least 2 since the last recap. The delay is min(after_seconds, 0.8 × cache_ttl_seconds), which is 180 seconds by default (the provider's prompt cache is likely cold by then, so waiting longer only costs more). Any new turn cancels a recap that is waiting or being written: it would be news about a conversation that has moved on. It is the reader's own activity that is measured, not the window — somebody reading the last answer is still there, and somebody who switched to another application after a turn is as idle as one reading.

The summary is requested with cache="read": the conversation's warm prompt-cache prefix is reused, and the recap's own words are not written into the cache. It runs with no tools, a 60-second deadline, and a prompt that asks for under 40 words and no markdown.

Settings

Each setting has a default and can be overridden in config.toml; your value wins:

[plugins.recap]
after_seconds = 180       # how long no new turn may start
cache_ttl_seconds = 300   # the provider's prompt-cache lifetime; the delay is 0.8 of it
min_messages = 3          # messages you typed before a recap is worth writing
min_since_recap = 2       # and messages since the last one

A value of the wrong type is refused when the plugin loads, naming the table and the key.

The automatic recap needs nothing of the terminal but turns; the focus hook the shell offers is not used. A recap waiting when the program exits ends with it.

Install

From a checkout of this repository:

uv tool install --force --with ./packages/zettcode-recap zettcode

or, with pip in the environment ZettCode runs in:

pip install ./packages/zettcode-recap

ZettCode carries this plugin as an extra, so one command installs both into the same environment:

pip install "zettcode[recap]"

or, with uv tool:

uv tool install "zettcode[recap]"

pip install "zettcode[all]" adds it beside every other plugin this repository publishes.

It needs the ZettCode release that added ask(origin=) — the parameter that keeps the recap's own question out of a resumed transcript — and one early enough to have the terminal group's turn hooks. This checkout targets the 0.4 plugin API (zettcode-plugin-api>=0.4,<0.5); raising that floor belongs to the release commit that sets the number.

Metadata

Release files for zettcode-recap 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zettcode-recap 0.5.0
File Size Uploaded Provenance Actions
zettcode_recap-0.5.0.tar.gz 12.7 kB Without provenance Details for zettcode_recap-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zettcode-recap 0.5.0
File Interpreter ABI Platform Actions
zettcode_recap-0.5.0-py3-none-any.whl Python 3 none any Details for zettcode_recap-0.5.0-py3-none-any.whl

Total release size: 21.6 kB

Release files / zettcode_recap-0.5.0.tar.gz

Download URL zettcode_recap-0.5.0.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2a0687965fc7c1329a985802f614787b091da46210eb57293a0acb983cf092ea
BLAKE2b-256 checksum
How to use checksums
6d5839cc7f4c4a94403f32a482e2e55b88e9354d40efb3bba7fb8f5d81bb3b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / zettcode_recap-0.5.0-py3-none-any.whl

Download URL zettcode_recap-0.5.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7046c8f83be6e132cb600cdc7f8764a19b6a42265dddb06af28bfcac57f4da88
BLAKE2b-256 checksum
How to use checksums
d287235199ae52a7590725b85aa596cf4a4b38b3181c638d01693cc7c45e568b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for zettcode-recap 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page