A thread you can test
Agent Core Loop
3 notes move from the word to a real choice at work — understand it first, then decide whether to use it.
Each note stands alone, or becomes the next step in this thread.
THE QUESTION THIS PAGE ANSWERS
ANSWER FIRSTWhat is Agent Core Loop, and which AI decisions does it change?
Analyzing session state ownership, message routing, background tasks, and the CancellationToken interrupt path This page keeps the related concepts, common mistakes, and practical notes in one reading thread.
First decide whether you are blocked by a definition, a choice, or verification; then choose the closest of the 3 notes below.
Start with “Session Actor: Threads, State & Cancellation,” then restate the conclusion using your own task.
Do not treat every method in a topic as interchangeable. The answer changes with the input, risk, and acceptance bar.
THIS QUESTION THREAD
Put the word back inside the choice it changes.
Session Actor: Threads, State & Cancellation
Analyzing session state ownership, message routing, background tasks, and the CancellationToken interrupt path
Compaction: 85% Threshold & Optional Two-Pass
Verifying auto-compression thresholds, memory flush, two-pass, and timeout budget from real config
PromptContext: Inspectable Rendering Input
Deconstructing serializable context, TemplateOverride, and the TemplateRenderer rendering boundary