Skip to content

coders-cantabria/agentic-development-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context Engineering & PRP Framework Workshop (with AI Coding Agents)

A hands-on, production-focused workshop teaching software teams to ship faster and with higher quality using Context Engineering principles, the PRP Framework, and Claude Code.

Note on Tools: While this workshop demonstrates concepts using Claude Code, the Context Engineering principles and PRP Framework are tool-agnostic. These techniques work with any agentic coding tool—whether you use Gemini CLI, Cursor, Windsurf, Aider, Codex or others. The core concepts of structured context, validation gates, and systematic workflows apply universally.


👥 Who This Is For

This workshop is designed for anyone involved in software delivery:

  • Software Engineers & Engineering Managers
  • Product Managers
  • QA Engineers
  • DevOps Engineers

Prerequisites:

  • Basic understanding of software development workflows and git
  • Active project or codebase you're currently working on
  • Ability to experiment with AI tools in your development workflow

🏗️ Workshop Approach

This is a hands-on, production-focused workshop for brownfield projects. You'll learn by doing.

Between sessions, you will:

  • Apply learned techniques to your current work
  • Use Claude Code for actual tasks and features you're building
  • Experiment with the PRP Framework in your team's codebase
  • Track your progress and bring questions/insights to each session

Session 1: Foundations

What You'll Experience Today

  1. Understand why context is so important
  2. See (Video 37m) a complete feature built using good context engineering with Claude Code and the PRP framework.
  3. Learn about the basic PRP workflow: /prp-base-create -> /prp-base-execute and its related principles

Why do A.I. Agents fail (in general)?

Quick Poll: AI Coding Tools Experience

  • "Who's used AI coding tools?"
  • "Who's been frustrated when AI doesn't get it?"

It’s usually because the LLM call inside the agent took the wrong action / didn’t do what we expected. LLMs fail for a few reasons:

  1. The underlying LLM is not capable enough
  2. The "right" context was not passed to the LLM
  3. Agent's System prompt might get in the way

More often than not - it’s actually the second reason that causes agents to not be reliable. (https://docs.langchain.com/oss/python/langchain/context-engineering)

What is Context Engineering

After a few years of prompt engineering being the focus of attention in applied AI, a new term has come to prominence: context engineering. Building with language models is becoming less about finding the right words and phrases for your prompts, and more about answering the broader question of “what configuration of context is most likely to generate our model’s desired behavior?"

Context refers to the set of tokens included when sampling from a large-language model (LLM).

The engineering problem at hand is optimizing the utility of those tokens — in other words: considering the holistic state available to the LLM at any given time and what potential behaviors that state might yield.

What does "context" include?

Context in agentic systems has two critical dimensions:

  1. Information Context: The data and knowledge available to the agent (conversation history, documentation, system instructions, project conventions)

  2. Capability Context: The tools and actions the agent can perform (file operations, code execution, web search, APIs, validation tools, etc.)

calibrating-prompt

Some Issues with Missing Context

  • Vague requirements lead to incomplete (or just wrong) implementations
  • Missing context squeezes out useful tokens (resulting in frustrating iterations to get it right and higher costs in time and money)
  • No tool access or access to wrong tools or knowledge on how to use them prevent agents from working autonomously
  • No validation gates allow defects to accumulate
  • Brittle code that breaks in production

Key Insight: Context means both information (what the agent knows) AND capabilities (what tools the agent can use).

The PRP Solution based on Context Engineering

Quick Poll: Product Requirements Documents

  • Who has experience with PRDs?
  • PRD: A Product Requirements Document (PRD) is a key document in product management that defines a product's specifications, features, and requirements.
  • It deliberately leaves out how to build it

What is a PRP?

  • PRP -> Product Requirements Prompt
  • PRP = PRD + curated codebase intelligence + agent/runbook
  • PRP = PRD + Context + Implementation + Validation
  • The minimum viable package an AI needs to ship production-ready code

Context Structure

  • Explicit implementation strategies
  • Built-in validation and quality gates
  • Everything fine-tuned for a project
  • Structured prompts with complete context
  • Production-ready code on the first pass
  • Ship robust, production-ready systems

The Analogy

Think about onboarding a new engineer:

  • You don't just say "fix the bug" and disappear
  • You give them:
    • Codebase access
    • Documentation
    • Tools
    • Team conventions
    • Context about past decisions
    • Someone to ask questions

AI agents need the same thing.

But because they are not human, we need to organize the project for them in a different way. (Paradigm shift)


Why learn Context Engineering Skills

  • It's a skill that as you become better, it gets you closer to building production-ready code in the first try
  • As you understand the principles through practice using the PRP framework, you can
    • Use other Coding Agents besides Claude Code
    • Use other Frameworks besides the PRP framework
  • You can ship quality + speed, which has been usually a tradeoff. Example of TDD for me, sometimes is the only way it works.
  • Levels up our knowledge faster, forcing us to review and understand the plans
  • It's fun

Agentic Coding Tools vs Copilots vs Models

Before we dive into the demo, let's clarify an important distinction:

Understanding Tool Architectures:

  • CLI Agents (Claude Code, Gemini CLI, Aider) - Terminal-based agents with full system access
  • IDE Agents (Cursor, Windsurf) - Editor-integrated agents with native IDE features
  • Copilots - Autocomplete and chat assistants (GitHub Copilot, Tab9)

Key Insight:

  • It's not the same to use Claude Sonnet with Cursor than with Claude Code. Why?
    • Celonis Developer Story of Cursor vs Claude Code both using Sonnet for the same feature.
      • Same prompt worked for Claude Code, not Cursor. Why?
  • It's not the same using the tools as copilots than as agents. Why?
  • All agentic tools benefit from good Context Engineering - whether you're using Claude Code, Gemini CLI, Cursor, or Windsurf

The Demo: Delete a Blueprint

We'll demonstrate the PRP workflow by implementing a feature to delete a blueprint in a production codebase. This will show you how Context Engineering principles translate into actual development work.

Basic Workflow:

  • Research → Plan → Review → Execute → Reflect
  • Learning Loop: How much did we miss? If missing much e.g. Output 60% done, review the PRP base and retry
  • prp-base-create -> prp-base-execute
  • Demo Video: https://youtu.be/CpmhipO4yR0
  • Conversations and Q&A

Deep Dive: Understanding the PRP Commands


Session 2: The 4 Strategies & PRP Workflows

The 4 Context Strategies

1. Writing Context

Storing important information outside the immediate context window, such as plans, notes (scratchpads), or memories that persist across sessions. This helps agents retain critical knowledge without overcrowding their working memory.

  • CLAUDE.md files, plans, notes
  • Persistent memory across sessions
  • Stores team conventions automatically

2. Selecting Context

Dynamically choosing the most relevant pieces from saved context or memory to bring into the working context window as needed.

  • Dynamically choose what to load
  • Search for relevant files only
  • Don't dump entire codebase

3. Compressing Context

Summarizing or pruning context content to fit within the token limits while preserving essential information. This reduces noise, cost, and latency. Techniques include recursive summarization, hierarchical summarization, or using specialized summarization models.

  • Summarize large documents
  • Distill to essentials
  • Fit more meaningful info in limited space

4. Isolating Context

Splitting up context into isolated environments or sub-agents to handle different subtasks, thus maintaining focused context windows for each agent. For example, multi-agent systems or sandboxed environments to separate heavy data like images or audio.

  • Separate agents for separate tasks
  • Research → Plan → Execute
  • Focused agents = better results

Activities

  • Create your first GEMINI.md / CLAUDE.md
  • Understanding slash commands, lets see a couple of them
  • Explain that it's agnostic workflow: of planning -> executing.
  • Showing plan mode in Claude Code (plans tend to have different structures, not as reliable)
  • Read Claude Code Best Practices

Session 3: Agentic Coding & PRP Deeper Dive

Common Workflows & SubAgents

Ovierview of Agentic Coding Common Workflows

Agentic Coding Common Workflows

Sub Agents

calibrating-prompt

PRP Framework Deep Dive

Hands-on Workshop

Get started with our Quick Start Workshop - learn the PRP Framework in under 1 hour with a real Angular + Node.js + MongoDB project.

Agentic Development Techniques

  • Code review workflows (using gemini and other tools)
  • Working on 2 branches at once
  • Advanced prompting keywords (ultrathink, etc.)
  • Detailed PRs and commit practices
  • Review workflows using 'gh cli'
  • VCS / Git operations (merge, rebase, branching)
  • MCP integrations: Jira, Context7, MCP Browser and Playwright, Figma
  • Generate changelog and documentation
  • Claude Code Planning mode vs PRP workflows

Note: The specific topics and order will be determined based on Session 1 discussions and your team's priorities.


Resources

Essential Links

Tool-Specific Documentation

Related Protocols & Standards

  • Agent Client Protocol (ACP) - A standardized communication framework enabling interoperability between code editors/IDEs and AI coding agents, similar to how Language Server Protocol standardized language servers

Demo Video

Support

  • TBD

This workshop is brought to you by Ernesto Buttó, using the PRP Framework by Rasmus Widing

About

This is a **workshop documentation repository** for teaching Context Engineering and the PRP Framework using Claude Code. It contains session materials, instructor guides, participant materials, and resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors