All questions
Showing of 50What is context engineering, and how does it differ from prompt engineering?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Prompt engineering focuses on the words used in one request. Context engineering designs everything the model receives while doing a task. That can include instructions, source files, tests, documentation, tool results, conversation history, and summaries.
A strong prompt cannot fix missing or misleading context. If the model cannot see the current interface or project rule, it must guess. Context engineering makes the right information available at the right time and removes noise that could distract the model. It also covers how context is retrieved, ordered, updated, and carried between sessions. In practice, prompt writing is one part of the larger job of building a reliable information environment for the assistant.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are instruction files such as CLAUDE.md or AGENTS.md, and what problem do they solve?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Instruction files store standing guidance for coding assistants. They can describe repository layout, build and test commands, coding conventions, safety limits, and the expected definition of done. Tools load them automatically at the relevant project or directory scope.
They solve the problem of repeating stable information in every prompt. Without them, each session may guess how to run tests or which helper to use. Keep the guidance short, direct, and specific. Link to longer documentation instead of copying it all. Never put secrets in these files. Review changes like code because stale or conflicting instructions can make an agent less reliable than having no rule at all.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What kinds of information belong in a project instruction file, and what should stay out?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Include stable facts that affect many tasks. Examples include important directories, standard commands, architectural boundaries, naming rules, approved libraries, and dangerous actions that need approval. Add a concise definition of done, such as running focused tests and reporting any failures.
Leave out secrets, credentials, customer data, temporary task details, and long tutorials. Do not copy information that already has a trusted source; point to that document instead. Avoid vague advice such as “write good code,” because it gives the model no useful action. Also remove rules that tools or linters already enforce unless the assistant needs them to choose an approach. A useful instruction file is a small map and policy guide, not a complete project handbook.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a context window, and why does it matter when working with AI coding tools?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A context window is the amount of text and other tokenized information a model can consider in one request. It contains the prompt, prior conversation, instructions, source files, tool output, and the model’s own response. Every model has a limit.
When the window fills, older content may be removed or summarized, and important details can be lost. Even before the limit, too much unrelated material can make the model overlook the right fact. Give the assistant current, relevant sources instead of a repository dump. For long tasks, record decisions and progress in a compact handoff. A larger window helps with broad work, but careful context selection still improves accuracy, cost, and speed.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
In a typical coding agent session, what actually consumes context tokens?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Nearly everything the agent reads or writes consumes tokens. This includes system and project instructions, your messages, earlier replies, source files, search results, command output, error logs, documentation, diffs, tool definitions, and summaries. Repeated content can be charged and processed again unless caching applies.
Large test logs, generated files, and broad searches can consume the window quickly without adding much value. Ask for focused output, open only relevant file sections, and filter noisy command results. Keep standing rules lean because they appear in many requests. When a task changes direction, start a fresh session instead of carrying unrelated history. Token awareness is not only about cost; it protects the model’s attention for the evidence that matters.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Why is it important to keep rules files lean?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Rules files are loaded often, so every unnecessary paragraph uses context on many requests. Long files also make important guidance harder to notice. Conflicting or overly detailed rules can cause the assistant to follow the wrong instruction or spend time reconciling advice that does not apply.
Keep only stable, high-impact facts that change how work should be done. Use clear commands, short examples, and links to deeper documentation. Move subsystem guidance into scoped files when supported. Remove rules that a formatter, type checker, or test already enforces automatically. Review the file after repeated agent mistakes and after architecture changes. Lean rules reduce cost, improve attention, and are easier for people to keep accurate.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What does it mean for a repository to be AI-legible?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
An AI-legible repository makes its structure and intent easy for an assistant to discover. It has clear names, small focused modules, typed interfaces, current documentation, reliable tests, and standard commands. Important behavior is written down instead of living only in team memory.
This also helps human developers. An agent can find the owning module, inspect a nearby example, run one documented test command, and understand what success means. Hidden setup, duplicate patterns, vague names, and stale docs force it to guess. Improve legibility by making boundaries explicit, removing dead code, documenting unusual decisions, and keeping examples current. The goal is not to write for a model alone; it is to make project knowledge visible and verifiable.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
How does a good README help an AI coding assistant?
What is AGENTS.md, and how does it relate to tool-specific files like CLAUDE.md?
When should you start a fresh session instead of continuing a long conversation with a coding agent?
What is the Model Context Protocol (MCP), and why is it relevant to development workflows?
Why must secrets never appear in instruction files or other agent context, and what belongs there instead?
How do instruction files layer across global, project, and directory scope, and what belongs at each level?
How does Cursor's rules system work, and how does it differ from the legacy .cursorrules file?
How do you customize GitHub Copilot's behavior for a specific repository?
What is context compaction, and what are its tradeoffs?
How do subagents help with context management?
What is a repo map, and how does a tool like Aider use one?
Compare grep-based exploration with semantic code search for coding agents.
What is llms.txt, and how does it help agents consume documentation?
What are practical ways to give a coding agent access to up-to-date library documentation?
What kinds of MCP servers are most useful in day-to-day development?
What are custom commands and skills, and when should you create one?
Explain the "show, don't tell" prompt pattern for code tasks.
How do typed interfaces make a codebase easier for agents to work with?
How do module size and naming conventions affect agent effectiveness?
What is context poisoning, and how does it show up in practice?
How do instruction files go stale, and how do you keep them trustworthy?
How should a team manage shared context files in version control?
How do you decide whether guidance belongs in a rules file, project docs, or the prompt?
How would you evaluate whether a change to your instruction files actually improves agent output?
What context strategies work best in a large monorepo?
How do you audit and budget token consumption in an agent session?
Context windows keep growing, so why does context management still matter?
How does MCP tool design affect agent performance, and how do you prevent tool definitions from bloating context?
How does prompt caching interact with how you arrange context?
Instruction layers can conflict. How do you design precedence and hygiene so they do not fight?
What are the tradeoffs of maintaining a semantic index of your codebase?
Design a retrieval approach for an agent dropped into a large unfamiliar repository.
What is progressive disclosure in agent context design, and how do skills implement it?
What does thorough secrets hygiene look like in an agentic workflow, beyond keeping keys out of rules files?
How can a test suite serve as documentation for agents, and what makes tests good context?
What are common compaction failure modes, and how do you engineer around them?
Your team uses several AI tools with different instruction file formats. How do you avoid duplicated, drifting rules?
Design a context governance model for a multi-team monorepo adopting coding agents at scale.
How would you build an evaluation harness to measure whether context changes help your agents?
How are instruction files, retrieved content, and MCP servers an attack surface, and what mitigations exist?
How do you architect context handoffs in a multi-agent system?
How do you keep a long-horizon agent task coherent across multiple sessions and compactions?
An organization wants to invest seriously in context engineering. How do you prioritize efforts and measure return?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
Context Engineering cheatsheet
- What Context Engineering Is01
- Rules and Instruction Files02
- Making a Repo AI-Legible03
- Context Window Management04
- Retrieval and Indexing05
- Docs as Context06
- MCP Dev-Server Catalog07
- Custom Commands and Skills08
- Prompt Patterns for Code Context09
- Monorepo Strategies10
- Anti-Patterns11
- Secrets Hygiene12
- + 2 more inside
- + 8 more inside
43 of 50 Context Engineering answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.