# Changelog · Agent Dev Labs

> What changed in each release of the Agent Dev Labs JavaScript and Python SDKs.

Source: https://www.agentdevlabs.com/changelog

# Changelog

[JavaScript SDK](#javascript-sdk)[Python SDK](#python-sdk)

## JavaScript SDK

### 0.3.0

- `init()` records every OpenAI and Anthropic call in the process, for apps that build their provider clients through LangChain, LangGraph, Deep Agents, the Vercel AI SDK or Mastra. Call it once, first in the entry file, before any import that builds a client. Under it each attempt is a step, and a resend within a minute of an error status continues its trace. Every strict-replay failure answers `400` (`adl` alone keeps `424`), so a library around the provider does not retry it.
- A call matches the earliest unused step with its cache key in the trace's followed variation, then in the newest other variation that has one, and only then the earliest unused step as a drift. Calls that arrive in another order than recorded, and the same body twice, each get their own step.
- `@anthropic-ai/sdk` 0.50.1 and later is supported, not only 1.x: the peer range is `>=0.50.1 <2`, and the Anthropic tests run against 0.50.1 and 0.137.0. A recording made on 0.x replays on 1.x; after upgrading, record again any call that sends `temperature`, `top_p` or `top_k`, which the 1.x API refuses live.
- A capture the server refuses is no longer reported as stored alone: `onCall` gets a `not-stored` report after `captured`, with the reason (a token that can't capture, a plan limit, a production environment, a capture over the size limit, a rate limit, an unreachable server, or a full upload queue), and VERBOSE prints `[agentdevlabs] not-stored: <reason>`. The call's event is marked in the console's Calls page.
- A strict-replay miss names what set replay when the server says: the console or devkit toggle, the environment's default, or a `replay-only` token, each with the one change that records it.
- A client's first rules fetch that fails or answers something unusable is tried once more, so a slow or briefly failing server no longer loses a run's first call. A call that still has no rules reaches the provider as before and now also sends an event that `agentdevlabs logs` and the Calls page show with the reason (`not stored: the project rules could not be fetched`; in strict replay, an `error` event), unless the server's mode for the token is `off`.
- With `AGENT_DEV_LABS_VERBOSE` on, a strict-replay miss prints its `replay mode:` warning before its `failed:` line on every path, as the Python SDK does.
- A capture records the service tier, speed and data residency the provider reported (`service_tier`, `speed`, `inference_geo`), so a flex, fast or US call is priced at its own rate.

### 0.2.2

- The README's CLI table lists `status`.
- `npx agentdevlabs skill install` installs a skill that teaches coding agents the SDK and the CLI, in your home folder.

### 0.2.1

- A capture records the cache tokens of the call (cached reads and cache writes, for OpenAI and Anthropic, streamed or not), so its cost counts them at their own prices. A capture from an earlier version has no cache counts, so its cost shows as unknown. `input_tokens` now counts every input token, so for Anthropic it is larger than before for a call that used the cache.
- `logs` marks the cost of a call that was aborted or failed as partial, since the provider billed more than the counts recorded before it stopped.
- A stream a provider ends with an error event (Anthropic's `overloaded_error`, an OpenAI error chunk) is recorded as an error, not as aborted. Replay raises that error after the recorded chunks. An OpenAI Responses error event stays `complete`: the client raises on it, on replay as live.
- Reading past a recorded abort on replay raises `The recorded stream was aborted`, no longer an error named `AbortError`, which the provider clients took for your own abort. A replayed stream also follows your abort signal and pulls a chunk only when you read.
- A pinned step that recorded a stream ending in an error no longer answers a call that is not streamed.
- A `trace` block's name is sent with each capture and shown as the trace's label in the console, cut to 100 characters. A trace without a name shows its first prompt. Use a fixed name such as `checkout`, never user data: the name is stored as plain text and shown to your workspace.

### 0.2.0

- `AGENT_DEV_LABS_VERBOSE` prints one line per call, `[agentdevlabs] captured`, `replayed`, `passed-through` or `failed`, with the reason for the last two, to standard error. It takes the same words as `AGENT_DEV_LABS_DISABLED`; any other value leaves it off, with one warning.
- The hosted API default is now `https://api.agentdevlabs.com`, because `agentdevlabs.dev` was never ours. An earlier version keeps sending to `.dev` unless `AGENT_DEV_LABS_API_URL` is set.
- `wrap` is now `adl`, and `withTrace` is now `trace`, in both SDKs. The old names are removed with no aliases: replace `wrap(client)` with `adl(client)` and `withTrace(...)` with `trace(...)`.
- The README links to the changelog.
- While the rules can't be fetched or the token is refused, an attempt the provider SDK retries, or one that raises, no longer gets an `onCall` report, as on every other path.

### 0.1.0

First release.

- `agentdevlabs status` shows this environment's mode toggle and pinned trace.
- `mode` and `status` no longer name the stored login's environment when `AGENT_DEV_LABS_TOKEN` is in use.
- `wrap(client, { onCall })` reports each call's mode, where the mode came from, the pin, and whether it was replayed, captured, passed through or failed. A strict-replay miss now says it did not go to the provider and how to record it.
- A rejected token (401) now gets its own line, naming the Access tokens page, instead of "server could not be reached"; the SDK warns once before the token expires.
- The pinned-trace line says to unpin on the Traces page.
- `agentdevlabs mode` tells every service token that only a personal token sets the mode, and tells a short-scope personal token its scope can't set it. A 5xx from the API reads "The API failed (<status>). Try again later." instead of blaming the request.
- When the project rules can't be fetched, a call the server holds to replay now fails with a 424 instead of reaching the provider.
- A mistyped `AGENT_DEV_LABS_MODE` is read in any case, and an unknown value runs as `auto` with one warning naming it. `AGENT_DEV_LABS_DISABLED` takes `1`, `true`, `yes` or `on`; an unrecognised value turns the SDK off with one warning.
- A capture refused because the token can only replay now says so, with one warning per process, instead of only "the server answered 403".

## Python SDK

### 0.3.0

- `init()` records every OpenAI and Anthropic call in the process, for apps that build their provider clients through LangChain, LangGraph or Deep Agents. Call it once, at startup. Under it each attempt is a step, and a resend within a minute of an error status continues its trace. Every strict-replay failure answers `400` (`adl` alone keeps `424`), so a library around the provider does not retry it.
- A call matches the earliest unused step with its cache key in the trace's followed variation, then in the newest other variation that has one, and only then the earliest unused step as a drift. Calls that arrive in another order than recorded, and the same body twice, each get their own step.
- A capture the server refuses is no longer reported as stored alone: `on_call` gets a `not-stored` report after `captured`, with the reason (a token that can't capture, a plan limit, a production environment, a capture over the size limit, a rate limit, an unreachable server, or a full upload queue), and VERBOSE prints `[agentdevlabs] not-stored: <reason>`. The call's event is marked in the console's Calls page.
- A strict-replay miss names what set replay when the server says: the console or devkit toggle, the environment's default, or a `replay-only` token, each with the one change that records it.
- The README names `npx agentdevlabs skill install`, which teaches coding agents the SDK and the CLI.
- A client's first rules fetch that fails or answers something unusable is tried once more, so a slow or briefly failing server no longer loses a run's first call. A call that still has no rules reaches the provider as before and now also sends an event that the Calls page shows with the reason (`not stored: the project rules could not be fetched`; in strict replay, an `error` event), unless the server's mode for the token is `off`.
- When the server rejects the token at trace start in strict replay, the SDK warns once and the error carries the rejection text alone, as the JS SDK does.
- A capture records the service tier, speed and data residency the provider reported (`service_tier`, `speed`, `inference_geo`), so a flex, fast or US call is priced at its own rate.

### 0.2.1

- A capture records the cache tokens of the call (cached reads and cache writes, for OpenAI and Anthropic, streamed or not), so its cost counts them at their own prices. A capture from an earlier version has no cache counts, so its cost shows as unknown. `input_tokens` now counts every input token, so for Anthropic it is larger than before for a call that used the cache.
- A stream a provider ends with an error event (Anthropic's `overloaded_error`, an OpenAI chat error chunk) is recorded as an error, not as aborted. OpenAI Responses error events stay `complete`: the Python client hands them to you as events and the stream ends cleanly. Replay does the same as live.
- A pinned step that recorded a stream ending in an error no longer answers a call that is not streamed.
- A `trace` block's name is sent with each capture and shown as the trace's label in the console, cut to 100 characters. A trace without a name shows its first prompt. Use a fixed name such as `checkout`, never user data: the name is stored as plain text and shown to your workspace.

### 0.2.0

- `AGENT_DEV_LABS_VERBOSE` prints one line per call, `[agentdevlabs] captured`, `replayed`, `passed-through` or `failed`, with the reason for the last two, to standard error. It takes the same words as `AGENT_DEV_LABS_DISABLED`; any other value leaves it off, with one warning.
- The hosted API default is now `https://api.agentdevlabs.com`, because `agentdevlabs.dev` was never ours. An earlier version keeps sending to `.dev` unless `AGENT_DEV_LABS_API_URL` is set.
- `wrap` is now `adl`, matching the JS SDK. The old name is removed with no alias: replace `wrap(client)` with `adl(client)`.
- `adl(client, on_call=...)` reports each call's mode, where the mode came from, the pin, and whether it was replayed, captured, passed through or failed, as the JS SDK's `onCall` does. A call the SDK's own error left unrecorded is reported too, as `passed-through` with the reason "the SDK hit an internal error".
- `cache_key`, `redact` and `events` are no longer exported from `agentdevlabs`; they were internal helpers. Nothing replaces them: if your code imports them, stay on 0.1.1.

### 0.1.1

- The runtime dependencies (`httpx2`, `cryptography`, `rfc8785`) now accept compatible versions, so installing the SDK no longer replaces or refuses your own versions of them.
- The README links to the changelog.

### 0.1.0

First release.

- A replay that drifted now sends its `hit` event with `drift: true`, so the devkit and console can show it.
- A script that exits right after a captured call now sends its `captured` event.
- A rejected token (401) now gets its own line, naming the Access tokens page, instead of "server could not be reached"; the SDK warns once before the token expires.
- The pinned-trace line says to unpin on the Traces page.
- A strict-replay miss now says how to record the call and logs it once, as the JS SDK does.
- When the project rules can't be fetched, a call the server holds to replay now fails with a 424 instead of reaching the provider.
- A mistyped `AGENT_DEV_LABS_MODE` is read in any case, and an unknown value runs as `auto` with one warning naming it. `AGENT_DEV_LABS_DISABLED` takes `1`, `true`, `yes` or `on`; an unrecognised value turns the SDK off with one warning.
- A capture refused because the token can only replay now says so, with one warning per process, instead of only "the server answered 403".
