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

Uploaded CPython 3.11+Windows x86-64

shadow_diff-1.3.0-cp311-abi3-manylinux_2_34_x86_64.whl (784.7 kB view details)

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

shadow_diff-1.3.0-cp311-abi3-macosx_11_0_arm64.whl (719.0 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: shadow_diff-1.3.0-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 651.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.3.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ab3fd9f49a0ca9545dc71df5aa899a4d31ad247f6284c915487210e42e7fce8d
MD5 9bbb92ee94c16c7f4130f8bb6e72bfb8
BLAKE2b-256 77383d2b614dc3ab04a63d0ff01797b49bf6944ceac172dbdb300d25937abbab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-1.3.0-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 64e91970df9dec24848197672cca989174123606066fc87f82db8cee19760086
MD5 4f956888b655900fbebb3519cc3a191c
BLAKE2b-256 fdce1e60694e837c53c83e5bf47519d948e618e8ad227c54fa0b38acef5ada14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for shadow_diff-1.3.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc16fe704f3491eea64e6cec16169469a309775e955c8160246dfaecb72484d1
MD5 073d47aaaf769763895ec0729eb60126
BLAKE2b-256 6e4d6cfb1647d6839b372b694c8ea1318c27a2d18843e458bea9e4d9726bf229

See more details on using hashes here.

Provenance

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