Menu
Coddy logo textTech

The Context Window

Part of the Fundamentals section of Coddy's AI Prompts journey — lesson 10 of 23.

The context window is the AI's memory limit—the maximum number of tokens it can hold at once. Think of it as a fixed-size container that must fit everything: your prompt, the conversation history, the system prompt, and the AI's response.

Different models have different context window sizes. Some older models handle around 4,000 tokens. Newer models might support 100,000 tokens or more.

Once you hit the limit, the AI simply cannot process additional information.

Here's what fills up that window:

ComponentTakes Up Space?
Your current promptYes
Previous messages in the conversationYes
System promptYes
AI's responseYes

This is why long conversations can become problematic. Each back-and-forth exchange adds tokens. Eventually, the AI must "forget" earlier parts of the conversation to make room for new content.

When this happens, it loses context and may give inconsistent answers or forget instructions you gave earlier.

challenge icon

Challenge

Since everything in a conversation takes up space in the context window, efficient prompting means getting complete information in compact responses. Get the AI to give you a full weekly schedule (all 7 days) in the most token-efficient format possible. The response must be in English.

The AI's response must:

  • Contain all 7 day names: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday
  • Be 30 words or fewer in total
  • Not contain the words the, is, are, on, or for

Example format:
Monday: Gym
Tuesday: Work
...and so on for all 7 days.

bugsy Main icon

Start this challenge with Coddy's AI tutor

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals