Skip to content
← Back to Glossary

Session

ai-engineering claude-code agent-design

A single continuous interaction between a user and an AI coding agent, from launch to exit.

↑ Contents

Definition

A session begins when the tool is launched in a directory and ends when the user exits. Within a session, the agent maintains a context window that accumulates messages, tool calls, and results. At session start, Claude Code loads all CLAUDE.md files, tool definitions, and memory as the initial context. Sessions are stateless across restarts — closing and reopening starts fresh with no memory of the previous conversation unless external memory systems persist state.

↑ Contents

Source

↑ Contents