Implement basic REPL loop

t-506·WorkTask·
·
·
Created3 weeks ago·Updated3 weeks ago

Dependencies

Description

Edit

Implement basic REPL loop with haskeline:

  • Prompt: "agent> "
  • Read line
  • If empty, continue
  • If starts with /, handle command
  • Otherwise, call runAgent with history + input
  • Print result
  • Loop

Timeline (4)

🔄[human]Open → InProgress3 weeks ago
🔄[human]InProgress → Done3 weeks ago
💬[human]3 weeks ago

Basic REPL loop implemented and tested. Features:

  • Reads input with haskeline (readline support, history)
  • Prompts with 'agent> '
  • Handles empty lines (continues)
  • Handles slash commands (/quit, /exit, /help)
  • Calls runAgent with input
  • Tracks conversation history (basic)
  • Displays results
  • Loops until /quit

Tested:

  • Empty lines skip correctly
  • Math questions work (2+2, then 'what is that plus 3?')
  • Follow-up questions use conversation context
  • Tool usage works (list files)
  • Slash commands work (/help, /unknown, /quit)

Next tasks:

  • t-507: Proper conversation history formatting
  • t-508: More slash commands (/clear, /cost, /expand)
  • t-509: Better tool output display