← Back to library

Onboard a coding agent like a junior engineer

A security-platform team expected an autonomous coding agent to just work because it had the whole codebase, then learned it needed teaching like a new engineer. The real unlock was a knowledge feature holding onboarding facts such as which migration commands to run, plus unit-test feedback loops that led to pull requests needing far less rewriting.

View original
Works with
Custom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

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?

  1. Drop the it-just-works assumptionExpect to teach it your codebase like a new engineer, not plug it in.
  2. Start small and definedBegin with narrow tasks before trusting it with sprawling changes.
  3. Encode your knowledgeWrite down facts like which migration command to run so it stops re-guessing.
  4. Wire in testsHave it loop on the test suite, correcting its own code before you ever see it.
  5. 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.

Prompt0 variables
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?
No. The team found it needs teaching like an onboarding developer before it is useful.
What helped most?
A knowledge store of team-specific facts, plus test feedback loops that cut rewrites.

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.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Distill agent sessions into shared memory every night

Save each completed agent session to its own transcript file, have one analyzer agent per transcript verify, enrich and organize small linked memory files, run an organizer once to merge duplicates and keep an index current, then attach the store to the agent's next session with read access only and repeat the pass nightly on new sessions.

Credit: Anthropic

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Put a reviewer AI between your agent and anything it sends

Let a long-running personal agent act on your behalf while a separate model checks every outgoing message, post or code push, and dangerous commands are blocked.

Credit: Justin Headley

An afternoon+
IT & SecurityRoutine✓ AI dry run

Schedule a daily repo brief that reports, not edits

Skip the morning scramble of figuring out where a project stands, using a scheduled agent that summarizes what changed and what needs attention, without touching code.

Credit: Developers Digest

Under an hour