Part 1: Understanding Context Engineering

Part 1: Understanding Context Engineering


Chapter 1: Why Your AI Prompts Fail

For a long time, I thought AI was like a search engine on steroids. Give it a question, get an answer. Then I thought it was like a junior colleague—just give them a task. Both approaches were wrong.

In this chapter, you'll learn:

  • Why "prompt engineering" is only half the story
  • The real difference between prompts and context
  • How AI is different from both Google and colleagues
  • Why the industry is shifting to "context engineering"

1.1 The "Giving Little, Expecting Much" Trap

When I started with AI, I made a fundamental mistake that most people make: I gave large tasks, wasn't specific, provided little context, and expected a lot.

Here's what that looked like in practice:

Bad Request: "Build me an expense tracking application"

Result: AI generated 500 lines of generic code using a framework I didn't know, with features I didn't need. Completely unusable.

The problem? I was giving little and expecting much. I wanted AI to read my mind—to know that I needed something simple, that I'd be the only user, that I wanted vanilla JavaScript, that the data could live in localStorage.

Most people who tell me "AI output is unusable" are making this exact mistake. They're treating AI like a magic box that should just know what they want.

Here's the truth: AI doesn't know your project. It doesn't know your constraints. It doesn't know your priorities. It doesn't know your preferences. If you don't tell it, it can't know.

Good Request (broken down):

  1. "Create HTML table with 3 columns: amount, category, date. Users can add new rows"
  2. "Add validation—amount must be a number, category from dropdown list"
  3. "Store data in localStorage, load on page refresh"
  4. "Add basic CSS styling for clean look"
  5. "Create delete button for each row"

Result: Each step produced exactly what I asked for. Clean, understandable code I could actually use.

The same user need—simple expense tracking—but completely different results. The difference was breaking down the request and providing specific context for each part.


1.2 Prompt vs Context—The Real Difference

I divide what we call "prompts" into two parts:

Prompt = the task, question, or instruction Context = everything else that helps AI understand the task correctly

Most people focus obsessively on the "perfect prompt" and ignore context entirely. That's like giving a junior developer a task title and expecting perfect production code. You wouldn't do that to a person—so don't do it to AI.

Here's what context looks like in practice:

Prompt Only: "Write me an article about AI"

Result: Generic 2,000-word essay about AI history, current applications, and future implications. Nothing useful.

Prompt + Context: "I need a 1000-word article for LinkedIn about how Context Engineering improves AI outputs.

Target audience: technical managers Tone: direct, no pathos Style examples: [attached two previous articles] Main point: context is more important than prompts Source for technical details: [link to relevant research]"

Result: Article that sounds like me, makes the right points, and is actually publishable with minor edits.

Notice what the second request includes that the first doesn't:

  • Scope: 1000 words
  • Platform: LinkedIn
  • Target audience: technical managers
  • Tone: direct
  • Style reference: examples of my previous work
  • Main argument: clear thesis
  • Source: authoritative reference

This is context. Without it, AI is guessing. With it, AI knows exactly what success looks like.


1.3 AI as Your New Colleague

AI is like a person who knows nothing about your project, your product, or your problems—but can learn everything to extreme depth if you explain it correctly.

Think about that for a moment. AI knows nothing about your specific situation, but it can mathematically express how atoms split. The gap isn't capability. It's context.

How AI Differs from Google

When you search Google, you're looking for existing information. You scan results, click links, read pages. Google is a finding tool.

AI is different. It's a synthesis tool. It takes what you give it and creates something new. But it can only work with what you provide. If your input is vague, your output will be vague.

How AI Differs from a Colleague

A colleague has shared context with you. They know the project, the history, the politics. When you say "fix the login bug," they know which login, which codebase, which bug you probably mean.

AI has none of that. Every conversation starts from zero. You have to provide the context that a colleague would already have.

The AI Advantage

But AI has advantages colleagues don't:

  • Available 24/7—no waiting for someone to be free
  • Responds immediately—no "I'll look into it tomorrow"
  • No bad moods—consistent quality of engagement
  • No ego—never defensive about suggestions

A colleague needs time to think, study documentation, read articles to give you a similar answer. AI can do that synthesis instantly—if you provide the right context.

The trade-off: AI lacks human experience. It doesn't have the situational awareness that comes from years in an industry, from seeing patterns play out, from knowing what usually goes wrong. That irreplaceable human element is why AI amplifies you rather than replaces you.


1.4 Industry Validation

This isn't just my observation. The industry is recognizing this shift.

Andrej Karpathy, co-founder of OpenAI and former Tesla AI director, put it perfectly:

"+1 for 'context engineering' over 'prompt engineering'. People associate prompts with short task descriptions. In every industrial-strength LLM app, context engineering is the delicate art and science of filling the context window with just the right information for the next step."

Andrej Karpathy, Twitter/X, 2025

The term matters because it changes how we think about the problem. "Prompt engineering" suggests there's a magic incantation that will make AI work. "Context engineering" recognizes that what matters is providing the right information—not finding the right words.

Research supports this too. Studies show that AI performance can actually decrease as you give it more information—when that information is irrelevant or overwhelming. More isn't better. The right information is better.

That's what context engineering is about: the delicate art of giving AI just what it needs—no more, no less.


Chapter Summary

Key Takeaways:

  1. Most AI failures come from giving little and expecting much—the fix is providing proper context, not finding better prompts
  2. Prompt = task, Context = everything else—most people ignore the "everything else" and wonder why results are poor
  3. AI is a knowledgeable stranger—it knows everything but your situation; you have to fill that gap

Try This: Take your last failed AI interaction. Look at what you provided. Ask yourself: "Could a stranger who knows nothing about my situation complete this task?" If not, add the missing context and try again. Notice the difference.


Next: Now that you understand why prompts fail, let's look at exactly what good context looks like—the practical patterns that get results on the first try.

Article Details

Category
context engineering new guide draft
Published
November 28, 2025
Length
1,206 words
7,481 characters
~5 pages
Status
Draft Preview

More from context engineering new guide draft

Introduction

# Introduction Imagine meeting a random colleague on the street and telling them: *"Dark Roasted Peru, Bean Lovers, sweet taste from South America"* They probably won't understand what you want. Ma...

Read article

Chapter 2: What Good Context Looks Like

# Chapter 2: What Good Context Looks Like In the previous chapter, we saw why prompts fail without context. Now let's look at exactly what "good context" looks like—the practical patterns that get re...

Read article

Part 2: The Practice

# Part 2: The Practice --- # Chapter 3: Before You Prompt - Preparation You wouldn't hand a new colleague a sticky note saying "fix the app" and expect perfect results. Yet that's exactly how most ...

Read article