Skip to content

refactor: remove deprecated commands, rewrite docs for apply-first CLI#68

Merged
robbycochran merged 2 commits into
mainfrom
rc-cleanup
Jun 17, 2026
Merged

refactor: remove deprecated commands, rewrite docs for apply-first CLI#68
robbycochran merged 2 commits into
mainfrom
rc-cleanup

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

Completes the kubectl-style CLI transition. Removes the old up, create, and render commands entirely (not just hidden -- gone). Rewrites SPEC.md and README.md for the new harness apply world.

Code changes:

  • Delete cmd/up.go, cmd/create.go, cmd/render.go and their tests
  • Extract shared logic (upLocal, upLocalOpts, Version, DefaultAgentConfig) to cmd/executor.go
  • Move loadProviderProfiles, loadGatewayProfile to cmd/resolve.go
  • Delete orphaned resolveAgentConfig (replaced by resolveHarness)
  • Keep teardown and status as hidden deprecated aliases until delete/get ship

Doc changes:

  • SPEC.md: apply as primary command, full flag reference, multi-doc YAML section, deprecated aliases table, corrected env var table
  • README.md: punchy opener ("Deploy a fully sandboxed AI agent in one command"), hero code block, kill 50-line shell dumps, concise Quick Start, structured Reference section

Net: -798 lines deleted, -305 lines net reduction.

Test plan

  • go build ./... passes
  • go test ./... passes (all packages)
  • go vet ./... passes
  • Local integration: 22/22 passed
  • Local integration --ci: 14/14 passed
  • OCP integration: 10/10 passed
  • harness apply --dry-run works
  • harness apply -o yaml works
  • harness up is gone (command not found)
  • harness teardown still works (kept as alias)
  • CI workflows green

- Delete cmd/up.go, cmd/create.go, cmd/render.go (replaced by apply)
- Extract upLocal/upLocalOpts/Version/DefaultAgentConfig to cmd/executor.go
- Move loadProviderProfiles/loadGatewayProfile to cmd/resolve.go
- Delete resolveAgentConfig (replaced by resolveHarness)
- Remove up/create/render command registration from main.go
- Keep teardown/status as hidden deprecated aliases (get/delete not yet shipped)
- Rewrite SPEC.md: apply as primary command, full flag reference, multi-doc
  YAML section, deprecated aliases table, corrected env var table
- Rewrite README.md: punchy opener, hero code block, kill 50-line shell dumps,
  concise Quick Start, structured Reference section
- Net: -798 lines deleted, -305 lines net reduction
@robbycochran robbycochran merged commit ffead2f into main Jun 17, 2026
5 checks passed
@robbycochran robbycochran deleted the rc-cleanup branch June 17, 2026 23:22
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