View : 114

25/09/2026 14:04pm

Top-down view of a desk: one hand drops a brief card into a tray beside a tablet while the other presses a red sticky note on returned work in a second tray to review it, with chips for the six stages from Requirement to Deploy and figures showing 67% and 52% of respondents spend more time reviewing and debugging AI-generated code

How to Work with an AI Coding Agent: A Junior Developer's Guide

#AI Coding Agent

#Coding Agent

#AI-assisted development

#Junior Developer

#AGENTS.md

#Agentic coding workflow

Picture this: it's Monday morning, and you've just been handed a Ticket (the work item that says what needs to be done): "Add a date-range filter to the Admin order list." Not long ago, most Junior Developers would open their IDE and start reading through the code file by file. Today your team has switched on an AI Coding Agent. You type in the task, and the Agent explores the Repository, makes a plan, edits several files, runs the tests, and hands you back a Diff (the set of lines that changed) to look over.

This is no longer a niche workflow. The JetBrains Developer Ecosystem Survey 2026, which asked more than 15,000 professional developers worldwide between May and July 2026, found that 90% use AI coding agents at work at least weekly, and 68% use them every day.

What changes compared with the older kind of AI coding help is the size of the job you hand over. Before, you asked one question at a time or let the tool complete the next line. An Agent takes the whole task. As more of the typing moves to the Agent, your own work shifts to the parts before and after the code. If you're wondering whether that means you still need to write code yourself, we covered that question in If AI Can Write Most of the Code, Do Developers Still Need to Code?

This article is written mainly for people who have already started working on a team. If you're still at the stage of learning to program, start with Learning to Code in the Age of AI: Which Skills to Focus On First, then come back to this one when you begin an internship or your first job.

Today, Superdev Academy walks through what a Junior Developer is actually responsible for at each stage, from receiving a Requirement all the way to Deploy, when an AI Coding Agent is part of the daily workflow.

The Big Picture: What the Agent Does and What You Do at Each Stage

Before the details, here's the whole workflow in one table.

Stage

What the Agent does

What you need to do

Requirement

Can't do this for you; at most it asks questions back or drafts a plan

Make the Ticket clear and define what "done" looks like

Agent at work

Explores the code, plans, breaks the task into steps

Supply the project's Context, set the scope, keep the task small enough

Code

Edits and creates files

Check that it changed the right places and didn't spill into unrelated files

Test

Runs tests and writes new ones

Check that the tests test the right thing, then run them again yourself

Review

Hands back a Diff or opens a Pull Request (a request to merge code into the project)

Read the Diff until you can explain every part

Deploy

Should not have permission to do this on its own

Merge through your team's process and own what happens next

The Agent carries a lot of the middle, but the beginning and the end are still entirely yours. Let's go through them one at a time.

Before You Hand It Over: Turn the Ticket into a Brief the Agent Can Execute and You Can Check

Agents are good at following instructions. When the instructions are vague, they fill the gaps with full confidence, and you usually find out only when you read the Diff, after a whole round of work has already been spent.

Ask the Missing Questions First

If the Ticket can't answer the basics, ask a Senior or the Product Owner before you hand anything to the Agent. For example: filter by order date or payment date? Which time zone? Does the end date include the whole day? What should the page show when nothing matches? Asking now takes a few minutes; finding out during Review can mean redoing the whole thing. For a Junior, asking isn't a weakness, because a good question is exactly the thing the Agent can't ask on your behalf.

Write Down What "Done" Means

Instead of typing only "add a date filter," write conditions you can actually check: filter by order date in Thailand time, include the whole end date, work together with the existing status filter, new tests pass, and existing tests must not break. These conditions do two jobs at once. They tell the Agent what to build, and they become your checklist when the work comes back.

Set the Scope and Say What's Off-Limits

Say clearly which parts of the code the Agent may change and which it must not touch, such as the payment code or the Migration files (scripts that change the database structure). Teams that take this seriously write the brief as a full Spec document, an approach known as Spec-Driven Development. For a Junior's day-to-day tasks, a handful of clear conditions already goes a long way.

An Example Brief for the Agent

Put those three pieces together, and the brief for the date-filter Ticket might look like this:

  • Goal: Add a date-range filter to the Admin order list.

  • Done when: It filters by order date in Thailand time, includes the whole end date, works together with the existing status filter, has new tests for the same-day case and the no-results case, and all existing tests still pass.

  • Scope: Change only the order list; do not touch the payment code or the Migration files.

  • Follow this example: The status filter on the same page.

  • Report back: Every file you changed, why you changed each one, and anything you're unsure about.

That last item pays off during review, because it tells you exactly where to start looking.

While the Agent Works: The Project's Context Has to Come from You

An Agent reads code quickly, but it doesn't know what your team has agreed on, which Patterns have been retired, or which folders belong to another team. That part is yours to tell it.

Context Files Like AGENTS.md

More and more projects keep a file called AGENTS.md, an open format for giving Coding Agents the Context and instructions they need, kept separate from the README that is written for people. It usually covers Build and Test commands, Code Style, Security considerations, and Pull Request guidelines. Tools such as GitHub Copilot, Cursor, and OpenAI Codex already support it.

As a Junior, you don't have to write this file on your own. You should read it before you start giving the Agent tasks, and if you notice the Agent repeating the same mistake, that's a sign something is missing from the file. Suggest the addition to your team.

If the project doesn't have this file yet, you can still work well; you just need to put the Context into each brief yourself, such as the command that runs the tests, the example file to follow, and the team rules that apply to the task. After a while you'll notice the same lines getting typed into every brief. Those lines are a good starting point for an AGENTS.md. Collect them and ask a Senior whether it's worth adding the file to the Repository. That's a contribution a Junior can make in the first week, and it helps the whole team.

How Much Architecture Do You Need to Know?

Juniors ask this a lot. The practical answer: enough to tell the Agent which layer of the system the new code belongs in and which existing file it should imitate, for example "follow the pattern of the status filter on the same page." That one sentence greatly reduces the chance the Agent invents a new approach that doesn't fit the system. Designing the whole system is still work for more experienced people, but knowing the structure of the part you're touching is the minimum.

Keep Each Task Small Enough to Review

A task that's too big produces a Diff too long to read properly. What works is one instruction per concern: have the Agent build the filtering logic on the Backend first, check it, and only then ask for the date picker in the UI. If you can't finish reading the Diff for a round in one sitting, the task for that round was too big.

When the Agent Hands the Work Back: Testing and Review Are Still Your Job

GitHub Docs describes how Copilot cloud agent explores the code, makes changes, and runs Automated Tests and Linters (tools that check code style) on its own Branch, then leaves the Developer to review the Diff before deciding to open a Pull Request (or, if asked, opens one directly). The tool is designed around a human reviewer, and that reviewer is you.

This part of the job hasn't shrunk. The BairesDev Dev Barometer Q3 2026, which surveyed 705 developers across more than 60 countries, found that 42% say AI writes at least half of their code, up from 12% a year earlier. Over the same period, 67% of respondents spend more time reviewing AI-generated code, and 52% of respondents spend more time debugging problems introduced by AI. This survey comes from a software development services company and reflects a global picture rather than Thailand specifically, but the direction is clear: the time saved on typing has moved into checking.

Check That the Tests Test the Right Thing

Tests an Agent writes for its own code tend to pass, because they're written against what the code does, which may not be what the Requirement asked for. To check, take the "done" conditions you wrote at the start and compare them with the asserts in the tests one by one. Then break the code on purpose in one spot. If the tests still pass, that test suite can't actually catch the bug. Finally, run the tests again on your own machine rather than trusting the Agent's report that they passed.

When the Agent's Fix Still Doesn't Work

A common trap is typing "still broken, try again" over and over. Each round the Agent changes a little more code, and the Diff grows until you can't follow it. What works better is reading the Error yourself first, finding which line fails and why, then giving the Agent that evidence along with a clear statement of what you want fixed. If two or three rounds like that still get nowhere, stop, check whether the original brief was clear enough, or ask a Senior.

Read the Diff Until You Can Explain It

The simplest standard: if there's a line whose purpose you can't explain, it isn't ready to pass on. Look in particular at the Business Logic, the Edge Cases, Security, and any Library the AI may have made up. A Diff you can explain line by line is a Diff you can defend in review.

Before Merge and Deploy: Your Name Is on the Pull Request

Once your own review is done, the job still isn't over. This stage is about handing the work to your team, and it's the part Juniors most often skip.

The Agent can write the code, but you're the one who has to answer for it.

Write a Pull Request Description that gives the Reviewer the full picture: what the Ticket is, which parts the Agent did, what you've already checked, and where you're still unsure. That last point matters most, because it tells the Senior exactly where to look instead of making them guess.

A short structure that works for most teams:

  • What this is: A link to the Ticket and a one-sentence summary.

  • What the Agent did: The files or functions the Agent created or changed.

  • What I've checked: Which conditions are covered by tests, and which cases I tested by hand.

  • Where I'm unsure: The parts I'd like the Reviewer to look at closely.

If your team already has a Template, use that first and simply add a "What the Agent did" section. For Branches and your team's Merge process, see Git for Team: The Professional Workflow Guide to Collaborative Coding.

One more thing: the Agent's permissions. It shouldn't hold Production Secrets (passwords or keys that grant access to systems) or have permission to Deploy on its own. Going live should go through the Pipeline (the automated steps your team uses to Build, Test, and Deploy) and your team's approvals, exactly like code a person wrote.

Tasks a Junior Shouldn't Let the Agent Do Alone Yet

Some work isn't a good fit for sending to an Agent from start to finish with only you checking it. Watch for these signals:

  • A Ticket you can't explain yourself yet. If you don't understand the problem, you can't tell whether the Agent solved it.

  • Anything touching permissions, payments, or personal data. A mistake here affects real users immediately. For the fundamentals, read How to Write Secure Code: Essential Secure Coding Techniques for Beginners.

  • Data Migration or anything that changes data in Production. It's hard to undo and usually needs a rollback plan the team has agreed on.

  • A bug whose cause you don't know yet. The Agent may only patch the symptom so the tests pass, while the root cause stays.

Sounds like a lot of restrictions? The Agent can still help with all of these, for example by reading code, explaining a Flow, or proposing options. The difference is that a Senior should review alongside you, and the decision about which approach to take has to stay with people.


Summary: What Does a Junior Do When Working with an AI Coding Agent?

The honest answer: the typing really does shrink, but a Junior Developer's responsibilities don't. They move to the beginning and the end of the work: making the brief clear before you hand it over, supplying the right Context, checking the tests and the Diff until you can explain them, and owning the work under your own name when you pass it to the team.

If you've just started using an Agent at work, begin by writing "done" conditions for every Ticket, then practise breaking tasks into smaller pieces. If you're already comfortable with it, check yourself: could you explain every line of the last Pull Request you submitted? Small habits like these are what make a team trust you to run the Agent.

Facebook: Superdev School (Superdev) — https://www.facebook.com/superdev.school.th

Instagram: superdevschool — https://www.instagram.com/superdevschool/

TikTok: superdevschool — https://www.tiktok.com/@superdevschool

Website: www.superdevacademy.com — https://www.superdevacademy.com/

FAQ: Frequently Asked Questions about This Article

A collection of questions and answers to help you better understand the content of this article.