Overview
Use Devin to split a large ETL codebase into smaller modules one bounded slice at a time, each with agreed tests and output comparisons, and review every pull request before merging.
Problem or Objective
- Which agents port code to another language or framework?
- Which agents write or run tests against an application?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Devin
- Prerequisites
- A Devin account with access to your repository, a runnable test environment and sample data; check plan and session limits.
How It Works
Map the pipeline's jobs, dependencies and owners, and ask Devin to help scope a first slice. Pick one area with few dependants, capture its current outputs on fixed sample inputs as a baseline, and write success criteria: tests pass, outputs match within stated tolerances and no new cross-module imports appear. Point Devin to a module that already follows the target pattern if you have one. Start a session for that slice only, asking for the move, its tests and a draft pull request, with no merging and no access to production data. Review the diff and rerun the comparison yourself. Write down repeated corrections, then run further independent slices in parallel.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Devin.
- Connect the toolsConnect the tools this workflow relies on: Devin.
- Check the prerequisitesA Devin account with access to your repository, a runnable test environment and sample data; check plan and session limits.
- Gather your detailsCollect what the prompt asks for: Repository, Slice to move, New module path, Example module, Sample inputs, Allowed difference.
- Run the starter promptPaste the starter prompt below into Devin and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.devin.ai before you rely on it.
Practical Starter Prompt: Move one ETL slice into a module
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In [Repository], move the logic for [Slice to move] out of the monolith into a separate module at [New module path]. First describe its inputs, outputs and dependencies and wait for my approval of the plan. Follow the pattern in [Example module]. Add tests, and a script that compares old and new outputs on [Sample inputs] within [Allowed difference]. Open a draft pull request with the comparison results and anything you could not verify. Do not merge, deploy, change other slices or connect to production data.Approve the plan before changes, review the diff and comparison yourself, and merge only by hand.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Devin's documentation says it can write, run and test code, favors tasks with verifiable outcomes, advises splitting very large projects into focused sessions and mentions draft pull requests for review. A customer story published by Cognition describes an ETL migration into sub-modules with Devin; it is the vendor's own account and was not independently checked.
Limitations and Considerations
Work in a test environment with sample or masked data and credentials that cannot write to production. Passing tests cover only what they test, so compare outputs and record counts yourself. Merging and deploying stay with a person. Check session limits and cost before running many sessions in parallel. The customer story also describes collecting migration examples and fine-tuning the model; check whether anything like that is available to you. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Introducing Devin - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 2 Dec 2026, 16:40 UTC
What this source supports
- Devin is an autonomous AI software engineer that can write, run and test code.
- When to Use Devin - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 2 Dec 2026, 16:40 UTC
What this source supports
- Tasks with test suites, CI checks, or verifiable outcomes yield the best results.
- For very large projects, split the work into focused sessions that build on each other.
- Return to draft PRs waiting for review.
- Nubank customer story | Devin by Cognition (opens in a new tab)
Project documentation · devin.ai · Undated · Source checked 2 Dec 2026, 16:40 UTC
What this source supports
- A human is kept in the loop just to manage the project and approve Devin’s changes.