-
-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Labels
agentsRelated to agent definitionsRelated to agent definitionsenhancementNew feature or requestNew feature or request
Description
Feature Request
Description
Add a new HUD element that displays a brief summary (under 20 characters) of what the user is currently doing in the session, derived from the conversation transcript.
Motivation
When working with multiple Claude Code sessions or glancing at the status line, it's hard to tell at a glance what each session is about. A short, auto-generated summary like fixing auth bug or adding API tests would make it much easier to identify and switch between sessions.
Proposed Behavior
- Analyze the current session's conversation transcript
- Generate a concise summary of the ongoing task (< 20 characters)
- Display it as a new element in the HUD status line
- Update dynamically as the conversation topic shifts
Generation Rules
- Initial generation: Only after 10+ conversation turns have accumulated
- Update frequency: Regenerate every 10 additional turns (not on every render)
- Generation method: Use
claude -pcommand to summarize the transcript - Cache: Store the generated summary and the turn count at generation time, only regenerate when
currentTurns - lastGeneratedTurns >= 10
Example Output
[OMC#1.2.3] 5h:45% | ctx:[████░░]67% | 📝 fixing auth bug
Implementation Ideas
- New element file:
src/hud/elements/session-summary.ts - Parse transcript (already available via
transcript_pathin stdin) to count turns - Use
claude -pto generate summary when turn threshold is met - Cache summary in HUD state (
hud-state.json) withlastSummaryTurnCountandsummaryfields - Add
sessionSummarytoggle toHudElementConfig - Add to presets (probably
focusedandfull)
Configuration
{
"omcHud": {
"elements": {
"sessionSummary": true
}
}
}🤖 Generated with Claude Code
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agentsRelated to agent definitionsRelated to agent definitionsenhancementNew feature or requestNew feature or request