Skip to main content

Local-first trace inspector for LLM agents and tool-driven workflows.

Project description

Steplight

Local-first trace inspector for LLM agents and tool-driven workflows.

Load a trace. See what happened. Understand why.

Steplight is a terminal-native tool for inspecting LLM runs, tool calls, retries, token usage, errors, and execution bottlenecks without sending trace data to a third-party platform.

It is designed for developers building with OpenAI-style workflows, LangChain, MCP tooling, or custom JSON/YAML traces who want a fast local debugging loop and a shareable HTML report.

Why Steplight

  • Understand what your agent actually did, step by step
  • Spot slow tools, retry loops, and cost spikes quickly
  • Keep sensitive traces on your own machine
  • Stay in the terminal instead of digging through raw JSON by hand
  • Share a polished HTML report when you need feedback from teammates

Features

  • Interactive Textual inspector for timelines, details, and diagnostics
  • Rich terminal summary for quick debugging and CI-friendly output
  • Static HTML export for sharing a run with other people
  • Built-in diagnostics for common agent failure patterns
  • Support for OpenAI-style traces, LangChain callbacks, MCP logs, and generic JSON/YAML
  • Extensible adapters and rules so you can grow it with your workflow

Install

pip install steplight

The package installs both steplight and the shorter slt alias. The examples below use slt to avoid PowerShell's reserved sl alias.

Quick Start

slt summary sample_traces/agent_with_tools.json
slt validate sample_traces/simple_qa.json
slt export sample_traces/expensive_run.json -o report.html
slt inspect sample_traces/agent_with_tools.json

Example Summary Output

+------------------------ Steplight Summary ------------------------+
| Run: Find compliance gaps in policy                               |
| Source: openai                                                    |
| Overview: Duration: 14.0s | Steps: 4 | Tool calls: 2 | Retries: 0 |
| Tokens: 4,230 in / 670 out | Est. cost: $0.0028                   |
+-------------------------------------------------------------------+

Diagnostics
- WARNING: Step 'web_search' took 68.6% of total runtime.
- WARNING: Tool 'web_search' took 9.6s. Check timeouts, caching, or external latency.
- INFO: Input tokens grew 4.2x between 'Draft plan' and 'Final answer'.
Bottleneck: web_search (68.6% of total runtime)

Supported Trace Formats

  • OpenAI-style step traces
  • LangChain callback event exports
  • MCP tool call logs
  • Generic JSON or YAML with an optional steplight.yaml mapping file

Diagnostics

Steplight currently flags:

  • bottlenecks
  • retry loops
  • context growth
  • repeated tool calls
  • silent errors
  • slow tools
  • high-cost runs
  • empty completions

Custom Mapping Example

mapping:
  steps_path: "$.events"
  timestamp_field: "ts"
  type_field: "event_type"
  type_values:
    prompt: "llm_start"
    completion: "llm_end"
    tool_call: "tool_start"
    tool_result: "tool_end"

Commands

  • slt inspect <file> opens the interactive Textual UI
  • slt summary <file> prints a non-interactive terminal summary
  • slt export <file> -o report.html creates a static HTML report
  • slt validate <file> checks whether a trace can be parsed successfully

Docs

Repository Layout

steplight/
  cli/
  core/
  adapters/
  tui/
  export/
sample_traces/
tests/

Development

python -m pip install -e .[dev]
pytest
python -m steplight.cli.main --help

Release Checklist

  • Run pytest
  • Build the distribution with python -m build
  • Update CHANGELOG.md
  • Review the generated wheel and sdist
  • Publish the repository to GitHub
  • Publish the package to PyPI when ready

Status

Steplight is currently an alpha-stage project focused on a clean local-first inspection experience, a solid parser surface, and practical diagnostics.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

steplight-0.1.0.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

steplight-0.1.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file steplight-0.1.0.tar.gz.

File metadata

  • Download URL: steplight-0.1.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for steplight-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7dbc8525bca3224d4fa80f669524c0d1383c20a50f6c70c2cd58d5d94a77d04f
MD5 55f8a38a22786c050db3867dc385589c
BLAKE2b-256 27cad60654d888fa9f67d593df2ac413e6b1d1b5c2e5cbc31f8cac10da9a34a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for steplight-0.1.0.tar.gz:

Publisher: publish.yml on riccardomerenda/steplight

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file steplight-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: steplight-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for steplight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b16e40559c0520c1f3e0b1290641413dd0aa283678fb90711197e2d48b783fe0
MD5 5917cf22cc33076e7d7ebe97c8c5f3d5
BLAKE2b-256 4c8ede9282f099876c2ae386df9feff207d7e900683fac19b59394338957e1ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for steplight-0.1.0-py3-none-any.whl:

Publisher: publish.yml on riccardomerenda/steplight

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page