Skip to main content

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

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-1.2.0-cp311-abi3-win_amd64.whl (640.5 kB view details)

Uploaded CPython 3.11+Windows x86-64

shadow_diff-1.2.0-cp311-abi3-manylinux_2_34_x86_64.whl (773.4 kB view details)

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

shadow_diff-1.2.0-cp311-abi3-macosx_11_0_arm64.whl (707.7 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: shadow_diff-1.2.0-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 640.5 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-1.2.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b4839377d286a0466ca4a529d4379731dcf28a5f433129c5315a01d96cc88ae1
MD5 ad58691829fa0c680fdb3a8950584399
BLAKE2b-256 f96c3a9b5cfb3b14a045d79f34c0425e8358e95838b0c0f20ccd7707ae672cf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for shadow_diff-1.2.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-1.2.0-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for shadow_diff-1.2.0-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1a6fa66fdd49fd1ccbd854dc992a2a6613c076f3d1eb5d84137ceefc975d766b
MD5 d07193f753de1a967f4b7f209f46d914
BLAKE2b-256 cef3181b3f42d88660d63c588232d9453ff054eb713e76e5d37e2af88ea979fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for shadow_diff-1.2.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-1.2.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for shadow_diff-1.2.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcabdea9be643bb7a774c653342da8f44421ab0192ce20f434cfaf4d6e233180
MD5 3974cfb6c992c6c2c972654333e8ce5f
BLAKE2b-256 887cb2ba6f13926fc8f9870659db1ff6abf19a927bf6617b0ea7545624f76d89

See more details on using hashes here.

Provenance

The following attestation bundles were made for shadow_diff-1.2.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