ml-intern
ml-intern copied to clipboard
Support gh and hf CLIs in agent sandboxes
Summary
- install GitHub CLI and Hugging Face CLI in generated sandbox images
- document when agents should use
gh/hfthrough bash in sandbox and local CLI modes - allow sandbox_create to receive a user-owned GitHub token as GH_TOKEN/GITHUB_TOKEN while continuing to inject the user's HF_TOKEN
Fixes #167.
Tests
UV_CACHE_DIR=/tmp/uv-cache uv run --extra dev pytest tests/unit/test_sandbox_cli_support.py tests/unit/test_sandbox_api_auth.py tests/unit/test_sandbox_already_active_message.py- Live cpu-basic sandbox
akseljoonas/ml-intern-cli-live-f54f2f70: verifiedghpath/version,hfpath/version,hf auth whoami,HF_TOKENpresent; deleted after test
Not tested
- Authenticated GitHub CLI operations inside a sandbox with a real user GitHub token; no user GitHub token was supplied for live testing
closed per maintainer request