Skip to main content

VeilPiercer

Per-step tracing for local LLM pipelines. Zero cloud. Zero config.

PyPI version Python 3.8+ License: MIT

When your AI agent breaks, the failure didn't happen at the error. It happened 3–5 steps earlier when agents silently diverged. VeilPiercer tells you exactly which step went wrong, what it read, and what it produced.

Works with Ollama, LangChain, LangGraph, CrewAI — 100% offline, no API key needed.


Install

pip install veilpiercer

Quickstart — 60 seconds

LangChain / LangGraph

from veilpiercer import VeilPiercerCallback

cb = VeilPiercerCallback(session_id="my-run-1")

# Pass to any LangChain chain, agent, or LLM
result = chain.invoke({"input": "..."}, config={"callbacks": [cb]})

Ollama (monkey-patch, 1 line)

from veilpiercer import enable_ollama_tracing
enable_ollama_tracing()  # all subsequent ollama.chat() calls are traced

Manual logging

from veilpiercer.logger import SessionLogger

with SessionLogger.new("my-session") as s:
    s.log_step("prompt", "What is the capital of France?", model="llama3")
    s.log_step("response", "Paris.", model="llama3")

CLI

# List all captured sessions
veilpiercer sessions

# Open the visual diff UI in your browser
veilpiercer dashboard

# Compare two sessions side-by-side
veilpiercer diff <session_a> <session_b>

# Run a demo (no agent needed)
veilpiercer demo

# Check version
veilpiercer --version

What It Captures

Every session records:

Event What's stored
LLM calls prompt, output, model, token count, latency
Tool calls tool name, input, output
Chain start/end session metadata, duration
Agent steps thought, action, observation
Retrievals query, documents returned
Errors exception type, traceback step

All stored locally in SQLite (nexus_mind.db). Nothing leaves your machine.


Visual Diff UI

veilpiercer demo      # generates two sample sessions
veilpiercer dashboard # opens the diff UI in your browser

Select any two sessions and see exactly where they diverged — which step produced different output, what each version of the agent saw.


How It Works

Your Agent
    ↓ (2 lines of code)
VeilPiercerCallback
    ↓ captures every step
nexus_mind.db (local SQLite)
    ↓
veilpiercer dashboard (visual diff)

No backend. No cloud. No telemetry. Sessions are stored in nexus_mind.db in your working directory.


Privacy

  • 100% local — SQLite only, nothing is sent anywhere
  • Works fully offline — no API key, no account required
  • Compatible with air-gapped environments

Compatibility

Framework Support
LangChain / LCEL ✅ Full (LLMs, tools, chains, agents, retrievers)
Ollama ✅ 1-line hook
LangGraph ✅ Via LangChain callbacks
CrewAI ✅ Via LangChain callbacks
AutoGPT ✅ Via LangChain callbacks
Raw Python ✅ SessionLogger directly

Hosted Dashboard (optional)

pip install veilpiercer is free forever for local use.

For cloud dashboard, team sharing, and real-time alerts, get lifetime access at veil-piercer.com — $197 one-time, no subscription.


License

MIT © VeilPiercer

Metadata

Release files for veilpiercer 0.2.2

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

Built distribution (wheel)

Table of built distributions (wheels) for veilpiercer 0.2.2
File Interpreter ABI Platform
veilpiercer-0.2.2-py3-none-any.whl Python 3 none any Details

Release files / veilpiercer-0.2.2-py3-none-any.whl

Download URL veilpiercer-0.2.2-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4064403d478ff04b9be040d6b81e536ebeb5825e6ad35c3b26b3432a16d6253a
BLAKE2b-256 checksum
How to use checksums
6028e52c7acbebd6eebc0260d7a80aefbbd6fee11c4832c297d607172ab0d916
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

2 release files

0.2.0

2 release files

0.1.0

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