spawn/gcore
A 3ef59261e7
refactor: reduce complexity in discovery.sh and gcore/lib/common.sh (#1094)
- Extract watchdog loop logic from run_team_cycle into _run_watchdog_loop helper
- Extract resource cleanup into _cleanup_stale_artifacts helper
- Extract prompt file preparation into _prepare_prompt_file helper
- Extract cycle completion handling into _handle_cycle_completion helper
- Extract claude process killing into _kill_claude_process helper (macOS bash 3.x compatible)
- In gcore/lib/common.sh: Extract resource gathering into _gather_instance_resources
- In gcore/lib/common.sh: Extract instance ID extraction into _extract_instance_id
- All refactoring maintains 100% test coverage (80/80 tests pass)

Agent: complexity-hunter

Co-authored-by: Spawn Refactor Service <refactor@spawn.service>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 05:45:35 -05:00
..
lib refactor: reduce complexity in discovery.sh and gcore/lib/common.sh (#1094) 2026-02-14 05:45:35 -05:00
aider.sh feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00
claude.sh feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00
goose.sh feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00
README.md feat: add Gcore cloud provider with 3 agent scripts (#1079) 2026-02-14 00:19:25 -08:00

Gcore

Gcore Cloud instances via REST API. Gcore

Agents

Claude Code

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/claude.sh)

Aider

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/aider.sh)

Goose

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/goose.sh)

Non-Interactive Mode

GCORE_SERVER_NAME=dev-mk1 \
GCORE_API_TOKEN=your-token \
GCORE_PROJECT_ID=12345 \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcore/claude.sh)

Environment Variables

Variable Description Default
GCORE_API_TOKEN Gcore API token (prompted)
GCORE_PROJECT_ID Gcore project ID (auto-detected)
GCORE_SERVER_NAME Instance hostname (prompted)
GCORE_REGION Gcore region ed-1
GCORE_FLAVOR Instance flavor g1-standard-1-2
OPENROUTER_API_KEY OpenRouter API key (prompted/OAuth)