Skip to content

docs: refresh README demo screencast for current devbox experience#2842

Merged
mikeland73 merged 1 commit into
mainfrom
claude/sleepy-mendel-7521D
Jun 1, 2026
Merged

docs: refresh README demo screencast for current devbox experience#2842
mikeland73 merged 1 commit into
mainfrom
claude/sleepy-mendel-7521D

Conversation

@mikeland73
Copy link
Copy Markdown
Collaborator

What

The README "Demo" screencast was badly out of date — it used long-removed
syntax (devbox add python2 go_1_18) and only showed devbox shell.

This replaces it with a fresh animated terminal SVG that matches the current
devbox experience:

  1. go versioncommand not found (tool absent on the host)
  2. devbox init
  3. devbox add python@3.10 go@1.18 — modern @version syntax
  4. devbox run python --version — running a one-off command in the env
  5. devbox shell — interactive shell, with python/go now on PATH

All printed output mirrors what the CLI emits today (Info: …,
✓ Computed the Devbox environment., etc.), pulled from the current source in
internal/boxcli, internal/devbox, and internal/ux.

How

The asset was generated with svg-term
(same tool as the original) from an asciinema cast. scripts/gen_cast.py
generates the cast and documents the regenerate recipe in its docstring, so the
demo can be refreshed when CLI messages change.

Notes

  • The repo no longer contains a docs/ directory, so the asset is committed at
    docs/app/static/img/devbox_demo.svg and referenced by a relative path,
    which resolves on any branch/fork. GitHub animates CSS-based SVGs loaded as
    <img>. If you'd rather host it on the Jetify CDN like the previous demo,
    drag-drop the file into this PR and swap the URL.
  • Verified by rendering frames through headless Chromium.

https://claude.ai/code/session_013G36YikMTv7NnYe76cyxpy


Generated by Claude Code

The old demo used outdated syntax (python2, go_1_18). Replace it with a
fresh animated SVG that uses the modern python@3.10 / go@1.18 syntax,
shows the real CLI output (Info: ... / ✓ Computed the Devbox
environment.), and demonstrates both `devbox run python --version` and
`devbox shell`.

Adds scripts/gen_cast.py to regenerate the asset via svg-term.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the README’s demo screencast to reflect the current Devbox CLI workflow, and adds a small generator script to make future refreshes reproducible.

Changes:

  • Replaces the outdated README demo description and image with a new animated terminal SVG.
  • Adds scripts/gen_cast.py to generate an asciinema v2 cast used to render the SVG.
  • Commits the regenerated docs/app/static/img/devbox_demo.svg asset.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
scripts/gen_cast.py Adds a generator for a deterministic asciinema cast representing the current CLI experience.
README.md Updates the Demo section text and points the image to the new in-repo SVG asset.
docs/app/static/img/devbox_demo.svg Adds the updated animated terminal SVG used by the README demo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/gen_cast.py
Comment on lines +127 to +130
with open(sys.argv[1], "w") as f:
f.write(json.dumps(header) + "\n")
for ev in events:
f.write(json.dumps(ev) + "\n")
Comment thread scripts/gen_cast.py
prompt()
type_cmd("devbox init")
output([
"Created devbox.json in .",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine to handwave

Comment thread scripts/gen_cast.py
# 5. drop into an interactive shell
prompt()
type_cmd("devbox shell")
output([f"{DIM}Starting a devbox shell...{RESET}"])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fine --- maybe we should even set this to {DIM} in the actual devbox... it looks better

Copy link
Copy Markdown
Collaborator

@Lagoja Lagoja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, up to you if you want to address the arg feedback from Copilot

@mikeland73 mikeland73 merged commit 8816d61 into main Jun 1, 2026
26 checks passed
@mikeland73 mikeland73 deleted the claude/sleepy-mendel-7521D branch June 1, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants