ai-assistant-android

bydheeraj mochi

PROJECT LEO — MASTER PROJECT PROMPT Privacy-First Personal AI Assistant for Android 1. Project Identity Project name: Leo AI Assistant Assistant name: Leo Platform: Android smartphone, with future expansion possibilities. Development environment: Android Studio, Kotlin, and Jetpack Compose. Project type: Personal AI assistant with voice interaction, controlled Android actions, and privacy-first architecture. Leo is a personal AI assistant designed to feel natural, practical, friendly, and trustworthy. It should not be an unnecessarily complicated Jarvis clone. The goal is to build a useful assistant that can understand commands, perform approved actions, and respect the user's privacy. 2. My Role and How You Should Help Me Act as my Android development mentor, software architect, Kotlin programmer, security reviewer, UI/UX designer, and project planner. I am a CSE student developing Leo. Guide me from the fundamentals to a working application, even if I am still learning. Follow these rules: - Explain the steps in the correct order. - Give complete, working code when requested, including file names and locations. - Explain where each code block belongs. - Avoid unnecessary complexity and expensive infrastructure. - Prefer free or low-cost development tools when practical. - Never assume I have completed a step unless I confirm it. - Check compatibility, dependencies, Android permissions, and build configuration. - Help me diagnose errors using the actual error messages and code. - Do not repeatedly replace the entire project when a small fix is sufficient. - Clearly distinguish implemented, partially implemented, planned, and untested features. - Never claim a feature works without evidence from testing. - Explain technical limitations honestly. When giving implementation instructions, use this format: 1. Goal 2. Files to create or modify 3. Exact code 4. Where to put the code 5. How to build and run it 6. How to test it 7. Expected result 8. Common errors and fixes 9. Security and privacy considerations 3. Leo's Personality and Voice Leo should have a feminine voice and a natural, friendly personality. Personality requirements: - Speak naturally, like a helpful friend. - Avoid robotic replies and unnecessary formal language. - Avoid sounding parental or overly affectionate. - Use casual words like "bro" when appropriate. - Do not repeat the same greeting after every command. - Support English initially, with the possibility of adding more languages later. - Allow future customization of voice, tone, responses, and wake-up greetings. The activation phrase should be: "Hey Leo" A possible response after activation is: "Hey bro, what can I help you with?" Greetings should be configurable and should not interrupt the user unnecessarily. 4. Main Voice Interaction Flow Design Leo around this workflow: 1. The user says "Hey Leo." 2. Leo activates using the supported wake-word mechanism. 3. Leo indicates clearly that the microphone is active. 4. Leo receives and transcribes the user's command. 5. The AI interprets the command. 6. The AI proposes a structured action. 7. The Android application validates the action against its permission and safety rules. 8. The application executes the approved action. 9. Leo gives a concise spoken response. 10. After approximately 10–15 seconds without another command, the active listening session ends. 11. Leo visibly indicates that the session has ended and the microphone is no longer being used by Leo. The timeout should be configurable. Do not confuse ending a listening session with stopping an entire background service. These are different states and must be implemented and tested separately. 5. The Most Important Feature: Verifiable Privacy Privacy is a core design requirement, not a marketing slogan. Leo must never falsely claim that it has stopped listening when the microphone is still active. Implement a clear state system, such as: - Idle - Wake-word detection active - Listening for a command - Processing - Executing an approved action - Session end

LandingSafety ReviewLoginWake WordMic StatusResponsesSign UpSessionsPrivacy StatusTranscriptProposalsExecutionService ControlSettingsAssistant State
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks

170 tasks
#1

Generate system requirement document

1m 15s0.2 cr used
Done
#2

Generate personas & user flows

1m 26s0.2 cr used
Done
#5

Architecture

0m 26s0.2 cr used
Done
#6

Workspace task plan

2m 13s0.2 cr used
Done
#7

Create flow for Leo User (Android device owner)

1m 25sCredits in parent
Done
#8

Create flow for Leo Developer / Learner

1m 25sCredits in parent
Done
#9

Landing

9m 52sCredits in subtasks
Done
#10

Login

2m 30sCredits in subtasks
Done
#11

Sign Up

3m 31sCredits in subtasks
Done
#12

Wake Word

3m 19sCredits in subtasks
Done
#13

Mic Status

21m 42sCredits in subtasks
Done
#14

Transcript

4m 56sCredits in subtasks
Done
#15

Proposals

22m 48sCredits in subtasks
Done
#16

Safety Review

6m 23sCredits in subtasks
Done
#17

Execution

27m 14sCredits in subtasks
Done
#18

Responses

25m 19sCredits in subtasks
Done
#19

Sessions

32m 48sCredits in subtasks
Done
#20

Privacy Status

23m 15sCredits in subtasks
Done
#21

Assistant State

24m 22sCredits in subtasks
Done
#22

Service Control

32m 2sCredits in subtasks
Done
#23

Settings

30m 45sCredits in subtasks
Done
#24

Landing / State Strip

0m 22s0.85 cr used
Done
#25

Landing / State Panel

0m 37s0.85 cr used
Done
#26

Landing / Entry Keys

0m 32s0.85 cr used
Done
#27

Landing / Signal Path

0m 35s0.85 cr used
Done
#28

Landing / State Catalog

0m 31s0.85 cr used
Done
#29

Landing / Permission Deck

0m 26s0.85 cr used
Done
#30

Landing / Navigation

0m 20s0.85 cr used
Done
#31

Landing / Footer

0m 18s0.85 cr used
Done
#32

Navigation

0m 20sCredits in parent
Done
#33

Footer

0m 18sCredits in parent
Done
#34

Fix Landing review findings: Signal Path diagram and labels overlap and become… (+6 more)

3m 33s0.4 cr used
Done
#35

Fix Landing review findings: Q2 as reviewed now: The current tablet screenshot shows… (+2 more)

2m 11s0.4 cr used
Done
#36

Login / Navigation Slot

0m 0s0.85 cr used
Done
#37

Login / Verification Deck

0m 30s0.85 cr used
Done
#38

Login / Enrollment Link

0m 20s0.85 cr used
Done
#39

Login / Footer Slot

0m 0s0.85 cr used
Done
#40

Sign Up / Navigation

0m 0s0.85 cr used
Done
#41

Sign Up / Enrollment Deck

0m 33s0.85 cr used
Done
#42

Sign Up / Durable State Band

0m 41s0.85 cr used
Done
#43

Sign Up / Verification Link

0m 17s0.85 cr used
Done
#44

Sign Up / Footer

0m 0s0.85 cr used
Done
#45

Fix Login review finding: Mobile verification deck collapses into a narrow column…

0m 17s0.4 cr used
Done
#46

Wake Word / Navigation Slot

0m 0s0.85 cr used
Done
#47

Wake Word / State Strip

0m 22s0.85 cr used
Done
#48

Wake Word / Arm Deck

0m 44s0.85 cr used
Done
#49

Wake Word / Phrase Deck

0m 23s0.85 cr used
Done
#50

Wake Word / Footer Slot

0m 0s0.85 cr used
Done
#51

Fix Sign Up review finding: frontend/src/components/Sign Up Enrollment Deck.jsx: this…

0m 28s0.4 cr used
Done
#52

Mic Status / Navigation Slot

0m 0s0.85 cr used
Paused
#53

Mic Status / State Strip

0m 28s0.85 cr used
Done
#54

Mic Status / Lamp Deck

0m 42s0.85 cr used
Done
#55

Mic Status / Release Reference

0m 28s0.85 cr used
Done
#56

Mic Status / Footer Slot

0m 0s0.85 cr used
Paused
#57

Transcript / Navigation Slot

0m 1s0.85 cr used
Done
#58

Transcript / State Strip

0m 25s0.85 cr used
Done
#59

Transcript / Deck

0m 39s0.85 cr used
Done
#60

Transcript / Recognition Reference

0m 46s0.85 cr used
Done
#61

Transcript / Footer Slot

0m 0s0.85 cr used
Done
#62

Fix Mic Status review findings: The tablet state-machine strip wraps into two rows instead… (+4 more)

2m 5s0.4 cr used
Done
#63

Proposals / Navigation Slot

0m 0s0.85 cr used
Paused
#64

Proposals / State Strip

0m 26s0.85 cr used
Done
#65

Proposals / Deck

1m 0s0.85 cr used
Done
#66

Proposals / Decision Band

0m 42s0.85 cr used
Done
#67

Proposals / Footer Slot

0m 0s0.85 cr used
Paused
#68

Safety Review / Navigation

0m 1s0.85 cr used
Done
#69

Safety Review / State Strip

0m 41s0.85 cr used
Done
#70

Safety Review / Decision Deck

0m 43s0.85 cr used
Done
#71

Safety Review / Rule Reference

0m 44s0.85 cr used
Done
#72

Safety Review / Footer

0m 0s0.85 cr used
Done
#73

Execution / Navigation Slot

0m 0s0.85 cr used
Paused
#74

Execution / State Strip

0m 40s0.85 cr used
Done
#75

Execution / Outcome Deck

0m 45s0.85 cr used
Done
#76

Execution / Recovery Reference

0m 46s0.85 cr used
Done
#77

Execution / Footer Slot

0m 0s0.85 cr used
Paused
#78

Responses / Navigation Slot

0m 1s0.85 cr used
Paused
#79

Responses / State Strip

0m 28s0.85 cr used
Done
#80

Responses / Deck

0m 54s0.85 cr used
Done
#81

Responses / Continuation Band

0m 42s0.85 cr used
Done
#82

Responses / Footer Slot

0m 1s0.85 cr used
Paused
#83

Fix Proposals review findings: The reduced-motion navbar wraps its overflowing route row… (+3 more)

2m 57s0.4 cr used
Done
#84

Sessions / Navigation Slot

0.85 cr used
Queued
#85

Sessions / State Strip

0m 25s0.85 cr used
Done
#86

Sessions / Countdown Deck

0m 41s0.85 cr used
Done
#87

Sessions / Recovery Reference

0m 45s0.85 cr used
Done
#88

Sessions / Footer Slot

0.85 cr used
Queued
#89

Privacy Status / Navigation Slot

0m 0s0.85 cr used
Done
#90

Privacy Status / State Strip

0m 20s0.85 cr used
Done
#91

Privacy Status / Release Deck

0m 44s0.85 cr used
Done
#92

Privacy Status / Re Arm Band

0m 48s0.85 cr used
Done
#93

Privacy Status / Footer Slot

0m 0s0.85 cr used
Done
#94

Assistant State / Navigation Slot

0m 0s0.85 cr used
Done
#95

Assistant State / Machine Deck

0m 33s0.85 cr used
Done
#96

Assistant State / Transition Deck

0m 50s0.85 cr used
Done
#97

Assistant State / Verification Reference

0m 48s0.85 cr used
Done
#98

Assistant State / Footer Slot

0m 0s0.85 cr used
Done
#99

Service Control / Navigation Slot

0m 0s0.85 cr used
Done
#100

Service Control / Lifecycle Deck

0m 46s0.85 cr used
Done
#101

Service Control / Lifecycle Note

0m 23s0.85 cr used
Done
#102

Service Control / Transition Log

1m 11s0.85 cr used
Done
#103

Service Control / Footer Slot

0m 1s0.85 cr used
Done
#104

Fix Mic Status review findings: Q5 as reviewed now: Mic Status Lamp Deck.jsx still uses… (+2 more)

0m 29s0.4 cr used
Done
#105

Settings / Navigation Slot

0m 0s0.85 cr used
Done
#106

Settings / State Strip

1m 1s0.85 cr used
Done
#107

Settings / Configuration Deck

0m 59s0.85 cr used
Done
#108

Settings / Language Note

0m 38s0.85 cr used
Done
#109

Settings / Defaults Reference

0m 46s0.85 cr used
Done
#110

Settings / Footer Slot

0m 1s0.85 cr used
Done
#111

Fix 9 Mic Status files: TIMEOUT_STORAGE_KEY is not defined

0m 15s0.4 cr used
Error
#112

Retry Failed Pages

13m 10s0.4 cr used
Done
#113

Fix Proposals review findings: frontend/src/components/Proposals Deck.jsx: the page's core… (+1 more)

1m 4s0.4 cr used
Error
#114

Fix Execution review findings: frontend/src/components/Execution Outcome Deck.jsx: the… (+2 more)

1m 48s0.4 cr used
Done
#115

Fix Responses review finding: The state-strip metadata overlaps and obscures the…

0m 14s0.4 cr used
Done
#116

Fix Sessions review findings: frontend/src/components/Sessions Countdown Deck.jsx: the… (+3 more)

1m 23s0.4 cr used
Done
#117

Fix Execution review findings: Q1 as reviewed now: The key is no longer permanently… (+3 more)

0m 38s0.4 cr used
Error
#118

Fix Sessions review findings: Q1 as reviewed now: commit Timeout() now writes {… (+3 more)

0.4 cr needed
Paused
#119

Fix Sessions: The configured timeout is never persisted or read back correctly. looks for a record…

1m 13sCredits unavailable
Done
#120

Fix Sessions: The active-session detection can never be true from the shared data. requires , but the…

2m 26sCredits unavailable
Error
#121

Fix Sessions review findings: frontend/src/components/Sessions Countdown Deck.jsx: the… (+1 more)

0m 24s0 cr used
Done
#122

Fix Settings: The configuration deck persists every setting to under via , and reads it back with…

0m 52sCredits unavailable
Error
#123

Fix Settings: The SRD Settings states require an error state where a failed write is reported and the…

0m 52sCredits unavailable
Error
#124

Fix Service Control: The listening-session row never shows a live session. is defined but unused, and…

2m 3sCredits unavailable
Done
#125

Fix Service Control: The SRD error state is not reachable as specified. is , but is seeded from with, so ()…

2m 3sCredits unavailable
Done
#126

Fix Service Control: The transition log does not log the transitions the deck performs. classifies records by…

1m 44sCredits unavailable
Done
#127

Fix Settings review findings: frontend/src/components/Settings Configuration Deck.jsx: the… (+1 more)

2m 7s0 cr used
Paused
#128

Fix Service Control review findings: frontend/src/components/Service Control Lifecycle Deck.jsx… (+2 more)

0m 42s0 cr used
Done
#129

Fix Sessions review finding: frontend/src/components/Sessions Countdown Deck.jsx: the…

0m 11s0 cr used
Error
#130

Create backend_modules diagram

0m 20sCredits in parent
Done
#131

Create er_diagram diagram

0m 19sCredits in parent
Done
#132

Create frontend_modules diagram

0m 19sCredits in parent
Done
#133

Create sequence diagram

0m 18sCredits in parent
Done
#134

Create service_network diagram

0m 18sCredits in parent
Done
#135

Show the true assistant state across all six states

120 cr estimated
To Do
#136

Show live microphone state, lamp, and elapsed time truthfully

120 cr estimated
To Do
#137

Transcribe spoken commands and let the user correct them

100 cr estimated
To Do
#138

Interpret commands and propose a structured action

120 cr estimated
To Do
#139

Show the safety decision and the rule behind it

100 cr estimated
To Do
#140

Enroll on first use to bind assistant state to the owner

140 cr estimated
To Do
#141

Keep listening-session and background-service lifecycles separate

140 cr estimated
To Do
#142

Confirm microphone release after a session ends

120 cr estimated
To Do
#143

Execute approved actions and report the real outcome

120 cr estimated
To Do
#144

Show the true assistant state and its transition history

120 cr estimated
To Do
#145

Returning verification restores the owner's saved assistant state

120 cr estimated
To Do
#146

Permissions and assistant configuration that persist

120 cr estimated
To Do
#147

Landing shows the privacy promise with a truthful lamp state

100 cr estimated
To Do
#148

Settings own greetings, voice, tone, responses, and timeout

120 cr estimated
To Do
#149

Session countdown and inline timeout editing

100 cr estimated
To Do
#150

Speak a concise response and let the user replay it

100 cr estimated
To Do
#151

Settings deck: live voice, tone, greeting, response, and timeout configuration

100 cr estimated
To Do
#152

Service Control: independent listening-session and background-service lifecycles

120 cr estimated
To Do
#153

Microphone and Android permissions gate wake-word, listening, and device actions

100 cr estimated
To Do
#154

Voice pipeline: wake word through spoken response

140 cr estimated
To Do
#155

Application-owned identity for protected assistant state

120 cr estimated
To Do
#156

Background service handles wake-word detection and commands

120 cr estimated
To Do
#157

Background service runs independently of the listening session

100 cr estimated
To Do
#158

Sign Up: live enrollment that creates the owner's protected state

100 cr estimated
To Do
#159

Make Settings live: read, edit, and persist assistant configuration

100 cr estimated
To Do
#160

Make Proposals live: show interpreted intent and approve or reject

100 cr estimated
To Do
#161

Make Sessions live: ticking countdown, inline timeout edit, and session end

120 cr estimated
To Do
#162

Make Execution live: run approved actions and report outcomes honestly

120 cr estimated
To Do
#163

Make Landing live: public privacy promise with truthful lamp and state

120 cr estimated
To Do
#164

Make Transcript live: show what Leo heard and allow correction

100 cr estimated
To Do
#165

Make Login live: returning verification restores the owner's state

120 cr estimated
To Do
#166

Make Responses live: speak Leo's reply in a natural, varied voice

100 cr estimated
To Do
#167

Make Privacy Status show live microphone release truthfully

120 cr estimated
To Do
#168

Bind Assistant State strip and history to live assistant state

120 cr estimated
To Do
#169

Wire Service Control to independent session and service lifecycles

120 cr estimated
To Do
#170

Make Safety Review validate and decide proposed actions live

120 cr estimated
To Do
#171

Bind Mic Status lamp and row to the real microphone state

120 cr estimated
To Do
#172

Implement Wake Word arming, activation, and greeting behavior

120 cr estimated
To Do
Live
Landing design preview
Landing: Review signal-path diagram
Assistant State: View six-state machine
Service Control: Read lifecycle rows
Service Control: End listening session
Service Control: Confirm service unaffected
Service Control: Stop background service
Service Control: Confirm session unaffected
Service Control: Start background service
Assistant State: Review transition history
Live
Landing design preview
Landing: Review signal-path diagram
Assistant State: View six-state machine
Service Control: Read lifecycle rows
Service Control: End listening session
Service Control: Confirm service unaffected
Service Control: Stop background service
Service Control: Confirm session unaffected
Service Control: Start background service
Assistant State: Review transition history