Install
Install with PiG
pig install npm:@agimon-ai/po-logInstall with Pi
pi install npm:@agimon-ai/po-logPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
README
Written by the package's publisher, shown as published in version 0.0.0-alpha.197 (README.md). PiG does not review it.
@agimon-ai/po-log
Session metrics, findings, and sink status for Po.
Part of the Po distribution.
The extension aggregates telemetry it observes in-process and can query historical data from
@agimon-ai/po-logsink.
Alpha: metric attribution and UI contracts may change between releases.
Requirements
- Node.js 24 or newer
Install
po init includes Log in default.packages in .po/presets.yaml. Remove it
or move it to a named layer to change which presets load it.
What is collected
The in-process aggregator tracks operational records such as turn token totals, cache use, tool calls and failures, operation durations, recent errors, and event counts. It derives findings from those records without requiring an external sink.
Historical panels resolve a sink over HTTP first and then use the Log Sink CLI fallback. Without a reachable sink, current-session headline metrics, findings, errors, and tool metrics still work; historical top-consumer and burn-rate views are unavailable. Sink failures are reported in status rather than failing the session.
Turn cost attribution is contextual: when a turn invokes several tools, the emitted turn total can be associated with each participating tool. This is not a precise per-tool share.
Telemetry controls
| Variable | Effect |
|---|---|
AGENT_TELEMETRY_DISABLED | Disables the extension's telemetry export |
OTEL_SDK_DISABLED | Disables OpenTelemetry SDK export |
AGENT_OTEL_TRACES | Enables/disables trace export; logs can remain enabled |
File fallback is opt-in through host options. The absence of a configured or reachable endpoint does not prevent in-process aggregation. Exceptions and caller-supplied attributes can still be sensitive; do not assume "metadata" is harmless.
Development
pnpm build
pnpm typecheck
pnpm test
pnpm lint
Maintained by Agimon.
License
MIT. See LICENSE.