Overview
A technical writer asks Devin to read the code and run the software to explain how a feature really behaves, then drafts the documentation from those verified notes and has an engineer check it.
Problem or Objective
More in Content and Media
AI Agents and Models
Tools and Integrations
- Tools
- Devin · GitHub
- Prerequisites
- A Devin account with access to the repository, and an engineer available to review the drafts.
How It Works
Pick one feature or endpoint to document and write down the questions a reader will have: what it does, its options and defaults, error messages and limits. Start a Devin session on the repository and ask it to answer each question from the source code, pointing to the files and lines it used. Where behaviour matters, ask it to start the app in its own environment, try the feature and attach screenshots or command output. Keep it away from application code: ask for notes, not code changes, and nothing committed or pushed. Write the documentation yourself from the notes, or ask Devin for a first draft as a pull request against the docs folder. Have an engineer who owns the feature review the draft before it is merged and published.
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, GitHub.
- Check the prerequisitesA Devin account with access to the repository, and an engineer available to review the drafts.
- Gather your detailsCollect what the prompt asks for: Repository with the feature, Feature or endpoint to document, Questions the docs must answer, Where Devin saves its notes.
- 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: Explain how this feature behaves
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In the repository [Repository with the feature], answer these questions about [Feature or endpoint to document] from the source code: [Questions the docs must answer]. For each answer, cite the files and lines you used. Where behaviour depends on runtime, start the app, try the feature and attach screenshots or command output. Write your notes to [Where Devin saves its notes] without committing or pushing anything, and do not change any application code. Open a pull request only if I later ask for a draft page, and only for review.Keep sessions away from application code and focused on a fixed list of questions; a draft pull request is opened only when you ask for one. An engineer who owns the feature reviews every draft before it is merged and published.
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 pages list codebase Q&A and maintaining documentation among the tasks it handles well, and say it has a shell, IDE and browser to start an app and click through it. They do not measure how accurate its explanations are, so the engineer review remains the check on correctness.
Limitations and Considerations
An agent can describe what the code seems to do rather than what users see, so verify anything surprising by running the feature yourself. Devin's docs say good tasks have a clear start and end plus explicit success criteria, so give it a fixed list of questions per session. If your company is already working with Cognition, the docs say you can request permissions from your administrator or from Cognition directly; check what each session costs 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.
- Codebase Q&A and maintaining documentation are listed among the types of tasks where Devin excels.
- 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
- Devin has a full desktop environment with a shell, IDE, and browser; it can spin up your app locally, click through the UI, take screenshots and record screen recordings.
- Good tasks have a clear start and end, plus explicit success criteria.