How trhariharasudhan/grandpa works
Grandpa is a local-first Windows personal assistant. Users enter through terminal, desktop, voice, or phone surfaces; requests are understood by the shared AI, then routed through action handling and confirmation before PC or connected-service work. Separate branches cover screen reading, workflows, reminders, and user-controlled memory. The README documents the high-level flow and capabilities; source excerpts/index support selected internal relationships, but many listed modules were not sampled, so undocumented links are omitted.
Main entry points: core_ai_brain.py Assistant brain · executor.py Action executor · engine.py Knowledge store · wake_engine.py Voice input
Components 28
User interfaces
- Terminal chat
src/grandpa/frontend/tui/app.py - Voice input
src/grandpa/frontend/voice/wake_engine.py - Desktop app
src/grandpa/frontend/app - Phone access
src/grandpa/frontend/devices
AI and planning
- Assistant brain
src/grandpa/ai/core_ai_brain.py - Request planner
src/grandpa/ai/planner/engine.py - Local model runtime
src/grandpa/ai/runtime/ollama_adapter.py - Development planning
src/grandpa/ai/agent/development/roadmap_generator.py
Actions and services
- Action catalogue
src/grandpa/backend/action_layer/catalogue.py - Action executor
src/grandpa/backend/action_layer/executor.py - Risk confirmation
src/grandpa/backend/action_layer - Windows control
src/grandpa/backend/automation/service.py - Screen reading
src/grandpa/backend/screen - Browser research
src/grandpa/backend/browser_intelligence - Workflow engine
src/grandpa/backend/workflow/engine.py - Reminders
src/grandpa/backend/reminders.py - Screen automation
src/grandpa/backend/automation/windows.py - Tool integrations
src/grandpa/backend/tools/_stubs.py
Memory and runtime
- Long-term memory
src/grandpa/database/core/intelligence.py - Knowledge store
src/grandpa/database/knowledge/engine.py - Notes storage
src/grandpa/database/notes/storage.py - Configuration
src/grandpa/core/config.py - Runtime events
src/grandpa/core/events.py - Service registry
src/grandpa/core/registry.py - Runtime paths
src/grandpa/core/runtime_paths.py - Memory context
src/grandpa/database/memory_context.py - Intelligence database
src/grandpa/database/core/intelligence.py
Other components
- User
Connections 33
- User → Terminal chat: chats through
README.md - User → Voice input: speaks to
README.md - User → Desktop app: uses
README.md - User → Phone access: accesses by
README.md - Terminal chat → Assistant brain: shares brain
README.md - Voice input → Assistant brain: shares brain
README.md - Desktop app → Assistant brain: shares brain
README.md - Phone access → Assistant brain: shares brain
README.md - Assistant brain → Local model runtime: runs locally
README.md - Assistant brain → Action catalogue: routes actions
README.md - Action catalogue → Action executor: dispatches actions
README.md - Action executor → Risk confirmation: checks risk
README.md - Action executor → Windows control: executes on PC
README.md - Action executor → Screen reading: reads screen
README.md - Action executor → Browser research: controls browser
README.md - Action executor → Workflow engine: runs workflows
src/grandpa/backend/workflow/engine.py - Action executor → Reminders: manages reminders
README.md - Action executor → Notes storage: manages notes
README.md - Assistant brain → Request planner: plans requests
- Request planner → Long-term memory: uses context
src/grandpa/ai/planner/engine.py - Request planner → Knowledge store: queries knowledge
src/grandpa/ai/planner/engine.py - Knowledge store → Memory context: uses context
src/grandpa/database/knowledge/engine.py - Knowledge store → Runtime paths: resolves storage
- Workflow engine → Runtime events: uses events
src/grandpa/backend/workflow/engine.py - Workflow engine → Action catalogue: dispatches actions
src/grandpa/backend/workflow/engine.py - Screen automation → Screen reading: uses screen
src/grandpa/backend/automation/pipeline.py - Voice input → User: detects wake phrase
src/grandpa/frontend/voice/wake_engine.py - Development planning → Intelligence database: syncs project state
- Tool integrations → Long-term memory: exposes memory tools
- Notes storage → Configuration: loads settings
src/grandpa/database/notes/storage.py - Knowledge store → Intelligence database: indexes knowledge
- Assistant brain → Service registry: resolves models
- Assistant brain → Configuration: loads settings