Skip to main content

When your agent fails, this tells you exactly why.

Project description

AgentAutopsy

When your agent fails, this tells you exactly why.

demo

Python License Zero Config Works with

CLI

agentautopsy runs # see all agent runs agentautopsy replay # replay any failure agentautopsy stats # fix cache stats

Install

pip install agentautopsy

Usage

import agentautopsy
agentautopsy.watch()
# your existing agent code here — nothing else changes

AgentAutopsy automatically intercepts every LLM call, detects failures, finds root cause, outputs a verified fix, and caches it for next time.

Setup

Windows: set ANTHROPIC_API_KEY=your-key-here Mac/Linux: export ANTHROPIC_API_KEY=your-key-here Get your free key at console.anthropic.com

Set AGENTAUTOPSY_SLACK_WEBHOOK=your-webhook-url and AgentAutopsy will automatically alert your Slack channel when any agent fails.

Quick start

Create test_agent.py and paste this:

import agentautopsy
agentautopsy.watch()

Run: python test_agent.py

Works with

OpenAI, Anthropic, LangChain, any framework using openai or anthropic

Requirements

Python 3.11+, ANTHROPIC_API_KEY

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentautopsy-1.0.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentautopsy-1.0.0-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file agentautopsy-1.0.0.tar.gz.

File metadata

  • Download URL: agentautopsy-1.0.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for agentautopsy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aa4f8249299c683111af3fa4220821790b8a3d8d6e4c0daa46443b158829c4e0
MD5 cce8db430fb27913bf6626d1e8772623
BLAKE2b-256 e167122f99891ef5c442a891681024565179d232ef40a335a9247092e414e8fa

See more details on using hashes here.

File details

Details for the file agentautopsy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: agentautopsy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for agentautopsy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93bda402b3a6dd4b791f05828ee1bb1fcf390d7c26bc3cbaefac323f1648d5fc
MD5 423c132040cdbea0cfb82257bff4d374
BLAKE2b-256 9b552523f6c38b5434d25568592ab143a0d21b01a05187c588008d94f09a2fe0

See more details on using hashes here.

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