DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run MobileCode from source to change it with Mobilecode

Clone the repo, install with Bun, and run the backend, web UI, or desktop app.

Short answer: Run git clone https://github.com/hsandhu/mobilecode.git and then cd mobilecode; then run bun install in the repo root; run bun run --cwd packages/opencode src/index.ts serve --port 4096 to start the backend. All steps.

Who it is forA developer who wants to modify MobileCode itself or test changes to its mobile preview features before using a release build.

The problemUsing a release binary does not let you test changes to the device preview code or the fork's mobile detection.

The outcomeA local backend and web UI run from source, and you can run the typecheck and tests before sending a change.

What you need first

  • 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

Steps

  1. Run git clone https://github.com/hsandhu/mobilecode.git and then cd mobilecode.
  2. Run bun install in the repo root.
  3. Run bun run --cwd packages/opencode src/index.ts serve --port 4096 to start the backend.
  4. Run bun --cwd packages/app dev -- --port 4444 and open http://localhost:4444 for the web UI.
  5. Run bun typecheck inside the package directory you changed, then bun test in packages/opencode before sending changes.

Prompt for your agent

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.

Caveat. The README gives development commands only and does not describe a contribution process, so check the repo before opening a pull request.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for hsandhu/mobilecode and "Run MobileCode from source to change it"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer