# Harness Python v1.40.0

Released 2026-05-14
Release: https://github.com/strands-agents/harness-sdk/releases/tag/python/v1.40.0 · Package: https://pypi.org/project/strands-agents/1.40.0/

## Features
- add proactive context compression to conversation managers [context] (https://github.com/strands-agents/sdk-python/pull/2239)
- cache AccessDenied error for count tokens (https://github.com/strands-agents/sdk-python/pull/2279)
- add official Discord link (https://github.com/strands-agents/sdk-python/pull/2285)

## Fixes
- update return type of latencyMs metric for ollama model provider [model] (https://github.com/strands-agents/sdk-python/pull/2236)
- set use\_native\_token\_count default to false (https://github.com/strands-agents/sdk-python/pull/2284)
- swarm bug "Failed to detach context" with opentelemetry [multiagent] (https://github.com/strands-agents/sdk-python/pull/2281)

## First-time contributors
- @paliwalvimal (#2236)
