Terminal commands make context visible and intentional. Knowing what the agent can see helps you understand its results and decide when to start fresh.
In this lesson, you will:
- inspect the context window with
/context. - see how much of the window each part consumes.
- reset a drifting conversation with
/clear.
Inspect the context
- Run
/contextto inspect files, instructions, and conversation history. - Check how much of the window each part is consuming.
- Run
/clearto start fresh when the conversation has drifted. - Add the right file back before you ask for another change.
/context shows exactly what is filling the context window and how much room is left. When you are running low, use /compact to summarize the conversation, or start a fresh session.
Summary and next steps
You can now see and manage what the agent knows. Continue to Lesson 7: Resume and go remote.