Mithril — CLI — The Fellowship's Voice




Purpose
⚔️
Terminal interface: REPL with Tab completion, exec mode for CI, session manageme
Files
20
LOC
2,658

Key Concept

chat_core.rs centralizes ALL command logic. REPL and TUI are thin rendering layers that call ChatCore.

chat_core.rs — The Brain

ALL command logic lives in one place. Both the REPL and TUI call into it:

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

FilePurpose
agent_loop.rsRe-exports from flow::agent_loop for backward compatibility.
chat.rsInteractive chat REPL — terminal frontend using fellowship orchestration.
chat_core.rsCentralized chat logic shared between REPL and TUI frontends.
compact.rsConversation compaction — summarize long histories to free context window.
config.rsConfig management CLI subcommand.
download.rs
exec.rsHeadless exec mode — run the agentic loop non-interactively.
fellowship.rsFellowship CLI — manage multi-agent orchestration.
fellowships.rs`mithril fellowships` — list all available fellowship configurations.
flow.rs`mithril flow` — run a multi-agent flow on a user message.
forge.rs
init.rs`mithril init` — auto-analyze project and generate MITHRIL.md.
mcp_stdio.rsMCP server over stdin/stdout.
mod.rs
scan.rs
serve.rs
sessions.rs`mithril sessions` — list, show, and delete saved chat sessions.
steering.rsSteering — load project context from .mithril/steering/ and MITHRIL.md.
telegram.rsTelegram bot frontend for Mithril.
undo.rs