Android Agent Harness
Android Agent Harness is a provider-neutral Kotlin SDK for building bounded AI agents on Android and the JVM, with a governed run kernel, budgeted context, an approval protocol for risky actions and a reference sample app.
The SDK provides one shared run kernel with a cancellable, transactional lifecycle, deadlines, per-session isolation and deterministic replay checks, on top of which sit optional components for context compilation, state and memory, scheduling, feedback, approval and device access. Its context system tracks the trust, priority and privacy of each source, resolves conflicts, and compresses content within a token and item budget before it reaches the model; a general approval protocol binds any risky effect to its target, arguments, evidence and an expiry.
Android-specific adapters cover permissions, calendar, notifications, location, sensors, speech-to-text and text-to-speech, and a bounded Phone Use component lets an agent observe and act on a device's screen and accessibility tree with explicit approval.
The repository ships an installable sample app built on the SDK as a reference composition, not a second runtime. It is written in Kotlin and released under Apache-2.0.