chat_core.rs — The Brain
ALL command logic lives in one place. Both the REPL and TUI call into it:
ChatCore::execute_command("/help")→ returnsChatAction::Message(...)ChatCore::process_message("fix the bug")→ calls orchestrator → returnsChatAction::Response(...)
Frontends only render the result. Adding a command means touching ONE file.
Available Commands
/exit /clear /compact /fellowship
/undo /redo /plan /build
/session /history /share /telegram /help
Special Syntax
@file.rs— injects file content into the message#agent— routes directly to a specific agent\at end of line — multiline input