Inside DeepSeek Harness

A thread you can test

Sessions & Loops

4 notes move from the word to a real choice at work — understand it first, then decide whether to use it.

READING THREADOPEN
4notes
HOW TO READStart where you are stuck, then follow the evidence and trade-offs

Each note stands alone, or becomes the next step in this thread.

Inside DeepSeek HarnessNo login

THE QUESTION THIS PAGE ANSWERS

ANSWER FIRST

What is Sessions & Loops, and which AI decisions does it change?

Starting from the byte-for-byte check in invariant.ts: why everything the model sees must be reconstructable from the log This page keeps the related concepts, common mistakes, and practical notes in one reading thread.

DECISION RULE

First decide whether you are blocked by a definition, a choice, or verification; then choose the closest of the 4 notes below.

TRY NEXT

Start with “Model-visible ⟺ logged: An Invariant That Crashes in Your Face,” then restate the conclusion using your own task.

WATCH FOR

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.

4 notes
Deep Dive

Model-visible ⟺ logged: An Invariant That Crashes in Your Face

Starting from the byte-for-byte check in invariant.ts: why everything the model sees must be reconstructable from the log

Inside DeepSeek Harness 10 min →
Interactive

followup / steer / inject: Dual-Queue Inbox

Break down enqueue, claim, and wake semantics for the next-turn and next-step queues, and contrast Claude Code’s interrupt model

Inside DeepSeek Harness 10 min →
Deep Dive

What Happens After Esc: Cancel, Crash Recovery, and Re-entry

One AbortSignal per turn; write the log even on interrupt; crash, restart, and keep going

Inside DeepSeek Harness 11 min →
Design Pattern

Goal: Provenance Is Permission

How long-term goals are stored, who may change them—auth looks at message provenance

Inside DeepSeek Harness 11 min →