Building Apps with AILesson 3 of 87

Module 1 · The machine, and what the model can see of it

The context window is the whole memory

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 3 of 9 in this chapter

This chapter’s goalChoose between an inline completion tool, an editor agent and a prompt-to-app platform for a given job, name the four parts of a running web app and which of them the model can observe, and get a project running on your own machine or a free hosted one without asking anybody for help.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
What wants to fit in one turnA 120-file Next.jsproject, 20,000 lines250Coding model’s contextwindow200Three hours ofconversation, errors andterminal output40Your rules file1thousand tokensThe project alone does not fit, so no tool sends it. Fragments are chosen for you, and the file thatholds your rule may not be among them.
The project alone does not fit, so no tool sends it. Fragments are chosen for you, and the file that holds your rule may not be among them.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Your project is not inside the model

People assume that once they have worked with a tool for a week, it knows their app. It does not. A language model has no memory between requests. Everything it appears to know about your project was placed into a single block of text, right before it answered, and thrown away afterwards.

That block is the context window, and it holds a fixed number of tokens: roughly three-quarters of a word each, so 100,000 tokens is around 75,000 words. Current coding models sit somewhere between 128,000 and 1,000,000 tokens depending on which one you are paying for.

That sounds enormous until you weigh a codebase. A modest Next.js project with 120 files is easily 20,000 lines, which is 250,000 tokens or more, before the conversation, the error messages, the terminal output and the documentation. No tool sends all of it. They send fragments.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Building with AI exam.

Stuck on something?Ask Beatriz, your AI tutor

How to cite: Addaly (2026) ‘The context window is the whole memory’, in Building Apps with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-apps-with-ai/the-context-window-is-the-memory (Accessed: 29 November 2026).