Skip to main content

Buyer guide

Devin Delegation Playbook: Getting a Mergeable Pull Request Back

How teams hand Devin tickets, from environment blueprint to merge, with Cognition's three-hour task rule and the success rates published so far.

Reading time
2 min read
Sources
14 cited
In this piece
Devin+39 Positive

Give each repository a working environment once, write the finish line into the task, keep each session small, and review the result against CI before anyone merges it. The steps follow Cognition's documentation and two public accounts, RunLLM's month with Devin and Answer.AI's month of testing.

When you need this

  • Engineers have started handing Devin tickets, and the pull requests come back uneven.
  • Sessions stall on setup or end without a change that passes CI.
  • You want one team standard for which tickets go to Devin and how its pull requests get reviewed.

Evaluation criteria

  1. Before work: the environment

    Does every session boot with dependencies, tools, and secrets ready?

    Look forAsk Devin to create an environment blueprint for each repository. Review it before building the snapshot. Cognition ranks environment setup first among the steps that improve results on your codebase. Store credentials in the blueprint's Secrets tab, never in a prompt.

  2. Before work: repository instructions

    Where do build commands, test commands, and conventions live?

    Look forPut AGENTS.md at the repository root, with critical rules in its first 16 KiB. Devin injects that text automatically. Write repeatable procedures, such as testing before a pull request, in SKILL.md files. Knowledge is deprecated and migrating to Skills, so write new guidance as Skills.

  3. Before work: the finish line

    Can the ticket name where the work starts, where it ends, and the check that proves it?

    Look forStart with a task an engineer would finish in about three hours, Cognition's rule of thumb. Define success with tests, lint, or CI. Use Ask Devin to scope larger work first. Split the result into sessions that can run in parallel.

  4. Before work: a pattern to follow

    Does Devin have an example of the change you want?

    Look forInclude a similar merged pull request, or before-and-after examples, in the prompt so Devin has a pattern to follow.

  5. During work: session size

    Is the session staying small enough to succeed?

    Look forSession Insights sizes finished sessions from XS to XL by usage and flags L and XL as unhealthy. Split a broad refactor into one session per module so each session stays below XL.

  6. Before merge: review

    Who checks the pull request, and against what?

    Look forRequire checks through branch protection, name a human reviewer for every pull request, and use Devin Review for a first pass. Cognition's own security guidance says Devin can introduce bugs or insecure code. Answer.AI saw 3 of 20 tasks succeed in its January 2025 test. Cognition's November 2025 review of its own data reports 67% of Devin's pull requests merged, up from 34% a year earlier. Treat the first weeks as a measure of which tasks Devin finishes reliably on your code.

Questions to ask vendors

  1. Which of our repositories have a working blueprint, and who keeps each one current?
  2. What share of Devin pull requests merged last month without rework, by task type?
  3. Which session sizes produce our merged pull requests, and which sizes end abandoned?
  4. Which repeated corrections should become a Skill or an AGENTS.md rule?

Red flags

  • Prompts that bundle several unrelated tasks into one session.
  • Sessions that keep reaching usage limits, which Cognition reads as a sign the task is too large.
  • Pull requests merged on a green build with no named human reviewer.
  • Credentials pasted into chat and absent from Secrets.

Products in this piece

Sources

Official documentation
12
Public source
2
  1. Devin docs: When to use DevinOfficial documentationdocs.devin.ai
  2. Devin docs: Instructing Devin effectivelyOfficial documentationdocs.devin.ai
  3. Devin docs: Environment setupOfficial documentationdocs.devin.ai
  4. Devin docs: Environment blueprintsOfficial documentationdocs.devin.ai
  5. Devin docs: AGENTS.md filesOfficial documentationdocs.devin.ai
  6. Devin docs: SkillsOfficial documentationdocs.devin.ai
  7. Devin docs: Knowledge (deprecated, migrating to Skills)Official documentationdocs.devin.ai
  8. Devin docs: Session InsightsOfficial documentationdocs.devin.ai
  9. Devin docs: Devin ReviewOfficial documentationdocs.devin.ai
  10. Devin docs: GitHub integrationOfficial documentationdocs.devin.ai
  11. Devin docs: Security at CognitionOfficial documentationdocs.devin.ai
  12. Vikram Sreekanti and Joseph E. Gonzalez (RunLLM), Frontier AI: One month of using Devin (Jan 23, 2025)Public sourcefrontierai.substack.com
  13. Answer.AI: Thoughts On A Month With Devin (Jan 8, 2025)Public sourceanswer.ai
  14. Cognition blog: Devin's 2025 Performance Review: Learnings From 18 Months of Agents At Work (Nov 14, 2025)Official documentationcognition.com