When should you use it?
- You maintain a large, mature codebase
- Small refactors and cleanup crowd your roadmap
- You can review pull requests carefully
Not for: Expecting production code with no teaching or review; Greenfield-only teams without conventions to encode
What do you need, and what do you get?
You need
- Repository access for the agent
- Written conventions and onboarding facts
- A test suite it can run against
You get
- Pull requests for repetitive refactors
- Encoded team knowledge the agent reuses
- Fewer rewrites thanks to test feedback
How does it work, step by step?
- Drop the it-just-works assumptionExpect to teach it your codebase like a new engineer, not plug it in.
- Start small and definedBegin with narrow tasks before trusting it with sprawling changes.
- Encode your knowledgeWrite down facts like which migration command to run so it stops re-guessing.
- Wire in testsHave it loop on the test suite, correcting its own code before you ever see it.
- Review every pull requestKeep humans deciding what merges, especially for anything cross-cutting.
The prompt
Our own prompt, inspired by Varun Jindal, Engineer @ Lumos / Andrew Wang, Engineer @ Lumos and written to work in Custom agent. Values in lime are placeholders.
You will work in our codebase like a newly onboarded engineer. Before starting, read these conventions and facts: [paste onboarding notes, e.g. migration commands, test commands, patterns]. Take this narrowly scoped task: [task]. Run our unit tests in a loop and fix failures yourself before opening a pull request. Keep the change small, explain your choices, and flag anything you were unsure about.
Inspired by Varun Jindal, Engineer @ Lumos / Andrew Wang, Engineer @ Lumos: Cognition’s Devin: Your New Junior Engineer? | Blog | Lumos. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- An early open-ended task edited dozens of files at once; scope tightly at first.
- Encoding knowledge is time-consuming, but it is what makes later tasks less prescriptive.
Our take
Varun Jindal and Andrew Wang describe a lesson many teams learn the hard way: giving an agent the whole codebase is not the same as teaching it how your team works. At Lumos they expected Devin to perform immediately and discovered it needed onboarding, just like a new engineer who can read every file but does not know which migration commands to run or which patterns the team prefers. Their answer was to write that tribal knowledge into the tool's knowledge feature, so each lesson persists, and to connect unit tests so the agent gets feedback and corrects itself before a person reviews. Over time tasks could be described less precisely, which mirrors how a junior engineer grows. To apply this, start with small, clearly scoped tasks and note every correction you make; each one is a candidate for the knowledge base. Keep entries short and concrete, such as commands, file locations and naming rules. Review every pull request as you would a new hire's, and trim outdated knowledge entries when your stack changes.
Where the time goes back: Repetitive refactors that clog a roadmap get handled as reviewable pull requests once the agent knows your conventions.
FAQ
Does it work out of the box?
What helped most?
Source and credit
Inspired by Varun Jindal, Engineer @ Lumos / Andrew Wang, Engineer @ Lumos. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- Cognition’s Devin: Your New Junior Engineer? | Blog | Lumos
- Creator
- Varun Jindal, Engineer @ Lumos / Andrew Wang, Engineer @ Lumos
- Published on
- lumos.com
- Original date
- Dec 11, 2024
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Custom agent
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.