Open Devin
Lesson 5 · Video · 5 min

When to Reach for a Cloud Agent

Optional reading: go deeper

Teams new to cloud agents often start by working with them like local agents, watching each step and keeping the scope small. That is a normal adjustment to make, but the workflow changes when you can let the session run. Cloud agents work best when you apply your engineering judgment at the moments where it matters most: scoping the task clearly at the start and reviewing the result at the end. Give the session enough scope to handle the related files and checks that make the change complete, and let the habits you built as a local developer guide the assignment and review rather than the live session.

So when do you reach for cloud over local? Whenever any of these are true:

Signal Why cloud wins
The task is well-defined and verifiable The agent runs tests, lint, and CI to confirm its own work without you
It spans multiple files or systems The agent navigates a whole codebase, not just your open buffer
It is repetitive across targets Let it grind through N instances while you review
It needs a clean environment A fresh VM avoids "works on my machine" issues from leftover state
It takes a long time to run Builds, migrations, and big test suites run on its machine, not yours

The rule of thumb: use cloud when the work can be specified and verified without you in the loop. Keep it local when your judgment is the work, like naming, UX, or architecture you are designing in real time.

Can success be verified without human judgment?

That one question is the sharpest filter for what to delegate. If success is objectively checkable, hand it off. If it needs deep human judgment throughout, keep it.

Belongs to an agent Keep for humans
Bug fixes with clear repro steps Creative or novel architecture decisions
Security vulnerability remediation Problems with unarticulated intent ("make it better")
Version upgrades and dependency bumps Tasks needing info the model cannot access
Test generation against a coverage target Subjective quality calls
Code migrations and translations Politically sensitive changes
Documentation updates and scheduled maintenance

The left column shares clear success criteria and repeatable patterns. The right column needs creativity, taste, context the model was never given, or organizational buy-in. For those, encode what you can (linters, AGENTS.md, Knowledge notes) and make the call yourself.

The gray zone

Most real tasks sit between the extremes. The pattern: agent research, then human decision, then agent implementation, then human review. Instead of "refactor the auth module," have the agent list every public method, its callers, and circular dependencies; you decide what to extract; then it executes the specific change and you review the PR. The human contributes judgment at the decision points, the agent contributes labor at the execution points.

Prompt quality drives output quality

A vague prompt makes the agent guess and it may fix the wrong thing. A precise one lets it target the exact issue and verify the result. Include the repository, specific file paths, expected versus actual behavior, acceptance criteria, how to confirm success, and any constraints (do not change X, use library Y, follow the pattern in Z).

Back to course← Previous lesson
© 2026 Cognition AI, Inc.Made with by the Cognition team