Add embodichain-new-task CLI for task environment scaffolding#279
Draft
yuecideng wants to merge 1 commit into
Draft
Add embodichain-new-task CLI for task environment scaffolding#279yuecideng wants to merge 1 commit into
yuecideng wants to merge 1 commit into
Conversation
Introduce a Jinja2-based scaffold that generates in-repo and extension task environments (demo, RL, config-only), with console entry point, package templates, and unit tests. Document the CLI in add-task-env skill. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the
embodichain-new-taskconsole command andembodichain.toolkits.scaffoldpackage to generate EmbodiChain task environments from Jinja2 templates.The CLI supports:
embodichain/lab/gym/envs/tasks/...) or external extension projectsEmbodiedEnv), RL (RLEnv), and config-only env classespyproject.toml/ README /run_env.pytasks/__init__.pyfor in-repo tasks and can runblackon generated filesskills/add-task-env/SKILL.mddocuments the preferred CLI workflow before manual scaffolding.Dependencies:
jinja2>=3.1.0(added topyproject.toml).Type of change
Screenshots
N/A
Checklist
black .command to format the code base.Test plan
pip install -e .and verifyembodichain-new-task --helpembodichain-new-task --target inrepo --workflow demo --category special --name scaffold_smoke --gym-id ScaffoldSmoke-v0 --dry-runpytest tests/toolkits/scaffold/test_scaffold.py🤖 Generated with Claude Code
Made with Cursor