Repository navigation
0.11.0
Harnessed 0.11.0 adds opt-in session persistence, atomic application-owned message projections, trace content filtering and explicit kit resolution.
Highlights
- Configure
Agent(store=...)and reopen conversations withagent.session(id=...). The bundledJsonSessionStoreneeds no extra; application repositories can implementSessionStorefromharnessed.sessions. - Persist
SessionCommit.checkpointand project its orderedchangesin the same revision-checked transaction. Background batching retains all new durable events until acknowledgement, including across compaction. Live token deltas remain transient. - Recover deliberately paused sessions across closure and process restarts. Reopening repairs interrupted work without automatically repeating external tool actions. Use
restore_outputsbefore resuming pending structured work. - Mask registered literal secrets with
ContentCapture.redacted(*secrets)and apply synchronouscontent_filter=transformations to captured OpenTelemetry content. Content capture and exception text remain opt-in. - Inspect or flatten reusable kits with
Kit.resolve()andKitPromptPolicy.INCLUDE/OMIT, retaining composition provenance inResolvedKit.
Compatibility and upgrade
Existing 0.10.0 ephemeral agents and explicit SessionState continuation need no API or storage migration. Conversation snapshots remain format 1 and standalone audit envelopes remain version 3. New execution checkpoints and JSON-store envelopes use format 2.
Applications testing unreleased persistence prototypes from main must replace string payloads or checkpoint-only saves with SessionCommit and load via StoredSession.checkpoint. Back up prototype data and start a format 2 store; format 1 execution checkpoints and former JSONL archives have no automatic migration. These prototypes were not part of 0.10.0.
Store revision checks prevent lost updates; applications still coordinate execution per conversation and own their stores and pools. Trace redaction masks registered literal values; application policies handle other sensitive content.
See the upgrade guide, sessions, tracing and full changelog.
Offline examples: examples.38_session_store, examples.39_typed_session_store and examples.40_atomic_session_store.
Harnessed remains alpha software. Python 3.12–3.14 are supported on Linux, Windows and macOS.