How marshmallowneko/reveriecli works
ReverieCODE is a host-running autonomous coding agent. Users start it through the CLI or interactive shell; the agent sends tasks and tool definitions to a configured model, executes returned tool calls, and presents results. Its main stages are configuration and skill setup, model interaction, tool execution, and output. The README documents history, slash commands, streaming, context summarization, and the full tool suite; several relationships to these capabilities are documented rather than shown in the sampled excerpts.
Main entry points: agent.py Autonomous loop · main.py CLI and shell · factory.py Provider factory · anthropic.py Anthropic provider
Components 25
CLI and interaction
- CLI and shell
reverie/main.py - Command history
reverie/main.py - Rich renderer
reverie/ui/renderer.py
Agent runtime
- Autonomous loop
reverie/agent.py - Context manager
reverie/context.py - Skill registry
reverie/skills/base.py - Skill loader
reverie/skills/loader.py - Built-in skills
reverie/skills/builtin
Model providers
- Provider factory
reverie/llm/factory.py - Provider interface
reverie/llm/base.py - Anthropic provider
reverie/llm/anthropic.py - OpenAI-compatible provider
reverie/llm/openai.py - DeepSeek provider
reverie/llm/deepseek.py
Execution tools
- File operations
reverie/tools/files.py - Host commands
reverie/tools/shell.py - Browser automation
reverie/tools/browser.py - Web search
reverie/tools/search.py
Runtime support
- Configuration
reverie/config.py - Rotating logs
reverie/logging.py
Other components
- User
- Config file
- Model API
- Host workspace
- Web pages
- Bing search
Connections 32
- User → CLI and shell: starts task
README.md - CLI and shell → Configuration: loads settings
reverie/main.py - Configuration → Config file: reads and writes
README.md - CLI and shell → Autonomous loop: runs task
reverie/main.py - CLI and shell → Rich renderer: uses interface
reverie/main.py - CLI and shell → Command history: persists history
README.md - CLI and shell → Skill registry: manages skills
reverie/main.py - CLI and shell → Rotating logs: initializes logging
reverie/main.py - Autonomous loop → Context manager: manages context
reverie/agent.py - Autonomous loop → Provider factory: selects provider
reverie/agent.py - Autonomous loop → Skill registry: uses skills
reverie/agent.py - Autonomous loop → Rich renderer: renders responses
reverie/agent.py - Autonomous loop → Rotating logs: records activity
reverie/agent.py - Skill loader → Skill registry: registers skills
reverie/skills/loader.py - Skill loader → Built-in skills: loads built-ins
reverie/skills/loader.py - Provider factory → Anthropic provider: creates provider
reverie/llm/factory.py - Provider factory → OpenAI-compatible provider: creates provider
reverie/llm/factory.py - Provider factory → DeepSeek provider: creates provider
reverie/llm/factory.py - Anthropic provider → Provider interface: implements interface
reverie/llm/anthropic.py - OpenAI-compatible provider → Provider interface: implements interface
reverie/llm/openai.py - DeepSeek provider → Provider interface: implements interface
reverie/llm/deepseek.py - Anthropic provider → Model API: calls model API
- OpenAI-compatible provider → Model API: calls model API
- DeepSeek provider → Model API: calls model API
- Autonomous loop → File operations: dispatches tools
reverie/agent.py - Autonomous loop → Host commands: dispatches tools
reverie/agent.py - Autonomous loop → Browser automation: dispatches tools
reverie/agent.py - Autonomous loop → Web search: dispatches tools
reverie/agent.py - File operations → Host workspace: operates on files
- Host commands → Host workspace: runs host commands
- Browser automation → Web pages: automates pages
- Web search → Bing search: queries search
reverie/tools/search.py