# FULL Guide to Becoming a Principled Agentic Engineer (Build Anything with AI)
<!--
ref: @content/youtube/cole-medin/2026-04-29-principled-agentic-engineer-piv-loop-system-evolution
version: 3
updated_at: 2026-10-31T20:13:55.360Z
-->

Cole Medin (2026-04-29): Cole Medin's argument is that reliable AI coding does not require an elaborate framework — it requires three deliberately simple phases: ideate (turn a brain dump into a reviewed PRD and tickets), run the PIV loop per ticket (explore, plan, implement in a fresh session,…

*Synthesized from Cole Medin on Cole Medin, 2026-04-29.*

Cole Medin presents his portion of a live AI transformation workshop co-hosted with Lior Weinstein — a one-hour compression of the four-hour training he runs for organizations, delivered as a live end-to-end demonstration in Claude Code against a real Jira project.

## Core Thesis

Cole Medin's argument is that reliable AI coding does not require an elaborate framework — it requires three deliberately simple phases: ideate (turn a brain dump into a reviewed PRD and tickets), run the PIV loop per ticket (explore, plan, implement in a fresh session, validate), and then evolve the system (fix the rules, commands, and skills that let a bug through, not just the bug). The engineer's job moves from writing code to planning and validating it, and the reason this isn't vibe coding is that a human reviews every artifact the agent produces.

## Key Insights

- Medin is explicitly critical of the off-the-shelf frameworks — he names GitHub SpecKit, BMAD, Cloud Flow, GSD, and Gastown — respecting the software engineering wisdom inside them while calling them over-engineered and hard to mold to an existing SDLC. His teaching goal is a foundation you shape around the conventions your team already has, rather than throwing that process out.
- **The tooling is interchangeable.** He uses Claude Code plus Jira; Codex with GitHub or Copilot with Linear works identically. The only requirement is one place to manage work and one place to talk to a model.
- **Phase 1 starts unstructured on purpose.** Open the agent, brain-dump by voice, be as specific as you can, and then have the agent interrogate you. Medin's exact instruction: before writing anything, ask clarifying questions one at a time using the ask-user-question tool. Claude Code renders these as multiple choice, so you can accept its recommendation fast or push back where it's wrong; agents without that tool work the same way, just typed.
- **The dominant failure mode is misalignment, not broken code.** Medin puts the responsibility on the human: the point of the question loop is to strip out assumptions, and it's reasonable to spend 20-30 minutes there.
- **Layer 1 planning stays out of the code.** Project-level planning (what features, which bugs) is deliberately kept high-level; only at the ticket level do you analyze the codebase and decide which files change. He explicitly frames Layer 1 as the product manager's touchpoint with the coding agent — PM teams attend his corporate trainings for this reason.
- **The rule of three:** anything you prompt more than three times becomes a command or skill. Commands and skills are just procedures — prompts loaded on demand — and they take space-separated arguments the way a CLI does, which is what makes them reusable across projects and shareable as a team standard.
- Baking your own PRD and story structure into the command is the actual point. Executive summary, mission, target users, scope; user story format and acceptance criteria — your existing conventions, executed by the agent, so adoption doesn't require anyone to learn a new document format.
- **PRD creation and story creation are separate commands on purpose**, even though they could be one. The gap is where the human reviews and revises the PRD before it becomes tickets — the questions may not have been enough, or the answers may have been misread.
- With the Atlassian MCP server wired up (via `.mcp.json`, which Medin had Claude Code configure for him by searching the docs), the create-stories command pushes stories into a named project and epic, and can attach per-issue technical notes as comments from its own codebase research. The same command falls back to plain markdown files for people who manage work locally.
- **The `prime` command opens every implementation session.** It loads the target ticket via MCP, studies features and app routes, and reads recent git commits — Medin treats git history as long-term memory for coding agents, since recent commits carry the patterns to follow. He warns against loading so much that research eats half the context window, and notes the prime command itself is the lever you tune for that.
- Priming surfaced a real dependency mid-demo: querying Jira state, the agent recognized that AT-23 was blocked and AT-22 (QR code generation) had to come first — dependency mapping he had built into the create-stories command.
- **Sub-agents are his primary context-management tool for research.** Three exploration agents consumed well over 100,000 tokens between them (one alone loaded 32,000) and returned a few thousand tokens of summary to the main agent. His stance on the million-token window available with Opus: capacity is not permission — models get overwhelmed like people.
- **The plan is a single markdown artifact** containing everything implementation needs: summary, user story, locked-in decisions, patterns to follow, files to create and update, ordered task list, and the self-validation strategy (type checking, linting, unit and integration tests, optionally end-to-end runs through a browser-automation skill).
- **Implementation runs in a brand-new session** given only the plan path. Two reasons: focus, and stripping the bias the agent accumulated while planning. The implement command itself is only a couple hundred lines — branch creation, assumption verification, a second pass over the plan, validation, and when to hand control back — because the plan carries the specifics.
- Agent-side validation is about reducing *your* review burden, not eliminating review. Medin still reads all production code and tests manually; the goal is that less needs correcting by the time it reaches him.
- **System evolution is the highest-leverage part.** When a bug slips through, run a retro session pointing the agent at its own AI layer — rules, commands, skills — to find what allowed it. Ugly components mean a style convention missing from global rules, or a compliance check missing from the validate workflow.
- The four things he continuously improves: commands, on-demand context (including Confluence docs optimized for AI reading), global rules, and the plan/PRD templates. All of it is checked into source control and updated via pull request with code review, so one person's fix saves the whole team dozens of hours.
- **Two loops, not one.** The inner loop is ticket after ticket when things go well; the outer loop is stepping out to improve the system when they don't. He notes the outer loop is also how generic starting-point commands become specific to your codebase over time.
- Live, the demo produced a partial result — the QR piping shipped without a front-end consumer — and Medin's response models the posture: it was the correct scope for that ticket, the follow-up ticket owns the presentation view, and an over-verbose Jira comment is itself a system-evolution item for the implement command.

## Actionable Takeaways

1. Brain-dump by voice into the coding agent, then end the prompt with an explicit instruction to ask clarifying questions one at a time before writing anything. Budget 20-30 minutes.
2. Run a `create-prd` command that encodes your team's actual PRD structure, with the output path as an argument. Stop there and review the document before generating any tickets.
3. Run `create-stories` with the PRD path plus your project and epic IDs; let the Atlassian (or Linear/GitHub) MCP create the tickets, the acceptance criteria, and research comments. Manually create only the epic.
4. Start every implementation with a `prime` command that pulls the ticket through MCP, reads the core files, and reads recent git commits — then tune that command when it loads too much or too little.
5. Delegate codebase and web research to sub-agents so the tens of thousands of tokens they read never enter the main context; take only the summary back.
6. End the exploration phase with a `plan` command that writes `plan.md`: summary, decisions, patterns to follow, files to create/update, ordered tasks, and self-validation commands.
7. Open a **fresh session** and run `implement` with only the plan path. Have it branch, implement, run type checking/linting/tests, compare the result against the plan for deviation, and update the ticket.
8. Review the code and test manually before merging — treat agent validation as reducing your queue, not replacing you.
9. After any ticket that went badly, run a retro against the AI layer and fix the rule, command, skill, or template that permitted the error; commit it via PR so the team inherits the fix.
10. Convert any prompt you've written three times into a command or skill, and check the whole `.claude` layer into source control.

## Notable Quotes

> "Our job as an engineer is to no longer write the code, but to do the higher leverage tasks like the planning and validating." — Cole Medin

> "It's not like the code is just broken. It's that it's not aligned with what you were actually looking to build." — Cole Medin

> "Anytime you find yourself prompting something more than three times, you should turn it into a command or skill." — Cole Medin

> "Just because you can fit a million tokens into a large language model does not mean that you should." — Cole Medin

> "I love using Git as long-term memory for my coding agents." — Cole Medin

> "We want it to have a fresh set of eyes on the problem going into implementation." — Cole Medin

> "We can spend some time to fix the system that allowed the bug." — Cole Medin

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*