LearnThatStack Ace your next interview
AI-Assisted Development
Context Engineering.
Change topic Change
Practice · Questions

All questions

Showing of 50
Beginner 12
01

What is context engineering, and how does it differ from prompt engineering?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

What are instruction files such as CLAUDE.md or AGENTS.md, and what problem do they solve?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What kinds of information belong in a project instruction file, and what should stay out?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

What is a context window, and why does it matter when working with AI coding tools?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

In a typical coding agent session, what actually consumes context tokens?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

Why is it important to keep rules files lean?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

What does it mean for a repository to be AI-legible?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

How does a good README help an AI coding assistant?

Part of Pro
09

What is AGENTS.md, and how does it relate to tool-specific files like CLAUDE.md?

Part of Pro
10

When should you start a fresh session instead of continuing a long conversation with a coding agent?

Part of Pro
11

What is the Model Context Protocol (MCP), and why is it relevant to development workflows?

Part of Pro
12

Why must secrets never appear in instruction files or other agent context, and what belongs there instead?

Part of Pro
Intermediate 18
13

How do instruction files layer across global, project, and directory scope, and what belongs at each level?

Part of Pro
14

How does Cursor's rules system work, and how does it differ from the legacy .cursorrules file?

Part of Pro
15

How do you customize GitHub Copilot's behavior for a specific repository?

Part of Pro
16

What is context compaction, and what are its tradeoffs?

Part of Pro
17

How do subagents help with context management?

Part of Pro
18

What is a repo map, and how does a tool like Aider use one?

Part of Pro
19

Compare grep-based exploration with semantic code search for coding agents.

Part of Pro
20

What is llms.txt, and how does it help agents consume documentation?

Part of Pro
21

What are practical ways to give a coding agent access to up-to-date library documentation?

Part of Pro
22

What kinds of MCP servers are most useful in day-to-day development?

Part of Pro
23

What are custom commands and skills, and when should you create one?

Part of Pro
24

Explain the "show, don't tell" prompt pattern for code tasks.

Part of Pro
25

How do typed interfaces make a codebase easier for agents to work with?

Part of Pro
26

How do module size and naming conventions affect agent effectiveness?

Part of Pro
27

What is context poisoning, and how does it show up in practice?

Part of Pro
28

How do instruction files go stale, and how do you keep them trustworthy?

Part of Pro
29

How should a team manage shared context files in version control?

Part of Pro
30

How do you decide whether guidance belongs in a rules file, project docs, or the prompt?

Part of Pro
Expert 20
31

How would you evaluate whether a change to your instruction files actually improves agent output?

Part of Pro
32

What context strategies work best in a large monorepo?

Part of Pro
33

How do you audit and budget token consumption in an agent session?

Part of Pro
34

Context windows keep growing, so why does context management still matter?

Part of Pro
35

How does MCP tool design affect agent performance, and how do you prevent tool definitions from bloating context?

Part of Pro
36

How does prompt caching interact with how you arrange context?

Part of Pro
37

Instruction layers can conflict. How do you design precedence and hygiene so they do not fight?

Part of Pro
38

What are the tradeoffs of maintaining a semantic index of your codebase?

Part of Pro
39

Design a retrieval approach for an agent dropped into a large unfamiliar repository.

Part of Pro
40

What is progressive disclosure in agent context design, and how do skills implement it?

Part of Pro
41

What does thorough secrets hygiene look like in an agentic workflow, beyond keeping keys out of rules files?

Part of Pro
42

How can a test suite serve as documentation for agents, and what makes tests good context?

Part of Pro
43

What are common compaction failure modes, and how do you engineer around them?

Part of Pro
44

Your team uses several AI tools with different instruction file formats. How do you avoid duplicated, drifting rules?

Part of Pro
45

Design a context governance model for a multi-team monorepo adopting coding agents at scale.

Part of Pro
46

How would you build an evaluation harness to measure whether context changes help your agents?

Part of Pro
47

How are instruction files, retrieved content, and MCP servers an attack surface, and what mitigations exist?

Part of Pro
48

How do you architect context handoffs in a multi-agent system?

Part of Pro
49

How do you keep a long-horizon agent task coherent across multiple sessions and compactions?

Part of Pro
50

An organization wants to invest seriously in context engineering. How do you prioritize efforts and measure return?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Context Engineering? Send them this set.
Pro · $10/mo

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.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git