How manirajsrikoti-alt/flash-ai works
FLASH is a macOS voice assistant that turns microphone or typed input into safety-gated local actions, with Bedrock planning and conversation as a fallback. Its principal workflow runs from continuous speech capture and transcription through routing to local execution or cloud planning; task context and the floating UI support multi-turn interaction. README capabilities supplement the sampled source for plan and integration details, so those documented relationships are cited to the README.
Main entry points: flash_cli.py CLI orchestrator · flash_plan_bridge.py Plan safety bridge · flash_voice_continuous.py Continuous transcription · flash_router.py Rule and safety router
Components 16
User interaction
- CLI orchestrator
backend/flash_cli.py - Floating pill
backend/flash_voice_popup.py
Speech and routing
- Continuous transcription
backend/flash_voice_continuous.py - Transcript cleanup
backend/flash_nlp.py - Rule and safety router
backend/flash_router.py - Local intent classifier
backend/flash_laya_classifier.py
Action execution
- Local action executor
backend/flash_executor.py - Plan step executor
backend/flash_plan_executor.py
Planning and context
- AI planner
backend/flash_ai_planner.py - Plan safety bridge
backend/flash_plan_bridge.py - Bedrock conversation
backend/flash_aws_brain.py - Task context
backend/flash_context.py
Other components
- User
- Microphone
- macOS apps and actions
- Amazon Bedrock
Connections 19
- User → CLI orchestrator: enters commands
README.md - Microphone → Continuous transcription: streams audio
README.md - Continuous transcription → CLI orchestrator: yields transcripts
backend/flash_cli.py - CLI orchestrator → Transcript cleanup: cleans speech
- CLI orchestrator → Rule and safety router: routes input
backend/flash_cli.py - Rule and safety router → Local intent classifier: classifies fallback
README.md - CLI orchestrator → Local intent classifier: supplies classifier
backend/flash_cli.py - CLI orchestrator → Local action executor: executes local actions
backend/flash_cli.py - Local action executor → macOS apps and actions: dispatches actions
backend/flash_executor.py - CLI orchestrator → AI planner: requests plans
backend/flash_cli.py - CLI orchestrator → Bedrock conversation: asks fallback questions
backend/flash_cli.py - Bedrock conversation → Amazon Bedrock: sends conversation
backend/flash_aws_brain.py - Plan safety bridge → AI planner: requests plan
backend/flash_plan_bridge.py - CLI orchestrator → Plan safety bridge: validates plans
backend/flash_cli.py - Plan safety bridge → Plan step executor: executes validated steps
backend/flash_plan_bridge.py - Plan step executor → macOS apps and actions: performs plan actions
- CLI orchestrator → Task context: tracks task state
backend/flash_cli.py - CLI orchestrator → Floating pill: updates display
backend/flash_cli.py - User → Floating pill: views feedback
README.md