Tracewell is an open-source observability platform for AI agents.
The MVP helps developers understand what their agents are doing by collecting traces, prompts, responses, tool calls, latency, token usage, and errors through a lightweight Python SDK.
AI agents are becoming production software, but debugging them still feels like reading scattered logs. Tracewell aims to give developers a focused, beautiful, local-first observability workflow for agent behavior before adding enterprise complexity.
The first version is intentionally small: one SDK, one API, one database, one dashboard, and practical rule-based failure detection.
- Python SDK
- FastAPI backend
- React frontend
- MongoDB persistence
- Rule-based failure detection
- Clean local developer experience
- Frontend: React, Vite, TailwindCSS, React Router
- Backend: FastAPI, Python 3.9+, Pydantic v2, Motor, Uvicorn
- Database: MongoDB
- SDK: Python package
tracewell/
|-- backend/
| |-- app/
| | |-- api/ HTTP route modules
| | |-- core/ Cross-cutting application concerns
| | |-- database/ MongoDB client and collection access
| | |-- models/ Persistence models
| | |-- schemas/ Pydantic request and response schemas
| | |-- services/ Business logic and failure detection
| | |-- utils/ Shared utility functions
| | |-- config.py Environment-driven settings
| | `-- main.py FastAPI app factory
| |-- requirements.txt
| |-- scripts/ Local developer and demo scripts
| `-- README.md
|-- frontend/ React dashboard application
|-- sdk-python/ Python SDK package
|-- docs/ Architecture and development notes
|-- CONTRIBUTING.md
|-- ROADMAP.md
|-- CHANGELOG.md
|-- LICENSE
`-- README.md
For the fastest end-to-end demo, see Local Demo.
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
uvicorn app.main:app --reloadOn Windows PowerShell:
cd backend
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
Copy-Item .env.example .env
uvicorn app.main:app --reloadcd frontend
npm install
cp .env.example .env
npm run devOn Windows PowerShell:
cd frontend
npm install
Copy-Item .env.example .env
npm run devcd sdk-python
python -m venv .venv
source .venv/bin/activate
pip install -e .On Windows PowerShell:
cd sdk-python
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .Tracewell is pre-alpha, but the core MVP loop is working locally.
Current scope:
- Python SDK can send traces to the backend.
- FastAPI exposes health, trace ingestion, and trace retrieval endpoints.
- MongoDB stores trace data.
- Rule-based failure detection flags high latency, high token usage, failed responses, and repeated tool calls.
- React dashboard displays metrics, recent traces, failures, trace details, and a React Flow trace viewer.
- A local demo seed script is available at
backend/scripts/seed_demo_traces.py.
- Add focused backend tests for health, ingestion, retrieval, and failure detection.
- Improve trace details with richer tool-call inspection and copy actions.
- Add filtering/search improvements for the traces page.
- Add SDK helpers for wrapping common agent runs.
- Publish hosted demo screenshots and a short walkthrough.
- Collect feedback from first users before adding authentication or team features.
Suggested repository topics:
ai-agents, observability, llmops, tracing, fastapi, react, vite, tailwindcss, mongodb, python-sdk, developer-tools, open-source, agent-debugging
MIT License. See LICENSE.



