Every engineering team I know has the same problem. The code tells you what the system does. It almost never tells you why.
Six months after a feature ships, someone opens a file and finds a strange condition in the middle of a function. Is it a bug? A workaround? Something a client asked for on a call that nobody wrote down? The person who wrote it may have moved to another project, or may simply not remember. So the new developer either leaves it alone and works around it, or removes it and breaks something a client depends on.
I have seen this happen enough times that I stopped treating it as bad luck. It is a process problem. That is why I created DevNotes, a simple written format that every engineer on my teams fills in for every meaningful piece of work. Today it is used on all of our projects.
The real value shows up later. DevNotes have helped us look back at decisions we made in the past and see why we made them: the reasoning, the thought process and the trade-offs we accepted at the time. Without the note, that context would live only in someone’s memory, if it lived anywhere.
This essay explains what DevNotes are, what goes into one, and why I think this small habit matters more for our code quality, reviews and onboarding than most of the tools we use.
What a DevNote is
A DevNote is a short markdown file that lives in the repository, next to the code it describes. One feature, one note. It is written by the developer doing the work, before and during development, not as an afterthought once the pull request is open.
The file name follows one rule:
YYYY-MM-DD-short-task-descriptor.md
For example: 2026-03-14-admin-panel-overhaul.md. The date puts notes in order, and the descriptor tells you what it is about without opening it. Anyone can scan the folder and see the history of a project in plain English.
Every DevNote has five sections.
1. The What
This is the business side. Before you write any code, explain:
- the business requirement, and what this feature is supposed to do;
- every assumption you are making;
- the constraints, special conditions and special cases;
- verbal agreements and changes of scope;
- FAQs, answering the questions any developer will have when they read this feature for the first time.
“Verbal agreements” is the line I care about most. In client work, a lot of decisions get made on a call. The account manager hears it, the developer hears it, everybody nods, and three weeks later nobody can find it anywhere. If it shaped the code, it goes in the DevNote. That one habit settles a lot of “why does it work this way?” debates before they start.
Writing assumptions down has a second benefit. A developer who has to write “I am assuming members can only redeem once per day” will very often stop and go ask. That one question costs five minutes. Finding out after launch costs a lot more.
2. The How
Next, the developer explains how they plan to build it:
- the approach they are taking;
- the key functions and classes, and the overall architecture;
- any new tables, classes or modules they are creating, and why they chose to create something new instead of using what already exists.
That last question is deliberate. I want our platforms to be modular. We run a large number of client programs on shared codebases, and that only works if engineers build reusable pieces instead of one-off code for each client. Asking “why not use what we already have?” up front prevents a lot of duplication. Sometimes the answer is good and a new module is the right call. Either way, the developer has to think about it, and the reviewer gets to see the reasoning.
Writing the How before coding also surfaces design problems while they are still cheap to fix. When I or one of our directors review a DevNote early, we can say “there is already a service for this” or “this will not hold up at volume” before anyone has spent a week building it.
3. The Test Cases
Every DevNote spells out how we will know the feature works:
- the test cases the developer recommends;
- what the ideal tests should be;
- the tests themselves where possible, or at minimum a testing guide listing the smallest set of cases that proves the feature works.
I specifically ask for end-to-end thinking. Unit tests are good, but our clients do not experience functions. They experience flows: a member signs up, uploads a receipt, earns points, redeems a reward. A test plan that follows the real flow, including the edge cases, catches the problems that matter.
It also makes QA’s job much easier. Instead of guessing what changed and what to test, they have a list written by the person who knows the feature best.
4. The Review Guide
This section is written for the reviewer, and I think it is the most underrated part of the format. The developer explains:
- where the key flow starts, meaning the main controllers or “starter” files;
- how the reviewer should begin the review;
- which files need careful attention;
- which critical system files were changed, and why those changes were needed.
Anyone who has reviewed a large pull request knows the feeling. Forty files changed, and you have no idea where to begin. You end up reading in alphabetical order, skimming the parts that matter and spending time on the parts that do not. A good Review Guide turns that around. The reviewer starts at the entry point, follows the flow, and knows exactly which changes to core files need a second look.
Better reviews mean fewer bugs reaching production. They also mean reviews get done faster, which keeps the whole team moving.
5. Post-Development Notes
After the work is done, the developer comes back and closes the loop:
- any new packages added to the project;
- what changed between what was originally scoped and what was actually built;
- how well they estimated the task, and whether their assumptions held up.
The scope comparison is valuable for everyone. The account manager can see exactly what was delivered against what was asked for, and the next developer knows the plan changed and why.
The estimation reflection is there for growth. Estimating is a skill, and the only way to get better at it is to compare what you thought with what happened. A developer who does this honestly for a year will estimate far better than one who does not. It also lets me see patterns: which kinds of work we keep underestimating, and where our assumptions keep turning out wrong.
Why I insist on this
The reasoning stays with the code
Code shows you the result of a decision. A DevNote keeps the decision itself: the context, the trade-offs and the things we chose not to do. Because it lives in the repository, it moves with the code. It does not disappear into someone’s inbox, a chat thread or a document nobody can find.
People can change, knowledge stays
We work across several teams and time zones, and people move between projects. With DevNotes, a developer picking up a project can read the history of every major feature in an afternoon instead of piecing it together from commits and guesswork. Onboarding is faster, and when someone goes on vacation, the work does not stop.
It builds better engineers
Writing forces clear thinking. If you cannot explain in plain words what you are building, why you are building it that way and how you will test it, you are not ready to write the code yet. Over time, the habit of writing DevNotes turns into the habit of thinking things through, and that shows up in the code.
It also gives me and our directors a way to coach. Reading a DevNote, I can see how someone thinks, not just what they produced. That makes design conversations more useful and helps engineers grow into bigger responsibilities.
It protects our clients
Most of our work is for clients running loyalty and rewards programs, and the details matter: eligibility rules, point calculations, redemption limits, regional differences. A misunderstood requirement can affect real members and real money. DevNotes make sure the requirement, the assumptions and the agreements are written down and checked before they become code.
What I have learned rolling it out
A few things matter if you want this to work on your team.
Keep the format simple. Five sections, plain markdown, one file per feature. The moment it feels like bureaucracy, people stop doing it properly. The goal is useful notes, not long ones.
Write it early, not at the end. A DevNote written after the code is done is a summary. A DevNote written before and during development is a design tool. The value is in the thinking it forces up front.
Review the note, not just the code. If reviewers skip the DevNote, developers will learn that it does not matter. When the review starts with the DevNote, people take it seriously.
Size it to the work. A one-line bug fix does not need a five-section document. A new feature, an integration, a change to a core flow or anything a client will notice does.
Lead by example. When I ask “where is the DevNote?” in a review, or point to one when answering a question, the team sees that it matters.
A template you can use
If you want to try this with your team, here is the format we use:
# YYYY-MM-DD-short-task-descriptor
## The What
- Business requirement and what this feature should do:
- Assumptions:
- Constraints, special conditions and special cases:
- Verbal agreements and scope changes:
- FAQs:
## The How
- Approach:
- Key functions, classes and architecture:
- New tables, classes or modules, and why not existing ones:
## The Test Cases
- Recommended test cases (focus on end-to-end flows):
- Tests written, or the minimum testing guide:
## The Review Guide
- Where the key flow starts (main controllers or starter files):
- How to begin the review:
- Files that need careful review:
- Critical system files changed, and why:
## Post-Development Notes
- New packages added:
- What changed from the original scope:
- How the estimate compared to reality, and whether the assumptions held:
The small habit that compounds
DevNotes are not complicated. That is the point. It is a small habit: a few minutes of writing before you start, a few minutes of notes when you finish. But it compounds. Every note makes the next review easier, the next handover smoother and the next developer faster.
Good engineering is not just about writing code that works today. It is about leaving behind a system that the next person can understand, change and trust. DevNotes are how we make sure the why survives as long as the code does.