How abuzar-ansarii/pocketstrike works
PocketStrike is a Flutter AI workstation for mobile, combining chat, cloud and on-device models, tool-using agents, image generation, persistent memory, MCP, and Telegram relay. The principal workflow is a user prompt through the chat interface and controller to a configured model; agent requests can invoke tools and MCP services, while conversation state is managed locally. The README documents capabilities and broad relationships, but the sampled source does not include the Dart runtime implementation, so detailed call ownership and some subsystem links cannot be verified.
Main entry points: chat_controller.dart Chat coordinator · agent_engine.dart ReAct agent · local_model_engine.dart Local GGUF inference · ui Settings
Components 21
App experience
- App and routing
lib/app - Chat interface
lib/features/chat/ui - Chat coordinator
lib/features/chat/application/chat_controller.dart - Conversation history
lib/features/conversations/application - Settings
lib/features/settings/ui
Models and agents
- Cloud providers
lib/features/providers/data - Local GGUF inference
lib/features/local_models/data/local_model_engine.dart - ReAct agent
lib/features/agent/data/agent_engine.dart - Built-in tools
lib/features/agent/data/built_in_tools.dart - Hermes memory
lib/features/agent/data/hermes_memory_store.dart - Image generation and gallery
lib/features/gallery/application/gallery_controller.dart
External integrations
- MCP connections
lib/features/mcp/data/mcp_connection_manager.dart - Telegram relay
lib/features/telegram/telegram_service.dart - Model downloads
lib/core/services/notification_service.dart
Local state
- SQLite database
lib/core/db/app_database.dart - Preferences and keys
lib/core/storage/prefs_provider.dart
Other components
- User
- Model service
- Hugging Face
- MCP servers
- Telegram
Connections 21
- User → App and routing: opens
README.md - App and routing → Chat interface: routes to
README.md - Chat interface → Chat coordinator: submits prompts
- Chat coordinator → Cloud providers: requests cloud inference
README.md - Chat coordinator → Local GGUF inference: requests local inference
README.md - Chat coordinator → ReAct agent: invokes agent
README.md - Chat coordinator → Image generation and gallery: requests image generation
README.md - Chat coordinator → Conversation history: manages threads
- ReAct agent → Built-in tools: executes tools
README.md - ReAct agent → MCP connections: uses MCP transport
README.md - ReAct agent → Hermes memory: uses persistent memory
README.md - Cloud providers → Model service: sends requests
README.md - Local GGUF inference → Hugging Face: downloads weights
README.md - MCP connections → MCP servers: connects to
README.md - Telegram relay → Telegram: relays prompts
README.md - Settings → Preferences and keys: configures
- Chat coordinator → SQLite database: persists conversations
- Conversation history → SQLite database: reads history
- Local GGUF inference → Model downloads: reports download progress
README.md - Settings → MCP connections: configures servers
README.md - Settings → Local GGUF inference: manages models
README.md