PitchHut logo
A native Android AI coding agent for seamless development.
Pitch

PhoneCode offers a powerful Android-based AI coding agent that operates wholly on your device. With no backend or telemetry, it ensures complete privacy while providing tools for coding, version control, and web searching. Adaptable and user-friendly, it interfaces with various AI models, allowing for customized coding experiences.

Description

PhoneCode is a groundbreaking native Android AI coding agent designed to operate entirely on a mobile device. This independent project offers seamless interoperability with OpenCode while maintaining its distinct identity.

Key Features

  • On-Device Agent: PhoneCode provides a comprehensive coding agent toolkit that allows users to read, write, and edit files within project-specific workspaces. Key functionalities include globbing, grepping, applying patches, managing to-do lists, and utilizing various modes such as planning and building. It also empowers users to interact with web services and utilize progressive-disclosure skills.

  • Provider Integration: The agent supports a wide range of providers including OpenCode Zen and Go, Anthropic, OpenAI, Google, xAI, and more, which can be flexibly managed through an editable providers.json file that is refreshed on the fly.

  • Sign-in Management: PhoneCode utilizes the OAuth device flow for GitHub authentication, ensuring a streamlined sign-in process where users input a code without dealing with traditional tokens. Additionally, it offers "Sign in with ChatGPT" for those with a paid plan, facilitating easy access to OpenAI's Responses API.

  • Project Organization: Organized chats are structured into distinct projects, each functioning as its own workspace and git repository. This setup supports comprehensive version control features such as snapshot commits, branch switching, and direct push/pull capabilities.

  • Interactive Features: PhoneCode incorporates a streaming chat interface complete with reasoning traces, a tool-activity timeline, syntax highlighting, and context window metrics. This ensures an engaging user experience while keeping track of model-specific token usage.

  • Privacy-Focused Design: With a commitment to user privacy, PhoneCode ensures that keys are locally encrypted, logs remain on the device, and import/export features utilize user-selected files. The auto-backup functionality is designed to exclude sensitive information.

Building the Project

PhoneCode consists of multiple modules, allowing for a modular approach to building. Here’s a sample setup command:

$env:JAVA_HOME = "<path to JDK 21>"
.\gradlew.bat :app:assembleRelease   # minified release build
.
0 comments

No comments yet.

Sign in to be the first to comment.