Repository navigation
Releases
Harnessed 0.29.1
Session recovery
Harnessed 0.29.1 reads complete format 5 checkpoints written by 0.28.0. Decode a checkpoint with SessionRecovery.from_json() or SessionRecovery.from_dict(). A paused turn can resume with its recorded tool results. New recovery documents keep format 6.
Upgrade
Existing 0.29.0 sessions can reopen in place. If you are upgrading directly from 0.28.0 and stored conversation state and execution separately, export a complete checkpoint with 0.28.0 first. The 0.29.0 API changes still apply.
Harnessed 0.29.0
Before upgrading from 0.28.0
Export idle conversations as SessionState while running 0.28.0. The export preserves conversation state and omits paused turns, queued inputs, and pending approvals. Resolve those on 0.28.0 before exporting. Implement SessionStore, replace on_commit= with store=, and import the exported state into the new store. Upgrade steps
SystemPrompt(...) now appends plugin instructions. Replace SystemPrompt.from_plugins(...) with SystemPrompt(...) and use plugin.without_instructions() for any plugin whose instructions should be omitted.
Changes
- Open and resume persistent sessions by ID with an application-owned
SessionStore. The store receives a snapshot at rest points and new journal entries between them. - Build a
SessionStatefrom existing messages and referenced image assets. Long imported histories can be compacted in batches before the first model call. - Pass a decorated tool method to
session.tools.explain()to inspect the corresponding tool, including the specific recipe when given a bound method.
Harnessed 0.28.0
Added
Agent(plugins=...)accepts nested lists and tuples at any depth and expands them in the supplied order. Pass compositions such asAgent(plugins=[file_tools(), tracing])directly.agent.pluginsandagent.describe()expose the individual plugins, and slot and dependency checks apply to each plugin. (#189)
Upgrade from 0.27.2
Existing flat plugin lists, conversation snapshots, checkpoints, split execution documents and audit envelopes are compatible with 0.28.0. Nested plugin groups are available after upgrading.
Harnessed 0.27.2
Fixed
- A session starts processing a submitted input after its commit succeeds,
even if the caller cancelssubmit()before receiving a handle. - Sessions reject the message ID
systemand the prefixmount-context:
at admission. These IDs are reserved for agent configuration.
Both fixes are in #185.
Upgrade from 0.27.1
Update to 0.27.2. Existing conversation snapshots, checkpoints, split
execution documents, and audit envelopes use the same formats. If your
application assigns message IDs, avoid system and the mount-context: prefix.
Harnessed 0.27.1
Fixed
- Approval callers now receive persistence errors when an approval decision cannot be committed. (#182)
- Plugins observing a declared service start once when its provider depends on session services such as
SessionLogorSessionContext. (#183) - Idle commits that only change session controls or the inbox reuse the conversation snapshot. (#184)
Upgrade from 0.27.0
Update to 0.27.1. Existing conversation snapshots, full checkpoints, split execution documents, and audit envelopes can be read directly.
Harnessed 0.27.0
Highlights
- Store conversation state and execution separately. Use
SessionCommit.state_changedto decide when to write the state, andSessionCheckpoint.from_parts()to reassemble a checkpoint from matching documents. - Read a session's typed plugin activation with
session.plugin(). Plugin authors can access the activation scope throughself.scopeand import common declarations fromharnessed. - Keep approvals pending for turns without an owning stream with
session.approvals.responder(), including steered turns and background subagent notifications.
Upgrade from 0.26.0
Import Service and FinalStepPolicy from harnessed and remove assignments that cache a plugin's setup scope in self.scope. Declared service providers can now start before their observers. Existing conversation snapshots, full checkpoints, and standalone audit envelopes retain formats 4, 5, and 9. The new split execution document uses format 6.
Harnessed 0.26.0
Highlights
- Persist sessions in your application with the async
agent.session(on_commit=...)handler. Checkpoints carry their session IDs, and both checkpoints and snapshots can be stored as JSON documents. - Validate built-in messages, model values, and events with strict Pydantic dataclasses.
- Customize an individual plugin tool’s description and parameter defaults, descriptions, and numeric bounds with
Plugin.with_tool()andParam.
Upgrade from 0.25.0
Export idle conversations as format 4 snapshots with 0.25.0 before replacing Agent(store=...). Import each snapshot with its original session ID and save the new checkpoint through your application. Execution checkpoints now use format 5 and standalone audit envelopes use version 9. Update typed constructors to pass enum members and tuples, and switch event consumers to the new codec.
Harnessed 0.25.0
Highlights
- Review pending approvals with
Approvals(reviewer=...).AutoReviewgives a dedicated model session the exact pending call and a bounded conversation transcript. It can answer for that call or defer to the configured responder. - Exclude individual tools from a plugin recipe with
without_tools(...).session.tools.explain(...)can report excluded names.
Upgrade from 0.24.0
Rename affected timeout options and tool arguments to their explicit second-based names. For example, AgentLoop(tool_timeout=...) becomes AgentLoop(tool_timeout_seconds=...). Update custom sandbox worker transports to protocol 2 and account for the new approval sources in event consumers.
Harnessed 0.24.0
Highlights
- Persist typed plugin data with
SessionValue. Defaults and writes are validated against the stored JSON representation, and mutable defaults are isolated between sessions. - Observe session opening with
SessionOpenedand committed events with typed plugin hooks. Request and step hooks shareTurnProgress, and plugins can measure context occupancy withContextMeter. - Select tools by action enum or decorated tool method across approvals, hooks, and session tools.
- OpenTelemetry traces redact external image URLs that contain registered secrets.
Upgrade from 0.23.0
Conversation snapshots now use format 4, and standalone audit envelopes use version 8. To carry over conversation history, finish open turns and export snapshots with 0.23.0, then apply the documented conversion and import them into a fresh store. The upgrade checklist also covers changes to hooks, tool selectors, and module paths.
Upgrade checklist · Full changelog · Compare v0.23.0 to v0.24.0
Harnessed 0.23.0
Added
- Use
Plugin.with_instructions(...)to replace a plugin's prompt block or
Plugin.without_instructions()to omit it. Both methods return a new recipe of
the same plugin type and apply when composing an agent or mounting a plugin at
runtime. - Use
PrepareCompactionfromharnessed.hooksto propose plugin handover
notes for automatic, recovery or manual compaction. Accepted notes are
prepended to the saved summary within the token budget.
CompactionAppliedEvent.accepted_note_keysidentifies the notes that were
committed. See plugin handover notes.
Documentation
- The examples form a three-stage learning path in
examples.getting_started,
examples.applicationsandexamples.plugin_authoring.
Run them as modules, for exampleuv run python -m examples.getting_started.01_tool_agent.
The previous05_tools_and_injectionexample is split into
plugin_authoring.02_tool_contextandplugin_authoring.08_failure_nudge.
Remembered approvals moved toapplications.01_approvals.
Upgrade from 0.22.0
- Update commands that run examples to use their new module paths.
- Existing persisted sessions need no migration. Conversation snapshots and
JSON store envelopes remain at version 3, execution checkpoints at 4,
and standalone audit envelopes at 7. Older compaction events decode with
an emptyaccepted_note_keystuple. Upgrade readers before writers in a staged
rollout.0.22.0rejects the new field in audit events and in checkpoints
that contain a compaction event in an open turn.