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

Uploaded CPython 3.11+Windows x86-64

shadow_diff-2.0.2-cp311-abi3-manylinux_2_34_x86_64.whl (867.0 kB view details)

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

shadow_diff-2.0.2-cp311-abi3-macosx_11_0_arm64.whl (800.6 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: shadow_diff-2.0.2-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 734.4 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-2.0.2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 400b396e6e655ddd298f27bc76bcea21e73c22572b72cfe6e9d20357be0a057b
MD5 1685b2ddd4b15910e8d54459f65ba4ba
BLAKE2b-256 29a2fa4ef3f27ad52087152a217843b0ba7489925df9bb296e52f4d043c035cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-2.0.2-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4bd5bc01471cdc0edc17db7de33d8547deccf9d6135567b9f65aa0cfe298ff96
MD5 a7a4b6a0f9869610804e0e18ec620724
BLAKE2b-256 bfc15f33e5a06a7f1ec33737d9f588f11929e0fc98057c1180c4a603bd383b06

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-2.0.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a63c4157d290c49782c4aa778ae44ecee947edd615a6f92f1b3ae81cb8553f1b
MD5 d0f65b93219495b1f164a65de9c67aaa
BLAKE2b-256 4ecdd73bceb3afc017b9148d2bdf296f187c75c110f449050e4507375d251d49

See more details on using hashes here.

Provenance

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