Native iOS and Android clients for remotely controlling opencode sessions through a running opencode server.
This repository holds both app shells, shared product docs, design-system planning, and agent guidance. The apps talk to the headless opencode server API over HTTP and SSE while foregrounded.
| Path | Purpose |
|---|---|
android/ |
Kotlin, Jetpack Compose, Material 3 app |
ios/OpenCode Mobile/ |
SwiftUI app |
docs/ |
Architecture, feasibility, design system, feature slices |
.agents/ |
Shared agent guidance and canonical skills under .agents/skills/ |
scripts/ |
Icon sync, OpenAPI fetch/generate, agent symlink setup |
AGENTS.md |
Agent and contributor guide |
- Android: JDK 17, Android SDK (compile SDK 36)
- iOS: Xcode with iOS 17.6+ simulator support
- Dev tooling: Node.js for repo scripts (
npm installat repo root)
cd android
./gradlew :app:assembleDebug
./gradlew :app:testDebugUnitTest
./gradlew ktlintCheckSee android/README.md for code style details.
Open ios/OpenCode Mobile/OpenCode Mobile.xcodeproj in Xcode, or build from the CLI:
cd "ios/OpenCode Mobile" xcodebuild build \ -project "OpenCode Mobile.xcodeproj" \ -scheme "OpenCode Mobile" \ -destination 'generic/platform=iOS Simulator' \ CODE_SIGNING_ALLOWED=NO
npm install npm run icons:sync # regenerate shared Material icons npm run themes:sync # sync OC-2 desktop theme presets into app bundles npm run themes:check # verify shared/iOS/Android preset copies match npm run api:sync # fetch OpenAPI spec and generate clients
GitHub Actions workflows are manual only (workflow_dispatch):
| Workflow | What it does |
|---|---|
| Android Build | Assemble debug APK |
| Android Checks | ktlint, Android Lint, unit tests |
| iOS Build | Simulator build |
| iOS Checks | Build, static analyzer, unit tests |
Trigger from Actions on GitHub, or with the GitHub CLI:
gh workflow run "Android Checks" --ref mainAfter cloning, run ./scripts/sync-agent-links.sh if agent symlinks are missing.
- CONTEXT.md — product terms and domain language
- AGENTS.md — scope, architecture rules, skill usage
- docs/architecture.md — native app architecture
- docs/design-system/ — shared UI system
- docs/features/ — feature slice progress and decisions
Skills live in .agents/skills/ and are symlinked for Cursor and Claude:
./scripts/sync-agent-links.sh
AGENTS.md and CLAUDE.md share the same content. Edit skills under .agents/skills/<skill-name>/SKILL.md only.
In scope: session list/control, messages, async prompts, foreground event stream, session status, abort, permission approve/deny, session diffs.
Out of scope for v1: cross-platform frameworks, app-managed tunnels, push notifications, multi-project switching, mobile shell execution, and full IDE-style file editing.
See AGENTS.md for the full boundary.