An empty project folder, one Markdown file, and nothing else. That is how we started this project with a coding agent.
We will not be writing a lot of code by hand in this series. The coding agent is our development partner. We use IBM Bob, IBM’s coding agent. Marhaba has been using Bob for more than a year, and her method has improved with every project, so this series follows the way she works now.
In this first part, we set up three files:
intent.md: the problem we are solving
AGENTS.md: the onboarding document for the coding agent
spec.md: the technical design, generated from the intent
In the next part, we start building from the spec. The full session is in the video below.
The project
We kept the use case simple so we could focus on the project setup and on how to work with a coding agent.
The project is called AssetHub. Enterprise IT departments struggle to track corporate hardware like laptops and monitors: which employee has which laptop, and what needs to come back. AssetHub is a lightweight REST API for assigning, tracking, and reclaiming hardware. It uses Node.js and TypeScript, with IBM Db2 as the database.
We follow Marhaba’s flow: intent, then spec, then code, then testing, then deployment. This post covers the first two steps.
1. Start with the intent, not the code
Everything begins with one file: intent.md. It describes the vision, the problem statement, the personas, and the user stories. For AssetHub, the personas are the IT asset manager who assigns, tracks, and reclaims hardware, the department lead who checks the team’s assets, and an auditor who verifies asset history.
In a real team, the intent comes from your product owner. It has little technical detail. It describes the problem and the desired solution.
When we started, the project had one folder with this one file in it. That is all a greenfield project needs.
2. Know whether your project is greenfield or brownfield
Greenfield means you have no code. You start with a problem statement and go from a problem to a product. You make the technical decisions as you go.
Brownfield means a code base already exists. It could be a mature product, or the next version you are working on. You have prior documents, prior methodology, and prior decisions, and you need to make your coding agent aware of them.
How you set up your coding agent depends on whether your project is greenfield or brownfield.
Our plan is to build an MVP first, just the core of AssetHub, as greenfield development. Then we will come back to it as a brownfield project and add features.
3. Give the coding agent an onboarding document
The next step is an AGENTS.md file. It works like an onboarding document for the coding agent. It is concise, with only the relevant information: the stack you are using, where the documents are, and what the agent needs to get started.
In Bob, the init command creates AGENTS.md for you. Bob reads the project, including any prototype or source code you already have, to understand what the project is. It also creates a .bob directory inside the project for Bob’s own configuration. Our project had only the intent, so Bob wrote AGENTS.md from intent.md.
AGENTS.md is not a one-time file. As your project evolves, update AGENTS.md with it.
4. Link to your documents instead of repeating them
AGENTS.md should not repeat what is already in intent.md, so it links to intent.md. If the coding agent needs more information about the use case, it loads intent.md then. This is called progressive disclosure.
The reason is the context window. AGENTS.md is included in the context window with every prompt. If it carries a lot of information every time, it floods the context window, and the output you get from the coding agent is not that good.
The first AGENTS.md Bob generated was a bit long for Marhaba’s liking, so she asked Bob to make it concise. The same idea applies to architecture. Instead of putting all the architecture details in AGENTS.md, point to a separate file that has them.
5. Read what the agent generated, and change what you don’t need
We then went through the sections of the concise AGENTS.md.
Stack. The technology the project will use. Marhaba had written in the intent that she wanted Node.js and TypeScript, so that is what Bob put there.
Commands. Node.js commands to build the project and run tests. Bob chose them because the stack is Node.js. With Python in the stack, Bob would have come up with Python commands. Marhaba says you don’t need this section yet.
Architecture. A placeholder for an application of this kind: a controller, the business rules, then the database. This section will evolve as we go from intent to spec.
Critical Db2 rules. What to do and what not to do with the database, so the agent works efficiently and doesn’t take steps that hurt the project. One example: never open and close a connection per request. This section also points to the local Db2 container we use for development.
Business rules. These came from the use case in intent.md.
None of this is fixed. AGENTS.md has no set structure, and it can vary from project to project. Bob generated this one, but you don’t have to accept it as is. You can change it, add rules, and remove sections you don’t need.
6. Keep a different AGENTS.md for each task
For this small greenfield project, Marhaba let Bob generate AGENTS.md with init. In her day-to-day work, she writes her own AGENTS.md for the task she is working on, not only for the project.
Some projects are huge. They have their own design and their own testing plan. Fixing a bug in a mature code base and adding a new feature need different context, even in the same project. In Marhaba’s words:
“Same project, different task, I will have a different AGENTS.md.”
One AGENTS.md for all the tasks in a project does not work well. Keep it specific to the task, concise, and to the point.
7. Generate the spec from the intent
With AGENTS.md in place, the next file is spec.md.
Marhaba’s prompt to Bob was simple: read intent.md and generate the spec. Prompts get simpler as the project files build up. You don’t have to keep repeating yourself, because you can point to the files, and Bob knows where to look. She didn’t even mention AGENTS.md in the prompt. Bob already includes AGENTS.md with every prompt.
The spec Bob generated links back to intent.md. It covers:
Overview and MVP scope: asset management and the employee registry
Requirements: functional and non-functional
API design: the methods, the paths, and examples for assets, employees, and assignments
Data model: the database tables and indexes
TypeScript DTOs: the data objects used throughout the code base, which map to the database tables
Architecture: Express for the REST API controllers, then services, then a repository for the database
Project structure: starting from app.ts
Transaction pattern: for Db2
Error handling: an asset not found, an employee not found, a duplicate asset tag
Testing: a mock repository as a starting point
Local development setup: a Db2 container image and the dependencies to install
Bob derived the whole spec from our intent and the stack we chose. It turns the problem statement into a technical design we can make decisions from when we start coding. Marhaba plans to come back to the testing section and add more testing strategy.
The spec is a nearly complete design. We can review it and change it before any code exists.
What comes next
So far, we have an intent file, an AGENTS.md that onboards Bob to the project, and a spec that turns the intent into a design. No code yet.
In the next part, we start using the spec. Bob will scaffold the project: the source code structure, the package.json, and the rest of the setup, using the files from this part.
If you want to try these steps on your own project before Part 2, IBM Bob has a free 30-day trial.
If you set up your coding agent differently for a new project, we would like to hear how. Tell us in the comments.








