Skip to content
Ask for a Budget
EngineeringMarch 3, 20269 min readUpdated on November 11, 2026

AI agents + MCP: a playbook to speed up delivery without losing standards

A practical guide to using AI agents with planning, standardized prototypes and worktrees, and connecting tools through MCP with more control.

AI agents + MCP: a playbook to speed up delivery without losing standards
Índice do artigo
faltam 9 min de leitura

When you are running several projects at once, the bottleneck keeps moving: context, review, QA, prototype alignment, "where is that route?", "which component is the right one?", "what is the repo's pattern?", etc.

In practice, AI agents (like Codex) can speed things up a lot, but only when the pipeline is organized. Without good input and without guardrails, you just trade "implementation time" for "fix time + review + rework".

This playbook condenses recurring team learnings (standardization, planning, automation) into a flow you can apply in any squad.

TL;DR in 60 seconds

If you want speed without losing standards, focus on 4 points:

  • Standard input: a consistent prototype + a "real" design system (components + states + closed navigation).
  • Plan before code: the agent first maps and plans, then implements in small increments.
  • Context isolation: git worktree to run several workstreams in parallel with less friction.
  • Tools with control: MCP to connect context and actions (Figma, issues, CI, docs, DB) with least privilege and auditing.

The rest of the post is "how to make this work in real life".

What you will find

  • Where AI speeds things up most (and where it usually fails without good input).
  • How to prepare the prototype and design system to reduce front-end rework.
  • A simple plan -> implement -> validate flow with an agent.
  • How to use git worktree to work in parallel with less friction.
  • How to fit MCP in to connect tools and context without it becoming a mess.
  • Final checklists to keep quality and predictability.

What an "AI agent" is and where MCP comes in

An AI agent is a way of working in which the model does not just answer questions but executes tasks: it navigates the repository, implements changes, runs validations and prepares deliveries (e.g., PRs).

MCP (Model Context Protocol) comes in when you want the AI to connect context and tools in a standardized way, without relying on a "giant prompt" to explain everything again.

Think of it this way: agent = "assisted labor"; MCP = "standard port" to connect context and tools.

If you want a quick mental model:

  • Agent: "do X in the repo, run tests, open a PR".
  • MCP: "connect X to external sources and actions (data, tools, workflows) with a standard contract".

Where AI agents speed things up (and where they break)

The rule that repeats most is simple:

An agent replicates whatever input you give it, including the mistakes.
If the prototype is inconsistent, if the design system is "sort of there", or if the navigation flow is broken, the agent will reproduce and amplify it.

A quick decision matrix

Task typeWhere the agent shinesMinimum prerequisiteWhere it goes wrong
Repo mappingFinding routes, patterns, layers, entry pointsA repo with clear conventionsA chaotic monorepo with no docs + multiple patterns
Repetitive UI implementationCRUDs, lists, forms, statesConsistent design system and prototype"Identical but different cards" + missing states
Mechanical refactorRenaming, extracting components, migrating APIsTests/linters to guarantee behaviorNo tests: invisible regression
Tests (unit/E2E)Covering repeatable pathsClear contracts (UI/routes/IDs)Unstable UI with no selectors/contracts
Repetitive infra/CIScripts, pipelines, standardizationOne "correct" example as a referenceBroad permissions + undocumented manual steps

From here, the playbook is: improve inputs + add guardrails + break delivery into increments.

The foundation of the playbook: standardization before speed

Before "putting the agent to work", invest in three kinds of standardization that pay off fast:

  1. A consistent prototype
  2. A reliable design system
  3. A closed navigation and state flow

1) Consistent prototyping: less variation, less rework

An "agent-ready" prototype has:

  • Well-defined components (cards, inputs, buttons).
  • Same screen = same component (avoid "identical but different cards").
  • Coherent, repeatable naming.
  • Reusable layout patterns (grid, spacing, bars, headers).
  • Explicit states (loading/empty/error/success).

Quick prototype checklist:

  • Is there a pattern for primary/secondary/tertiary buttons?
  • Are repeated cards the same component, with clear variations?
  • Are spacing and grids consistent (e.g., 8pt grid)?
  • Do states (loading/empty/error) exist in the prototype?
  • Are copy and labels defined (so they do not become an "eternal placeholder")?
  • Do screens follow standardized naming (so they become routes/components without guesswork)?

2) The design system as a "contract" between design and code

Think of the design system as an API: it needs clear contracts.

What helps a lot in practice:

  • Tokens (colors, spacing, typography) with stable naming.
  • A component library with allowed (and forbidden) variations.
  • A "state matrix" (e.g., input: default/focus/error/disabled/loading).
  • A "how to implement" reference (Storybook or examples in the repo).

Minimum design system checklist:

  • Named tokens (not "Blue 1 / Blue 2" with no semantics).
  • Closed form components (input/select/textarea/mask).
  • Standardized feedback (toast/alert/inline error).
  • Loading/empty/error defined per component and per screen.
  • A table and pagination pattern (or an explicit decision not to use one).

3) Complete navigation and a "closed" flow

For AI (and for developers), having the complete flow makes a big difference:

  • screens connected end to end,
  • buttons pointing to clear destinations,
  • no "holes" where someone has to guess.

This reduces the chance of the agent inventing navigation, routes or components.

Flow checklist:

  • Every CTA has a destination (route, modal, action).
  • There is a "way back" (breadcrumbs, back, cancel).
  • The main flow works without a "ghost screen" in the middle.
  • There is defined behavior for errors (e.g., failure to save).

Plan before asking the agent to implement

A pattern that works well: ask the agent to study and map before coding.

A simple flow that works (and scales)

  1. Map the project
  2. Generate a step-by-step plan (small features)
  3. Human review of the plan
  4. Implementation in increments
  5. Validation along the way
  6. Small PR + checklist
  7. QA + merge with confidence

If the "plan" is not good, the implementation tends to get expensive. Fix the plan first.

Template: an agent-ready "task brief"

Use this template as input for the agent (it works for Codex, Cursor, etc.):

Goal:
- (1 sentence) What we need to deliver and why.

Scope:
- Includes:
  - ...
- Does not include:
  - ...

Definition of done (DoD):
- [ ] ...
- [ ] ...
- [ ] ...

References:
- Figma: (link)
- Related routes: (if known)
- APIs/contracts: (Swagger/Postman/Docs)
- Repo patterns: (file/folder, e.g., src/ui/components)

Technical constraints:
- Stack: (e.g., Next.js + TS + Tailwind)
- Standards: (e.g., no new libs, lint with no warnings)
- Observability: (e.g., logs/metrics required in X)

How to validate:
- Commands:
  - npm test
  - npm run lint
  - npm run e2e (if it exists)
- Scenarios:
  - ...

Standard prompt: map -> plan -> execute

Instead of "implement X", use something like:

  1. Make a quick map of the repo for this feature:
    • Where do routes, pages and components live?
    • Is there a similar feature? Point to the files.
  2. Write a plan in small steps:
    • Each step with the files to touch.
    • A definition of done per step.
    • Risks and decisions.
  3. Only then execute step 1.

Stop and ask for review before step 2.

This changes the game because:

  • you correct course before 20 files have changed,
  • the agent starts working with verifiable criteria,
  • review becomes predictable.

Run several workstreams in parallel with git worktree

When you want to run multiple features (or multiple projects) in parallel, git worktree avoids the cycle of "switch branch + stash + conflict + lost context".

Example (one repo, two features in different folders):

git worktree add ../feature-auth feature/auth
git worktree add ../feature-billing feature/billing

A practical worktree routine

# list worktrees
git worktree list

# remove a worktree after merge
git worktree remove ../feature-auth

# clean up metadata of worktrees deleted "by hand"
git worktree prune

Day-to-day benefits (especially with an agent)

  • less context conflict (each feature "lives" in its own folder),
  • more predictable review (short PRs per feature),
  • natural isolation for "agent tasks" (one worktree per goal),
  • easy to pause and resume without stashing.

Quick checklist:

  • each worktree has a clear goal (1 feature / 1 hotfix).
  • one PR per feature (not a "mega PR").
  • remove old worktrees after merge (remove + prune).
  • a short README in the worktree (optional) with the task context.

Guardrails: what keeps speed from turning into a mess

Without guardrails, an agent becomes a "diff generator". With guardrails, it becomes a "reliable accelerator".

Here is a baseline that works:

1) Always run validations along the way

Do not leave everything to be discovered at the end. The good flow is:

  • lint/typecheck early,
  • unit tests in the middle,
  • E2E/Playwright at the end of the feature.

Example of a technical "definition of done":

  • lint with no warnings
  • typecheck ok
  • unit tests ok (when applicable)
  • E2E ok (when applicable)
  • PR with description + checklist + screenshots when it is UI

2) A "minimal change" policy

The more open the scope, the more the agent invents.

Always use:

  • a limit on files (or folders) per step,
  • "do not create a new abstraction without justification",
  • "no new dependency without approval".

3) Focused (not bureaucratic) human review

A good review for agent work has 3 questions:

  • Does the behavior match the definition of done?
  • Were the repo's patterns respected (components, routes, naming)?
  • Is there hidden risk (edge cases, permissions, migration, performance)?

Where MCP comes in: connecting tools and context without a giant prompt

MCP works on a simple idea: standardizing how AI applications connect to data and tools.

Instead of everyone building ad-hoc integrations ("each agent with a different prompt"), you have:

  • servers exposing "capabilities" (data, tools, prompts),
  • clients in the host (IDE/app/agent) consuming them.

What you gain with MCP (in practice)

  • Less "manual prompting" to explain context over and over.
  • Reusable integrations (one server for Figma, another for Jira, another for the DB).
  • Better governance (permissions, auditing, scope limits).
  • Incremental evolution: read-only today, actions with approval tomorrow.

Concepts you need to know (without turning this into a course)

Day to day, 3 concepts are enough to get you in the game:

  • Resources: context/data (e.g., an architecture document, a list of routes, design tokens).
  • Tools: actions (e.g., create a PR, open an issue, query the DB, run a pipeline).
  • Prompts: instruction templates and workflows (e.g., "generate an implementation plan with DoD").

The key insight: you trade free text for a contract.

November 2026 update. The current revision of the specification is 2026-07-28, which replaced 2025-11-25. Resources, Prompts and Tools remain the core of what a server offers. What changed underneath: the protocol became stateless (the initialize handshake is gone, and each request carries its own version and the client's capabilities), long-running tasks became the optional Tasks extension, and Roots, Sampling and Logging were deprecated. If you maintain your own server, check the changelog before updating the SDK.

An example structure (conceptual):

{
  "mcpServers": {
    "server-name": {
      "command": "<command-to-start-the-server>",
      "args": ["..."],
      "env": {
        "TOKEN": "${env:TOKEN}"
      }
    }
  }
}

Use this as a starting point and apply good practices:

  • least privilege (read-only when possible),
  • secrets via env (no hardcoding),
  • destructive actions with a human in the loop,
  • logs: "what was executed and why".

How not to turn MCP into an "endless integration"

Three rules that prevent chaos:

  1. One server per context domain

E.g., mcp-figma (design), mcp-jira (tracking), mcp-repo (repo), mcp-ci (pipelines). 2. Start read-only
First have the agent understand the system through resources. Then enable tools (with approval). 3. Define minimum contracts
Tool name, schema, examples and limits. If you cannot describe it, you cannot automate it.

A realistic example: "Figma -> feature -> PR" with agent + worktree + MCP

Suppose you need to deliver a new screen with a closed flow and a simple integration.

Step 0: create isolation

git worktree add ../feature-new-screen feature/new-screen
cd ../feature-new-screen

Step 1: ask for a map of the repo (before coding)

Prompt:

Map how this repo implements screens:
- Where do routes/pages live?
- Where do UI components live?
- Is there a screen similar to "New Screen X"? List the files.
- Is there a pattern for loading/empty/error? Point to a reference.

Expected result:

  • a list of files to reuse,
  • "the team's pattern" made explicit.

Step 2: ask for a step-by-step plan (with DoD)

Prompt:

Based on the mapping, write a plan in 4-6 steps.
For each step:
- files that will be changed/created
- definition of done
- validations to run
Include risks and dependencies (API, tokens, environment).
Do not implement yet.

You review the plan, cut scope, add constraints (e.g., "do not create a new component", "use component X").

Step 3: implement in small increments

You authorize only step 1:

Implement only step 1 of the plan.
Rules:
- keep the repo's pattern
- no new libs
- run lint/typecheck before finishing
- stop and show me a summary of the changes + next steps

Step 4: validate and prepare the PR

PR checklist:

  • a description of what changed,
  • screenshots/recording when it is UI,
  • a list of tests run,
  • risk and rollback notes (if needed).

If the agent has access to tools via MCP, it can:

  • fetch data from Figma (resource),
  • open a ticket or update its status (tool),
  • run checks in CI (tool),
  • attach links (standardized prompt).

Final checklist: AI in the project without chaos

Inputs (design/product):

  • Consistent prototype (components, grid, states).
  • Closed navigation (no holes).
  • Clear definition of done (DoD).
  • Explicit "does not include" scope (anti scope creep).

Flow with the agent:

  • The agent maps before implementing.
  • Plan reviewed by a human (small, verifiable steps).
  • Implementation in small increments (1 step at a time).
  • Short, frequent PRs (no mega PR).

Quality (engineering):

  • Lint/typecheck running along the way.
  • Unit/E2E tests when applicable.
  • UI validated against the prototype (screenshots, checklist).
  • No new dependencies without approval.

MCP (governance):

  • Servers separated by domain.
  • Read-only first; tools later.
  • Secrets in env, least privilege.
  • Human approval for sensitive actions.
  • Logs and traceability.

Next step

If you want to apply this playbook in your team (or need to build the pipeline to run multiple projects with more speed and control), start with the basics:

  • standardize the prototype and components,
  • turn the scope into small features,
  • define the definition of done,
  • only then scale with agent + MCP.

To turn this playbook into a project with us, see the pages on AI agents for companies, MCP for companies and AI-assisted development.

References (official docs)

Links checked on November 11, 2026.

Also read

MCP (Model Context Protocol): what it is, when to use it, and securityAI coding productivity: from the peak to the complexity cliffLangChain vs LangGraph: the technical guide to choosing the right stack
Previous post
AI-assisted development: a checklist for speed with control
Next post
Smaller projects with AI: what changes in the development pipeline
Newsletter

One email a month, no noise

What we learn shipping custom software and applied AI.

Related articles

MCP (Model Context Protocol): what it is, when to use it, and security3 min · Technology
AI coding productivity: from the peak to the complexity cliff7 min · Engineering
LangChain vs LangGraph: the technical guide to choosing the right stack9 min · Engineering
What is DevOps?4 min · Engineering
Understanding the Angular framework2 min · Engineering

Accelerate your business with X-Apps

Ask for a Budget
X-Apps is an IT provider partner and advised by
Gartner
Receive our e-mails
News on software and applied AI.
Follow X-Apps