agent-joule/crates/zed/src
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
..
zed Rebrand: swap the Zed brand mark, zed.dev domain, Zeta model, and zed:// scheme 2026-07-04 20:10:29 -04:00
main.rs Rebrand: swap the Zed brand mark, zed.dev domain, Zeta model, and zed:// scheme 2026-07-04 20:10:29 -04:00
reliability.rs Rebrand Zed -> Joule across UI, docs, embedded assets, and legal 2026-07-03 02:23:35 -04:00
visual_test_runner.rs Rebrand Zed -> Joule across UI, docs, embedded assets, and legal 2026-07-03 02:23:35 -04:00
zed.rs agent_joule_panel: add a run-energy observability panel 2026-07-07 11:46:13 -04:00