Skip to main content
Devin (by Cognition) can reproduce each Tusk workflow. Because Devin is a general, customizable agent platform, you can extend each one well past Tusk’s capabilities. This guide maps every Tusk product to its Devin equivalent and gives you a copy-paste prompt for each automation. Devin is more powerful than Tusk’s purpose-built pipelines, but it is usage-priced, so the goal shifts from running it on every action to triggering it intentionally.

At a glance

Devin features you’ll use

Automations

A trigger (schedule, GitHub PR/push/comment, Slack, Linear, webhook), an optional condition, then a Devin session running your prompt, with the triggering event’s payload auto-appended for context.

Playbooks

A reusable system prompt for a repeated task. Include it in an automation’s prompt with @playbook-name.

Knowledge

Org and repo guidance Devin auto-recalls based on triggers. It composes with Playbooks: a Knowledge item can’t invoke a Playbook, but both stay active in the same run.

Devin Review

A PR code-review platform that auto-reviews pull requests, flags bugs with Bug Catcher, and can push fixes with Auto-Fix. The drop-in Tusk Review replacement.

1. Tusk Review → Devin Review

This is the easiest migration since it is a near 1:1 product swap. Devin Review auto-reviews PRs, posts inline comments, and can fix what it finds. Auto-Fix proposes the change inline and can push a fix commit, going beyond Tusk Review’s comment-only model. Bug Catcher categorizes findings (Severe / Non-severe / Investigate / Informational) with smart diff grouping.
1

Enable Devin Review

Admins enroll repositories under Settings → Review; each user picks a trigger mode (Auto review, On PR creation, or Manual) under Settings → Preferences. GitHub has full support; GitLab is in preview.
2

Configure

Set the trigger mode and bot-comment handling per the docs. Optionally point Auto-Fix at recurring classes of bug, and add repo Knowledge so review comments respect your conventions and known non-issues.

2. Tusk Tester (PR check) → PR-triggered test generation

Tusk Tester watched your PRs, generated unit tests scoped to the diff, and let you incorporate them on the PR branch. Reproduce it in Devin as an Automation on a GitHub PR trigger running the prompt below, with Knowledge ensuring testable changes get covered.
1

Save the prompt as a Playbook

Copy the PR Test-Gen Agent Playbook prompt below into a Devin playbook; resolve its [USER_INPUT_MODE] (regression-safety vs bug-hunting vs both) and [USER_INPUT_DELIVERY] (inline on the PR branch vs separate PR) blocks.
pr-test-gen-agent.md
2

Create the Automation

Trigger on pull_request (opened / ready-for-review); action = a session running @pr-test-gen. The PR payload is auto-appended, so the agent gets diff context natively.
3

Add Knowledge

Knowledge is “a collection of tips, advice, and instructions that Devin can reference in all sessions,” automatically recalled when a relevant trigger fires. Add an entry like “When working on a PR, ensure any changed code that can be meaningfully unit-tested is tested, following our conventions.” It’s also where you encode domain context (e.g. “our X webhook only ever returns 200, so don’t test that error path”).
Mind the cost. A session per PR event adds up, so you don’t need to run on every commit. Common patterns: trigger when the developer adds a GitHub label, run once when a PR is ready for review, or skip per-PR entirely and let the scheduled coverage automation below pick up recently merged code.

3. Tusk Tester (CoverBot) → scheduled coverage

CoverBot ran on a schedule, found under-covered code, generated tests, and opened a PR. Reproduce it as an Automation on a Schedule trigger running the coverage prompt below.
1

Save the prompt as a Playbook

Copy the Coverage Agent Playbook prompt below into a Devin playbook; resolve its [USER_INPUT_PR_SIZE] (saturate vs breadth vs fixed scope), [USER_INPUT_SOURCE_FILES] (test-only vs allow source changes), and [USER_INPUT_REVIEWERS] blocks.
coverbot-agent.md
2

Create the Automation

Schedule trigger (e.g. weekly, off-hours) → session running @coverage → opens a PR. Set a per-session ACU cap so each run is bounded.
3

Tune it

Point file selection at the modules that matter (high churn × low coverage, bug-prone, high fan-in), match the cadence to your merge velocity, and aim runs at recently-merged code if you also want to cover the per-PR case cheaply.

4. Tusk Drift → real-usage API tests

This is the least 1:1 swap of the four. Tusk Drift recorded real traffic with a bespoke SDK and deterministically replayed it. In its place, use Devin to set up an API/integration test framework and generate smart test cases by inferring real usage from observability and application logs. The result is traditional tests with better-targeted inputs, run on a schedule like CoverBot.
1

Connect a usage signal

Via MCP: the Sentry or Datadog servers expose real requests, errors, and payload samples; application/access logs work too. The more real usage you can feed it, the better the tests, so connect as many sources as you reasonably can. The signal is usually partial, so the agent infers realistic cases and fills gaps by reading the code.
2

Save the prompt as a Playbook

Copy the API Test Agent Playbook prompt below into a Devin playbook; resolve its [USER_INPUT_USAGE_SOURCE] and [USER_INPUT_REVIEWERS] blocks. If there’s no API test framework yet, the prompt scaffolds a minimal one first.
api-traffic-test-agent.md
3

Create the Automation

Run it on a Schedule trigger, like CoverBot. It opens its own PR with the new tests.

Best practices

  • Devin is usage-priced. On self-serve plans, that means included quota plus on-demand credits at API pricing; enterprise plans use ACUs. Keep runs predictable by setting a per-session ACU cap, limiting when automations run, and favoring scheduled jobs over per-commit PR triggers.
  • The prompts above are meant to be edited. Use them as a starting point for your Playbooks, add repo-specific context, connect tools you need through MCP, and use trigger conditions to decide when Devin should run. As a bonus, you can prompt Devin to spin up multiple Devins to test and review separate units of work in parallel.
  • Start with Devin Review and the scheduled coverage automation. Add PR test generation and Drift-style API testing once you have solidified the test automation approach for your SDLC.