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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loupe_ai-0.0.72.tar.gz.
File metadata
- Download URL: loupe_ai-0.0.72.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
151fb25e34304c797463fd3ea550a44cc4311167c9542e3eef8dfe10bdbb3b6f
|
|
| MD5 |
00a86f2b512a207b8e3debdce04d8ae6
|
|
| BLAKE2b-256 |
2e45196a276bcfd6425a6763937eb0310e81d3cc67624ae3b130006212935feb
|
Provenance
The following attestation bundles were made for loupe_ai-0.0.72.tar.gz:
Publisher:
release.yml on YashwanthKamireddi/loupe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loupe_ai-0.0.72.tar.gz -
Subject digest:
151fb25e34304c797463fd3ea550a44cc4311167c9542e3eef8dfe10bdbb3b6f - Sigstore transparency entry: 1641583594
- Sigstore integration time:
-
Permalink:
YashwanthKamireddi/loupe@5c6dbdfacb49da22e9ae7014e1341d323becb964 -
Branch / Tag:
refs/tags/v0.0.72 - Owner: https://github.com/YashwanthKamireddi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5c6dbdfacb49da22e9ae7014e1341d323becb964 -
Trigger Event:
push
-
Statement type:
File details
Details for the file loupe_ai-0.0.72-py3-none-any.whl.
File metadata
- Download URL: loupe_ai-0.0.72-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1801be4fce449394a3f7613c68a5aacceafdaeffca528015c941408fc481539b
|
|
| MD5 |
2aeb7f3369dcf4c6176362b221e0388c
|
|
| BLAKE2b-256 |
898a4e6125f5759add29d503750df8f8934d482c31bb915df1e2f4303e75ffa5
|
Provenance
The following attestation bundles were made for loupe_ai-0.0.72-py3-none-any.whl:
Publisher:
release.yml on YashwanthKamireddi/loupe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loupe_ai-0.0.72-py3-none-any.whl -
Subject digest:
1801be4fce449394a3f7613c68a5aacceafdaeffca528015c941408fc481539b - Sigstore transparency entry: 1641583704
- Sigstore integration time:
-
Permalink:
YashwanthKamireddi/loupe@5c6dbdfacb49da22e9ae7014e1341d323becb964 -
Branch / Tag:
refs/tags/v0.0.72 - Owner: https://github.com/YashwanthKamireddi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5c6dbdfacb49da22e9ae7014e1341d323becb964 -
Trigger Event:
push
-
Statement type: