AI brothers · 27 Nov 2026

Vibe coding

Agentic coding

How to build real software with AI agents. Chingiz Mamedov

Two ways to build with AI

Vibe coding

You ask an AI for an app and accept whatever it makes. Nobody reads or checks the code. Fine for a weekend experiment.

Name from Andrej Karpathy, February 2025

Agentic coding

An AI agent writes the code, and you run it as a real project: a written spec, a plan, tests and reviews.

This talk

Quick quiz

What does a vibe coder read?

  1. Every line of the code
  2. The docs, twice
  3. Nothing. Just the vibes.

Why this matters now

  • 01The best agents can now finish tasks that take a person about five hours, around half the time.
  • 02That task length doubled every seven months from 2019 to 2025, and faster since.
  • 03Writing code is now cheap. Deciding what to build and checking the result is the hard part.

Source: METR, “Measuring AI ability to complete long tasks” (2025) and Time Horizon 1.1 (Jan 2026)

Part 1 · Web basics

A web page has three layers

HTML

The content and structure: headings, text, buttons, images.

CSS

The look: colours, fonts, spacing and layout.

JavaScript

The behaviour: what happens when you click, type or scroll.

Part 1 · Web basics

GitHub: where the code lives

Repository

A project folder that keeps every version of every file.

Commit

One saved change, with a short note saying what changed.

Branch

A separate copy for trying changes without touching the main version.

Pull request

A request to add a branch to the main version. Reviews happen here.

Part 2 · AI basics

AI, LLM and agent

AI

The field

A broad word for the whole area, like “medicine”.

LLM

The model

Large Language Model. It predicts the next word, after reading a huge amount of text.

Agent

Model + tools

An LLM that can also open files, run programs and check the result.

Part 2 · AI basics

What agents do well, and where they fail

Good at

  • Writing a lot of code quickly
  • Repetitive, well-known tasks
  • Knowing most popular tools
  • Working for as long as you need

Bad at

  • Facts: it sometimes makes them up (“hallucination”)
  • Knowing your taste, unless you describe it
  • Big, vague tasks
  • Knowing when it's really finished
Readthe task and files
Planthe next step
Doedit and run
Checkdid it work?

repeat
until done

Part 2 · AI basics

How an agent works

It repeats these four steps until the task is done. If it has a way to check its work, it can fix its own mistakes.

Part 3 · Sessions and context

AI reads text in tokens

One token is about four characters, or three quarters of a word.

  • 01Everything uses tokens: your messages, the files the agent reads, its answers.
  • 02You pay per token.
  • 03One session can only hold a limited number of tokens.

Part 3 · Sessions and context

Sessions and the context window

Session

One conversation with the agent, from start to finish. When it ends, the agent forgets everything in it.

Context window

Everything the agent can see in this session: your messages, the files it opened and its own answers. Its size is measured in tokens.

Think of it as a desk. It's big, but the more you pile on, the more the agent misses.

Part 3 · Sessions and context

The smart zone and the dumb zone

Smart zoneFocused, follows your instructions
Dumb zoneForgets, repeats mistakes
Session startsaround 125–150K tokensWindow limit

One task per session.

When the agent gets sloppy, start a new session.

Save the plan in a file, so the new session can continue.

Source: Matt Pocock, AI Hero, “AI Coding Dictionary: Smart zone”

Quick quiz

When does an agent get sloppy?

  1. When the session gets long
  2. When the task is too small
  3. When prompts are too short

CLAUDE.md · project rules

DesignUse our colour and spacing tokens. No new colours.
QualityRun the tests before saying a task is done.
SecurityNever put passwords or keys in the code.
ToolsAsk before adding a new library.

Part 3 · Sessions and context

Memory is a file

The agent forgets everything between sessions. So the project keeps a rules file, and the agent reads it at the start of every session.

Planwhat and why
Designhow it works
Buildwrite the code
Testdoes it work?
Deployput it live
Maintainfix and improve

Part 4 · How to work

The software development life cycle

Every feature goes through these six steps. AI makes Build much faster. The other five still need people.

Phases as described by AWS, “What is SDLC?”

Part 4 · How to work

Set up the process before the features

Ship a small feature now

Feels fast. The next feature starts from zero again, and the quality depends on luck.

Set up the process first

A spec template, a rules file, tests and reviews. Slower in the first week. Every feature after that is faster and safer.

Spend the first days on the process. The features come faster after that.

Part 4 · How to work

Why one sentence isn't enough

A one-line prompt

“Build me a booking app.”

The AI has to guess hundreds of details. The result may look fine but not match what you had in mind.

A written spec

One page: who it's for, what it does and how we'll know it's done.

The AI guesses less, and you have something to check the result against.

Spec · Phone remote for slides

GoalChange slides from my phone during a talk.
For whomThe speaker, on stage, holding a phone.
Done whenI scan a QR code, tap Next, and the slide changes within a second.
Out of scopeUser accounts and app installs.
Open questionWhat happens if the Wi-Fi drops?

Part 4 · How to work

What a spec looks like

It's written in plain language. Designers and managers can write most of it.

Quick quiz

What matters most in a spec?

  1. The goal
  2. “Done when”
  3. “Out of scope”

Part 4 · How to work

From idea to release in six steps

You

Idea

Discuss it with the AI.

You + AI

Spec

Write it down on one page.

AI

Plan

Agree the order of work.

AI

Tasks

Build in small pieces.

You + AI

Review

Compare it with the spec.

Team

Release

Put it live, with a way to undo.

Part 4 · How to work

“Act as a senior engineer” isn't enough

Giving it a title

“You are a senior engineer.”

The AI sounds more confident. Its answers don't get more accurate.

162 roles tested: no reliable gain. Zheng et al., EMNLP 2024

Giving it the way of thinking

  • How to choose a tool: maintained, fits our stack, simplest option
  • Which practices: tests first, small changes
  • Which patterns: follow the existing code
  • When to stop and ask a person

Part 4 · How to work

Spec Kit, from GitHub

A free, open-source toolkit, released in September 2025. It turns spec-driven work into fixed steps that the agent follows. Works with Copilot, Claude Code and Gemini CLI.

  • /speckit-constitutionProject rules, written once.
  • /speckit-specifyWhat to build, and why.
  • /speckit-planHow: tools and structure.
  • /speckit-tasksSmall steps, in order.
  • /speckit-implementThe agent builds it, task by task.

Part 4 · How to work

Superpowers: skills for coding agents

A free, open-source library by Jesse Vincent. A skill is a written playbook that the agent follows for one kind of job.

  • brainstormingAsks you questions before building anything.
  • writing-plansWrites a step-by-step plan.
  • test-driven-developmentWrites the test first, then the code.
  • systematic-debuggingFinds the cause before fixing a bug.
  • requesting-code-reviewHas a second agent review the work.

Part 5 · Quality

A demo and a product look the same at first

Demo

Works when you click through it once. Nobody has tried bad input, many users or a forgotten password.

Product

Keeps working with real users for years, and someone can fix it when it breaks.

Part 5 · Quality

Five things to set up before you start

Repo

The project on GitHub, so every version is saved and you can go back.

Tests

Small automatic checks that tell you when something breaks.

CI

A service that runs all the tests every time the code changes.

Secrets

Passwords and keys, stored in a safe place and never in the code.

Review

A person, or a second AI, reads every pull request before it goes live.

Then

The AI can work fast, and mistakes still get caught.

Part 5 · Quality

What happens when you skip this

  • 01Something breaks, and you can't go back to the version that worked.
  • 02A key leaks online, and someone runs up your cloud bill.
  • 03Users find the bugs before your team does.
  • 04After a few months, nobody can explain how the code works, including the AI.

Part 5 · Quality

What the research says

45%

of AI-written code samples failed security tests

Veracode, 2025

29M

passwords and keys leaked on public GitHub in 2025

GitGuardian, 2026

2×

more leaks in commits co-written by AI

GitGuardian, 2026

90%

of developers use AI. Releases got faster and less stable.

Google DORA, 2025

Part 6 · A real example

This slide app was built this way, today

10:43

Spec and plan written

10:48

First slides on screen

11:27

Phone works as a remote

13:26

Audience can follow on their phones

14:33

Speaker panel finished

Part 6 · A real example

The numbers from today

~4h

from an empty folder to live

4

specs and plans, written before the code

41

commits, each one reviewed

100+

automatic tests

Part 6 · A real example

Problems the reviews caught

  • !An animation ran twice and the QR code disappeared.
  • !An old pairing code kept working after it should have expired.
  • !The private speaker notes needed an extra check to stay off the public page.

All three looked fine when I clicked through the slides.

Part 7 · Next steps

Risks and how to handle them

SecurityKeep keys in a vault. Give the agent test keys only.
CostSet a monthly spending limit and check usage every week.
Made-up factsLet tests and reviews catch them.
“Looks finished”Write down what “done” means in the spec, then check it.
OwnershipName one person who is responsible for each release.

Part 7 · Next steps

What designers and managers can do

Designers

  • Build clickable prototypes instead of static mockups
  • Write the UI part of the spec: states, edge cases, wording
  • Check the result in the browser

Managers

  • Ask to see the spec before work starts
  • Plan time for review as well as building
  • Measure what was shipped and used, not how much code was written

Part 7 · Next steps

How to start next week

  • Pick one small, low-risk problem from your own work.
  • Ask an engineer to set up a repo, tests and reviews.
  • Install Superpowers or Spec Kit in your coding agent.
  • Write a one-page spec: the goal, who it's for, what “done” means.
  • Let the agent plan, then build one small step per session.
  • Add every lesson to the rules file.

Quick quiz

What do you set up first?

  1. The first small feature
  2. Repo, tests and reviews
  3. A bigger AI model

The AI writes the code. People still decide what to build, and check it before it goes live.

Questions?

Chingiz Mamedov · mettups.pages.dev/vibe-coding