Skip to content

How to Think About Agentic Programming

This guide doesn't teach you how to build AI agents.

It teaches you how to use them—to get the most out of your agentic programming tools by understanding their underlying mechanics.

It's for developers. If you want to level up from chatting with an agent and hoping for the best to precisely controlling its output quality, this is your starting point.

The Core Thesis: It's All About Context

All the complex mechanisms of agentic programming, from tool use to multi-agent collaboration, serve one purpose:

Putting the right information into the context at the right time.

REQUEST SPAN RAW MATERIALS USER PROMPT Unstructured Noise THE AGENT CONTEXT ASSEMBLER 1. FILTER 2. FORMAT 3. COMPRESS HTTP REQUEST JSON Payload (Window Limit) LLM API INFERENCE NO MEMORY OUTPUT > Tool_Call args: { ... } > Thought: "I need to..." THE RECURSIVE LOOP Output becomes Input for next turn CONTEXT SUPPLY CHAIN Everything is Context VIBE CODING → CONTEXT ENGINEERING DRAWING CONTEXT SUPPLY CHAIN SUBJECT: CONTEXT FLOW STATUS: DRAFT SHEET: 01/01 REV: B SCALE: NTS SCALE NTS
REQUEST SPAN RAW MATERIALS USER PROMPT Unstructured Noise THE AGENT CONTEXT ASSEMBLER 1. FILTER 2. FORMAT 3. COMPRESS HTTP REQUEST JSON Payload (Window Limit) LLM API INFERENCE NO MEMORY OUTPUT > Tool_Call args: { ... } > Thought: "I need to..." THE RECURSIVE LOOP Output becomes Input for next turn CONTEXT SUPPLY CHAIN Everything is Context VIBE CODING → CONTEXT ENGINEERING DRAWING CONTEXT SUPPLY CHAIN SUBJECT: CONTEXT FLOW STATUS: DRAFT SHEET: 01/01 REV: B SCALE: NTS SCALE NTS

LLMs have no memory. What you give them is what they see. Every section of this guide dissects how context flows. Every capability here—tools, protocols, orchestration—is context engineering in disguise.

The industry calls this Context Engineering—the evolution from "writing a good prompt" to "designing dynamic systems that manage an entire context supply chain." The broader discipline of building software with agent tools is emerging as Agentic Engineering—context engineering is its most essential sub-discipline, and the throughline of this guide.

Many developers start with vibe coding—tossing a few sentences at the agent and seeing if it works. Fine for simple tasks. But as complexity grows, the randomness shows: the same description works today but fails tomorrow, one project runs clean while another is riddled with bugs. The problem usually isn't the agent's capability—it's that the context you're feeding it hasn't been designed.

Going from vibe coding to context engineering isn't a technology upgrade. It's a shift in how you think—from "let's see if this works" to "design the context so it has to work." This guide is the map for that shift.

Vibe CodingContext Engineering
ApproachToss a few sentences at the agentDesign the context supply chain
Simple tasksWorks fineAlso works fine
Complex tasksRandom — works today, fails tomorrowReproducible, predictable
Core difference"Let's see if this works""Design it so it has to work"

The next chapter, Context — The First Principle, cracks this open with two rounds of HTTP requests.

Concept Map

This guide follows the flow of context in three parts: The Basics, Context Carriers, and Integration & Beyond.

The Basics

Context Carriers

  • System Instructions: The system-level prompt injected into every API request, defining the agent's identity and rules.
  • Built-in Tools: The agent's hard-coded capabilities—reading files, running commands, searching code.
  • MCP — External Capabilities: Inject external tool definitions into context so the agent gains new abilities without code changes.
  • Slash Commands: User-defined prompt templates that inject fixed context into the conversation in one keystroke.
  • Skills — Domain Knowledge: Loadable behavior patterns—dynamically injected System Instructions at runtime.
  • Agent-Native CLI Tools: Command-line tools that output structured data instead of human-readable text—the agent's natural allies.
  • Hooks & Plugins: Intercept, modify, and log at critical points in the context flow—the most fine-grained behavior extension.

Integration & Beyond

Hands-On

  • In Practice: Breaking the agent-agnostic constraint—concrete tools, copyable high-payoff operations.