Project

mushi

experimental

Android coding agent with a local WebView, pi-durable and an embedded ARM64 Bun runtime.

Overview

Mushi runs a coding agent directly on Android, with a local WebView interface and a signed Termux ARM64 Bun runtime. It uses Pi's durable agent runtime for SQLite conversations, coding tools and recovery after interrupted work.

The app includes shell and file access, web tools and QuickJS code mode. It is an experimental development build for ARM64 Android devices, not a Play Store-ready application.

How it works

A foreground Android service hosts the runtime. The WebView communicates through a native bridge and an app-private Unix socket, with no public agent TCP listener. Conversations and tool state are stored in the app's private data.

The agent runs with the app's permissions and can access its own plaintext provider credentials. Android force-stop, Doze and vendor restrictions can interrupt background work; recovery cannot guarantee exactly-once external actions.

Features
→
Local coding tools

Read and edit files, run shell commands, fetch pages and search the web from the device.

→
Durable conversations

SQLite-backed history and interrupted-task recovery through pi-durable.

→
Provider login

OpenAI and Anthropic API keys, ChatGPT/Codex login and GitHub Copilot device login.

→
Mobile rendering

Markdown, highlighted code, tool cards and Japanese ruby/furigana annotations in the WebView.

→
ARM64 runtime

Uses signed Termux runtime packages without QEMU or PRoot. Targets arm64-v8a devices on Android 9 (API 28) or later.

→
Data and update limits

Uninstalling erases app data; updates need the matching signing certificate. The extracted native prefix is not automatically upgraded.

Architecture
Android WebView Chat + settings Native bridge App-private Unix socket Bun + pi-durable Foreground service Tools and state Shell, files, SQLite On-device Android agent with a private runtime connection