How redhuang-0622/seelex works
Seelex is a local coding-agent harness built around a shared application core and Seele runtime. A user submits a coding task through a frontend; the core coordinates model turns, project-scoped tools, optional plans and subagents, context management, approvals, and durable session state, then presents the resulting conversation and status. The README documents the principal capability relationships; sampled source confirms selected application/runtime and context/storage boundaries. Several subsystem implementations were not sampled, so their links below rely on README statements rather than inspected call sites.
Main entry points: runtime.go Seele runtime · application.go Application core · router.go Tool routing · tui.go TUI
Components 21
User interaction
- TUI
tui/tui.go - Desktop GUI
gui/bridge.go - Headless RPC
gui/headless.go - Backend console
application/console/backend_console.go
Agent execution
- Application core
application/application.go - Runtime adapter
internal/adapters/engine_port.go - Seele runtime
seelebridge/runtime.go - Approval broker
application/approval/broker.go
Task capabilities
- Tool routing
seelebridge/tools/router.go - Workspace operations
workspace/workspace.go - Plans and subagents
seelebridge/plan/executor.go - Agent teamwork
seelebridge/teamwork/coordinator.go - Goal governance
application/core/goal/controller.go
Context and state
- Context pipeline
seelebridge/runtime_context.go - Session persistence
sessionstore/sessionstore.go
Integrations
- Plugins, skills, MCP
plugin/manager.go - Account routing
seelebridge/account/manager.go - Scheduled jobs
seelebridge/scheduler/scheduler.go - Search and computer
seelebridge/search/builtin.go
Other components
- Engineer
- LLM endpoint
Connections 26
- Engineer → TUI: submits task
README.md - Engineer → Desktop GUI: submits task
README.md - Engineer → Headless RPC: submits action
README.md - Engineer → Backend console: requests diagnostics
README.md - TUI → Application core: submits actions
README.md - Desktop GUI → Application core: submits actions
- Headless RPC → Application core: submits actions
README.md - Backend console → Application core: reads state
README.md - Application core → Runtime adapter: uses engine port
application/application.go - Runtime adapter → Seele runtime: adapts runtime
internal/adapters/engine_port.go - Seele runtime → LLM endpoint: streams requests
README.md - Seele runtime → Account routing: routes model account
README.md - Seele runtime → Tool routing: dispatches calls
README.md - Tool routing → Workspace operations: performs project I/O
README.md - Tool routing → Approval broker: requests approval
- Seele runtime → Plans and subagents: executes optional plan
README.md - Plans and subagents → Agent teamwork: coordinates agents
- Seele runtime → Goal governance: governs completion
README.md - Seele runtime → Context pipeline: assembles context
seelebridge/runtime_context.go - Context pipeline → Session persistence: reads and writes
seelebridge/runtime_context.go - Seele runtime → Session persistence: persists sessions
- Seele runtime → Plugins, skills, MCP: loads capabilities
README.md - Seele runtime → Scheduled jobs: dispatches scheduled work
README.md - Tool routing → Search and computer: offers search tools
- Application core → TUI: publishes state
README.md - Application core → Desktop GUI: publishes state
README.md