How yogi-ya/callscreener works
AegisCall is an Android call-screening product with a React/Capacitor control interface and Node backend. A real incoming call enters Android Telecom, receives a cloud or local verdict under a deadline, and is acted on by the OS; UI events, logs, rules, and dashboard/simulator flows form supporting branches. The README documents capabilities beyond sampled code, including transcript-driven screening and Gemini analysis; those edges are included only where documented. Unsampled UI subsystems use exact component paths from the tree.
Main entry points: App.tsx App navigation · AiCallScreeningService.kt Deadline screener · screeningRoutes.ts Screening routes · api.ts API client
Components 28
Android call runtime
- Deadline screener
android/app/src/main/java/com/aegiscall/screener/telecom/AiCallScreeningService.kt - Local rule engine
android/app/src/main/java/com/aegiscall/screener/telecom/FastLocalRulesEngine.kt - On-device LLM
android/app/src/main/java/com/aegiscall/screener/telecom/OnDeviceLlmEngine.kt - In-call controls
android/app/src/main/java/com/aegiscall/screener/telecom/AegisInCallService.kt - Voice screening
android/app/src/main/java/com/aegiscall/screener/telecom/AiVoiceScreeningEngine.kt - Capacitor native bridge
android/app/src/main/java/com/aegiscall/screener/plugins/CallScreeningPlugin.kt
Screening backend
- Screening routes
backend/src/routes/screeningRoutes.ts - Cloud screening engine
backend/src/services/llmScreeningEngine.ts - Backend fast rules
backend/src/services/fastRulesEngine.ts - Backend server
backend/src/server.ts - Health endpoint
backend/src/routes/healthRoutes.ts - Log endpoints
backend/src/routes/logRoutes.ts
Mobile web interface
- App navigation
frontend/src/App.tsx - API client
frontend/src/services/api.ts - Capacitor client
frontend/src/services/capacitorService.ts - Dashboard and risk
frontend/src/components/DashboardTab.tsx - Call logs
frontend/src/components/CallLogsTab.tsx - Rules manager
frontend/src/components/RulesTab.tsx - Setup and settings
frontend/src/components/SettingsTab.tsx - Permission wizard
frontend/src/components/AutoSetupWizard.tsx - Call simulator
frontend/src/components/SimulatorTab.tsx - Dialer and overlay
frontend/src/components/DialerTab.tsx
Rules and history
- Native call history
android/app/src/main/java/com/aegiscall/screener/telecom/CallHistoryStorage.kt - Backend call logs
backend/src/services/callLogStorage.ts
Other components
- Incoming caller
- Android Telecom
- Cloud LLM provider
- Screening verdict
Connections 38
- Incoming caller → Android Telecom: places call
- Android Telecom → Deadline screener: dispatches call
- Deadline screener → Screening routes: requests screening
- Deadline screener → Local rule engine: falls back
android/app/src/main/java/com/aegiscall/screener/telecom/AiCallScreeningService.kt - Deadline screener → On-device LLM: uses fallback
android/app/src/main/java/com/aegiscall/screener/telecom/AiCallScreeningService.kt - Screening routes → Cloud screening engine: screens payload
backend/src/routes/screeningRoutes.ts - Cloud screening engine → Backend fast rules: checks rules
backend/src/services/llmScreeningEngine.ts - Cloud screening engine → Cloud LLM provider: analyzes call
- Screening routes → Backend call logs: stores result
backend/src/routes/screeningRoutes.ts - Deadline screener → Android Telecom: returns verdict
- Deadline screener → Native call history: records screening
android/app/src/main/java/com/aegiscall/screener/telecom/AiCallScreeningService.kt - Android Telecom → In-call controls: adds active call
android/app/src/main/java/com/aegiscall/screener/telecom/AegisInCallService.kt - In-call controls → Voice screening: starts conversation
android/app/src/main/java/com/aegiscall/screener/telecom/AegisInCallService.kt - Voice screening → Capacitor native bridge: broadcasts speech
android/app/src/main/java/com/aegiscall/screener/telecom/AiVoiceScreeningEngine.kt - In-call controls → Capacitor native bridge: broadcasts call events
android/app/src/main/java/com/aegiscall/screener/telecom/AegisInCallService.kt - Capacitor native bridge → Capacitor client: emits call events
android/app/src/main/java/com/aegiscall/screener/plugins/CallScreeningPlugin.kt - App navigation → Capacitor client: subscribes events
frontend/src/App.tsx - App navigation → API client: requests screening
frontend/src/App.tsx - API client → Screening routes: posts call data
frontend/src/services/api.ts - App navigation → Dashboard and risk: renders view
frontend/src/App.tsx - App navigation → Call logs: renders view
frontend/src/App.tsx - App navigation → Rules manager: renders view
frontend/src/App.tsx - App navigation → Setup and settings: renders view
frontend/src/App.tsx - App navigation → Permission wizard: renders wizard
frontend/src/App.tsx - App navigation → Call simulator: renders view
- App navigation → Dialer and overlay: renders view
frontend/src/App.tsx - Dashboard and risk → API client: reads stats
- Call logs → API client: reads call history
- Rules manager → API client: manages rules
- Setup and settings → Capacitor client: requests roles
frontend/src/services/capacitorService.ts - Permission wizard → Capacitor client: checks permissions
frontend/src/components/AutoSetupWizard.tsx - Permission wizard → API client: checks backend
frontend/src/components/AutoSetupWizard.tsx - Dialer and overlay → Capacitor client: uses native calls
frontend/src/components/DialerTab.tsx - Backend server → Screening routes: registers routes
backend/src/server.ts - Backend server → Health endpoint: registers routes
backend/src/server.ts - Backend server → Log endpoints: registers routes
backend/src/server.ts - Log endpoints → Backend call logs: reads history
backend/src/routes/logRoutes.ts - Screening routes → Backend fast rules: serves rule edits
backend/src/routes/screeningRoutes.ts