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

Uploaded CPython 3.11+Windows x86-64

shadow_diff-0.2.2-cp311-abi3-manylinux_2_34_x86_64.whl (707.7 kB view details)

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

shadow_diff-0.2.2-cp311-abi3-macosx_11_0_arm64.whl (642.2 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: shadow_diff-0.2.2-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 574.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-0.2.2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dd1bb0581d569d2beacc62a14aed3b91ea2605c171edc36d473c64e48ab3ed93
MD5 bf199265ba97d6371f385b9742183421
BLAKE2b-256 3ce1d2b5a5e6de8b0715758506e93c9b76e94a90d7cd765a68dbc3f4804b1aa1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-0.2.2-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0f4dbbef20d36150487ad02394956bf933d22375ec0426186269fb2f1fba73a1
MD5 d38879d684e7dd15790278f1d91bf258
BLAKE2b-256 1d548b1cd076fda226dd69f90a745ff9655565d46429e62a8c50183d8a665219

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-0.2.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01bccca4afd89531b438ceede498b174cba2613406f18b11705a9b3b0a1c271f
MD5 347dee7db919a6d0a9de384cb07f6b63
BLAKE2b-256 5e32147b8b6c84ed6333706f88415cdb6d51168d833f9cdc1932e1cee3e771fa

See more details on using hashes here.

Provenance

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