Description
The AI Harness requires API keys to function, but there is no setup wizard or guidance in the UI. Users must manually set environment variables or localStorage values. Additionally, there is no model selector — models are hardcoded in the provider code.
Current State
- ❌ No setup wizard for API keys
- ❌ No model selector UI
- ❌ No rate limiting or token usage display
- ❌ Raw LLM output rendered without Markdown formatting
- ❌
onKeyPress is deprecated (should be onKeyDown)
- ❌ No error messages when API key is missing
Proposed Implementation
- Setup wizard: On first visit to AI Harness, guide user to enter API key and select provider
- Model selector: Dropdown with available models per provider (OpenRouter, Kilo, etc.)
- Token usage: Display tokens used per message and per session
- Rate limiting: Visual feedback when rate-limited (429 responses)
- Markdown rendering: Render LLM responses with Markdown formatting
- Fix deprecated
onKeyPress → onKeyDown
Acceptance Criteria
Description
The AI Harness requires API keys to function, but there is no setup wizard or guidance in the UI. Users must manually set environment variables or localStorage values. Additionally, there is no model selector — models are hardcoded in the provider code.
Current State
onKeyPressis deprecated (should beonKeyDown)Proposed Implementation
onKeyPress→onKeyDownAcceptance Criteria
onKeyPressreplaced withonKeyDown