Add SDK example environments - #591
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ecc9b3cbb4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 42b34ffa76
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 42b34ff. Configure here.

Summary
hud initcopy a selected bundled example without remote downloadsenvironments/from distributionsValidation
uv run pytest hud/cli/tests/test_init.py -q— 13 passeduv run pytest tests -qinenvironments/coding— 15 passeduv run pytest tests -qinenvironments/cua— 5 passeduv run ruff check hud/cli environmentsuv run ruff format --check hud/cli environmentsNote
Medium Risk
Grading and git-vault logic are security-sensitive for eval integrity, and CI now depends on Docker and template matrix stability; init behavior changes affect all new users.
Overview
This PR ships example environment projects in the repo (
environments/coding, withcuatracked via gitignore exceptions) and repoints onboarding from remote GitHub presets to copying those trees—hud initdefaults to coding in non-interactive runs, with--templateforblank,coding, andcua.The coding environment is the main addition: an
sshWorkspace over a repo whose real Git history is vaulted outside the agent view, grading via worktree diff capture, baseline test path restore, application of hiddentest_patch, and fail-to-pass / pass-to-pass scoring from JUnit XML (coding/repo.py,coding/grading.py). It includes SWE-bench Liteflask-4992/flask-5063rows intasks.py, aflask.bundle,Dockerfile.hud, and a broad pytest suite.CI adds a
templatesmatrix that runshud init, syncs against the checkout SDK, ruff/pytest when present, buildsDockerfile.hud, and smoke-checks the served control channel. Docs (README, quickstart, cookbooks, CLI reference, capabilities) describe the new init flow and coding grading boundary; thecookbooks/codex-codingexample is removed.Reviewed by Cursor Bugbot for commit 616d9cd. Bugbot is set up for automated code reviews on this repo. Configure here.