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

Uploaded CPython 3.11+Windows x86-64

shadow_diff-1.7.6-cp311-abi3-manylinux_2_34_x86_64.whl (855.7 kB view details)

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

shadow_diff-1.7.6-cp311-abi3-macosx_11_0_arm64.whl (789.1 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: shadow_diff-1.7.6-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 722.9 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.7.6-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 09c649e5b7c672c3c6f24685096c992091f9aba6262b79448dcafdff18f43cb4
MD5 33fcec879f5a9a070fc39da823d83a87
BLAKE2b-256 2f1843bdc45cce29d4c2cfe596d4256d64f8c144558c0082bd92a0433dc7d1b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-1.7.6-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3ebeda6005856a0fffffc662a35d5daf0a835ce77e87515c9021742db4235f57
MD5 e106825d5804f47463842ffe725097a8
BLAKE2b-256 de86716dcc6a8bed7523b1ed5873f6f00cfc0fe699fb4942a04e1e86ecc5d69b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-1.7.6-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02e3c8048af298cd8922fed035c7a3863c04450dfdc1ccbf1521df85b21a91ee
MD5 c3fce90cb84d854bb28581061d9ea6a9
BLAKE2b-256 dd63a01a23ddb8deb86bc08004e09a3917ed03418c5c8e0bf5bc6beb1bb1864a

See more details on using hashes here.

Provenance

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