Summarize the previous session into a work_log note on startup #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session-worklog-hook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SessionStart(startup only, async),peachmem worklogdigests the previous session's transcript, summarizes it viaclaude -p(Haiku by default), and saves the result as awork_log-tagged note with a classification tag and asession:<id>idempotency key. The one-sentence description is injected back into the new session as context.[worklog]config table (model, digest size, timeout, cost ceiling) with backwards-compatible defaults for existingconfig.tomlfiles..cargo/config.toml, README docs) so the crate installs viacargo install --registry kerryhatcher peachmem.Test plan
cargo test— unit tests cover config defaults/back-compat and worklog digest reductioncargo clippycargo publish --registry kerryhatcher --dry-run --allow-dirtyAdds the registry definition, publish metadata, and release docs so the crate can be installed with `cargo install --registry kerryhatcher peachmem`. `.cargo/config.toml` is checked in because it holds no secrets and because `publish = ["kerryhatcher"]` refers to that registry name — without it cargo cannot resolve the registry at all. The token stays per-machine in ~/.cargo/credentials.toml. That same `publish` key makes a bare `cargo publish` an error rather than an attempt to push this to crates.io. The registry config is excluded from the tarball: cargo reads a package-root .cargo/config.toml when building an extracted crate, and a consumer's build should not inherit our registry. Verified with `cargo publish --dry-run --allow-dirty`, which resolved the index and reached the upload step before aborting. The verification build from the tarball also confirms sqlx::migrate!("./migrations") still resolves once packaged, since the migrations ship with the crate. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>