How alladinchik7/yuima_ai-agent works
Yuima is a Go desktop AI assistant. A user submits a message in the Fyne UI; the agent asks a configured LLM, dispatches requested tools, and returns a response to the UI. The product also includes persistent dialog/task/reminder storage, web search and weather tools, history compression, background task cleanup, and reminder notifications. The graph preserves README-described capabilities, but omits unverified internal links where source excerpts do not show the calls.
Main entry points: main.go Application startup · app.go Desktop UI · agent.go Agent loop · bootstrap Dependency setup
Components 22
Desktop experience
- Desktop UI
internal/ui/app.go - Application startup
cmd/desktop/main.go - Configuration
internal/config/config.go - Dependency setup
internal/bootstrap
Agent and tools
- Agent loop
internal/agent/agent.go - Tool registry
internal/tools/tool.go - Todo tools
internal/tools/todo - Reminder tools
internal/tools/remindertools - Weather tool
internal/tools/weathertools/weather_tool.go - Web search tool
internal/tools/webtools/web_search.go - LLM provider
internal/llm
Background services
- Task cleanup
internal/cleaner/cleaner.go - Reminder service
internal/reminder/service.go
Storage and integrations
- Search client
internal/search/client.go - Weather client
internal/weather/weather.go - Storage interfaces
internal/storage/store.go - SQLite storage
internal/storage/sqlite - In-memory storage
internal/storage/memory
Other components
- User
- SearxNG
- Weather service
- System notifications
Connections 25
- User → Desktop UI: sends message
internal/ui/app.go - Desktop UI → Agent loop: submits input
internal/ui/app.go - Agent loop → LLM provider: requests completion
internal/agent/agent.go - Agent loop → Tool registry: dispatches calls
internal/agent/agent.go - Desktop UI → User: shows response
internal/ui/app.go - Application startup → Configuration: loads settings
cmd/desktop/main.go - Application startup → Dependency setup: initializes dependencies
cmd/desktop/main.go - Application startup → Desktop UI: creates and runs
cmd/desktop/main.go - Application startup → Agent loop: creates agent
cmd/desktop/main.go - Application startup → Todo tools: registers tools
cmd/desktop/main.go - Application startup → Reminder tools: registers tools
cmd/desktop/main.go - Application startup → Weather tool: registers tool
cmd/desktop/main.go - Application startup → Web search tool: registers tool
cmd/desktop/main.go - Application startup → Task cleanup: starts service
cmd/desktop/main.go - Application startup → Reminder service: starts service
cmd/desktop/main.go - Application startup → Search client: initializes search
cmd/desktop/main.go - Search client → SearxNG: queries
internal/search/client.go - Weather client → Weather service: requests weather
internal/weather/weather.go - Agent loop → Storage interfaces: loads and saves summaries
internal/agent/agent.go - Task cleanup → Storage interfaces: lists and deletes tasks
- Reminder service → Storage interfaces: reads and marks reminders
internal/reminder/service.go - Reminder service → Desktop UI: notifies through callback
- Desktop UI → System notifications: sends notification
internal/ui/app.go - Dependency setup → SQLite storage: selects storage
- Dependency setup → In-memory storage: selects storage