Skip to main content

driftshield

Find where an AI agent first went wrong.

DriftShield reconstructs a failed agent run as a decision graph, shows where reasoning first drifted and matches the failure against known community signatures. It reads Claude Code, Codex CLI, Claude Desktop, Codex Desktop, OpenClaw, CrewAI and LangChain transcripts.

pip install driftshield-sdk
driftshield analyze session.jsonl

The distribution is called driftshield-sdk on PyPI because the name driftshield was already too close to an unrelated project. The import package and the command are still driftshield.

The library surface is two calls:

from driftshield import analyse_run, submit

run = analyse_run(open("session.jsonl", "rb").read(), source="session.jsonl")
print(run.qualification_state, run.findings)

receipt = submit(run)  # community lane: redacted, no key needed

analyse_run works offline and touches nothing outside the process. submit is the only call that sends anything off the machine, and it only ever sends run.redacted_transcript.

Documentation, the self hosted web UI and the full CLI reference live in the repository: https://github.com/tborys/driftshield

Licensed under AGPL-3.0-or-later.

Metadata

Release files for driftshield-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for driftshield-sdk 0.2.0
File Size Uploaded
driftshield_sdk-0.2.0.tar.gz 279.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for driftshield-sdk 0.2.0
File Interpreter ABI Platform
driftshield_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 476.9 kB

Release files / driftshield_sdk-0.2.0.tar.gz

Download URL driftshield_sdk-0.2.0.tar.gz
Size 279.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5cba767380981dc6cfd44c77da0cc9738b1bae07813f74812661fdce2e72a45c
BLAKE2b-256 checksum
How to use checksums
6aeb10e2b5ff7e5ae2f72540acb69c8745d02b6c1678b2fdea5562f6c78789cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / driftshield_sdk-0.2.0-py3-none-any.whl

Download URL driftshield_sdk-0.2.0-py3-none-any.whl
Size 197.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13879d21715f9b19aac58f1b93e635d771731476039445e35a5a1137e2587bb2
BLAKE2b-256 checksum
How to use checksums
edbea04a7fbf0725729fee9489bfc15905630e0dfc8589b1da2dbeecda65733c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page