Skip to main content

Git-native behavioral diff and shadow deployment for LLM agents.

Reason this release was yanked:

only 3 wheels, no sdist, no source-build fallback. v3.0.1 supersedes it.

Project description

shadow

Catch AI-agent regressions before they hit production.

Shadow is a PR-native diff tool for LLM agents, it records your agent's calls, replays them under a new config, and tells you what changed across nine behavioural dimensions.

Install

pip install shadow

# With Anthropic support:
pip install 'shadow[anthropic]'

# With OpenAI support:
pip install 'shadow[openai]'

# With both + embeddings:
pip install 'shadow[anthropic,openai,embeddings]'

Requires Python 3.11 or newer.

Quickstart

from shadow.sdk import Session

with Session(output_path="trace.agentlog"):
    # Your existing Anthropic / OpenAI code, unchanged.
    client.messages.create(model="claude-sonnet-4-6", messages=[...])

Shadow automatically patches the Anthropic and OpenAI SDKs to capture every request/response. Secrets are redacted by default.

Then in CI:

shadow replay new-config.yaml --baseline trace.agentlog
shadow diff trace.agentlog candidate.agentlog
shadow bisect old-config.yaml new-config.yaml --traces trace.agentlog

Full docs

The canonical README, examples, the .agentlog spec, and the project roadmap live at https://github.com/manav8498/Shadow.

License

Dual-licensed under MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE in this distribution, or the project repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

shadow_diff-3.0.0-cp311-abi3-win_amd64.whl (927.1 kB view details)

Uploaded CPython 3.11+Windows x86-64

shadow_diff-3.0.0-cp311-abi3-manylinux_2_34_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

shadow_diff-3.0.0-cp311-abi3-macosx_11_0_arm64.whl (989.4 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file shadow_diff-3.0.0-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: shadow_diff-3.0.0-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 927.1 kB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shadow_diff-3.0.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a7b4ebe9eb2a568d6da66ce2a5d937e6f35f4adc19790650c9378a2123ad0dc5
MD5 a58b3ce16da7c7f486b286bd48a47376
BLAKE2b-256 84b8ec145519aecdec9260a19378178358e1264e72018b6466ae5271967101af

See more details on using hashes here.

Provenance

The following attestation bundles were made for shadow_diff-3.0.0-cp311-abi3-win_amd64.whl:

Publisher: release.yml on manav8498/Shadow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shadow_diff-3.0.0-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for shadow_diff-3.0.0-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bfee2dda18b8963c877049577eb265bdcd44e860cdc6386fd9532241016de489
MD5 6ab221058ca26f6c36738596d784b24a
BLAKE2b-256 c7d8c12ae42bd49298a27be181237803146e2793d35abf5e6aea3117dc737a7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for shadow_diff-3.0.0-cp311-abi3-manylinux_2_34_x86_64.whl:

Publisher: release.yml on manav8498/Shadow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shadow_diff-3.0.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for shadow_diff-3.0.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bd00e55756c05011bb0dbb89ba4e52ffedf5cd433bde696a1f8d210798d1bc4
MD5 edaa1417dd52824dbd9fd5a39dcc7545
BLAKE2b-256 1074f08fe81ed50f80af57db5326af43f6ccf8d84219739bd6fd0cdce7f0ed7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for shadow_diff-3.0.0-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on manav8498/Shadow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page