Skip to content

Releases

Harnessed 0.29.1

Choose a tag to compare

@mathisarends mathisarends released this 25 Nov 13:12
7f78246

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.

Changelog · Migration guide

Harnessed 0.29.0

Choose a tag to compare

@mathisarends mathisarends released this 25 Nov 11:07
25aad8f

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 SessionState from 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.

Full changelog

Harnessed 0.28.0

Choose a tag to compare

@mathisarends mathisarends released this 24 Nov 17:40
aed75cc

Added

  • Agent(plugins=...) accepts nested lists and tuples at any depth and expands them in the supplied order. Pass compositions such as Agent(plugins=[file_tools(), tracing]) directly. agent.plugins and agent.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

Choose a tag to compare

@mathisarends mathisarends released this 23 Nov 11:36
ded0ee4

Fixed

  • A session starts processing a submitted input after its commit succeeds,
    even if the caller cancels submit() before receiving a handle.
  • Sessions reject the message ID system and the prefix mount-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

Choose a tag to compare

@mathisarends mathisarends released this 22 Nov 22:55

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 SessionLog or SessionContext. (#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.

Changelog · Compare v0.27.0 to v0.27.1

Harnessed 0.27.0

Choose a tag to compare

@mathisarends mathisarends released this 22 Nov 22:06
e0548c7

Highlights

  • Store conversation state and execution separately. Use SessionCommit.state_changed to decide when to write the state, and SessionCheckpoint.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 through self.scope and import common declarations from harnessed.
  • 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.

Upgrade checklist · Compare v0.26.0 to v0.27.0

Harnessed 0.26.0

Choose a tag to compare

@mathisarends mathisarends released this 22 Nov 11:21
af78767

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() and Param.

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.

Upgrade checklist · Compare v0.25.0 to v0.26.0

Harnessed 0.25.0

Choose a tag to compare

@mathisarends mathisarends released this 21 Nov 12:33

Highlights

  • Review pending approvals with Approvals(reviewer=...). AutoReview gives 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.

Upgrade checklist · Compare v0.24.0 to v0.25.0

Harnessed 0.24.0

Choose a tag to compare

@mathisarends mathisarends released this 21 Nov 11:13

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 SessionOpened and committed events with typed plugin hooks. Request and step hooks share TurnProgress, and plugins can measure context occupancy with ContextMeter.
  • 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

Choose a tag to compare

@mathisarends mathisarends released this 20 Nov 12:00

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 PrepareCompaction from harnessed.hooks to 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_keys identifies the notes that were
    committed. See plugin handover notes.

Documentation

  • The examples form a three-stage learning path in examples.getting_started,
    examples.applications and examples.plugin_authoring.
    Run them as modules, for example uv run python -m examples.getting_started.01_tool_agent.
    The previous 05_tools_and_injection example is split into
    plugin_authoring.02_tool_context and plugin_authoring.08_failure_nudge.
    Remembered approvals moved to applications.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 empty accepted_note_keys tuple. Upgrade readers before writers in a staged
    rollout. 0.22.0 rejects the new field in audit events and in checkpoints
    that contain a compaction event in an open turn.

Full changelog