Overview
Have Devin compare a repository's README with the current code after a restructure and open a draft pull request that rewrites the setup, configuration and usage sections, for maintainers to review.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Devin
- Prerequisites
- A Devin account with access to the repository, and a maintainer who knows the design history.
How It Works
Start a Devin session on the repository and, if you like, use Ask Devin first to explore the codebase and outline which README sections no longer match it. Give a scoped task: rewrite the installation, configuration, commands and API sections so they match the code on the main branch, keep every other section as it is, and mark each place where the reason behind a design choice is needed with a short note for a maintainer. Ask it to follow its own new setup steps from a fresh clone and report any step that failed. Devin returns a draft pull request. A maintainer reviews the diff, fills in the design reasoning in their own words, tries the setup on a clean machine, and only then merges.
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 the repository, and a maintainer who knows the design history.
- Gather your detailsCollect what the prompt asks for: Repository, Branch the README should match, README sections to rewrite.
- 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: Bring the README in line with the code
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In [Repository], compare README.md with the code on [Branch the README should match]. Rewrite only these sections so they match the current code: [README sections to rewrite]. Leave every other section unchanged. Where a reader needs to know why a design choice was made, add a short placeholder note for a maintainer instead of guessing. Follow your new setup steps from a fresh clone and list any step that failed. Open the result as a draft pull request and leave it unmerged, because a maintainer will review and approve it first.Review the draft pull request line by line, replace each placeholder with the real reasoning, and try the setup on a clean machine before you approve and merge it.
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. The Devin docs describe an autonomous AI software engineer that writes, runs and tests code and returns draft pull requests for review, and the guidance page recommends clear success criteria and smaller sessions for long work. They do not mention README or documentation rewrites specifically, and the reasons behind design choices come from the people who made them, so that part is left to maintainers.
Limitations and Considerations
The guidance page says tasks with test suites, CI checks or verifiable outcomes give the best results, and a README has few of those: running the setup steps from a fresh clone is the nearest check, so ask for it explicitly. Keep the change in a draft pull request and merge only after a maintainer has read it. Devin access goes through sign-up, or through your administrator or Cognition if your company already works with them; check how sessions are billed on your plan. 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 26 Nov 2026, 17:27 UTC
What this source supports
- Devin is an autonomous AI software engineer that can write, run and test code.
- Carving out tasks from your todo list at the start of your day and returning to draft PRs waiting for review.
- If your company is already working with Cognition, you can request permissions from your Administrator or Cognition directly and access Devin via the web application at app.devin.ai.
- When to Use Devin - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Can I describe clear success criteria? Tasks with test suites, CI checks, or verifiable outcomes yield the best results.
- For longer tasks, break them into smaller sessions.
- Ask Devin can help you investigate the codebase and outline your approach.