Repository navigation
1.3.0
What's changed
Highlights
/compact [instructions](/pi-compactin Slack) summarizes a session's older messages with pi-durable's compaction to free up context, in DMs and at a channel's top level, and reports the context size before and after. Earlier messages stay in the session history.- Codemode
store(key, value)andload(key)keep JSON values across scripts in a conversation, as in Pi. Values survive a restart, a thread started from a run sees the values as of that run, and/newclears them.
Upgrade steps
- Run
mikan migrateafter upgrading. The new step0013-session-usagerecords the spend of sessions imported from 0.5.3 in pi-durable's usage ledger; the daemon does not start while it is pending. - Existing Slack apps must add
/pi-compactto their slash commands. The example manifests include it.
Notable changes
- MCP tool results reach the model through pi-mcp's
toLlmContent, so an image embedded as a resource is passed to the model as an image. - Slack DM tasks are found, and their status and acknowledgement read, from pi-durable's task records instead of
log.jsonl, so task status keeps working after a lost or rotated log. Task threads started before 1.1.0 are no longer recognized as tasks, and tasks started from 1.1.0 to 1.2.2 list without their acknowledgement.
Fixes
- The Admin portal's usage views count each session's own spend: a thread started from the run that caused it no longer repeats its parent's spend. Totals now include failed attempts and compaction.
/newin a DM no longer waits for running background tasks or other DM threads (#158).
Verification
- CI and the Slack E2E workflow pass for each change.
- Each change was checked with an acceptance eval against the previous
main, and on a local Slack daemon. - 1.3.0-beta.1 ran on a production deployment:
mikan migratecompleted, and/pi-compactworked in a DM.
See CHANGELOG.md for details.