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
Checks run on Blacksmith for every ready-for-review pull request (drafts are skipped). Android Build and iOS Build stay manual.
| Workflow | Trigger | What it does |
|---|---|---|
| Android Checks | PR (non-draft) + dispatch | ktlint/lint (soft-fail) + unit tests |
| iOS Checks | PR (non-draft) + dispatch | Build, analyzer, unit tests |
| Android Build | workflow_dispatch |
Assemble debug APK |
| Android Release | workflow_dispatch on main |
Build and verify signed AAB + APK, then publish to Play internal |
| Android App Distribution | push to main |
Build and verify a signed APK, then distribute it to the private Firebase tester group |
| Android Test Lab | workflow_dispatch on main |
Run bounded Robo tests against a signed release APK |
| iOS Build | workflow_dispatch |
Simulator build |
To block merges, require status checks android-checks and ios-checks on
main (repository ruleset or branch protection, strict up-to-date). See
docs/features/ci-pr-gating/.
Manual runs:
gh workflow run "Android Checks" --ref main gh workflow run "Android Release" --ref main -f version_name=0.1.0 gh workflow run "Android Test Lab" --ref main -f release_run_id=<android-release-run-id>
Android Release, Android App Distribution, and Android Test Lab use the
protected android-release environment. See the
Android release operator runbook
for secrets, artifacts, Play internal testing, Test Lab, and recovery
instructions.
After 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.