@braintrust/pi-extension
@braintrust/pi-extension is an npm package that adds tracing of Pi sessions to Braintrust. It records spans for sessions, turns, LLM calls, tool executions, compactions, and branch summaries, including token usage, cache usage, estimated cost, and time to first token. The extension sends events to the local bt daemon, which builds and uploads traces, and Pi keeps running if tracing fails.
npm / PyPI packages
Open source ↗