About
## How you are solving it? **Architecture**
- `SaarthiAccessibilityService` + `ScreenPerception` walk the live accessibility tree and compress it into plain text (`PerceptionResult`/`NodeText`) an LLM can reason over.
- `AgentLoop` feeds that perception plus the user's spoken task to Claude (`ClaudeClient`) via an 11-tool schema (`AgentTool`) — tap, type, scroll, swipe, open-app, and more — in a perceive → decide → act loop.
- `ActionExecutor` carries out whatever Claude decides, gated by `IrreversibleActionGuard`, which forces a hand-back confirmation screen before any action that can't be undone.
- `ChatRouter` classifies every incoming message as chat-vs-task *before* AgentLoop ever runs, so an offhand remark can't accidentally trigger a device takeover.
- Voice loop: `AudioRecorder` + Sarvam's streaming STT (with VAD auto-stop) capture speech; streaming TTS narrates the agent's steps starting from the first audio chunk instead of waiting for the full line to render.
- The whole UI and narration is localized into 11 languages, so the experience — not just button labels — matches the user's language.
- Three entry points (long-press home via `SaarthiInteractionSession`, the system ASSIST intent, and typed in-app chat) all funnel into the same `AgentLoop`, so a takeover works identically everywhere.
**Disclosure on prior work:** This project is based out of a prior project Manu did for a prior hackathon - Sarvam Hack but it is *shell only* — static screens (onboarding, home, history, settings, the assist overlay/hand-back UI), navigation, and design tokens, with no real functionality behind any of it. Every piece of actual intelligence — the accessibility perception layer, the Claude-driven agent loop, the voice pipeline, ChatRouter, irreversible-action guarding, and the 11-language localization — was built during the 5-hour hackathon window itself.
## What is the deployed URL for this project? https://github.com/mikelord007/Saarthi-AI
## What is the problem your project solves? Millions of smartphone users in India are locked out of full participation in the app economy — not because they lack a phone, but because most apps assume screen literacy: small tap targets, dense text, flows written in English, multi-step forms. Existing voice assistants (Google Assistant, Siri) can open an app or set a timer, but they can't actually **operate** an arbitrary app for someone — they can't fill a form, navigate a confirmation dialog, or read out what's currently on screen in the user's own language.
**Saarthi AI** closes that gap. It's a voice-first Android agent that can: - **See** the screen through Android's Accessibility API - **Understand** a spoken task in the user's own language (11 Indian languages supported) - **Act**: either read the screen aloud, or literally tap/scroll/type through the app on the user's behalf — narrating every step *before* taking it, and pausing for explicit confirmation before anything irreversible (payments, deletions, sending messages)
It's aimed at users for whom the smartphone UI itself is the barrier — low-literacy users, elderly users, and anyone more comfortable speaking a task aloud than hunting through menus.
## How Did You Use Claude? Claude is the decision-making core of the agent loop, not a bolt-on feature:
- **`ClaudeClient`** sends Claude the current screen's perceived text plus the user's task, using a custom 11-tool schema (`AgentTool`) that models real UI actions — tap-by-text, tap-by-coordinates, type, scroll, swipe, open app, go back, wait, and more.
- Claude runs in a **perceive → decide → act loop** (`AgentLoop`): after every action, the screen is re-perceived and fed back to Claude so it adjusts to what actually happened rather than executing a static plan.
- **`ChatRouter`** is a separate, lightweight Claude call (Haiku 4.5) that classifies each incoming message as chat-vs-task and resolves ambiguous replies (e.g. a bare "yes" confirming something said earlier) before anything reaches the main agent loop — so Claude decides *whether* to act, not just *how*.
- The main agent loop runs at effort:high with adaptive thinking enabled, since screen-navigation decisions (which of several near-identical buttons to tap, whether a dialog is a confirmation or a distraction) benefit from deliberation.
- Claude is also responsible for respecting the irreversible-action guard: it's prompted to flag actions that need explicit user confirmation before `IrreversibleActionGuard` hands control back to the user.
In short: Claude is the thing actually looking at the phone screen and deciding what to tap next — the rest of the app is perception, execution, and voice I/O built around that core loop.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.









