Skip to main content

A magnifying glass for your AI agent — open-source forensics + interpretability for LLM agents.

Project description

loupe — Python SDK

Forensic observability + circuit attribution for Python LLM agents.

Install

pip install -e '.[ui]'           # from this repo (canonical install today)
pip install -e '.[interp]'       # adds the real SAE attribution backend
pip install -e '.[ui,interp,langgraph,anthropic,openai,universal]'

Quickstart

from loupe import trace, record_step
from loupe.integrations import patch_all

patch_all()                                  # auto-capture any installed LLM SDK

@trace(framework="anthropic")
async def my_agent(query: str):
    record_step("plan", "compose request")
    # ...your real agent code; LLM calls captured automatically
    return result

await my_agent("refactor auth.py")
# trace saved to ~/.loupe/traces/{run_id}.jsonl

View traces locally:

loupe ui              # opens http://localhost:7860 — live SSE dashboard
loupe list            # terminal table of every run
loupe attribute <id>  # SAE circuit attribution per llm-call step
loupe cluster         # find features that recur across tagged failures
loupe replay <id>     # re-invoke a captured run for reproducibility testing

See SPEC.md for the wire format and ARCHITECTURE.md for the layering.

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

loupe_ai-0.0.74.tar.gz (276.0 kB view details)

Uploaded Source

Built Distribution

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

loupe_ai-0.0.74-py3-none-any.whl (226.2 kB view details)

Uploaded Python 3

File details

Details for the file loupe_ai-0.0.74.tar.gz.

File metadata

  • Download URL: loupe_ai-0.0.74.tar.gz
  • Upload date:
  • Size: 276.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for loupe_ai-0.0.74.tar.gz
Algorithm Hash digest
SHA256 31e86cc7dcf16ab4d871339af87a37ca00df8da081670de99f540367ecd88021
MD5 8df9537d478fe8f00f6ae3a8ddc74a7a
BLAKE2b-256 0a3eeaf3050040ce8704f4d57b531aad76d066112d710b7b63c2a503a68db5ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for loupe_ai-0.0.74.tar.gz:

Publisher: release.yml on YashwanthKamireddi/loupe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file loupe_ai-0.0.74-py3-none-any.whl.

File metadata

  • Download URL: loupe_ai-0.0.74-py3-none-any.whl
  • Upload date:
  • Size: 226.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for loupe_ai-0.0.74-py3-none-any.whl
Algorithm Hash digest
SHA256 ca793b4e947f2e5bae4f5a7624e3d101afe623242c3fd8959f29fb20725a71da
MD5 da0797d076ce8d0f39c9ac91ab8a37bd
BLAKE2b-256 5f0c6fdc199787b4ccebc6130c591a69cfd6086de33023e45ed616b365bbabcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for loupe_ai-0.0.74-py3-none-any.whl:

Publisher: release.yml on YashwanthKamireddi/loupe

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