Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracewell

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.

Screenshots

Dashboard

Tracewell dashboard showing trace metrics, recent traces, and failure signals.

Trace History

Tracewell traces page showing project and status filters with trace rows.

Trace Viewer

Tracewell React Flow trace viewer showing user, LLM, tool, and response nodes.

Trace Details

Tracewell trace details page showing the trace viewer, metadata, prompt, and response.

Vision

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.

MVP Roadmap

  • Python SDK
  • FastAPI backend
  • React frontend
  • MongoDB persistence
  • Rule-based failure detection
  • Clean local developer experience

Tech Stack

  • Frontend: React, Vite, TailwindCSS, React Router
  • Backend: FastAPI, Python 3.9+, Pydantic v2, Motor, Uvicorn
  • Database: MongoDB
  • SDK: Python package

Folder Structure

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

Local Setup

For the fastest end-to-end demo, see Local Demo.

Backend

cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
uvicorn app.main:app --reload

On 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 --reload

Frontend

cd frontend
npm install
cp .env.example .env
npm run dev

On Windows PowerShell:

cd frontend
npm install
Copy-Item .env.example .env
npm run dev

Python SDK

cd 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 .

Current Development Status

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.

Future Roadmap

  • 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.

Package Documentation

GitHub Topics

Suggested repository topics:

ai-agents, observability, llmops, tracing, fastapi, react, vite, tailwindcss, mongodb, python-sdk, developer-tools, open-source, agent-debugging

License

MIT License. See LICENSE.

Releases

Packages

Contributors

Languages