How saffroncarp1106/redoxcodex works
ReDox is a native Rust desktop chat client for Codex and Ollama. The primary workflow is a user composing a project chat, choosing a provider, and receiving a streamed response; the app also manages history, attachments, queued messages, usage, and settings. README-documented branches include Ollama project tools and Codex delegation, multiple UI looks, and a UI design/export runtime. Some subsystems are represented at their exact source paths because their implementation was not sampled; their connections are shown only where documented or indexed.
Main entry points: app.rs Desktop app · shell.rs Chat interface · codex.rs Codex client · ollama.rs Ollama client
Components 23
Application workflow
- Desktop app
src/app.rs - Usage tracking
src/usage.rs
Chat providers
- Codex client
src/codex.rs - Ollama client
src/ollama.rs - Ollama delegation
src/delegation.rs - Project tools
src/ollama_tools.rs
Chat domain
- Chat state
src/domain.rs - Chat history
src/history.rs - Attachments
src/attachments.rs - Prompt branches
src/message_edit.rs
Interface and looks
- Chat interface
src/ui/shell.rs - Conversation view
src/ui/conversation.rs - Settings
src/ui/settings.rs - UI packs
src/ui/packs.rs - Alternate looks
src/ui/skins.rs - Windows 98 terminal
src/ui/win98_terminal.rs
Design runtime
- Design export
src/ui/design_export.rs - Studio document
src/ui/studio_runtime/src/document.rs - Studio actions
src/ui/studio_runtime/src/actions.rs - Studio scenes
src/ui/studio_runtime/src/scenes.rs
Other components
- User
- Codex CLI
- Ollama server
Connections 23
- User → Desktop app: uses
README.md - Desktop app → Codex client: sends prompts
README.md - Codex client → Codex CLI: launches app-server
README.md - Desktop app → Ollama client: sends prompts
README.md - Ollama client → Ollama server: calls server
README.md - Desktop app → Chat state: manages chat state
src/domain.rs - Desktop app → Chat history: loads history
README.md - Desktop app → Attachments: accepts attachments
README.md - Desktop app → Prompt branches: branches prompts
README.md - Desktop app → Ollama delegation: enables delegation
README.md - Codex client → Ollama delegation: offers delegate tool
src/codex.rs - Ollama client → Project tools: provides project tools
README.md - Desktop app → Usage tracking: shows usage
README.md - Desktop app → Chat interface: draws interface
src/ui/shell.rs - Chat interface → Conversation view: shows conversation
README.md - Chat interface → Settings: opens settings
src/ui/shell.rs - Settings → UI packs: imports packs
README.md - Chat interface → Alternate looks: selects look
- Chat interface → Windows 98 terminal: offers terminal view
- Chat interface → Design export: records controls
src/ui/shell.rs - Design export → Studio document: writes design
src/ui/design_export.rs - Studio document → Studio actions: uses action types
src/ui/studio_runtime/src/document.rs - Studio document → Studio scenes: uses scene types
src/ui/studio_runtime/src/document.rs