ASK KNOX
beta
LESSON 368

Why Context Is the Real Product

The model is a commodity. Your CLAUDE.md, memory files, and Semantic Memory Layer are the competitive moat — context is what you ship, not just what you configure.

7 min read·Context Engineering & CLAUDE.md Architecture

Introduction

Every operator eventually asks the same question: "Which model should I use?" It is the wrong first question. Before you touch model selection, ask: "What context is this model getting?"

The model is a commodity. The current frontier models from Anthropic, OpenAI, and Google are all powerful enough to complete the vast majority of AI operator tasks. The difference between a mediocre AI system and a great one is almost never the model tier — it is the richness, accuracy, and relevance of the context that model receives.

This lesson establishes the four-lever frame: the mental model that separates operators who compound their advantage over time from those who keep shopping for the next model upgrade.

The Four-Lever Frame

There are exactly four levers you control as an AI operator:

  1. Context — Everything the model knows before it generates a word: CLAUDE.md files, conversation history, memory files, Semantic Memory Layer, skill definitions, @imported sub-docs, tool results.
  2. Tools — What the model can reach: MCP servers, file read/write, bash execution, browser access, the knowledge OS.
  3. Model — Which model you route to: Claude Haiku for classification, Sonnet for generation, Opus for complex reasoning.
  4. Prompt — How you word the specific task: role injection, chain-of-thought triggers, output format hints.

The approximate leverage of each lever is not what most operators expect. Context carries roughly 60% of total output quality. Tools carry about 20%. Model selection — the thing most operators obsess over — is about 12%. The exact prompt wording is the last 8%.

This does not mean prompt engineering is useless. It means that spending 80% of your optimization effort on the 8% lever is the wrong strategy.

The Demonstration: Same Task, Different Context

This comparison is not hypothetical. Knox's academy platform uses Claude Sonnet — not Opus — for most lesson Q&A tasks. The AI Tutor produces high-quality, on-brand responses because the context layer is engineered:

  • System prompt built from the lesson's specific frontmatter and content
  • Track context injected from tracks.ts
  • Academy conventions loaded from a curated system prompt template
  • User's lesson history available via Supabase for personalization

Strip that context and route the same question to Opus with a generic "you are a helpful tutor" prompt, and the Opus response will be noticeably weaker — more generic, less precisely calibrated to the academy's style and the specific lesson content.

Why Most Operators Get This Wrong

The model selection trap is attractive because it requires no ongoing work. Upgrading from Sonnet to Opus is one line-of-code change. Building a high-quality CLAUDE.md, running the /learn skill consistently, and maintaining Semantic Memory Layer requires sustained investment.

But the payoff structure is completely different. Model selection gives you a one-time quality bump that your competitors can replicate in minutes. Context engineering gives you a moat that compounds: every /learn session makes future sessions better, every lessons.md entry prevents recurrence of a known failure mode, every memory_remember call makes the knowledge OS richer.

Real Stack: What Context Means in Practice

In Knox's stack, the context layer for a Claude Code session includes:

Always-on context:

  • ~/.claude/CLAUDE.md — global rules: never commit to main, run tests first, post-PR retro mandatory
  • The project's CLAUDE.md — academy-specific: 90% coverage floor, Supabase auth only, bi-modal design
  • MCP server instructions for memory-service, mcp-bridge, and agent-gateway

Session-triggered context:

  • memory_query("context-engineering") at session start — surfaces architecture notes, prior lessons, known failure modes
  • lessons.md read — project-specific anti-patterns from prior corrections

Task-triggered context:

  • design-system/MASTER.md — read by the agent when UI work begins
  • design-intelligence.md — read by the agent when frontend design tasks fire

The total always-on context for a well-run session is under 4,000 tokens. The session operates in a 200K token window. The context engineering work happens in that 4,000-token investment — not in model selection.

Practical Application

The first thing to build in any AI system is not the model call — it is the context skeleton:

  1. Write the CLAUDE.md for the project (start with Tier 1: the 5 rules that can never be violated)
  2. Define what tools the agent needs — MCP servers, file access, bash scope
  3. Identify what persistent memory this agent needs — lessons.md, Semantic Memory Layer namespace
  4. Choose the model routing table for this agent's typical task types
  5. Write the prompt template last

This is the inverse of how most operators approach it. They write the prompt first, then wonder why the output feels generic. The prompt is the last mile, not the foundation.

Summary

  • The four-lever frame: Context (60%) → Tools (20%) → Model (12%) → Prompt (8%)
  • The model is a commodity. Your context layer is the moat.
  • Same task, weaker model, stronger context: the richer context wins every time
  • Model selection is a one-line-of-code change. Context engineering compounds over every session.
  • Build the context skeleton before you write a single prompt

What's Next

The next lesson goes deep on the context window as a budget — what reloads every turn, how the reread tax accumulates, and how to account for tokens before Claude generates a single word of output.