{"id":48572109,"url":"https://github.com/shaftoe/pi-freestyle-sandbox","last_synced_at":"2026-04-14T15:01:05.658Z","repository":{"id":350002413,"uuid":"1204881629","full_name":"shaftoe/pi-freestyle-sandbox","owner":"shaftoe","description":"Pi coding agent extension for running sandboxed subagents in Freestyle cloud VMs","archived":false,"fork":false,"pushed_at":"2026-04-08T13:15:19.000Z","size":249,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-08T15:18:01.301Z","etag":null,"topics":["coding-agent","freestyle","pi","sandbox","vm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@alexanderfortin/pi-freestyle-sandbox","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaftoe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-08T12:28:29.000Z","updated_at":"2026-04-08T15:05:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shaftoe/pi-freestyle-sandbox","commit_stats":null,"previous_names":["shaftoe/pi-freestyle-sandbox"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shaftoe/pi-freestyle-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fpi-freestyle-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fpi-freestyle-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fpi-freestyle-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fpi-freestyle-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaftoe","download_url":"https://codeload.github.com/shaftoe/pi-freestyle-sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaftoe%2Fpi-freestyle-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31801629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coding-agent","freestyle","pi","sandbox","vm"],"created_at":"2026-04-08T15:00:27.271Z","updated_at":"2026-04-14T15:01:05.649Z","avatar_url":"https://github.com/shaftoe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-freestyle-sandbox\n\n[![codecov](https://codecov.io/gh/shaftoe/pi-freestyle-sandbox/graph/badge.svg?token=h3Njs6eYEi)](https://codecov.io/gh/shaftoe/pi-freestyle-sandbox)\n\nA [Pi coding agent](https://pi.dev) extension for running sandboxed subagents in [Freestyle](https://freestyle.sh/) cloud VMs.\n\n## Features\n\n- **Isolated execution**: Run coding tasks in isolated cloud VMs with no access to your local machine\n- **Git integration**: Clone repositories directly into VM workspaces\n- **Automatic cleanup**: VMs auto-destroy after task completion or idle timeout\n- **Full pi experience**: Use all Pi tools and features within the sandboxed environment\n- **Context inheritance**: Automatically injects project AGENTS.md into the subagent\n- **Cancellable**: Press ESC to abort a running subagent task\n- **GitHub CLI auth**: When `GITHUB_TOKEN` is available, `gh` CLI is automatically authenticated and configured as git credential helper for seamless private repo access\n\n\u003e [!NOTE]\n\u003e the first time the subagent runs it will take its sweet time to create the Docker-based snapshot, it's going to be reused once is ready by each subsequent tool call so it's a one-time only annoyance.\n\n## Example\n\n![screenshot](./screenshot.png)\n\n## Installation\n\nRequires a valid `FREESTYLE_API_KEY` env var. You can get one for free at \u003chttps://dash.freestyle.sh/\u003e\n\n```bash\npi install npm:@alexanderfortin/pi-freestyle-sandbox\n```\n\n## Environment Variables\n\n- `FREESTYLE_API_KEY` (required): API key for Freestyle — get one free at \u003chttps://dash.freestyle.sh/\u003e. Notice that the lack of it will prevent Pi to load the extension correctly\n- `GITHUB_TOKEN` (optional): GitHub token that enables authenticated `gh` CLI commands and git operations on private repos. Set via environment variable or prefix convention (`FREESTYLE_ENV_GITHUB_TOKEN`)\n- `FREESTYLE_ENV_*` (optional): Any env var with this prefix is forwarded to the VM (e.g., `FREESTYLE_ENV_NPM_TOKEN` becomes `NPM_TOKEN` inside)\n\n## Management Commands\n\n```\n/freestyle list      # List all active VMs\n/freestyle cleanup   # Clean up all tracked VMs\n```\n\n## Development\n\n```bash\n# Install dependencies\nbun install\n\n# Run checks\nbun run validate\n\n# Run tests\nbun run test\n\n# Build\nbun run build\n\n# Format code\nbun run format\n```\n\n## Releasing\n\nThis project uses automated publishing to NPM via GitHub Actions. The workflow will:\n- Run all CI checks\n- Build the package\n- Publish to NPM with provenance (signed) via [trusted publishing](https://docs.npmjs.com/trusted-publishers)\n\n## License\n\nSee [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaftoe%2Fpi-freestyle-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaftoe%2Fpi-freestyle-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaftoe%2Fpi-freestyle-sandbox/lists"}