{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "hsandhu-mobilecode--run-mobilecode-from-source-for-development",
 "repo": "hsandhu/mobilecode",
 "repo_url": "https://github.com/hsandhu/mobilecode",
 "repo_slug": "hsandhu-mobilecode",
 "title": "Run MobileCode from source to change it",
 "page_title": "How to run MobileCode from source to change it with Mobilecode",
 "summary": "Clone the repo, install with Bun, and run the backend, web UI, or desktop app.",
 "who": "A developer who wants to modify MobileCode itself or test changes to its mobile preview features before using a release build.",
 "problem": "Using a release binary does not let you test changes to the device preview code or the fork's mobile detection.",
 "outcome": "A local backend and web UI run from source, and you can run the typecheck and tests before sending a change.",
 "steps": [
  "Run `git clone https://github.com/hsandhu/mobilecode.git` and then `cd mobilecode`.",
  "Run `bun install` in the repo root.",
  "Run `bun run --cwd packages/opencode src/index.ts serve --port 4096` to start the backend.",
  "Run `bun --cwd packages/app dev -- --port 4444` and open http://localhost:4444 for the web UI.",
  "Run `bun typecheck` inside the package directory you changed, then `bun test` in packages/opencode before sending changes."
 ],
 "agent_prompt": "Clone https://github.com/hsandhu/mobilecode into a local folder, run bun install, then start the backend with `bun run --cwd packages/opencode src/index.ts serve --port 4096`. Expected output: the backend running on port 4096. Verify by confirming the server responds locally before reporting that the source build works.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README gives development commands only and does not describe a contribution process, so check the repo before opening a pull request.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "macOS with Xcode for iOS previews",
  "Node 20 or newer (serve-sim needs it)",
  "Android SDK platform-tools with at least one AVD for Android previews",
  "A JDK that your project's Gradle version supports",
  "Bun, for the install from source path"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hsandhu-mobilecode/run-mobilecode-from-source-for-development/",
 "md": "https://dedupedai.com/use-cases/hsandhu-mobilecode/run-mobilecode-from-source-for-development/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/hsandhu-mobilecode--run-mobilecode-from-source-for-development.json",
 "api_version": "v1"
}
