How dimitricl/jarvis-local works
JarvisLocal is a privacy-oriented macOS assistant that runs language-model inference locally through Ollama. The main user flow is chat or voice input, conversation-turn orchestration, streamed model responses, and—when requested—tool execution with confirmation for sensitive actions. Results are presented in the UI and conversations and facts persist in SQLite. The product also includes native Mac tools, optional MCP delegation, web search, and speech. Some links below reflect README-level capabilities or SOURCE INDEX references; unsampled implementations are not asserted in detail.
Main entry points: AppViewModel.swift App view model · ToolService.swift Tool service · OllamaService.swift Ollama provider · ChatView.swift Chat interface
Components 20
User interaction
- Chat interface
JarvisLocal/Sources/JarvisUI/Views/ChatView.swift - App view model
JarvisLocal/Sources/JarvisUI/ViewModels/AppViewModel.swift - Voice coordination
JarvisLocal/Sources/JarvisUI/ViewModels/Conversation/VoiceCoordinator.swift
Conversation agent
- Turn runner
JarvisLocal/Sources/JarvisUI/ViewModels/Conversation/ConversationTurnRunner.swift - Tool call loop
JarvisLocal/Sources/JarvisUI/ViewModels/Conversation/ToolCallLoop.swift - LLM provider contract
JarvisLocal/Sources/JarvisCore/Protocols/LLMProvider.swift
Assistant services
- Ollama provider
JarvisLocal/Sources/JarvisServices/OllamaService.swift - Provider factory
JarvisLocal/Sources/JarvisServices/Support/LLMProviderFactory.swift - Tool service
JarvisLocal/Sources/JarvisServices/ToolService.swift - Settings
JarvisLocal/Sources/JarvisServices/Settings.swift - Speech engines
JarvisLocal/Sources/JarvisServices/AudioService.swift
Tools and integrations
- Native Mac tools
JarvisLocal/Sources/JarvisServices/Tools/CalendarTools.swift - Tool context
JarvisLocal/Sources/JarvisServices/Tools/ToolContext.swift - Web search
JarvisLocal/Sources/JarvisServices/Web/WebSearchService.swift - Bounded HTTP reader
JarvisLocal/Sources/JarvisServices/Web/BoundedHTTPReader.swift - MCP client
JarvisLocal/Sources/JarvisServices/MCP/MCPToolProvider.swift
Persistence
- SQLite store
JarvisLocal/Sources/JarvisServices/DatabaseService.swift
Other components
- User
- iMCP server
- Ollama runtime
Connections 19
- User → Chat interface: sends input
README.md - Chat interface → App view model: submits message
- App view model → Turn runner: coordinates turn
JarvisLocal/Sources/JarvisUI/ViewModels/AppViewModel.swift - Turn runner → Tool call loop: runs tool calls
- App view model → LLM provider contract: uses provider
JarvisLocal/Sources/JarvisUI/ViewModels/AppViewModel.swift - Provider factory → Ollama provider: creates provider
JarvisLocal/Sources/JarvisServices/Support/LLMProviderFactory.swift - Ollama provider → LLM provider contract: implements
JarvisLocal/Sources/JarvisServices/Support/LLMProviderFactory.swift - Ollama provider → Ollama runtime: requests inference
README.md - Tool call loop → Tool service: executes tools
- Tool service → Native Mac tools: routes native tools
JarvisLocal/Sources/JarvisServices/ToolService.swift - Tool service → Web search: routes web search
README.md - Web search → Bounded HTTP reader: reads pages
JarvisLocal/Sources/JarvisServices/Web/WebSearchService.swift - Tool service → MCP client: delegates matching tools
JarvisLocal/Sources/JarvisServices/ToolService.swift - MCP client → iMCP server: connects optionally
README.md - Native Mac tools → Tool context: uses shared context
JarvisLocal/Sources/JarvisServices/Tools/CalendarTools.swift - App view model → SQLite store: persists conversations
- Voice coordination → Speech engines: drives speech
README.md - Speech engines → Settings: reads voice settings
JarvisLocal/Sources/JarvisServices/AudioService.swift - User → Voice coordination: speaks
README.md