How knitfury/g-bot-astra works
G-Bot Astra is a local-first Electron business workspace with a simulated browser demo and optional production account services. The primary workflow is to configure a BYOK model provider and remote MCP tools, ask G-Bot to work across connected business apps, review required approvals, and inspect activity or snapshots. The graph separates the user interface, desktop bridge, runtime execution, and persisted state. Some capabilities are documented but their source was not sampled; those links use README evidence, and unsampled implementation details are not inferred.
Main entry points: service.ts Workspace service · index.ts Service selection · main.ts Electron main process · orchestrator.ts Task orchestration
Components 22
Workspace UI
- Chat & approvals
src/components/chat/gbot-chat.tsx - MCP connections
src/features/connections/connection-manager.tsx - Provider setup
src/features/providers/provider-manager.tsx - Onboarding & account
src/features/auth/auth-screen.tsx - Activity & settings
src/features/activity/activity-screen.tsx - Workspace state
src/stores/workspace.ts
Desktop Bridge
- Service selection
src/services/index.ts - Desktop service client
src/services/desktop/client.ts - Electron main process
desktop/main.ts
Execution Runtime
- Workspace service
desktop/runtime/service.ts - Task orchestration
desktop/runtime/orchestrator.ts - Model providers
desktop/adapters/providers.ts - MCP tools
desktop/adapters/mcp.ts - Business snapshots
desktop/runtime/snapshots.ts - Attachments
desktop/runtime/attachments.ts
Identity & State
- Production identity
desktop/runtime/identity.ts - Encrypted credentials
desktop/runtime/storage.ts - Workspace persistence
desktop/runtime/storage.ts
Production Services
- Account control API
src/production/server/control.ts - Production API routes
src/app/api/control/[action]/route.ts
Other components
- Workspace user
- AI & MCP services
Connections 26
- Workspace user → Chat & approvals: asks
README.md - Workspace user → MCP connections: configures
README.md - Workspace user → Provider setup: configures
README.md - Workspace user → Onboarding & account: signs in
README.md - Chat & approvals → Service selection: requests actions
src/components/chat/gbot-chat.tsx - MCP connections → Service selection: manages connections
src/features/connections/connection-manager.tsx - Provider setup → Service selection: manages providers
src/features/providers/provider-manager.tsx - Onboarding & account → Service selection: authenticates
src/features/auth/auth-screen.tsx - Activity & settings → Service selection: reads activity
README.md - Workspace state → Desktop service client: persists workspace
src/stores/workspace.ts - Service selection → Desktop service client: selects desktop
src/services/index.ts - Desktop service client → Electron main process: sends IPC
README.md - Electron main process → Workspace service: dispatches requests
desktop/main.ts - Workspace service → Task orchestration: delegates execution
desktop/runtime/service.ts - Task orchestration → Model providers: requests inference
desktop/runtime/orchestrator.ts - Task orchestration → MCP tools: invokes tools
desktop/runtime/orchestrator.ts - Workspace service → Business snapshots: builds snapshots
desktop/runtime/service.ts - Workspace service → Attachments: processes files
README.md - Workspace service → Production identity: delegates identity
desktop/runtime/service.ts - Electron main process → Encrypted credentials: initializes vault
desktop/main.ts - Workspace service → Encrypted credentials: stores credentials
README.md - Electron main process → Workspace persistence: persists state
README.md - Model providers → AI & MCP services: calls providers
README.md - MCP tools → AI & MCP services: connects remotely
README.md - Production API routes → Account control API: routes requests
src/app/api/control/[action]/route.ts - Account control API → Production identity: verifies accounts
README.md