← Back to library

Start a coding task locally, hand it to the cloud

u/Ok_Insurance_919 on Devin's $20 Pro plan starts in the CLI so Devin can read the repo and gather context, then uses a handoff command to carry that session to the cloud without starting again. A cloud Mac with Xcode and an iOS Simulator lets it build, run, inspect and fix native apps itself.

  • OutcomeLet a coding agent explore your repo locally until you trust its plan, then shift that session onto a cloud machine to finish while you do other work.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditu/Ok_Insurance_919 on r/CognitionLabs
View original
Works with
Custom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • You want an agent to finish long tasks unattended
  • Explaining context twice wastes time
  • You build native apps

Not for: Repos with secrets you cannot put in a cloud machine; Tasks needing your local hardware

What do you need, and what do you get?

You need

  • Repo
  • Local agent CLI
  • Cloud agent account

You get

  • Agreed plan
  • Cloud session finishing the task
  • Pull request to review

How does it work, step by step?

  1. Explore locallyLet the agent read the repo and summarize the plan.
  2. Agree the planCorrect it until you would hand it to a teammate.
  3. Hand offMove the session to the cloud machine with the same context.
  4. Let it loopFor apps, it builds, runs, inspects and fixes in its own environment.
  5. Review the PRYou review and merge.

The prompt

Our own prompt, inspired by u/Ok_Insurance_919 on r/CognitionLabs and written to work in Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt2 variables
Explore this repo and summarize: architecture, how to build and test, and your plan for {task}, listing files you expect to change.
Wait for my approval of the plan. After handoff, work on a branch named {branch}, run the build and tests after each change, then raise a PR with a summary. Do not merge.

Inspired by u/Ok_Insurance_919 on r/CognitionLabs: $20 Devin Pro + free SWE-2: my experience with the full workflow so far. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Cloud machines need their own test credentials, not yours.
  • Subagents running unsupervised; the poster wants more control there.

Our take

The useful idea is the trust checkpoint: watch the agent explore locally, agree a plan, then let it run in a machine where mistakes cannot touch yours. For native apps, the build-run-fix loop on its own simulator is where an agent saves real time. Write the agreed plan into the pull request description so reviewers can compare promise with change. It also makes later handoffs easier to audit. Let the agent read the repo and summarize its plan locally, and correct it until you would hand it to a teammate. Then move the session to the cloud machine with the same context. Give that machine its own test credentials, never yours, and keep repositories with secrets you cannot place in the cloud local. The poster wants more control over subagents running unsupervised; review the pull request carefully before merging. Put the agreed plan in the pull request description so reviewers can compare what was promised with what changed.

Where the time goes back: Context gets built once, and the long build-and-fix loop runs without you watching.

FAQ

Is this Devin-only?
The handoff is a Devin feature; other tools offer similar local and cloud modes.
Why start locally?
It lets you check the agent's understanding before it works alone.

Source and credit

Inspired by u/Ok_Insurance_919 on r/CognitionLabs. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
$20 Devin Pro + free SWE-2: my experience with the full workflow so far
Creator
u/Ok_Insurance_919 on r/CognitionLabs
Published on
Reddit
Original date
Sep 19, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Build one pull request dashboard across two DevOps servers

Have a coding agent build a small internal web page that gathers every open pull request from several repositories and highlights the ones needing action.

Credit: cmpalmer52 on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Clean up after coding agent sessions

Wrap every agent run in a process group that gets killed when the task ends, and clear old temp files on a schedule.

Credit: _matthew_ on Hacker News

Under an hour
IT & SecurityWorkflow✓ AI dry run

Supervise an AI-built SaaS like a junior engineer

When an agent builds a multi-tenant app, verify the risky layers yourself: row-level security, token handling, environment settings and which database production points at.

Credit: u/rohynal on r/replit

An afternoon+