Skip to content

AI coding agents on a frontend team: a workflow without chaos

Who decides, who implements and who reviews when a frontend team works with AI agents. AGENTS.md, briefs, MCPs, tests and security, with measured numbers.

Ramon Gomes 19 min read Level: Advanced

Also available in: Español, Français, Português

Series Front-end for a news portal Part 7 of 7

The 2025 Código Fonte TV salary survey in Brazil heard from 12,510 people and found 95.5% using Copilot, Cursor or Claude Code at work (InvestNews, 2026). The question is no longer "will the team use agents?". It's now "how do five people and three agents touch the same repository without anyone knowing who decided what?".

I work with three agents at once, on the same server: Claude Code orchestrates and reviews, Codex implements and Gemini reads images. Here I explain how I organized that, with the numbers I measured, and what the research says about doing the same on a frontend team.

What the Numbers Say Before You Reorganize the Team

Study What it found
DORA 2025, about 5,000 professionals 90% use AI; more than 80% feel more productive; 30% trust the output little or not at all (Google, 2025)
METR, July 2025 16 experienced devs, 246 randomly assigned tasks: with AI they took 19% longer, and still believed they had gained 20% (METR, 2025)
METR, Feb 24, 2026 57 devs and more than 800 tasks; the original participants were 18% faster, with an interval from 38% faster to 9% slower: inconclusive. Between 30% and 50% stopped submitting tasks they didn't want to do without AI (METR, 2026)
Stack Overflow 2025 84% use or plan to use AI; 45.7% distrust its accuracy; 14.1% use agents every day (Stack Overflow, 2025)

METR has to be quoted in full: the institute itself marks the 2025 result as outdated and calls the 2026 data "only very weak evidence".

The DORA line I bring to every team conversation: AI amplifies whatever the organization already has, good and bad (DORA, 2025). Throughput goes up along with delivery instability (InfoQ, 2025). A team without tests, without review and without small PRs will ship more bad code, faster.

Three Roles: Decision Maker, Implementer, Reviewer

The most common mistake is giving the agent the autonomy of a team developer. It has no memory of the project and isn't the one answering for Saturday's incident. In my workflow:

Role Who Can Can't
Decides and reviews Claude Code, under my supervision choose the architecture, write the brief, review the git diff, commit skip the review
Implements Codex UI tweaks with a visual reference, an already decided pattern across several files, an approved spec decide architecture, pick the stack, touch infra, commit
Reads images Gemini review screenshots and photos of screens, read only act without a check

GitHub landed on the same rule: the Copilot cloud agent (formerly called coding agent) works on a copilot/ branch, opens the PR as a draft and can't approve or merge it. Whoever asked for the PR can't approve it, and workflows only run after a reviewer lets them (GitHub Docs). It's separation of duties, like a bank keeping the person who enters a payment apart from the person who approves it.

The reviewer role can also be enforced by the tool. In Claude Code, a read-only subagent can't edit anything:

md
<!-- .claude/agents/reviewer.md -->
---
name: reviewer
description: Reviews the current diff against the AGENTS.md rules. Only points things out, never fixes them.
tools: Read, Grep, Glob
---
List each problem with file, line and severity (blocker, suggestion, question).

The limit "is enforced by Claude Code rather than requested in a prompt". The same page warns: a reviewer asked to find problems always finds some, and fixing all of them fills the code with needless layers (Claude Code, best practices).

One Context File for Several Tools

Half the team uses Cursor, the other half Claude Code, and CI uses Copilot. Without a standard, the rules drift apart in two weeks. AGENTS.md solves most of it. It's an open format, used by more than 60,000 projects and read by Codex, Cursor, Copilot, Jules, Devin, Windsurf, Zed, VS Code and others (agents.md). Since December 9, 2025 it has been one of the three founding projects of the Agentic AIUse of language models that plan, call tools and decide the next step on their own to reach a goal, instead of only answering a question. Foundation, under the Linux Foundation, alongside MCPOpen protocol that standardizes how AI apps connect to external tools and data: a server exposes actions and the agent discovers and calls them. and goose (Linux Foundation, 2025).

Tool File Limit that matters
Codex AGENTS.md, from the Git root down to the current folder; the closest one wins stops reading at 32 KiB by default (OpenAI)
Claude Code CLAUDE.md, or AGENTS.md if there's no CLAUDE.md; accepts @AGENTS.md under 200 lines per file (Anthropic)
Cursor .cursor/rules/*.mdc and AGENTS.md under 500 lines per rule (Cursor)
Antigravity CLI (formerly Gemini CLI) GEMINI.md, or AGENTS.md via context.fileName Gemini CLI was replaced by Antigravity CLI on June 18, 2026 (Google)

The practical way out: AGENTS.mdMarkdown file at the repository root with project rules for coding agents: commands, conventions, what not to touch. The agent reads it before starting. as the single source; CLAUDE.md, when it exists, imports it and adds only what's specific to Claude. For a React or Next repository:

md
# AGENTS.md
## Stack
Next 16 (App Router), React 19, TypeScript strict, Tailwind 4, Vitest, Playwright.

## Commands (run before saying you're done)
- pnpm lint && pnpm typecheck
- pnpm vitest related --run <changed files>

## Rules
- New components use the design system in src/components/ui. Don't create buttons, inputs or modals.
- Server data lives in TanStack Query; screen state in useState or Zustand.
- Don't edit existing tests to make them pass. If a test looks wrong, say so.

## Don't touch
- .env*, infra/, migrations/

Three things to watch. Keep it short: the Cursor docs recommend pointing to files in the repository instead of copying their content into the rule, and adding a rule when the agent repeats the same mistake. Style belongs to the linter, not the agent. And the one people forget most: the file is context, not configuration. Anthropic warns that, to really block an action, the way to go is a hook, a command that always runs, whatever the model decides (Claude Code, hooks). "Don't edit .env" in AGENTS.md is a request. A hook that refuses the edit is a rule.

In a client's production repository with 1,041 files, a question about the architecture cost 5,250 tokens with AGENTS.md, against an average of 43,016 without it. Skills are the next layer, instructions that only load when the topic comes up; when to create a skill and when to create an agent is covered in skills or agents.

Spec Before Code, Brief Before the Agent

Before the agent writes code, someone writes down what has to be done. Addy Osmani calls it "waterfall in 15 minutes" and leaves a rule I'd adopt on any team: "Never commit code you can't explain" (Osmani, 2026). The full process is in spec driven development. For every delegated task, I send a brief:

txt
BRIEF
Stack: Next 16 + Tailwind 4 (only what matters for the task)
Reference file: src/app/(dashboard)/customers/page.tsx
Relevant files:
  src/app/(dashboard)/suppliers/page.tsx  screen to create
  src/components/ui/data-table.tsx        design system table
  src/lib/queries/suppliers.ts            data hook
  src/app/(dashboard)/layout.tsx          side menu
No need to look at: backend, E2E tests, authentication
Done when: pnpm typecheck && pnpm vitest related --run src/app/(dashboard)/suppliers

The field that weighs the most is the reference file: 36% fewer tokens at the median, and it was the one most often left out (only 39% of briefs had it). With no brief at all, on a frontend task, the agent read 211 of the repository's 247 files before starting.

Cartoon of a small sweating robot searching with a flashlight in a filing room with hundreds of open drawers and papers flying, while a calm person in the doorway points at one specific drawer
211 of 247 files opened to find a pattern that fit in one line of the brief.

The number has an explanation outside my server. Böckeler describes "anchoring AI to a reference application": giving the model a real, compilable example of the result works better than describing the pattern in prose, because "providing LLMsAI model trained on large amounts of text to predict the next word, which lets it chat, summarize, translate and write code. with examples of the outputs that we want leads to better results" (Böckeler, 2025). On a frontend team, the reference is the screen the team considers well built.

Two rules came out of the data. The file list has 4 to 6 items: with 1 to 3, the median was 68,042 tokens, because the agent fills the gap by exploring; with 7 or more, 83,866, because it reads everything. And the most useful one: if you can't point to a reference file, you don't understand the task yet.

The Workflow, End to End

Five-step workflow: recon, where the agent reads the brief and proposes a plan; the decision maker approves or corrects the plan; the agent implements only the listed files; the reviewer checks the diff with tests and evidence; the reviewer commits or sends back the fix
The agent shows up in two of the five steps. The other three belong to whoever answers for the code.
  1. Recon: the agent reads the brief, proposes a plan with the files it will touch and stops. It's worth spending more reasoning here: small output, big decision.
  2. Plan approved: the decision maker reads it. A wrong plan goes back to step 1 with the scope corrected.
  3. Implementation: "implement the approved plan, only the listed files".
  4. Diff review: always, with the output of the verification commands.
  5. Commit or send back: the agent doesn't commit.

If something is missing, the agent writes missing from brief: <item> and stops, instead of sweeping the project.

MCPs That Help on the Frontend

MCP connects agents to external tools; how it differs from a regular APIContract that defines how one program asks another for data or actions: which endpoints to call, what to send and what comes back. On the web, usually HTTP with JSON. is in MCP vs API. On the frontend, four servers tackle the problem the Chrome team described: agents "are not able to see what the code they generate actually does in the browser" (Chrome for Developers, 2025).

MCP What it gives the agent Where it helps
Figma (Figma) variables, components and layout; with Code Connect, the code reuses the repository's real components going from design to code without inventing components
Playwright (Microsoft) the page as an accessibility tree, no vision model needed navigating, filling forms, generating tests
Chrome DevTools (Google, 2025) live console, network, DOM and CSS, performance traces debugging CORS, console errors, LCP
Storybook (Storybook) stories, component docs, component and accessibility tests using the design system instead of hallucinating props

The Playwright MCP README suggests that, for a coding agent, the CLI with skills is cheaper, because it doesn't load the schema of every tool. With a design systemSet of components, color and spacing tokens and usage rules a team shares so every screen follows the same look and behavior. documented in Storybook, its MCP (in preview) is the first one I'd install; the instruction it gives the agent sums up the problem: "Never hallucinateAnswer from a language model that sounds convincing but is false or made up, such as a source that does not exist or an unsupported fact. component properties!".

Human Diff Review, with Tests as the Guardrail

Foreman seen from behind holding a plumb line against an unplastered brick wall, with two helpers laying bricks in the background of the building site
The helpers lay bricks faster than the foreman. The plumb line stays in his hand.

Kent Beck lists three signs of an agent going off the rails: it loops, adds functionality nobody asked for, or "cheats" by disabling or deleting tests (Beck, 2025). All three show up in the diff. None of them shows up in the sentence "all tests passed". That's why the review asks for evidence: the command and its output, or the screenshot next to the mockup. Anthropic says "All tests pass" on its own says very little (Claude Code, best practices). The safety net of types and tests is in tests and types in AI coding, and the review process in AI code review.

How tests are split in my workflow:

  • Whoever implemented the screen writes the component test in the same round, while the context is fresh.
  • The E2ETest that opens the app in a real browser and replays a user path, from the click to the server response, to check the whole flow works. with Playwright and axe stays with the orchestrator, because the implementer's sandbox can't open a browser.
  • If the implementer comes back twice with the same failing test, the orchestrator takes over. There's no third round.

My decision log for cross-review between agents has 82 entries and 98 outcomes: 76 fixed, 13 false positives and 9 kept as they were. Review finds real problems most of the time, but about one objection in eight doesn't hold up. In one case, a reviewer complained that the skill profiles were missing rules about secrets; the rules lived in a file it hadn't read. Writing down the reason keeps the objection from coming back. Alura, a Brazilian tech school, suggests the same: treat the AI's output as a hypothesis and label each finding (Alura).

Images get reviewed too: Gemini reviewed 51 photos of a dark theme in one call of about 86,000 tokens and, among real findings, flagged a "cut-off field" where only the phone photo was cropped. A visual finding gets checked against the photo before it becomes a task.

The Shared Resource Nobody Plans for

With several agent sessions on a 4 vCPU server, I had an incident in October 2026: test suite, pytest and build running together for hours, and the provider throttled the CPU.

The fix was a single queue. Full suite, install, build and project-wide tsc go through a heavy command, one at a time, capped at 1 vCPU, 4 GB and 30 minutes. Day to day, only the affected tests run (vitest related --run), and the implementer doesn't run the suite or the build. From October 9 to November 19, 2026 there were 3,685 jobs, with a median wait of 0 seconds and a p90 of 18 seconds. On a team, the same goes for the CI runner: a worker limit and "only what's affected" become a written rule.

Security: The Agent Is Attack Surface Too

Simon Willison named the core risk, the lethal trifecta: access to private data, exposure to untrusted content and the ability to communicate externally. Put the three together and a malicious piece of text can make the agent leak data (Willison, 2025). An agent that reads public issues, holds the repository token and makes HTTP requests already has all three. OWASP says no known method fully prevents prompt injectionAttack where malicious text in an email, website or document carries instructions the model follows as if they came from the user, hijacking its behavior. (OWASP LLM01, 2025) and, on December 9, 2025, it published a Top 10 of its own for agentic applications (OWASP, 2025). In Brazil, CERT.br released on September 3, 2026 an AI booklet in its Security Primer series that says the same thing in plain Portuguese: agents "can be manipulated by malicious instructions hidden in websites, files or e-mails", permissions should be only what the task needs, and irreversible actions call for human approval (NIC.br, 2026). It's a good link to send anyone who thinks this is developer paranoia.

Three cases from 2025 show where the attack comes in on a frontend team:

  • Editor extension: version 1.84 of the Amazon Q extension for VS Code shipped with a prompt telling the agent to delete files and cloud resources; AWS reverted it in 1.85 (The Register, 2025).
  • MCP server: the postmark-mcp package had 15 clean versions; 1.0.16 started sending a hidden copy of every e-mail to the attacker (The Register, 2025).
  • npm install: malicious versions of Nx, a monorepoSingle repository that holds several related projects or packages, such as apps and shared libraries, with common versioning and tooling. tool common in frontend, ran a postinstall that hunted for secrets and called the installed AI CLIs with --dangerously-skip-permissions, --yolo and --trust-all-tools (Orca Security, 2025).

The Senior's Role and Mentoring with AI

Kent Beck sums up the shift: "I make more consequential programming decisions per hour, fewer boring vanilla decisions". The senior types less and spends more time choosing the scope, reviewing diffs and saying no. Willison adds: the models reward the practices that were already good (Willison, 2025).

The risk with junior and mid-level devs is producing more code than they understand, and there's already a measurement of that. On January 29, 2026, Anthropic published an experiment with 52 engineers, mostly junior, learning a Python library they didn't know. Those who used AI averaged 50% on the final quiz; those who coded without AI, 67%. The AI group finished about two minutes earlier, a difference with no statistical significance, and the biggest gap showed up in the debugging questions. The ones who did well used AI to ask about concepts and request explanations, not to hand everything off (Anthropic, 2026). The sample is small and the measurement came right after the task, so it's a signal, not a law. What works as mentoring:

  • The junior writes the brief and the senior reviews the brief before the diff. Without a reference file, the conversation is about the task, not the code.
  • Whoever asked doesn't approve. The junior who delegated doesn't merge their own generated PR.
  • Explain the diff out loud, following Osmani's rule of not committing what you can't explain.

Without inventory, policy and traceability, multiplying agents turns into sprawl, Alura sums up (Alura). The folder conventions that help the agent get it right are in frontend patterns for teams.

When to Delegate to the Agent and When Not to

Matrix with two lists: delegate to the agent, with UI tweaks with a visual reference, an already decided pattern across several files, an approved spec and sweeping for occurrences; don't delegate, with architecture and schema, secrets and credentials, production deploys and migrations, client agreements and changes under 10 lines
The bottom list holds what's expensive to get wrong or depends on memory the agent doesn't have.

Pitfalls

  • A giant context file. Böckeler writes that agent effectiveness drops with too much context and warns about the "illusion of control" (Böckeler, 2026). Add a rule when the agent repeats a mistake, not before.
  • Config silently ignored. I ran 69 calls with a reasoning level that didn't exist for the model, because the line was in the wrong place in the config. No error showed up. Check the log for what the tool actually used.
  • Measuring only tokens. Low cost with lots of rework is a loss. Track false positives, tests sent back and incidents.

Tools to Build the Workflow

  • Playwright for E2E and, through MCP, for the agent to navigate.
  • Chrome DevTools MCP so the agent can see the console, network and performance.
  • Storybook as the source of truth for components.
  • Vitest with related --run to run only what's affected.
  • MCP documentation before installing a third-party server.

Frequently Asked Questions

What goes in the AGENTS.md of a React or Next project?

The stack with versions, verification commands, the rules the linter doesn't catch (use the design system, where server state lives) and what must not be touched. Code style stays with ESLint or Biome.

Which MCP should a frontend team install first?

With a design system in Storybook, the Storybook MCP, which goes after invented components. For debugging in the browser, the Chrome DevTools MCP. For generating and running tests, Playwright.

Does AI make the team faster?

More than 80% feel it does (DORA 2025), but METR measured 19% slower in 2025 and 18% faster in February 2026, with no conclusion. The gain depends on tests, review and small PRs.

Should juniors use coding agents?

Yes, with the brief reviewed before the diff and the rule of not committing what they can't explain. For someone learning, the exercise is evaluating the result.

How do you avoid prompt injection during development?

You can't avoid it completely, according to OWASP. Limit the damage: no skip-permissions mode, secrets out of the agent's reach, official MCPs with pinned versions and human approval for actions outside the repository.

References

Source: https://ramongomessilva.com.br/blog/ai-coding-agents-frontend-team · Accessed on December 02, 2026

Front-end for a news portal: This is the last part of the series.

Share Share on LinkedIn Share on X
Cite this article

Ready-made reference, with today as the access date.

ABNT

Brazilian standard (NBR 6023). Use it in theses and academic papers submitted in Brazil.

GOMES, Ramon. AI coding agents on a frontend team: a workflow without chaos. Ramon Gomes, 19 nov. 2026. Disponível em: https://ramongomessilva.com.br/blog/ai-coding-agents-frontend-team. Acesso em: 2 dez. 2026.

APA

American Psychological Association style. Common in scientific papers and journals, especially in the social, behavioral and health sciences.

Gomes, R. (2026, November 19). AI coding agents on a frontend team: a workflow without chaos. Ramon Gomes. https://ramongomessilva.com.br/blog/ai-coding-agents-frontend-team

BibTeX

Format for LaTeX users (Overleaf, for example). Paste it into your .bib file or import it into Zotero or Mendeley.

@online{gomes2026aicodingagents,
  author = {Gomes, Ramon},
  title = {{AI coding agents on a frontend team: a workflow without chaos}},
  organization = {Ramon Gomes},
  year = {2026},
  month = nov,
  date = {2026-11-19},
  url = {https://ramongomessilva.com.br/blog/ai-coding-agents-frontend-team},
  urldate = {2026-12-02}
}
Found a mistake?

Wrong fact, broken link, outdated information: tell me and I will fix it.

10 to 2,000 characters. If you can, point to the right source.

Only so I can reply. It never shows on any page of the site.

Written by

Ramon Gomes

Software Engineer

Full stack software engineer. I like taking a messy problem, listening to the people who live with it and shipping something that holds up day to day. These days I split my time between my own products, applied AI and client work.

Available for projects

Need Something Like This Built?

I build websites, systems, apps and AI automations, from design to deploy. Tell me what you need or see what I offer.

Related Articles