npxcnency-ux/pi-trace-extension

npxcnency-ux★ 15Python最后同步: 2026-08-11

在 GitHub 打开

Langfuse-style trace viewer for pi-agent — local-first, zero-setup, single-file HTML

README 摘要

Experimental: Langfuse-style local trace viewer for pi-agent pi-trace-extension reorganizes a pi-agent session from a conversation view into an execution view. pi's own session.jsonl is message-oriented — replayable, but flat. This extension subscribes to pi's lifecycle events and rebuilds them as a tree of how the agent actually progressed — every LLM call, every tool execution, every sub-agent, with timing, token cost, and outcome — written to disk as it happens. Two artifacts are produced per session: - events.jsonl — machine-readable, append-only event stream - trace.html — a self-contained, single-file, Langfuse-style viewer (zero external assets, opens in any browser) Everything stays on your machine. pi's built-in session.jsonl pi-trace-extension Conversation view (messages in order) Execution view (steps + tools + sub-agents as a tree) One artifact ( session.jsonl ) Two artifacts: events.jsonl (machine) + trace.html (human) Per-message metadata Per-step latency, tokens, cost, stop reason, full LLM payload Tool calls inline as messages Tools as siblings of llm-generation inside a turn (Langfuse-style) No status semantics aborted / error / ok distinguished and color-coded Sub…

在 GitHub 查看完整 README →
Agent/智能体agentdsh-pluginlangfusellmobservabilitypipi-agentpi-package

分类