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.75.tar.gz (288.5 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.75-py3-none-any.whl (234.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: loupe_ai-0.0.75.tar.gz
  • Upload date:
  • Size: 288.5 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.75.tar.gz
Algorithm Hash digest
SHA256 94a8f1234a5b9121425dcb5ed3a3bdd0cd8a72026cdf463d76170f0688cc4661
MD5 6029d670fba3d4608b17d3a144378f6e
BLAKE2b-256 90060856c4fd37a0159b9e1391d557a1cfd2e9bf29fce419e1437ecdfd4da963

See more details on using hashes here.

Provenance

The following attestation bundles were made for loupe_ai-0.0.75.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.75-py3-none-any.whl.

File metadata

  • Download URL: loupe_ai-0.0.75-py3-none-any.whl
  • Upload date:
  • Size: 234.6 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.75-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c73802ec87697c7b8e0beca5338c385d8d775f3a3cd58d6dcb028b67d699e2
MD5 2a5ff46c5d9e2cd61d3662c98c741416
BLAKE2b-256 ec4c9f7cb27cc9354ad49b9baf865ce68c03fcbd82da001eaecc477178652564

See more details on using hashes here.

Provenance

The following attestation bundles were made for loupe_ai-0.0.75-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