Skip to content

docs: evaluate Pi observability packages#401

Open
Async23 wants to merge 1 commit into
liaohch3:mainfrom
Async23:docs/pi-observability-research
Open

docs: evaluate Pi observability packages#401
Async23 wants to merge 1 commit into
liaohch3:mainfrom
Async23:docs/pi-observability-research

Conversation

@Async23

@Async23 Async23 commented Jul 21, 2026

Copy link
Copy Markdown

Summary

  • Document primary-source research into Pi-native web observability packages.
  • Recommend a local real-time extension and record deep-trace and privacy tradeoffs.
  • Capture compatibility and rejected alternatives for Pi 0.81.0.

Purpose

  • Identify an observability path that preserves the native Pi workflow without requiring claude-tap as a proxy.
  • Record enough source-backed detail to guide a later controlled installation and E2E evaluation.

Scope

  • Files updated: .agents/docs/research/2026-07-22-pi-observability-ecosystem.md
  • Code paths explicitly not changed: all runtime, viewer, client, and user configuration paths.

Validation

  • Content reviewed for accuracy and consistency
  • Links, commands, and paths were checked
  • uv lock --check
  • uv run ruff check .
  • uv run ruff format --check .
  • uv run pytest tests/ -x --timeout=60 (996 passed, 26 skipped)
  • uv run python scripts/check_legibility.py

Notes

  • This is an internal research note only; it does not install a Pi package or modify aliases.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b640b55ff

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


### 第三阶段:只有出现团队需求才接 SaaS/自建平台

若以后需要团队共享、跨机器搜索、评估和长期趋势,再从 `pi-langfuse`、Braintrust、Latitude 或 Grafana 中选择。个人本机调试阶段先用本地两款,部署和隐私成本最低。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add missing SaaS observability options

For the team/SaaS path, this recommendation is incomplete: I checked the Pi package catalog and it lists @posthog/pi (pi install npm:@posthog/pi, captures LLM generations, tool executions, and traces to PostHog with privacy mode) and pi-sentry-monitor (captures sessions, tool executions, token usage, and errors as Sentry traces). Since the doc says the search covered Pi registry, npm, and vendor docs, omitting these Pi-native packages can steer maintainers to Langfuse/Braintrust/Latitude/Grafana without considering available alternatives; please include or explicitly reject them.

Useful? React with 👍 / 👎.

| [`@braintrust/pi-extension`](https://github.com/braintrustdata/braintrust-pi-extension) | Braintrust 官方仓库;npm `0.10.0`,2026-07-17;采集 session/turn/LLM/tool、compaction、token/cost/TTFT,提供 Web trace | 需要 Braintrust 账号并上传数据;刻意不记录完整 provider payload,适合指标与评估,不适合深挖上下文 |
| [`@latitude-data/pi-telemetry`](https://github.com/latitude-dev/latitude-llm/tree/development/packages/telemetry/pi) | Latitude 官方 monorepo;采集 prompt、assistant、system/context、provider 参数、tool 定义/参数/结果、token/cost,并发到 Latitude Web | 需要账号/项目/API key;不是本地 dashboard |
| [`@amaster.ai/pi-telemetry`](https://github.com/TGYD-helige/pi/tree/master/packages/pi-telemetry) | npm `0.1.6`,2026-07-20;支持 Langfuse 和通用 OTLP/HTTP,peer 要求当前 `@earendil-works/pi-coding-agent>=0.74.0` | 只是 exporter,没有自带 Web UI;还要选择并运行观测后端 |
| [`@grafana/agento11y-pi`](https://github.com/grafana/agento11y/tree/main/plugins/pi) | Grafana 官方 Agento11y Pi 插件,可把 conversation/model/token/tool/timing 发到 Grafana Cloud AI Observability | 当前 npm manifest 仍声明旧 `@mariozechner/pi-*` peers,项目又处在 Sigil → Agento11y 包名迁移期;对当前 `@earendil-works` Pi 0.81 需额外兼容性验证 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include the current Pi OTel dashboard option

In this OTel/Grafana comparison, the doc skips the current pi-otel package even though I checked its GitHub package metadata and it declares @earendil-works/pi-coding-agent:*, installs with pi install npm:pi-otel, and /otel start launches a local Aspire web dashboard with Grafana LGTM support. When someone wants a local or self-hosted OTel UI rather than a SaaS exporter, omitting this option makes the Grafana/OTel recommendation look more constrained than it is; please include it or document why it was rejected.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant