Ty Dunn's Context Engineering for AI Coding

Table of content
Ty Dunn's Context Engineering for AI Coding

Ty Dunn is the co-founder and CEO of Continue, the leading open-source AI code assistant with 23,000+ GitHub stars and 11,000+ Discord community members. His mission: amplify developers, not automate them. He coined “context engineering” as the discipline that separates productive AI coding from frustrating prompting.

Twitter | GitHub | Blog | LinkedIn

Background

Context Engineering

Dunn identifies a core problem: AI coding assistants fail because of bad context, not bad models.

From his Context Engineering blog post:

“Bad context is worse than no context.”

When irrelevant or outdated information reaches the model, you get context poisoning. The AI becomes overconfident in incorrect information and propagates errors through your codebase.

ProblemCause
Context crisisKnowledge lives in Zoom calls and hallway conversations
Scattered docsConfluence, Jira, Slack, email have no unified access
Wrong structureDocumentation optimized for human reading, not AI consumption
Silent degradationInformation rots without visible breakage like code

The Three Data Gaps

Dunn argues that source code repositories miss critical information for AI assistance:

  1. Process data - The step-by-step flow developers take to complete tasks
  2. Context data - What information informed each decision point
  3. Reasoning data - Natural language explaining the “why”

His solution: collect data from developer-LLM interactions. When developers accept or reject suggestions, edit completions, or iterate on prompts, they generate implicit feedback signals.

Continue’s Approach

Continue installs as a VS Code or JetBrains extension, connecting to any LLM provider:

{
  "models": [
    {
      "title": "Claude 3.5 Sonnet",
      "provider": "anthropic",
      "model": "claude-3-5-sonnet-20241022"
    }
  ],
  "rules": [
    {
      "slug": "typescript-conventions",
      "rule": "Use strict TypeScript. Prefer interfaces over types."
    }
  ]
}

Key differentiators:

Rules Files

Continue supports .continue/rules/ directories for project-specific context. From Dunn’s async context engineering article:

# verify-changes.md
When modifying .js or .ts files, always verify:
1. Import paths resolve correctly
2. Type definitions match usage
3. Tests pass after changes

These rules trigger automatically based on file type, catching errors like hallucinated import paths before commits.

Task Decomposition

Dunn describes a progression from supervised to autonomous AI assistance:

StageTrust LevelExample
SupervisedLowAccept/reject each suggestion
AssistedMediumAI drafts, human reviews
AutonomousHighAI works independently, human verifies

The pattern that emerges: repetitive tasks become obvious candidates for automation. Trust builds gradually through repetition.

Async Context Engineering

For developers working in fragmented sessions (Dunn mentions parenting as a common interrupt source), the workflow becomes:

  1. Set context once - Load architecture docs, rules, examples
  2. Let AI work - 15-minute autonomous bursts
  3. Verify on return - Automated quality gates catch errors

The rules act as persistent guardrails that don’t require re-prompting each session.

Key Takeaways

PrincipleImplementation
Engineer context, don’t promptEncode standards as rules, not ad-hoc instructions
Bad context poisons resultsFilter irrelevant information aggressively
Collect development dataTrack LLM interactions to measure effectiveness
Build sustainable processesTreat context engineering as ongoing, not one-time
Trust builds through repetitionStart supervised, move to autonomous

Next: Jesse Vincent’s Superpowers Framework

Topics: ai-coding open-source context-engineering developer-tools