How meshapplied/goethe works
Goethe turns a supported machine into a private model-serving API. The main workflow is to install or choose a model, assess GPU fit, start a suitable runtime, and serve requests through a shared gateway; a daemon supports persistent operation. The CLI also includes an Ask flow for interpreting requests and planning commands. The README documents product capabilities, while source excerpts and the index substantiate only some internal connections; unsupported implementation links are omitted or marked unverified.
Main entry points: main.rs Goethe CLI · planner.rs Ask planner · mod.rs Engine selection · mux.rs API gateway
Components 34
CLI and planning
- Goethe CLI
goethe/crates/goethe/src/main.rs - Ask planner
goethe/crates/goethe/src/ask/planner.rs - Ask parsing
goethe/crates/goethe/src/ask/parse.rs - Ask schema
goethe/crates/goethe/src/ask/schema.rs - Ask embeddings
goethe/crates/goethe/src/ask/embed.rs - Command spec
goethe/crates/goethe/src/spec.rs - Command completion
goethe/crates/goethe/src/complete.rs
Models and placement
- Model recommendations
goethe/crates/core/src/recommend.rs - Model installation
goethe/crates/core/src/install.rs - Model downloads
goethe/crates/core/src/hf.rs - Model facts
goethe/crates/core/src/model_facts.rs - GPU placement
goethe/crates/core/src/chooser.rs - VRAM calculation
goethe/crates/core/src/calc.rs - Memory estimates
goethe/crates/core/src/memory_spec.rs
Serving runtime
- Engine selection
goethe/crates/core/src/engines/mod.rs - Kernel-pack engine
goethe/crates/core/src/engines/goethe_engine.rs - llama.cpp engine
goethe/crates/core/src/engines/llama_cpp.rs - SGLang engine
goethe/crates/core/src/engines/sglang.rs - Python environments
goethe/crates/core/src/pyenv.rs - API gateway
goethe/crates/goethed/src/mux.rs - Python setup
goethe/crates/core/src/pyenv.rs
Daemon and operations
- Local state
goethe/crates/core/src/db.rs - Background daemon
goethe/crates/goethed/src/main.rs - Engine curator
goethe/crates/goethed/src/curator.rs - Service management
goethe/crates/core/src/service.rs - Usage metrics
goethe/crates/core/src/metrics.rs - Host detection
goethe/crates/core/src/host.rs - Home and paths
goethe/crates/core/src/paths.rs - System utilities
goethe/crates/core/src/sys.rs - Runtime updates
goethe/crates/core/src/update.rs
Client connectivity
- Remote linking
goethe/crates/core/src/client/link.rs - Network utilities
goethe/crates/core/src/net.rs
Other components
- Operator
- API clients
Connections 29
- Operator → Goethe CLI: runs commands
README.md - Goethe CLI → Model installation: installs models
README.md - Goethe CLI → API gateway: starts serving
README.md - API clients → API gateway: sends API requests
README.md - Ask planner → Ask parsing: uses parsing
goethe/crates/goethe/src/ask/planner.rs - Ask planner → Ask schema: uses schema
goethe/crates/goethe/src/ask/planner.rs - Ask planner → Ask embeddings: uses embeddings
goethe/crates/goethe/src/ask/planner.rs - Ask planner → Command spec: plans commands
goethe/crates/goethe/src/ask/planner.rs - Goethe CLI → Ask planner: dispatches Ask
- Model installation → Model downloads: downloads weights
goethe/crates/core/src/install.rs - Model installation → Local state: registers models
goethe/crates/core/src/install.rs - GPU placement → VRAM calculation: checks memory
goethe/crates/core/src/chooser.rs - GPU placement → Engine selection: checks engines
goethe/crates/core/src/chooser.rs - Engine selection → Kernel-pack engine: selects engine
goethe/crates/core/src/engines/mod.rs - Engine selection → llama.cpp engine: selects engine
goethe/crates/core/src/engines/mod.rs - Engine selection → SGLang engine: selects engine
goethe/crates/core/src/engines/mod.rs - Kernel-pack engine → Python environments: resolves Python
goethe/crates/core/src/engines/goethe_engine.rs - llama.cpp engine → Python environments: uses Python setup
goethe/crates/core/src/engines/llama_cpp.rs - SGLang engine → Python environments: uses Python setup
goethe/crates/core/src/engines/sglang.rs - Background daemon → API gateway: loads gateway
goethe/crates/goethed/src/main.rs - Background daemon → Engine curator: starts curator
goethe/crates/goethed/src/main.rs - Engine curator → API gateway: coordinates serving
goethe/crates/goethed/src/curator.rs - Service management → Background daemon: spawns daemon
- Remote linking → Home and paths: uses home paths
goethe/crates/core/src/client/link.rs - Remote linking → Network utilities: uses networking
goethe/crates/core/src/client/link.rs - Host detection → System utilities: probes system
goethe/crates/core/src/host.rs - Host detection → Home and paths: uses home paths
goethe/crates/core/src/host.rs - Python setup → Runtime updates: fetches packages
goethe/crates/core/src/pyenv.rs - Goethe CLI → Command completion: offers completion
goethe/crates/goethe/src/main.rs