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, which is every 0.3 line. Which release carries ask(origin=) is settled by RELEASING.md; pyproject.toml still says zettcode-plugin-api>=0.3,<0.4, and raising that floor belongs to the release commit that sets the number.

Metadata

Release files for zettcode-recap 0.2.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.2.0
File Size Uploaded Provenance Actions
zettcode_recap-0.2.0.tar.gz 12.8 kB Without provenance Details for zettcode_recap-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.7 kB

Release files / zettcode_recap-0.2.0.tar.gz

Download URL zettcode_recap-0.2.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a86f2810daa2b5793429f26b6652e49448ccde65204c6517e789948f6369987
BLAKE2b-256 checksum
How to use checksums
47fbce456958dbe5e24ff17c917a9d9ae9b59a7d584b56f9d022e41246451112
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.2.0-py3-none-any.whl

Download URL zettcode_recap-0.2.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
204f2b679474e15a88c20d441d809b57110007e1f3d9a2c334c647ef25624b8b
BLAKE2b-256 checksum
How to use checksums
99ffc402f2e0adb609fd29f5c8a6cda7e409d1d082adace1eb9b8a937a715db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.2.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