How threenebula23/lorne works
Lorne is a vi-like terminal IDE with an AI coding agent. Users enter through the TUI or classic CLI, choose a mode, and send a request that the agent handles with model calls and tools; results stream back into the interface. Major branches include parallel Creator and checkpointed Deep work, project indexing and RAG, and persistent sessions and file version history. Edges follow explicit README statements or source-index references; several subsystems are documented but their internal call paths were not sampled, so those links are omitted.
Main entry points: _impl_classic.py Classic agent · _impl_prepare.py Agent preparation · tool_registry.py Tool registry · runner.py CLI launcher
Components 22
Entry and interaction
- CLI launcher
Terminal/runner.py - Classic agent
Agent/agent/_impl_classic.py - TUI application
Interface/tui_app.py - TUI bridge
Interface/tui_bridge.py - Streaming chat panel
Interface/panels/ai_chat/_mixin_stream.py - Vi editor
Interface/panels/vi_textarea.py
Agent and execution
- Agent preparation
Agent/agent/_impl_prepare.py - Command router
Agent/command_router/_main.py - Model provider
Agent/llm_provider.py - Tool registry
Agent/tool_registry.py - Core tools
Agent/tools/compact_tools.py - Creator workers
Agent/creator_provider.py - Deep solver
Agent/deep_solver/_impl_a.py
Project knowledge
- Project Brain
Agent/project_brain/agent_architecture.py - Brain policy
Agent/project_brain/policy.py - RAG index
Agent/rag/__init__.py
Sessions and history
- Session checkpoints
Agent/checkpoint/__init__.py - File versions
Agent/versioning/__init__.py
Workspace capabilities
- Project files
- Git integration
Agent/git_integration.py
Other components
- User
- Model services
Connections 25
- User → CLI launcher: launches
README.md - CLI launcher → Classic agent: starts
README.md - CLI launcher → TUI application: starts
README.md - User → TUI application: interacts
README.md - TUI application → TUI bridge: bridges chat
Interface/tui_bridge.py - TUI bridge → Streaming chat panel: streams updates
Interface/tui_bridge.py - User → Vi editor: edits in
README.md - Classic agent → Agent preparation: prepares agent
Agent/agent/_impl_classic.py - Classic agent → Command router: routes commands
Agent/agent/_impl_classic.py - Agent preparation → Model provider: configures
Agent/agent/_impl_prepare.py - Agent preparation → Tool registry: builds tools
Agent/agent/_impl_prepare.py - Model provider → Model services: calls
README.md - Tool registry → Core tools: registers tools
Agent/tool_registry.py - Agent preparation → Creator workers: sets up Creator
Agent/agent/_impl_prepare.py - Deep solver → Model provider: uses provider
Agent/deep_solver/_impl_a.py - Deep solver → Tool registry: uses tools
Agent/deep_solver/_impl_a.py - Agent preparation → Project Brain: loads brain context
Agent/agent/_impl_prepare.py - Project Brain → Brain policy: applies policy
Agent/project_brain/__init__.py - Project Brain → RAG index: reindexes brain
Agent/project_brain/agent_architecture.py - Classic agent → RAG index: searches project
Agent/agent/_impl_classic.py - Classic agent → Session checkpoints: saves sessions
README.md - Session checkpoints → File versions: snapshots workspace
Agent/checkpoint/__init__.py - Tool registry → Project files: operates on files
README.md - Tool registry → Git integration: offers Git tools
Agent/tool_registry.py - User → Session checkpoints: selects chats
README.md