Skip to content

feat: harness CLI with bin/ structure, profiles, unified sandbox creation#9

Merged
robbycochran merged 2 commits into
mainfrom
rc-next
Jun 4, 2026
Merged

feat: harness CLI with bin/ structure, profiles, unified sandbox creation#9
robbycochran merged 2 commits into
mainfrom
rc-next

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

Single entry point for all harness operations. bin/harness new --local replaces the 3-4 script chain.

New CLI

bin/harness new [--local|--remote] [--profile NAME] [SANDBOX_NAME]
bin/harness connect [SANDBOX_NAME]
bin/harness deploy [--local|--remote]
bin/harness teardown [--sandboxes] [--providers] [--k8s]
bin/harness preflight
bin/harness providers
bin/harness test [podman|ocp|all] [--full]

Changes

  • bin/harness: Entry point routing to subcommands
  • bin/scripts/new.sh: Unified sandbox creation (merges sandbox-podman.sh + sandbox-ocp.sh). Smart flow: deploys gateway + registers providers if needed before creating sandbox.
  • bin/scripts/deploy.sh: Merged deploy-podman.sh + deploy-ocp.sh with --local/--remote
  • profiles/: Renamed from agents/. Parsed by lib/profile.sh (renamed from lib/agent.sh)
  • bin/scripts/lib/: Moved from root lib/
  • test/test-flow.sh: Moved from root

Deleted (9 scripts replaced by bin/scripts/)

deploy-podman.sh, deploy-ocp.sh, deploy-local.sh, sandbox-podman.sh, sandbox-ocp.sh, setup-providers.sh, setup-creds.sh, openshell-harness-preflight.sh, teardown.sh

Test results

bats:   29/29
podman: 13/13 (91s)
ocp:    13/14 (174s) — 1 provider registration flake

🤖 Generated with Claude Code

robbycochran and others added 2 commits June 3, 2026 23:11
- bin/harness: entry point routing to subcommands (new, connect,
  deploy, teardown, preflight, providers, test)
- bin/scripts/new.sh: unified sandbox creation for local + remote,
  merges sandbox-podman.sh and sandbox-ocp.sh
- bin/scripts/deploy.sh: merged deploy-podman.sh and deploy-ocp.sh
  with --local/--remote flags
- profiles/: renamed from agents/, parse via lib/profile.sh
- lib/ moved to bin/scripts/lib/
- test-flow.sh moved to test/
- Deleted: deploy-podman.sh, deploy-ocp.sh, sandbox-podman.sh,
  sandbox-ocp.sh, deploy-local.sh

Tested: bats 29/29, podman 13/13, ocp 13/14 (provider flake)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@robbycochran robbycochran merged commit 25d8bfd into main Jun 4, 2026
@robbycochran robbycochran deleted the rc-next branch June 13, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant