Product Managers in the Codebase: What AI Coding Tools Change for PMs and Engineers
Eric Greene December 05, 2026We recently taught an AI-assisted web programming class to software engineers and product managers from the same company. The product managers are going to start contributing to the team's codebase with AI coding tools. That is a big change to two roles that have been kept apart for a long time. Product managers decide what to build and why. Engineers decide how to build it, and they write the code. When a product manager opens a pull request, that line moves, and both roles need new habits before the first one merges.
Why product managers can contribute code now
A product manager who wanted a change used to write a ticket and wait for an engineer to pick it up. A coding agent such as Claude Code, GitHub Copilot in agent mode, Grok Build or Kiro (the tools our AI Software Engineering courses teach) takes a request in plain language, reads the repository, edits files across the project and runs commands, the test suite included. Someone who can describe a change precisely, check the result in a browser and read a diff can now produce a working change without typing most of the code.
Product managers already write the input these tools depend on. Acceptance criteria, edge cases, the empty and error states of a screen, what happens when a request fails: an agent needs all of that in its prompt or spec, and product managers have been writing it for engineers for years. The new skills sit around the prompt. A product manager working in the codebase needs to create a branch, run the app locally, read a diff, run the tests, and answer review comments.
That changes the answer to the old question of whether product managers need to code. A product manager doesn't need to write a React component from memory to change one. They do need to understand the change well enough to explain it in review, because the person who opens a pull request owns it, even when an agent wrote every line.
Spec-driven development gives the product manager's part of this a structure. The requirements go into a spec file in the repository, the agent writes a design and a task list from it, and the code follows the tasks. Our course on AI-DLC and Spec-Driven Development for Product Owners and Business Analysts covers that side of the work: writing requirements an agent can follow, reviewing the specs and task plans an agent generates, and working in Kiro specs and Spec Kit projects.
What makes a good first contribution
Some parts of a codebase suit a product manager's first pull requests better than others. Start with changes that have a visible result and touch little else:
- Text, labels and error messages in the UI
- Layout and styling fixes on a single page
- A new field on an existing form, with its validation
- Tests that turn a story's acceptance criteria into checks
- Internal tools and admin pages that customers never see
- A working prototype on a branch, in place of a mockup
Other areas need an engineer's design work first: authentication and authorization, payments, database migrations, infrastructure and deployment code, and anything that has to perform under load. A product manager can still propose a change there with an agent's help. An engineer reviews the design before anyone writes the code.
Keep each pull request to one change. A product manager can check a small diff line by line, and a reviewer can approve it or push back on it without untangling three changes at once.
What changes for engineers
Engineers will review more code, and some of it comes from teammates who can't explain every line without going back to the agent. Review becomes the main place where the team enforces its architecture, naming, error handling and security, so review comments need to be specific. "Use the existing useApiClient hook here" teaches the product manager something. Once it goes into the project's context files, it teaches the agent too.
Those context files become part of an engineer's job. Coding agents read instructions from the repository: AGENTS.md, Claude Code's CLAUDE.md, and GitHub Copilot's repository custom instructions in .github/copilot-instructions.md. When engineers write down how to run the tests, which libraries the project uses and which folders an agent should leave alone, every agent session a product manager starts begins with the rules an engineer would follow. The files live in Git, and changes to them go through pull requests like any other code. Our AI-Assisted Development with JavaScript and TypeScript course covers these files for web teams, along with agentic sessions that type-check, lint and test each change.
Engineers also own the safety net. A product manager's change is only as safe as the tests and checks that run on it, so a gap in the test suite matters more once people outside the engineering team change the code. AI review tools can take the first pass on each pull request and leave the human reviewer the design questions. Agentic Code Review and Pull Request Automation covers Copilot code review, Claude Code in CI and how to write the review policy around them.
We recommend pairing an engineer with each product manager for the first few pull requests. Together they set up the local environment, read the first diff and work through the first failing check.
Repository rules to set up first
Most of the protection comes from settings a GitHub repository already has. Turn them on before a product manager opens a pull request.
- A ruleset on the default branch can require a pull request, an approving review and passing status checks before anything merges. Nobody pushes straight to
main, engineers included. - A
CODEOWNERSfile names the people or team who review changes to a path. With code owner review required in the ruleset, a change undersrc/auth/can't merge until the platform team approves it. - CI runs the linter, the type checker, the unit tests and the end-to-end tests on every pull request as required status checks, so a broken change fails before anyone reviews it.
- Push protection blocks a push that contains a supported secret type, such as an API key pasted into a config file while someone was getting the app to run locally.
- A pull request template asks what changed, how it was tested and what the agent was asked to do. The last answer gives the reviewer the intent behind the diff.
A CODEOWNERS file for a web application might start like this:
# Engineers review anything that touches sign-in, payments or the database
/src/auth/ @your-org/platform-engineers
/src/payments/ @your-org/payments-engineers
/db/migrations/ @your-org/platform-engineers
# and any change to these rules
/.github/CODEOWNERS @your-org/platform-engineersThe last line gives the file an owner of its own. Without it, a pull request with an ordinary approving review could remove the other rules, and changes to sign-in or payments would no longer need an engineer's approval.
Code owners can change as the team learns. When a product manager has a record of small, clean changes in an area, the team can decide whether that area still needs an engineer's approval on every pull request.
What stays with each role
Accountability stays where it was. Product managers still own the problem, the priorities and whether a change does what users need. Engineers still own the design of the system, its security and performance, and the response when something breaks in production.
Each role does pick up some of the other's work. Product managers read diffs, run tests and answer review comments. Engineers spend more of their time writing down conventions and reviewing code they didn't plan. Agree on that split before the first pull request, and write it into the repository: the ruleset and code owners say who approves what, and the context files say how the code gets written.