Skip to content
Models
PLAN Free $0/mo PLAN Pro $20/mo PLAN Max $200/mo PLAN Teams $80/mo min + $40/seat Cognition FrontierCode (Oct 28) — score · cost per task Claude Opus 5.5 54.6% · $0.80/task Claude Fable 5 53.5% · $13.09/task Claude Opus 5 53.4% · $4.31/task GPT-6 Astra 53.3% · $4.59/task Claude Sonnet 5.5 52.1% · $1.59/task Claude Fable 5.1 50.9% · $3.28/task GPT-6.1 Sol 50.2% · $0.36/task SWE-2 50.0% · $1.18/task GPT-6 Sol 49.3% · $2.07/task Grok 4.6 48.0% · $2.88/task SWE-1.7 42.0% · $1.97/task SWE-1.6 9.4% · $0.49/task Devin launches Devin Apps, private web tools hosted on its cloud compu… Devin adds free SWE‑2 sessions and desktop access to Teams plan Gemini 4 Hydrogen launches in Devin Desktop and CLI, matching GPT‑6.1 … Basis reduces 20‑hour accounting process to 30 minutes with Devin Clou… Claude Mythos 5.2 added to Devin Security with benchmark score of 73.5 Gemini 4 Carbon added to Devin Desktop and CLI, scores 40% on Frontier… Claude Fable 5.2 added to Devin, leads FrontierCode 2.0 benchmark with… Devin offers 50% off Teams plan for users migrating from competing cod… PLAN Free $0/mo PLAN Pro $20/mo PLAN Max $200/mo PLAN Teams $80/mo min + $40/seat Cognition FrontierCode (Oct 28) — score · cost per task Claude Opus 5.5 54.6% · $0.80/task Claude Fable 5 53.5% · $13.09/task Claude Opus 5 53.4% · $4.31/task GPT-6 Astra 53.3% · $4.59/task Claude Sonnet 5.5 52.1% · $1.59/task Claude Fable 5.1 50.9% · $3.28/task GPT-6.1 Sol 50.2% · $0.36/task SWE-2 50.0% · $1.18/task GPT-6 Sol 49.3% · $2.07/task Grok 4.6 48.0% · $2.88/task SWE-1.7 42.0% · $1.97/task SWE-1.6 9.4% · $0.49/task Devin launches Devin Apps, private web tools hosted on its cloud compu… Devin adds free SWE‑2 sessions and desktop access to Teams plan Gemini 4 Hydrogen launches in Devin Desktop and CLI, matching GPT‑6.1 … Basis reduces 20‑hour accounting process to 30 minutes with Devin Clou… Claude Mythos 5.2 added to Devin Security with benchmark score of 73.5 Gemini 4 Carbon added to Devin Desktop and CLI, scores 40% on Frontier… Claude Fable 5.2 added to Devin, leads FrontierCode 2.0 benchmark with… Devin offers 50% off Teams plan for users migrating from competing cod…

Lesson 2.3 · Your first session · 5 of 8

Write a task Devin can finish

When a session goes wrong, the task is usually the cause. This lesson covers the size, detail and finish line that Cognition's docs recommend.

Checked against Devin's documentation on 2026-11-12

After this lesson you can

  • Size a task using the three-hour rule
  • Write an instruction with context, steps, success criteria and references
  • Split a large project into slices Devin can run in parallel

When an agent session fails, it is tempting to blame the model. More often the task was too big, too vague, or had no finish line. Cognition’s docs give concrete guidance on all three.

Four parts of an instruction Devin can act on
1ContextThe repository and the purpose of the work.2StepsThe work broken into logical parts.3Success criteriaWhat “done” means: passing tests, green CI, a matching pattern.4ReferencesExisting code, patterns or docs to follow.
Read the steps as text
  1. Context. The repository and the purpose of the work.
  2. Steps. The work broken into logical parts.
  3. Success criteria. What “done” means: passing tests, green CI, a matching pattern.
  4. References. Existing code, patterns or docs to follow.
  1. Context. The repository and the purpose of the work.
  2. Steps. The work broken into logical parts.
  3. Success criteria. What “done” means: passing tests, green CI, a matching pattern.
  4. References. Existing code, patterns or docs to follow.

Size: the three-hour rule

The docs give a simple test: “if a task would take you three hours or less, Devin can most likely do it.” For longer work, break it into smaller sessions.

This rule is useful because it is about the work, not the agent. If you cannot estimate a task in hours, you do not yet understand it well enough to hand it to anyone.

Detail: decide things for Devin

The docs say to be “as specific as possible” and to “make important decisions and judgment calls for Devin.” Their own examples show the difference:

PoorGood
Improve our database’s performance.Optimize the getOrderDetails query in orderService.js by adding a composite index.
Make the app look better.Use authTemplate.rs as a reference to keep error handling consistent.
Make sure it works.Run npm test after each iteration.

A good instruction has four parts: the context, the steps, the success criteria, and references to existing code or docs.

Finish line: something Devin can check

Ask yourself the docs’ question: “Can I describe clear success criteria?” Tasks with test suites, CI checks or other verifiable outcomes give the best results. A task with a clear start and end can be finished. A wish cannot.

Big projects: slice them

For large work such as migrations, refactors and technical debt, the best-practice guide says to break the project into isolated, repetitive subtasks. For each slice:

  • it should take under 90 minutes of manual engineering work
  • it needs its own pass or fail check, such as tests, a build or CI
  • it must be independent and backwards-compatible, so slices can run in parallel
  • it should get human review before it is merged

The guide sums it up: “The simpler the slice, the more reliable the overall project.”

Two habits that help

  • Scope with Ask first. For complex tasks, the docs suggest using Ask Devin to scope the work before starting a session. Lesson 2.2 showed how.
  • Stop pasting the same instructions. If the same conventions go into every prompt, they belong in a skill. That is the next lesson.

Check what you learned

3 questions. Nothing is recorded.

  1. 1. What size of task do the docs say Devin can most likely do?
    Show the answer

    One that would take you three hours or less. The docs say that if a task would take you three hours or less, Devin can most likely do it. Longer work should be split into smaller sessions.

  2. 2. Which instruction follows the docs' advice?
    Show the answer

    Optimize the getOrderDetails query in orderService.js by adding a composite index. The docs use this as a good example: it names the file, the query and the change. The other two are their examples of poor instructions.

  3. 3. You are slicing a migration for Devin. How long should one slice take an engineer by hand?
    Show the answer

    Under 90 minutes. The best-practice guide says each slice should take under 90 minutes of manual engineering work and have its own pass or fail check.

Sources

  1. When to use Devin — docs.devin.ai
  2. Instructing Devin effectively — docs.devin.ai
  3. Best practices — docs.devin.ai

From Devin Central — subscribe for Devin news, features & tutorials. Devin is a trademark of Cognition.