How ayushjainr/pikamux works
Pika is a cross-platform coding-agent board: users choose and monitor conversations, reopen them in their original agent, and can consult relevant experience from other projects. Its Rust CLI supports local agent workflows and trusted remote-machine fleets; a separate iOS app pairs with machines and presents a mobile board and conversation view. The graph preserves the documented consultation, setup, file-browsing, Windows-client, and mobile capabilities. Some relationships are documented rather than verified in sampled runtime code; those links are dashed where needed.
Main entry points: AppModel.swift Mobile app model · client_board.rs Conversation board · fleet.rs Trusted machine fleet · PikaApp.swift Pika iOS app
Components 25
Board and CLI
- Pika CLI
src/main.rs - Conversation board
src/client_board.rs - Activity feed
src/activity_feed.rs - Files companion
src/files_view.rs - Thread preview
src/preview.rs - Local state
src/store.rs
Fleet and setup
- Setup and onboarding
src/onboarding.rs - Trusted machine fleet
src/fleet.rs - Conversation monitoring
src/monitor.rs - Windows client
src/client_cli.rs - Window bridge
src/client_bridge.rs
Experience consultation
- Expert cards
src/experts.rs - Agent consultation
src/consult.rs - Assistant services
src/assistant_service.rs
Agent runtime
- Agent providers
src/providers.rs - Agent sessions
src/tmux.rs
iOS companion
- Pika iOS app
ios/Pika/PikaApp.swift - Mobile app model
ios/Pika/Core/AppModel.swift - Mobile board
ios/Pika/Presentation/BoardView.swift - Conversation view
ios/Pika/Presentation/ThreadView.swift - SSH transport
ios/Pika/Connection/SSHWire.swift - Machine pairing
ios/Pika/Connection/Pairing.swift - Mobile local store
ios/Pika/Core/LocalStore.swift
Other components
- User
- Mobile user
Connections 29
- User → Pika CLI: starts
- Pika CLI → Conversation board: opens
- Conversation board → Activity feed: shows activity
src/client_board.rs - Conversation board → Local state: reads cached state
src/client_board.rs - Conversation board → Trusted machine fleet: refreshes fleet
- Conversation board → Thread preview: previews thread
src/client_board.rs - User → Setup and onboarding: selects conversations
- Setup and onboarding → Trusted machine fleet: pairs machines
- Trusted machine fleet → Conversation monitoring: requests snapshots
src/fleet.rs - Trusted machine fleet → Local state: caches snapshots
src/fleet.rs - User → Windows client: opens Windows client
- Windows client → Trusted machine fleet: connects by SSH
src/client_cli.rs - Windows client → Window bridge: starts bridge
src/client_cli.rs - User → Files companion: browses project
- User → Expert cards: finds expertise
- Expert cards → Agent consultation: selects context
- Agent consultation → Agent providers: runs consultation
- Assistant services → Agent providers: uses provider
src/assistant_service.rs - Assistant services → Assistant services: uses memory
src/assistant_service.rs - User → Agent sessions: opens conversation
- Mobile user → Pika iOS app: opens
ios/Pika/PikaApp.swift - Pika iOS app → Mobile app model: creates model
ios/Pika/PikaApp.swift - Pika iOS app → Mobile board: shows board
- Pika iOS app → Conversation view: shows conversation
- Mobile board → Mobile app model: reads board state
- Conversation view → Mobile app model: sends actions
ios/Pika/Presentation/ThreadView.swift - Mobile app model → SSH transport: connects remotely
ios/Pika/Core/AppModel.swift - Mobile app model → Machine pairing: pairs machine
ios/Pika/Core/AppModel.swift - Mobile app model → Mobile local store: persists state
ios/Pika/Core/AppModel.swift