How nishadislamutso/oddbrain works
AI ASSistant is the repository’s active product: a local-first Electron desktop assistant that chats with local or user-authorized cloud models, uses an Obsidian vault as durable memory, and produces artifacts. The central workflow is user prompt → chat and engine → response or artifact, with vault context and capture available alongside it. The README also documents settings-controlled permissions, projects, skills, browsing maps, and an extension capture port. Historical Claude-clone apps are excluded. Some feature links rely on README documentation because their implementation was not sampled.
Main entry points: App.tsx App shell · state/engine.ts Engine control · useChat.ts Chat orchestration · lib/engine.ts Engine services
Components 21
Desktop experience
- App shell
apps/03_ai-assistant/src/renderer/src/App.tsx - Chat view
apps/03_ai-assistant/src/renderer/src/components/ChatView.tsx - Settings
apps/03_ai-assistant/src/renderer/src/components/SettingsView.tsx - Artifacts
apps/03_ai-assistant/src/renderer/src/components/ArtifactsView.tsx - Projects
apps/03_ai-assistant/src/renderer/src/components/ProjectsView.tsx - Browsing maps
apps/03_ai-assistant/src/renderer/src/components/MemoryMap.tsx
Chat and intelligence
- Chat orchestration
apps/03_ai-assistant/src/renderer/src/hooks/useChat.ts - Engine control
apps/03_ai-assistant/src/renderer/src/state/engine.ts - Engine management
apps/03_ai-assistant/src/renderer/src/components/EngineBay.tsx - Engine services
apps/03_ai-assistant/src/shared/lib/engine.ts - Artifact storage
apps/03_ai-assistant/src/main/artifacts/store.ts
Vault and memory
- Vault view
apps/03_ai-assistant/src/renderer/src/components/VaultView.tsx - Vault service
apps/03_ai-assistant/src/main/vault/service.ts - Vault routes
apps/03_ai-assistant/src/main/vault/routes.ts - Obsidian vault
Local services
- Local API
apps/03_ai-assistant/src/main/api/server.ts - Extension port
apps/03_ai-assistant/src/main/extension/server.ts
Other components
- User
- Ollama
- Cloud providers
- Browser extension
extension/background.js
Connections 22
- User → App shell: uses
README.md - App shell → Chat view: shows
apps/03_ai-assistant/src/renderer/src/App.tsx - App shell → Settings: shows
apps/03_ai-assistant/src/renderer/src/App.tsx - App shell → Artifacts: shows
apps/03_ai-assistant/src/renderer/src/App.tsx - App shell → Projects: shows
apps/03_ai-assistant/src/renderer/src/App.tsx - App shell → Browsing maps: shows
apps/03_ai-assistant/src/renderer/src/App.tsx - Chat view → Chat orchestration: submits messages
- Chat orchestration → Engine control: sends prompt
- Engine control → Engine services: uses services
- Engine management → Engine control: manages
- Engine services → Ollama: uses local model
README.md - Engine services → Cloud providers: uses when authorized
README.md - Settings → Engine control: governs permissions
README.md - Artifacts → Artifact storage: manages artifacts
apps/03_ai-assistant/src/renderer/src/App.tsx - Vault view → Local API: accesses vault
README.md - Local API → Vault routes: routes requests
apps/03_ai-assistant/src/main/api/server.ts - Vault routes → Vault service: dispatches
apps/03_ai-assistant/src/main/vault/routes.ts - Vault service → Obsidian vault: reads and writes
apps/03_ai-assistant/src/main/vault/service.ts - Chat orchestration → Local API: captures to vault
README.md - Browsing maps → Vault service: reads maps
README.md - Extension port → Vault routes: serves capture routes
apps/03_ai-assistant/src/main/extension/server.ts - Browser extension → Extension port: sends captures
README.md