Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

docs(readme): document cubepi trace CLI

xf gong18578c5aeb16
diff --git a/README.md b/README.md
index 071a141..a24c9a9 100644
--- a/README.md
+++ b/README.md
@@ -276,6 +276,18 @@ No prompts / model outputs are recorded by default. Opt in with
with `Meter(...)` for `gen_ai.client.operation.duration` / TTFC /
token-usage histograms. Full guide: https://cubepi.pages.dev/docs/guides/tracing/overview
+#### Inspecting traces from the terminal
+
+With `JsonlSpanExporter` writing to `./cubepi-traces`, inspect runs with the
+`cubepi trace` CLI (install the extra: `pip install cubepi[trace-cli]`):
+
+```bash
+cubepi trace ls # list recent runs
+cubepi trace view <run_id> # render a run as a tree
+cubepi trace follow <run_id> # stream spans as they complete
+cubepi trace stats --by model # token / latency / error aggregates
+```
+
## Requirements
- Python >= 3.11