agent-joule/crates/zed
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Charlot 55d596a5de agent_joule_panel: add a run-energy observability panel
A dockable editor panel (RunEnergyPanel, bolt icon) that surfaces the last on-device
run's MEASURED cost live: host energy over the session with its provenance, the real
accepted/prompt token counts, and the derived efficiency (µJ per accepted token,
tokens/sec) -- the same figures the session's efficiency/1 receipt seals. No other
editor shows the joules a run spent, because none measure it.

The agent run's completion path publishes RunMetrics via energy_panel::record_run
(reusing the already-computed session_uj + token totals + wall time -- no new
metering, so no risk to the Send background run path). The panel polls the published
metrics ~1x/s so a run that finishes while it's open updates without interaction.
Registered in zed.rs alongside the other panels.

Verified: agent_joule_panel + full app build; the app launches with the panel
registered and no init crash (control server responds).
2026-07-07 11:46:13 -04:00
..
contents Baseline: hard fork of zed@e2e7a67 2026-05-30 08:20:23 -04:00
resources Rebrand: swap the Zed brand mark, zed.dev domain, Zeta model, and zed:// scheme 2026-07-04 20:10:29 -04:00
src agent_joule_panel: add a run-energy observability panel 2026-07-07 11:46:13 -04:00
build.rs Baseline: hard fork of zed@e2e7a67 2026-05-30 08:20:23 -04:00
Cargo.toml Rebrand: swap the Zed brand mark, zed.dev domain, Zeta model, and zed:// scheme 2026-07-04 20:10:29 -04:00
LICENSE-GPL Baseline: hard fork of zed@e2e7a67 2026-05-30 08:20:23 -04:00
RELEASE_CHANNEL Brand the macOS bundle as Agent Zed and fix the bundler 2026-06-06 08:12:52 -04:00