Skip to main content Switch to mobile version traceharbor 0.3.0 Local-first observability, debugging and replay workbench for AI agents.
pip install traceharbor Copy PIP instructions
ELECTRIC OBSERVABILITY · VOL. 01
TRACE / 001 LOCAL-FIRST WORKBENCH ALPHA · v0.3.0
OBSERVE. DEBUG. REPLAY. EVALUATE.
The local-first debugging and replay workbench for AI agents.
2024 · SEPTEMBER · ALPHA
01 — Overview / 02 — Install / 03 — Instrument / 04 — CLI / 05 — Privacy / 06 — Replay / 07 — Architecture / 08 — Development / 09 — Roadmap
A flight recorder for AI agents.
TraceHarbor captures what happened inside an AI agent run — nested spans, inputs, outputs, tools, models, tokens, errors and stack traces — stores it on your machine (SQLite + local files) and presents it in a browser UI.
No cloud account. No API keys. No Docker. No Node.js needed to run it.
01 / WHAT WORKS TODAY
v0.3.0 · ALPHA · ROADMAP PHASES 0–3
pip install + tracenest start → local server + bundled React UI.
Trace list · span tree · inspector · execution graph · timeline · tool inspector · analytics · SSE live updates
Standard library only — no dependencies at import time
init · @observe · trace() · start_span()
Sync, async, generators, nested and concurrent spans
Bounded non-blocking queue · batching · retry with backoff
Offline buffering when the server is down
flush() / shutdown()
Exceptions and stack traces recorded and re-raised unchanged
Return values never altered
01.05 PRIVACY BY DESIGN
Head sampling · content-capture switches
Key- and pattern-based redaction on client and server
01.06 OPTIONAL ECONOMICS
Token usage when available
Cost estimated only for models you price yourself
Ingest · traces · spans · graph · timeline · projects · API keys · settings · export/import
Idempotent ingestion (stable event IDs) · out-of-order tolerant
Per-project isolation · API-key auth for exposed servers
Execution graph built only from observed parent/link relationships
GET THE WORKBENCH RUNNING LOCALLY
pip install traceharbor # From a wheel: # pip install dist/traceharbor-0.3.0-py3-none-any.whl tracenest start # Opens http://127.0.0.1:7331 ╭─────────────────────────────────────────────╮ │ │ │ TraceHarbor is running! │ │ │ │ Dashboard: http://127.0.0.1:7331 │ │ Project: default │ │ Storage: ~/.tracenest/ │ │ │ │ Press CTRL+C to stop. │ │ │ ╰─────────────────────────────────────────────╯ OPTIONS · --host · --port · --data-dir · --no-browser · --detach · tracenest stop 03 / INSTRUMENT AN AGENT
ADD OBSERVABILITY WITHOUT REWRITING YOUR AGENT
from tracenest import init, observe, trace, start_span init(project="my-agent") # endpoint defaults to http://127.0.0.1:7331 @observe(name="research_agent", span_type="agent") def research_agent(query: str): return retrieve_documents(query) with trace("research_workflow"): research_agent("AI observability") with start_span("customer_lookup", span_type="tool") as span: span.set_attribute("tool.name", "customer_lookup") span.set_output(lookup_customer("C102")) ▶ Runnable, key-free example: examples/basic-python/main.py · SDK guide: docs/sdk.md If the server is unavailable, your agent is unaffected.
Events buffer under
THE COMMAND LINE IS THE CONTROL SURFACE
╔══════════════════════════════════════════════════════════════════════════╗ ║ ║ ║ ⬤ ◀◀◀ ▶▶ ▶▶▶ ⬛ ║ ║ ███ ███ ███ ███ ███ ║ ║ ║ ║ START DOCTOR PROJECTS TRACES STOP ║ ║ ║ ╚══════════════════════════════════════════════════════════════════════════╝ tracenest start tracenest doctor tracenest projects list tracenest traces list tracenest stop tracenest import tracenest keys tracenest version tracenest config 05 / PRIVACY
YOUR TRACES STAY YOURS
Non-local binding requires --allow-remote and enables API-key auth.
Data lives in ~/.tracenest/:
tracenest.db artifacts/ config.json Payloads are stored as gzip artifacts with SHA-256 checksums.
TraceHarbor sends no telemetry anywhere and needs no external service.
🔒 REDACTION IS ON BY DEFAULT
Masks sensitive keys (password, api_key, authorization, …) and secret-looking values (sk-…, AWS keys, JWTs, bearer tokens, private keys).
Redaction is best-effort. Review docs/security.md.
06 / TRACING × REPLAY
WHAT THE CURRENT BUILD DOES — AND DOES NOT — DO
⚠ COLLECTION & INSPECTION ONLY
TraceHarbor currently performs collection and inspection only.
Replay modes (playback, deterministic, branch) are designed in docs/adr/0006-replay-safety.md but are not implemented yet (Phase 5).
Nothing in the current UI or CLI re-executes your code or tools.
A MODULAR MONOLITH · LOCAL DATA PATH
╭───────────╮ │ AGENT │ ╰─────┬─────╯ │ @observe ▼ ╭───────────╮ bounded ╭───────────╮ ╭───────────╮ │ SDK │═══ queue ═══▶ │ API │═══▶│ STORAGE │ │ stdlib │ HTTP batch │ FastAPI │ │ SQLite │ ╰───────────╯ ╰─────┬─────╯ ╰───────────╯ ▲ │ │ │ SSE agent runs fine ▼ if server is down ╭───────────╮ │ WEB UI │ │ React │ ╰───────────╯ sdk/ → api/ → core/ → storage/ + artifacts/
Architecture notes: docs/architecture.md
BUILD · TEST · VERIFY
uv sync --group dev # Or: pip install -e . pytest pytest-asyncio httpx ruff mypy build pytest # unit · sdk · api · security · integration ruff check src tests && mypy src cd frontend && npm install && npm run build # writes into src/tracenest/web/dist python scripts/verify_wheel.py # build + fresh-venv install + e2e CI matrix configured for Linux · macOS · Windows (has not been run yet) PostgreSQL backend is planned — SQLite is the supported default today
FROM COLLECTION TO A COMPLETE AGENT WORKBENCH
┌──────────────────────────────────────────────────────────────────┐ │ │ │ 00 FOUNDATION ✔ done │ │ 01 PACKAGE · CLI · SERVER ✔ done │ │ 02 SDK · INGESTION ✔ done │ │ ▸03 FULL WORKBENCH ▶ next │ │ overview · graph · timeline · tools · filters │ │ 04 LANGGRAPH · MULTI-AGENT ⏳ planned │ │ failure demo │ │ 05 REPLAY ⏳ planned │ │ playback · deterministic · branch · diff │ │ 06 EVALUATIONS ⏳ planned │ │ datasets · experiments │ │ 07 INTEGRATIONS · RELEASE ⏳ planned │ │ LangChain · CrewAI · OTLP · Docker │ │ │ └──────────────────────────────────────────────────────────────────┘ LICENSE
MIT · © TraceHarbor contributors
██████╗ █████╗ ██████╗ ██████╗ ███████╗ ██╔══██╗██╔══██╗██╔════╝ ██╔════╝ ██╔════╝ ██████╔╝███████║██║ ██║ █████╗ ██╔══██╗██╔══██║██║ ██║ ██╔══╝ ██████╔╝██║ ██║╚██████╗ ╚██████╗ ███████╗ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝ T R A C E N E S T · 0.2.0 · ALPHA
Made on a Friday. For agents that misbehave on Mondays.
Released: Nov 29, 2026
Author: TraceHarbor contributors
all crewai langchain langgraph opentelemetry postgres
ai-agents debugging llm observability opentelemetry tracing
Development Status 3 - Alpha
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Software Development :: Debuggers
Release files for traceharbor 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 2.1 MB
Release files / traceharbor-0.3.0.tar.gz
Release files / traceharbor-0.3.0-py3-none-any.whl
Security for traceharbor 0.3.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











