How fxmario/remie works
Remie is a terminal coding agent. A user submits a prompt in the Textual interface; the app manages a per-tab session and invokes the provider-independent runner, which streams model responses and dispatches requested tools. Results return to the session for display and persistence. The graph also preserves provider setup, chat/worktree management, memory, and web access described in the README. Edges use README statements or shown source-index references and excerpts; unsampled subsystem wiring is omitted where it cannot be verified.
Main entry points: app.py Textual interface · chat_session.py Tab sessions · executor.py Tool executor · registry.py Tool registry
Components 25
TUI and sessions
- Textual interface
remie/tui/app.py - Chat widgets
remie/tui/widgets.py - Tab sessions
remie/tui/chat_session.py - Worktrees
remie/tui/workspaces.py
Agent runtime
- Turn runner
remie/core/runner.py - Agent facade
remie/agent.py - Prompt construction
remie/prompts.py - Tool executor
remie/tools/executor.py - Tool registry
remie/tools/registry.py
Model providers
- Provider router
remie/providers/router.py - Model catalogs
remie/providers/catalog.py - Codex sign-in
remie/codex_auth.py - Codex client
remie/codex_client.py - OpenRouter client
remie/openrouter_client.py - Provider config
remie/config.py
Tools and persistence
- File tools
remie/tools/files.py - Command tools
remie/tools/commands.py - Web tools
remie/tools/web.py - Scoped memory
remie/storage/memory.py - Chat history
remie/storage/chats.py - Tab layout
remie/storage/tabs.py
Other components
- User
- Project files and shell
- Model services
- Websites
Connections 29
- User → Textual interface: submits prompt
- Textual interface → Chat widgets: renders controls
remie/tui/app.py - Textual interface → Tab sessions: manages tabs
remie/tui/app.py - Tab sessions → Turn runner: runs turns
remie/tui/app.py - Tab sessions → Chat history: loads and saves
remie/tui/chat_session.py - Tab sessions → Tab layout: persists layout
remie/tui/chat_session.py - Tab sessions → Worktrees: allocates worktrees
remie/tui/chat_session.py - Turn runner → Tool executor: executes calls
remie/core/runner.py - Turn runner → Provider router: streams responses
remie/core/runner.py - Textual interface → Agent facade: configures agent
remie/tui/app.py - Agent facade → Provider config: loads profiles
remie/agent.py - Agent facade → Model catalogs: discovers models
remie/agent.py - Provider router → Codex client: routes Codex calls
remie/providers/router.py - Provider router → OpenRouter client: routes OpenRouter calls
remie/providers/router.py - Model catalogs → Codex client: fetches catalog
remie/providers/catalog.py - Model catalogs → OpenRouter client: fetches catalog
remie/providers/catalog.py - Textual interface → Codex sign-in: starts OAuth
- Tool executor → Tool registry: dispatches tools
remie/tools/executor.py - Tool executor → File tools: runs file operations
remie/tools/executor.py - Tool executor → Command tools: runs commands
remie/tools/executor.py - Tool executor → Scoped memory: handles memory
remie/tools/executor.py - Tool registry → Web tools: registers web tools
remie/tools/registry.py - Tool registry → File tools: registers file tools
remie/tools/registry.py - Tool registry → Command tools: registers command tool
remie/tools/registry.py - File tools → Project files and shell: reads and edits
- Command tools → Project files and shell: runs in directory
- Web tools → Websites: fetches and searches
- Provider router → Model services: requests completions
- Prompt construction → Turn runner: supplies instructions