Record the Sesh demos
Interactive Express workflow
The primary recording uses the actual Claude Code and Codex TUIs in a fresh local project. Install Node 24 and Express, build the Sesh CLI from this PR, and authenticate both agents beforehand. The run consumes normal account usage.
Create a disposable project with npm init -y and npm install express. Set "type": "module" and "test": "node --test" in its package.json. Start an isolated terminal from that directory:
env -u NO_COLOR TERM=xterm-256color COLORTERM=truecolor \
tmux -L sesh-color-demo new-session -s demoIn a second terminal at the Clanker repository root, start VHS:
mkdir -p artifacts/sesh-express-demo
env -u NO_COLOR vhs scripts/sesh-express-demo.tapeThe tape captures the named tmux terminal for six minutes. It does not type the workflow or fabricate responses. Operate that terminal during recording:
- Run
claude. Ask it to build an Express notes API inapp.jsandserver.js, bind only to127.0.0.1, and test withnode:teston ephemeral ports. Ask forGET /healthandPOST /notes, then run the tests. - In that same prompt, defer this rule without writing it into files: whitespace-only titles must return
422and{"error":"title_required"}. - Wait until Claude finishes, confirm the rule was deferred, then use
/exit. - Run
sesh to codex. Inspect the fidelity report, then run the printedcodex resume <session-id>command. Choose an account-supported model if needed. Do not usecodex exec: this is a TUI demo. - Ask Codex to implement the deferred rule and add a regression test without repeating the rule. Approve the specific loopback test command if needed.
- Verify the API and all tests. Inspect the video for both TUIs, Sesh's report, Codex's recalled requirement and the final test outcome.
The published take uses full terminal colors: unset NO_COLOR both when starting tmux and VHS, and set TERM=xterm-256color and COLORTERM=truecolor. Changing the palette afterwards cannot restore colors absent from a raw recording.
After recording, inspect the raw take and choose readable time ranges before editing. scripts/sesh-express-edit.ffmpeg describes the exact cuts and speed changes for the checked-in take; different live timings require adjusting it. The resulting video is about 70 seconds, with each speed displayed in a banner.
ffmpeg -i artifacts/sesh-express-demo/color-raw.mp4 \
-filter_complex_script scripts/sesh-express-edit.ffmpeg -map '[out]' \
-c:v libx264 -preset fast -crf 21 -movflags +faststart \
artifacts/sesh-express-demo/color-short.mp4The actual sandbox permission request and successful three-test result stay in the edit. No fake responses or separately rerun test output are spliced in. The older sesh-express-verification.tape belongs to the superseded first take.
Verify both directions independently: resume a Claude-origin import in Codex and a Codex-origin import in Claude. Check original user and assistant messages, not just whether a follow-up model call remembers them. In Codex, foreign tool activity appears as labeled transcript entries rather than native execution cards.
Do not publish a failed or truncated take as a passing workflow. Project files stay local throughout; only the conversation transfers. Fresh demo projects and original sessions remain available for inspection.
Programmatic SDK and CLI smoke test
Run from the repository after building sesh:
pnpm --filter @techsavvyash/sesh build
node scripts/demo-sesh.ts --live --codex-model gpt-5.6-sol --out artifacts/sesh-demoWithout --live, the runner prints its plan. The live run uses your authenticated Codex and Claude Code subscriptions. Allow several minutes and ensure both CLIs can reach their services.
Demo script
- “Here is a fresh coding session in Codex. We give it a generated project codename and decide on seven retries.” Codex runs
pwdand acknowledges those facts in a fresh temporary project. - “Now we move that conversation with the sesh CLI.” The runner executes
sesh to claude <source> --jsonusing the locally built CLI. - “Claude resumes the conversation and recalls those decisions without receiving them again.” Its resume prompt contains neither the codename nor the retry number. Claude tools are disabled.
- “We make one new decision in Claude.” Give it a second generated fact: the release marker.
- “Our own harness can do the same thing through the SDK.” Show the real
prepareHandoffandwriteHandoffcalls that carry the completed Claude session back to Codex. - “Codex remembers the original decisions and Claude’s new decision.” The runner checks all three facts in the actual response. A failed check stops the demo and is recorded as a failure.
Recording
Open artifacts/sesh-demo/index.html for self-contained playback. It includes actual executed commands, verified model response excerpts, transfer reports, timestamps, playback controls, and a speed selector. demo.cast is asciicast v2 and retains real elapsed time. This is a terminal transcript recording, not a full-screen capture or a video with narration.
To record the actual live run as a terminal video, install VHS, ttyd, and ffmpeg, then run from the repository root with Node 24+ first on your PATH:
mkdir -p artifacts/sesh-demo
vhs validate scripts/sesh-demo.tape
vhs scripts/sesh-demo.tapeThe tape executes the runner live and writes artifacts/sesh-demo/demo.mp4 at 1440×960. It records actual terminal execution, including the model wait times; it does not replay an earlier transcript. The bash prompt is clean, shell startup files are disabled, and the inherited PATH supplies Node and both authenticated harnesses. The tape captures 75 seconds after starting the runner. Increase that duration if the services are slower; verify the final PASS screen is present. The selected Codex model is explicit in the visible command; change it if your account requires a different supported model.
VHS can successfully encode a video of a failed demo. Always inspect artifacts/sesh-demo/result.json and require success: true before sharing it as a successful demo. The runner records failed commands and continuity checks as failures. Another VHS invocation makes a fresh model run and replaces the recording at the same output paths, so move a take you want to keep before rerunning.
The recording intentionally summarizes successful harness output instead of including service metadata or debug logs. Raw command stdout/stderr are retained with owner-only permissions in the temporary run directory; result.json names that directory and records command status and timing. The fresh demo conversations remain in the native harness stores so they can be inspected and resumed. No existing personal conversation is selected for conversion.
If a run fails, inspect its raw command result before retrying. Every new invocation generates a separate project and new facts. A successful run proves continuity for this demo and these installed harness versions; reasoning blocks and other unsupported content remain subject to the transfer report.