Skip to content

Releases

v0.3.0

Choose a tag to compare

@lox lox released this 19 Jul 12:30
e6218f0

This release adds provider-neutral reasoning and continuation controls, preserves usage per model call, and moves the OpenAI adapter onto the current SDK.

Highlights

  • Added ordered Result.CallUsage values while preserving aggregate TotalUsage, so callers can apply per-response pricing and long-context rules correctly.
  • Split ordinary input, cache reads, cache writes, and Anthropic 5-minute and 1-hour cache creation into explicit usage categories.
  • Added provider-neutral WithReasoning and WithPreviousResponseID options.
  • Upgraded the OpenAI adapter to openai-go/v3 v3.44.0, restored text and json_object response formats, and added opt-in strict function tools without rewriting schemas.
  • Normalized empty OpenAI function-call arguments to {}, so no-argument tools always receive valid JSON.
  • Preserved prompt cache keys, reasoning controls, response continuation, and cache usage across multi-step OpenAI and Anthropic runs.

Upgrade notes

  • Callers using openai.WithRequestOption must import request options from github.com/openai/openai-go/v3/option.
  • Usage.InputTokens now means ordinary uncached input when a provider reports separate cache categories. Pricing code should use the cache-read and cache-creation fields rather than treating input as an inclusive total.

Full changelog: v0.2.1...v0.3.0

v0.2.1

Choose a tag to compare

@lox lox released this 19 Jul 12:30
601305e

This correctness release keeps the loop from executing tool calls that cannot be returned to the model and preserves provider output boundaries.

Fixes

  • Stop before executing tool calls from the final permitted provider turn, while retaining the assistant response and provider metadata in the result.
  • Join adjacent OpenAI and Anthropic text blocks with newlines so downstream Markdown and structured prose keep their original boundaries.
  • Add regression coverage that distinguishes provider calls from tool executions and confirms a normal end turn still succeeds on the final step.

Full changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@lox lox released this 19 Jul 12:30
a8c5184

This release makes provider behavior explicit and recoverable, then adds an optional file-backed memory layer without expanding the core loop into a framework.

Highlights

  • Added provider-neutral finish reasons, response IDs, refusal and incomplete details, opaque provider state, and cache-aware usage.
  • Brought the Anthropic adapter to parity with current models, adaptive thinking, prompt caching, detailed usage, refusals, and pause_turn continuation.
  • Replaced the OpenAI Chat Completions adapter with the Responses API, including stateful previous_response_id continuation.
  • Added optional Markdown-backed memory with prompt bootstrap, lexical recall tools, session capture, and reviewable promotion into durable memory.
  • Hardened tool recovery so cancellation, hook failures, partial approvals, and unknown actions leave resumable transcripts and explicit partial results.

Upgrade notes

The OpenAI adapter now calls /responses instead of /chat/completions. Existing agent-harness imports remain unchanged, but custom endpoints and request inspection need to expect Responses API payloads.

Full changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@lox lox released this 02 Mar 10:35
c06c529

The first public release of agent-harness: a small Go library for running bounded, provider-neutral agent tool loops.

Highlights

  • Added the core Run loop with bounded steps, tool execution, progressive tool disclosure, lifecycle events, and streaming deltas.
  • Added explicit pause and resume support through pending tool calls and thread resolution.
  • Added OpenAI and Anthropic provider adapters with streaming support and network-free adapter tests.
  • Added the cancellable runner helper and the Claw REPL example.
  • Added CI coverage for formatting, tests, race tests, and vet.

Full changelog: https://github.com/lox/agent-harness/commits/v0.1.0