Agentic coding: build software by directing AI agents
How a founder sets up an AI coding agent like Claude Code or Codex, writes prompts it gets right the first time, and ships real software, from first session to daily routine.
Your agentic coding learning path
Go in order. Read the three short chapters, then the 16 steps. Part 1 sets up your agent. Part 2 teaches you to brief it. Part 3 ships real work. The daily loop at the end is the whole thing on one card.
Start here: First, three short chapters
- What is agentic coding? What changed: the AI now does the work, you direct it.
- Pick your agent Claude Code, Codex, Cursor or an app builder: pick one.
- Write better prompts The brief that gets it right the first time.
Part 1: Set up your agent
- Pick your agent: Terminal agent, AI editor or app builder. Pick by what you are building. (Claude Code, Codex, Cursor, App builders, Subscriptions) Choose a coding agent
- Your first session: Install it, open a project, ask it to explain the code. (Install, Terminal, IDE extension, /init, First prompt)
- Project memory: Write down what the agent cannot see in the code. (CLAUDE.md, AGENTS.md, Global rules, Auto memory, Keep it short) CLAUDE.md & AGENTS.md
- Rules that can’t break: Some rules must hold every time. Those go in settings, not in words. (Permission modes, Deny rules, Hooks, Sandbox, Git safety)
- Extend it: Connect your tools and teach it your routines. (MCP servers, Skills, Subagents, Plugins, Slash commands)
Part 2: Brief it like a pro
- Write the prompt: Goal, where to look, what done means. Hand over files and screenshots. (Specific asks, @ files, Screenshots, Examples, Scope) Prompts for coding agents
- Plan before code: Let it read and propose first. Approve, then build. (Plan mode, Interview me, SPEC.md, Approve the plan) Plan before you code
- Give it a check: A test, a build or a screenshot it can run, so “done” means done. (Tests, Build, Lint, Evidence, Fresh reviewer) Make the agent prove it
- Steer and recover: Stop it early, roll back, start clean. (Esc, Rewind, Checkpoints, /clear, Two-strike rule)
- Context and cost: Keep sessions focused and your bill small. (Context window, /clear, /compact, /usage, Models & effort) Context, tokens and cost
- Your prompt library: Save the prompts that work. Reuse them every week. (Saved prompts, Templates, Skills, Prompt tools) Build a prompt library
The bridge: What works in every agent
Tools change every few months. These four habits carry over to all of them.
- Say what it can’t see: Goals, decisions and limits that aren’t in the code.
- Write it down once: Rules and memory in files, not repeated in chat.
- Give it a check: Something that passes or fails, not “looks good”.
- One task at a time: Small, clear asks beat one giant prompt.
Part 3: Ship real work
- Docs agents can follow: Pending, done and decisions, so any new session picks up where you left off. (docs/ folder, PENDING.md, Decision log, Pointers) A docs folder for agents
- Git with agents: Small commits, branches, and you decide when to push. (Commits, Branches, Worktrees, Push rules, Undo)
- Review the diff: Read what changed before it goes live. (Diff, Code review, Security review, Skip style nits) The 7-phase build cycle
- Run it without you: Long tasks, scripts and scheduled runs, with limits. (Headless mode, Goals, Schedules, Turn and spend caps)
- Deploy and keep going: Ship, watch, fix, repeat. (Deploy, Logs, Bug reports, Iterate) The 7-phase build cycle
Finish: The daily loop
Every task, every day, in this order. The big picture behind it: OpenAI’s 7 phases (plan, design, build, test, review, document, deploy).
- Read: Open PENDING. Pick one task.
- Brief: Goal, files, what done means. Plan first if it’s big.
- Build: Let it work. Watch the first minute.
- Check: Tests, build, screenshot. Ask for evidence.
- Review: Read the diff. Try it yourself.
- Commit: Small commit. Push when you say so.
- Record: Move it to DONE. Log any decision. /clear.
For years, building software meant typing code. Now you can describe what you want, and an AI agent reads your project, writes the code, runs it and fixes its own mistakes. You still decide what to build and what ships.
That shift has a few names. Vibe coding came first: accept whatever the AI writes and hope it works. Agentic coding is the grown-up version: the agent does the typing, and you do the directing, checking and deciding.
Why this hub exists
This site, every guide, tool and page on it, is built this way: me directing Claude Code, Claude doing most of the typing. So this hub is written by both of us. These are the notes I wish I had on day one.
- Rules in a file, not in chat. This site has a short
AGENTS.mdand a global rules file. Things like "never push unless I say push" live there, so I don't repeat them every session. - A docs folder for the next session. Pending, done and decisions, so any new chat can ask "what's left?" and get a real answer.
- One task at a time. My laptop is an 8 GB M1, so the rules say: no heavy work in parallel. Small, clear tasks also give better results.
- Good prompts are worth keeping. That's one reason I built PromptItIn: write a prompt once, improve it, save it, reuse it.
Want the big picture first? Read the 7-phase build cycle, based on OpenAI's guide to AI-native engineering. New here? Follow the learning path above, step by step. Already using an agent? Jump to the guide you need below.
All agentic coding guides
- What is agentic coding? (And why vibe coding grew up) — Agentic coding in plain English: an AI agent reads your code, makes changes, runs them and checks its work while you direct. How it differs from vibe coding and what a founder still has to do.
- Choose a coding agent: Claude Code, Codex, Cursor or an app builder — A plain-English guide to the kinds of AI coding agents: terminal agents like Claude Code and Codex, AI editors like Cursor, and app builders like Lovable, v0 and Bolt. Which one fits what you are building.
- How to write prompts for AI coding agents — A simple template for prompting Claude Code, Codex or any coding agent: the goal, where to look, what done means and what not to touch. Real before-and-after examples and a copy-paste prompt.
- CLAUDE.md and AGENTS.md: give your coding agent a memory — What CLAUDE.md and AGENTS.md are, where they live, what to put in them (and what to leave out), and how to share one file between Claude Code, Codex and Cursor. With a real example from this site.
- Plan before you code: plan mode and specs for AI agents — Why big changes go better when the AI agent plans first: how to use plan mode in Claude Code, how to get it to interview you into a SPEC.md, and how to read and fix a plan before you approve it.
- Make the agent prove it: checks, evidence and review — An AI agent stops when the work looks done. Give it a check that passes or fails (a test, a build, a screenshot), ask for evidence, and get a fresh reviewer, so 'done' really means done.
- Context, tokens and cost: keep AI coding sessions lean — Why long AI coding sessions get slower and pricier, and the simple habits that fix it: /clear between tasks, /compact with a focus, /usage to see where it goes, and the right model and effort for the job.
- Build a prompt library: save the prompts that work — Stop retyping the same prompts. How to keep a small library of prompts that work: a prompts file in your repo, Claude Code skills for repeat routines, and a prompt tool for the browser.
- A docs folder for agents: pending, done and decisions — How to give every new AI coding session a memory of the project: a short docs folder with what's pending, what's done, where it's going and why decisions were made. The exact setup this site uses.
- The AI-native build cycle: 7 phases, and what to delegate, review and own — OpenAI's 7 phases of AI-native engineering (plan, design, build, test, review, document, deploy) in plain English for founders: what to hand to the agent, what to check, and what stays yours.
Frequently asked questions
What is agentic coding?
Building software by directing an AI agent that reads your code, edits files, runs commands and checks its own work, while you set the goal, review the result and decide what ships. It grew out of 'vibe coding', the term Andrej Karpathy coined in February 2025.
Is vibe coding the same as agentic coding?
Not quite. Vibe coding means accepting whatever the AI writes without reading it, which is fine for throwaway projects. Agentic coding keeps the AI doing most of the typing but adds the engineering: plans, memory files, tests, review and git. Karpathy himself suggested 'agentic engineering' as the better name in early 2026.
Do I need to know how to code?
You can start without it, but you need to learn to read what the agent did: the plan, the diff and the test results. This hub teaches the parts a non-technical founder needs.
Which agent should I start with?
If you are building a real product you plan to keep, start with a coding agent that works on your own files, such as Claude Code or OpenAI Codex. If you only need a quick prototype, an app builder can be faster. The 'Pick your agent' guide compares them.