This demo shows a realistic first-time developer workflow using Shadow Threads through the public Python SDK.
The story is:
- AI changes code.
- Tests fail.
- Shadow Threads records revision lineage.
- The failing execution boundary is recorded.
- That execution boundary is replayed.
- Replay is verified deterministically.
The demo is intentionally blackbox:
- it uses the real Shadow Threads backend
- it talks to Shadow Threads through
ShadowClient - it does not import server source modules
- it does not access Postgres or Redis directly
Before recording, make sure:
- Python is available on
PATH - the
shadowthreadsPython SDK is installed and importable - this repository is opened at
C:\dev\shadowthreads-demo-coding-workflow - the real Shadow Threads backend is already running
The demo runner does not start the backend for you.
Start the real Shadow Threads backend separately, using the normal backend startup flow for your Shadow Threads installation.
Default local URL:
http://localhost:3001
If your backend is running elsewhere, set:
$env:SHADOW_SERVER = "http://your-server:3001"From the repository root:
powershell .\demo-record.ps1The script will:
- check backend reachability through the Python SDK
- reset local demo state
- run the demo workflow
If the backend is unavailable, the script fails immediately with a clean message.
Use a terminal size that keeps the full revision tree visible without wrapping.
Recommended:
- width: 120 to 140 columns
- height: 32 to 40 rows
Recommended:
- font: Cascadia Mono, Consolas, or another clear monospace font
- font size: 18 pt to 20 pt
If the branch tree characters render poorly, switch to a font with strong Unicode box-drawing support.
-
Open PowerShell in
C:\dev\shadowthreads-demo-coding-workflow. -
Confirm the terminal window is sized correctly.
-
Start screen recording.
-
Run:
powershell .\demo-record.ps1 -
Let the script complete without typing anything else.
-
Pause briefly on these moments during editing:
Test failedRevision historyExecution recordedReplay verified: true
-
End the clip on the final terminal state.
Suggested subtitles, in order:
AI changed the code. The tests now fail.Shadow Threads records workflow state as deterministic revisions.The failing execution boundary is recorded and inspectable.Replay verifies the recorded execution deterministically.
Final subtitle:
Shadow Threads - deterministic replay for AI workflows
Freeze on the final terminal output showing:
Execution recorded: ...Replaying execution boundaryReplay verified: true
Hold the frame for 2 to 3 seconds with the final subtitle:
Shadow Threads - deterministic replay for AI workflows
Symptom:
Shadow Threads server not reachable at http://localhost:3001
Fix:
- start the real backend first
- verify
SHADOW_SERVERpoints to the correct backend URL
Symptom:
Shadow Threads Python SDK not importable.
Fix:
- install the SDK in your current Python environment
- confirm
python -c "import shadowthreads"works
Symptom:
- tests pass unexpectedly
- revision history is incomplete
Fix:
- rerun
powershell .\demo-record.ps1 - the script resets the local parser source before each run
- if the problem persists, confirm the repository contents were not manually edited
Symptom:
- revision history tree lines look garbled
Fix:
- use Windows Terminal or another UTF-8 capable terminal
- switch to Cascadia Mono or Consolas
- keep the terminal encoding in UTF-8
Fix:
- close other terminals or background tasks
- avoid resizing the terminal after recording starts
- do not scroll during the run