REPL Method Analysis (from grep output):

1. __init__ (line 72) - 184 lines (72-255)
2. set_session (line 256) - 11 lines (256-266)
3. _handle_confirmation (line 266) - 11 lines (266-276)
4. initialize_mcp (line 277) - 17 lines (277-293)
5. run (line 294) - 39 lines (294-332)
6. _auto_save_session (line 333) - 11 lines (333-343)
7. _get_input (line 344) - 12 lines (344-355)
8. process_input (line 356) - 29 lines (356-384)
9. _run_agent (line 385) - 54 lines (385-438)
10. _run_agent_direct (line 439) - 45 lines (439-483)
11. _process_agent_stream (line 484) - 20 lines (484-503)
12. _execute_tool_calls (line 504) - 11 lines (504-514)
13. _handle_agent_event (line 515) - 35 lines (515-549)
14. _handle_tool_call (line 550) - 10 lines (550-559)

Total: 14 methods
Current line count: 559 lines
Target: <400 lines
Lines to remove: >159 lines

Largest methods to target:
1. __init__ (184 lines) - Contains MCP setup, component initialization
2. _run_agent (54 lines) - Agent execution with monitor setup
3. _run_agent_direct (45 lines) - Direct agent execution
4. run (39 lines) - Main REPL loop
5. _handle_agent_event (35 lines) - Deprecated event handler
6. process_input (29 lines) - Input processing logic

Strategy:
1. Move MCP setup logic from __init__ to a dedicated MCP component or simplify
2. Move agent execution logic (_run_agent, _run_agent_direct) to ToolExecutor
3. Simplify run method - it already delegates well
4. Remove or simplify deprecated methods (_handle_agent_event, _handle_tool_call) - they just delegate to ToolExecutor
5. Check if _auto_save_session, _get_input, process_input can be simplified or moved