# "My COMPLETE Agentic Coding Workflow to Build Anything (No Fluff or Overengineering)"
<!--
ref: @content/youtube/cole-medin/2026-02-23-my-complete-agentic-coding-workflow-to-build-anyth
triggers: [need for structured software development, AI coding agent errors, inefficient project planning, lack of clear requirements]
trigger_prompt: When a developer seeks to streamline their software project by reducing assumptions and enhancing the effectiveness of AI coding agents.
version: 3
updated_at: 2026-10-31T20:23:16.374Z
-->
From Cole Medin, 2026-02-23: The most effective way to build software with AI agents is to adopt a simple, evolvable framework that prioritizes meticulous upfront planning and continuous system refinement.
Cole Medin presents a comprehensive and practical framework for building new software projects ("greenfield development") using AI coding agents.
## Core Thesis
The most effective way to build software with AI agents is to adopt a simple, evolvable framework that prioritizes meticulous upfront planning and continuous system refinement. By establishing a clear Product Requirements Document (PRD), global rules, and an iterative "Plan, Implement, Validate" (PIV) loop, developers can minimize AI assumptions, delegate coding with confidence, and create a reliable, compounding workflow where the AI's effectiveness grows with the project.
## Key Insights
- **Upfront Planning is Paramount:** The primary goal in the initial stages is to reduce the number of assumptions the AI has to make. Errors in planning are exponentially more costly than errors in code. A thorough, AI-assisted planning process that moves from an unstructured "brain dump" to a detailed PRD is essential.
- **Context is the Most Precious Resource:** Effective context management is critical. This involves using "progressive disclosure" by separating general rules from specific on-demand context, resetting the conversation between planning and implementation, and protecting the main agent's focus by using sub-agents for research only (not implementation).
- **The PIV Loop Structures Development:** The "Plan, Implement, Validate" (PIV) loop provides a repeatable cycle for feature development. A key component is creating a detailed validation strategy *before* writing code, which forces clarity and acts as a form of test-driven development for the AI.
- **Git History is Long-Term Memory:** A standardized Git commit history, ideally generated by the AI itself, serves as a crucial long-term memory. This allows the agent to reference `git log` to understand the project's evolution and maintain consistency with past decisions.
- **The "System Evolution Mindset" is the Highest Leverage Activity:** Every bug, error, or stylistic misalignment is an opportunity to improve the "AI Layer" (the collection of rules, commands, and context files). Continuously refining this layer, rather than just fixing the immediate problem, makes the entire system more reliable and repeatable over time.
- **Human Oversight is Irreplaceable:** The workflow emphasizes "trusting but verifying." While the AI handles the bulk of the coding and initial testing, the developer is responsible for the crucial steps of planning, code review, and final manual validation.
## Actionable Takeaways
1. **Establish an "AI Layer" First:** For any new project, start by creating a dedicated folder for the AI. This should contain a Product Requirements Document (PRD), a `global_rules.md` file, reusable commands/skills, and a place for sub-agent outputs.
2. **Iterate from Brain Dump to PRD:** Begin by having an unstructured conversation with the AI about your project idea. Instruct it to research best practices and, most importantly, to ask you clarifying questions to eliminate assumptions before generating a final, detailed PRD.
3. **Implement a `/prime` Command:** At the start of every new session, use a command that instructs the AI to "prime" itself by reviewing the PRD, global rules, file structure, and `git log`. This ensures the agent has a complete mental model of the codebase's current state
---
*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).*