As a user, I want a persistent prompt showing current state, so that I always know the agent is ready for input.
SYNOPSIS
Always-visible prompt indicator showing mode and readiness state.
DESCRIPTION
During long operations or after scrolling output, it can be unclear whether the agent is ready for input. A persistent or always-visible prompt helps orient the user.
Possible approaches:
- Status line at bottom of terminal (like vim/tmux)
- Clear prompt redraw after all output
- Spinner/indicator that transitions to prompt when ready
Information to show:
- Current mode (plan/design/build/review/verify)
- Ready state (waiting for input vs. processing)
- Token usage or cost (optional)
- Current branch or project context (optional)
SEE ALSO
- lib/elelem/terminal.rb - Prompt rendering
- lib/elelem/agent.rb - State management
- ANSI escape sequences for cursor positioning
Tasks
- TBD (filled in design mode)
Acceptance Criteria
- Prompt always visible or redrawn after output
- Current mode displayed in prompt
- Clear visual distinction between ready and processing states
- Prompt survives terminal resize
- Works correctly with pager integration (story 017)
- No visual glitches during rapid output