Build with AI · Guide for product managers

Claude Code and Codex for product managers

Coding agents such as Claude Code and OpenAI Codex do not just answer questions about code — they read your project, run commands and make changes. That makes them powerful tools for product managers, and it changes what "being technical" means. This guide explains how they work and how to direct them well.

Guide 7 of 10 in the technical PM path

10 min read · Updated · By the TechPMer team

Chat assistant vs coding agent

A chat assistant (Claude, ChatGPT) answers in a conversation. You copy code in and out. It only knows what you paste.

A coding agent works inside a project. Depending on the tool and how you set it up, it can:

Claude Code (from Anthropic) and Codex (from OpenAI) are two well-known examples; editors such as Cursor and VS Code have similar agents built in. Features, names and pricing change often, so check each tool's current documentation — the working principles below apply to all of them.

Why this matters for PMs

It does not replace engineers on production systems. It changes what you can do before, around and alongside them.

How an agent actually works

Simplified, an agent runs a loop: read your request → look at relevant files → make a plan → edit files or run a command → look at the result → repeat until it thinks it is done.

Two consequences:

  1. Context is everything. The agent only knows what is in the files, your prompt and any instructions file (many tools read a project file such as CLAUDE.md or AGENTS.md with standing rules). Missing context leads to confident guesses.
  2. "Done" is its judgement, not yours. Agents stop when the task appears complete. Your acceptance criteria are what turn "appears" into "is".

Setting up safely

How to brief an agent

Treat the agent like a very fast new engineer who has never seen the product. A good brief has:

Goal: users can export their tasks as CSV from the Tasks page.

Context: tasks are loaded in src/pages/Tasks.jsx from the /api/tasks endpoint.

Acceptance criteria:
- Export button on the Tasks page; downloads tasks.csv with title, status, due date.
- Only the signed-in user's tasks. Empty list → file with just the header row.
- Titles containing commas or quotes are escaped correctly.

Constraints: no new dependencies; don't change the API response shape.
First explain your plan and the files you'll change, then wait for my OK.

Reviewing what the agent did

You do not need to read every line. Check:

  1. The summary vs the diff. Did it change only what it said? Look at the list of changed files.
  2. Acceptance criteria. Test each one yourself, including the edge cases you wrote down.
  3. Security basics. No secrets in code; permission checks on the server; no disabled validations.
  4. New dependencies. Each one should have a reason.
  5. Explanation. Ask it to explain the change "for a PM" and list risks and anything it was unsure about.

A second opinion helps: ask a fresh session (or another model) to review the diff for bugs and security issues.

When the agent gets stuck

Common mistakes

What engineers may tell you

Try it yourself

Take a small repository — even a personal project — and ask an agent three read-only questions: "Explain the structure of this project", "How does a request flow from the UI to the database?" and "What are the riskiest parts of this code?". It is a low-risk way to learn both the codebase and how the agent reasons.

TechPMer's course sets up an AI coding agent in week 1, gets it working safely inside a Git repository in week 2, and then uses it to build and ship your own project through week 12.

Start with week 1 — free

No credit card. Open the first week as a guest, create a free account to save progress and unlock week 2 and the AI mentor.

Start learning Compare plans