Env Setup
References
Read these first:
../../../.agents/references/deps-update-rule.md../../../.agents/references/language-policy.md../../../.agents/references/documentation-style.md./references/environment-refresh.md../../../CLAUDE.mdif it exists../init-project/references/claude-maintenance.md
When To Use
Interpret natural-language requests as one of:
createrefresh
Required Work
`create`
- Gather environment name and dependency source.
- Create the environment when explicitly requested.
- Install dependencies.
- Check wandb installation and login if relevant.
- Run the refresh logic afterward.
`refresh`
- Detect Python, PyTorch, CUDA, GPU, relevant dependencies, conda env name, and wandb status.
- Use the shell commands listed in
./references/environment-refresh.mdfor the first-pass machine summary. - Update the runtime environment facts in the
## Environmentsection ofCLAUDE.md. - Preserve
### Dataset Pathsinside that section unless dataset addresses are intentionally being refreshed from project state. - Preserve the rest of
CLAUDE.mdexactly. - Follow
../init-project/references/claude-maintenance.mdfor section-safe final writes. - Report a Gate ledger when dependency files, setup commands, or the
CLAUDE.mdenvironment section change. Ifpy_compileorruffchecks are not relevant or cannot run, mark themNOT_RUNwith the reason.
Codex Adaptation
- Treat natural-language requests as the canonical
$env-setup {create|refresh}interface. - If the canonical prompt wants
AskUserQuestion, ask the user directly only for missing setup choices. - Preserve the rule that refresh mode updates runtime environment facts while keeping dataset addresses intact unless the workflow explicitly refreshes them.
- Use
../../../.agents/references/language-policy.mdfor reply language while keeping commands, package names, keys, and paths in English.
Execution Rule
Follow the local prompt for environment detection and CLAUDE.md synchronization.