Skip to content

Edgee 1308 add claude code status bar showing live compression stats#54

Open
NicolasGirardot wants to merge 3 commits intomainfrom
edgee-1308-add-claude-code-status-bar-showing-live-compression-stats
Open

Edgee 1308 add claude code status bar showing live compression stats#54
NicolasGirardot wants to merge 3 commits intomainfrom
edgee-1308-add-claude-code-status-bar-showing-live-compression-stats

Conversation

@NicolasGirardot
Copy link
Copy Markdown
Member

@NicolasGirardot NicolasGirardot commented Apr 10, 2026

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Adds a Claude Code status bar that displays live compression stats from the Edgee session, and wires it up to the new lightweight /v1/sessions/:sessionId/summary endpoint.

  • Status line shows live compression stats for the current Edgee session
  • When composing with an existing statusLine, the Edgee segment is prepended with | as a separator
  • Uses the new /summary endpoint (backed by the materialized view) for low-overhead polling

Related Issues

EDGEE-1308

NicolasGirardot and others added 2 commits April 10, 2026 15:41
… stats

Install an Edgee status line into Claude Code's settings on launch that
displays real-time tool compression percentage by polling the public
session API. Composes with any existing statusLine config via a wrapper
script and restores the original settings on exit.

Closes EDGEE-1308

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…posing

Update the API call to use GET /v1/sessions/:sessionId/summary (the new
lightweight endpoint backed by the materialized view). Also prepend "| "
to the Edgee status line when composing with an existing statusLine.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@NicolasGirardot NicolasGirardot requested a review from a team as a code owner April 10, 2026 14:55
…de_str!

Addresses review feedback from @KokaKiwi on #54.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment on lines 61 to 69
let status = cmd.status().map_err(|e| {
if e.kind() == std::io::ErrorKind::NotFound {
anyhow::anyhow!(
"Claude Code is not installed. Install it from https://code.claude.com/docs/en/quickstart"
)
} else {
anyhow::anyhow!(e)
}
})?;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If executing claude result in an error here, the status line change won't be reverted
Using Drop on the guard would work here to handle this.

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.

2 participants