Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.
中文简介正在准备中。当前显示原文说明。
Generate OpenEnv environments from a concrete use case (for example, "generate an env for the library textarena"). Use when asked to design or implement a new environment under envs/ by researching a target library/API, selecting matching OpenEnv examples, asking key implementation questions, and building models/client/server/openenv.yaml. Do not use for model training or evaluation tasks.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Build a production-ready OpenEnv environment from a use-case prompt.
When invoked, execute this workflow end-to-end.
Derive a repo path in the form envs/<name>_env/.
envs/textarena_env/.Gather the minimum interface facts needed to implement reset, step, and state serialization.
Select 2-3 existing environments as implementation templates.
references/openenv-tutorial-01-environments.md (Part 10) and references/openenv-docs-environment-builder.md.envs/textarena_env for external-library wrappers with richer state.envs/snake_env or envs/echo_env) to keep the implementation minimal..venv/, build/, site-packages/, __pycache__/).For a compact checklist and mapping, read references/env-generation-checklist.md.
Ask only the questions that materially affect architecture. Use the question bank in references/env-generation-checklist.md.
Cover at least:
If answers are unavailable, proceed with explicit assumptions and document them.
Choose one archetype before scaffolding:
EnvClient + typed Action/Observation[/State] models.MCPEnvironment + MCPToolClient and MCP action/observation types.Use the CLI to scaffold:
PYTHONPATH=src uv run openenv init <name>_env --output-dir envs
This generates all files with correct placeholders replaced, including pyproject.toml, Dockerfile, and uv.lock.
If the CLI is unavailable (import errors, missing dependencies), create the structure manually matching:
envs/<name>_env/
├── __init__.py
├── client.py
├── models.py
├── openenv.yaml
├── pyproject.toml
└── server/
├── __init__.py
├── app.py
├── <name>_environment.py
└── Dockerfile
Use assets/openenv_env_template/ as a reference for file contents when scaffolding manually.
Implement these files in order:
models.pyserver/<name>_environment.pyserver/app.pyclient.pyopenenv.yamlREADME.mdUse these standards:
create_app(<factory_or_class>, ActionType, ObservationType, env_name=...) in server/app.py. Pass a class or factory callable, not an instantiated environment.server/app.py and server/<name>_environment.py): Use try: from ..models import X / except ImportError: from models import X. Relative imports work in-repo (PYTHONPATH=src:envs); bare imports work in Docker (PYTHONPATH=/app/env). The same pattern applies to intra-server imports (e.g., from .foo import Bar vs from server.foo import Bar).client.py uses EnvClient[ActionType, ObservationType, State] (three type parameters).server/, keep client parsing in client.py.Environment:
reset(seed=None, episode_id=None, **kwargs)step(action, timeout_s=None, **kwargs)SUPPORTS_CONCURRENT_SESSIONS=True only when isolation is real. Set max_concurrent_envs in create_app accordingly (1 when False, >1 when True).server/app.py.__init__.py.openenv.yaml aligned with current scaffold format (spec_version: 1, name, type, runtime, app, port).Run the narrowest useful checks:
# Verify in-repo imports work (catches missing dual-import pattern)
PYTHONPATH=src:envs uv run python -c "from envs.<name>_env.server.<name>_environment import <ClassName>Environment"
# Build and validate
cd envs/<name>_env
openenv build
openenv validate --level static --skip-build
PYTHONPATH=src:envs uv run pytest envs/<name>_env -q
If tests do not exist, run a smoke check:
PYTHONPATH=src:envs uv run uvicorn envs.<name>_env.server.app:app --port 8000
curl http://localhost:8000/health
openenv validate --url http://localhost:8000
Report:
name/version/action/observation-only manifests).max_concurrent_envs > 1 unless the environment explicitly supports concurrent sessions.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.
中文简介正在准备中。当前显示原文说明。
Deploy an OpenEnv environment to Hugging Face Spaces. Use when asked to deploy, push to Hugging Face, or update a space.
中文简介正在准备中。当前显示原文说明。
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing repositories, models, datasets, and Spaces on the Hugging Face Hub. Replaces now deprecated `huggingface-cli` command.
中文简介正在准备中。当前显示原文说明。
Diagnose and recover failing or stuck Hugging Face Space deployments for OpenEnv environments. Use when deploying envs from `envs/` to the Hub (`openenv` namespace with version suffixes), when Spaces are in `BUILDING`/`APP_STARTING`/`RUNTIME_ERROR`, or when release collections need to be reconciled after targeted redeploys.
中文简介正在准备中。当前显示原文说明。
Make tests pass. Invoke after /write-tests produces failing tests.
中文简介正在准备中。当前显示原文说明。
OpenEnv CLI (`openenv`) for scaffolding, validating, building, and pushing OpenEnv environments.
中文简介正在准备中。当前显示原文说明。