| CLI Entry | cmd/ | Cobra commands (web, ask, update), asset embedding |
| HTTP Server | internal/server/ | Chi router, middleware, SPA serving, graceful shutdown |
| API Handlers | internal/api/ | HTTP handlers, SSE streaming, route mounting |
| Business Logic | internal/service/ | ChatService, AgentService, IntegrationService, NotificationService, TaskService, ClaudeSettingsProfileService |
| Storage | internal/storage/ | SQLite stores (Agent, Chat, Integration, Settings, Notification, Task) |
| Agent Runner | internal/agent/runner.go | SDK integration, RunOptions, session execution |
| Logging | internal/logger/ | Structured slog loggers (system + per-session), log rotation |
| Build Info | internal/build/ | Build-time version variables (Version, CommitSHA, BuildDate) |
| Configuration | internal/config/ | AppConfig, profiles, integration config |
| Built-in Tools | internal/tools/ | Local MCP server, tool registry |
| Integrations | internal/integrations/ | Integration registry, MCP backends (Google, GitHub, Slack, Jira, Confluence, Telegram) |
| Scheduler | internal/scheduler/ | Task scheduler and background job executor |
| Event Bus | internal/eventbus/ | In-process event bus for decoupled communication |
| Notifications | internal/notification/ | Notification system with SMTP email support |
| Telemetry | internal/telemetry/ | OpenTelemetry config, providers, instruments, hot-reload manager |
| Session Insights | internal/claudesessions/processor*.go | 8-processor pipeline for per-session static analysis metrics |
| Insight Worker | internal/claudesessions/insight_worker.go | Event-driven + rescan loop for session insight processing |
| Session Journey | internal/claudesessions/journey.go | Step-by-step timeline reconstruction from JSONL |
| Insight Storage | internal/storage/sqlite_session_insights_store.go | SQLite persistence for session insights |
| File Uploads | internal/api/uploads.go | Multipart file upload handler (drag-drop, paste) |
| Frontend App | frontend/src/App.tsx | React Router, page routes |
| Frontend API | frontend/src/lib/api.ts | Typed API client |
| Frontend Types | frontend/src/types.ts | TypeScript types mirroring Go structs |
| Frontend State | frontend/src/contexts/ | Theme, appearance contexts |