Changes this week

CodeBy Serchai · Published on · 4 steps

Your first project with coding agents: the complete system

Guide to building your agent workflow: the instructions file, calibrating what to delegate, review with a net and the habits separating success from scares.

ToolsClaude Code · Gemini CLI · CodeRabbit
Stack costFrom $41/mo
Updated

00Tools you will use

Stack: From $41/mo
Card 01/03 · Main agent$17

Claude Code

4.0Good

Anthropic's coding agent: works in your terminal, your IDE and the web.

PriceFrom $17
JobClimbs the trust ladder faster thanks to its judgment on ambiguous tasks.
Read the review ↗
Card 02/03 · Open alternativeFREE

Gemini CLI

3.3Fair

Google's terminal agent, open source with a generous free tier.

PriceFree
JobThe same system one rung lower: more bounded tasks, more verification.
Read the review ↗
Card 03/03 · Second netFREE + $24

CodeRabbit

3.7Fair

Automatic pull request review with context: it comments before a human arrives.

PriceFree + from $24
JobReviews every pull request and catches the mechanical before your reading.
Read the review ↗

TLDR: The first project with agents almost always fails for the same reason: delegating too much too soon without preparing the ground. The system that works: an instructions file that teaches the agent your project, a trust ladder starting with small tasks, everything in branches with review, and CodeRabbit as the second net catching the mechanical. With Claude Code or with Gemini CLI, the system is the same.

his guide is for developers who already chose their agent (if not, choosing a coding agent is the previous step) and want to bring it into a real project without the first week ending in mutual distrust.

The idea that orders everything: the agent is a new teammate with plenty of capability and zero context. Everything you would do with that hire (document, start with bounded tasks, review their work) applies exactly.

1. Prepare the repository for the agent

The best-invested half hour of the whole process: the instructions file at the repository root. Agents read it on start, and its content is what separates a guessing agent from a knowing one: the project’s conventions (style, structure, patterns used and avoided), the commands (how tests run, the linter, local startup) and the minimum map (what lives where and which zones are off limits).

Write it the way you would write a new teammate’s onboarding document: concrete, with examples, no philosophy. And treat it as code: when the agent fails through not knowing something, the correction goes into the file, not just the conversation.

Complete the preparation with basic hygiene: passing tests (they are the verification of the agent’s work) and a tidy repository, because the agent inherits chaos just as the new human would.

2. Calibrate what to delegate with a trust ladder

Week one is not for delegating the core refactor: it is for climbing a three-rung ladder.

The trust ladder

01Small, verifiable tasksThe specific bug, the missing test, the function with clear criteria.
02Medium tasks with a plan firstYou ask for the plan, correct it, and only then it executes.
03Long tasks with supervisionAt the key points, once results already support it.

With Claude Code, the judgment on ambiguous tasks lets you climb faster. With Gemini CLI, open source, the same system works one rung lower: more bounded tasks, more verification. The system is identical, the cruising altitude changes.

Cruising altitudeClaude CodeThe judgment on ambiguous tasks lets you climb faster.High rung
Cruising altitudeGemini CLI (open source)The same system one rung lower: more bounded tasks, more verification.Low rung

If a task comes back wrong twice, it was not that rung’s task.

The rung discipline

Lower it, slice it or do it yourself, and note in the instructions file what the agent did not know.

3. Work in branches and review every change

The system’s non-negotiable rule: the agent works in branches and you merge after reviewing. Git is the safety net that turns any disaster into a discarded branch, and review is the work remaining on the human side, with a warning collective experience has already distilled: the temptation to approve without reading grows with each agent success, and the day you approve without reading is the day of the scare.

Effective review of agent code has its technique: first the full diff at a glance (did it touch what you expected and nothing else?), then the tests (do they exist, pass, test what matters?) and finally the fine reading of the new logic. The order matters because the first filter quickly discards the big deviations.

4. Add the second net with automatic review

Your review is the main net and should not be the only one. CodeRabbit reviews every pull request on arrival: it summarizes the change, catches probable bugs and comments line by line, so your human review starts with the mechanical already filtered. Free for open source projects, with a limited free tier for private repos and from $24 a month.

The agent-plus-automatic-reviewer combination is the fastest-growing pattern for a simple reason: the volume of generated code demands an automatic first pass before human attention. The full detail is in the reviewing AI code guide.

With the system running, the next improvements are flow: parallel work is in the parallel agents guide, and the persistent context layer in product memory with PaellaDoc. The whole sector lives in AI for software development.

Common mistakes

Delegating the big task on day one. It is the recipe for disenchantment: without context or calibration, the result drifts and the wrong conclusion is “this does not work”.

Skipping the instructions file. The agent without context guesses, and guessing conventions produces that correct code that fits nowhere.

Approving without reading. The agent’s accumulated success is exactly what erodes review discipline, and the cost arrives all at once, not spread out.

Correcting in the conversation and not in the file. What was only said in chat is forgotten next session. What lives in the instructions file is permanent.

Frequently asked questions

How long until productivity shows?

With this guide’s system, week one already leaves tasks done that you did not do. The big jump lands in months one to two, when calibration is done and the instructions file mature.

Does the same system work with an open source agent?

Yes: ladder, branches and review work the same with Gemini CLI or Qwen Code. The difference is cruising altitude (more bounded tasks) and more verification on the ambiguous.

What exactly goes in the instructions file?

Conventions with examples, project commands and the map of what lives where. The quality test: if a new teammate could start working from that document alone, it is well written.

Can the agent break something serious?

With the branch-and-review system, the damage radius is a discarded branch. The real scares come from skipping the system: working on the main branch or merging unread.

The steps, in short

  1. Prepare the repository for the agent

    Write the instructions file with conventions, commands and architecture before delegating anything.

  2. Calibrate what to delegate with a trust ladder

    Start with small, verifiable tasks and raise the size according to results.

  3. Work in branches and review every change

    The agent proposes in branches, you merge after review: git is your safety net.

  4. Add the second net with automatic review

    An automatic pull request reviewer catches the mechanical before your review.

Code

Related guides

Which tool will you pick? See the full code ranking.

See the category ranking
What do you want to do?
Assisted decision · ES/ENRequirements · price · limitations · dated sources

What do you want to do?

Tell us in the same words you would use with another person.

We keep a sanitised query for 90 days to improve the engine. Privacy.