Skip to content

docs: update all documentation for current CLI state#62

Merged
robbycochran merged 12 commits into
mainfrom
rc-simplify-md
Jun 12, 2026
Merged

docs: update all documentation for current CLI state#62
robbycochran merged 12 commits into
mainfrom
rc-simplify-md

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

Comprehensive documentation audit (22-agent workflow) and update across all core MD files to reflect PRs #58-#61.

Key addition: "What harness up replaces"

New README section showing the single harness up command vs the 8+ raw openshell commands it replaces for a 4-provider agent (github, vertex-local, atlassian, gws).

Updates across files

  • README.md: Remove deleted commands (preflight, providers), update config files table, add OpenCode support, add v0.0.59 prerequisite, add "What harness up replaces" section
  • SPEC.md: Remove deleted commands/configs, update payload (no env.sh/sandbox.env), document registration flows, add --provider-refresh
  • AGENTS.md: Update sandbox image workaround (opencode-ai), fix test target (bats removed)
  • sandbox/CLAUDE.md: Add opencode, generalize inference description
  • demo/DEMO-SCRIPT.md: Fix entrypoint, replace providers.toml with profiles, gateway.toml to gateway.yaml

Test plan

  • make test — unit tests pass
  • make test-local — 22/22 pass

🤖 Generated with Claude Code

Audit and update all core documentation to reflect PRs #58-#61:

README.md:
- Add 'What harness up replaces' section showing the single command
  vs 8+ raw openshell commands for a 4-provider agent
- Remove deleted commands (preflight, providers)
- Update config files table (gateway.yaml, remove providers.toml/openshell.toml)
- Add OpenCode support, --provider-refresh flag, --env injection
- Add v0.0.59 prerequisite

SPEC.md:
- Remove deleted commands and config files
- Update payload section (no more env.sh/sandbox.env)
- Document three registration flows (standard, ADC, custom)
- Add --provider-refresh, task -p application, empty env host lookup

AGENTS.md:
- Update sandbox image workaround (adds opencode-ai)
- Fix test target description (bats removed)

sandbox/CLAUDE.md:
- Add opencode as available agent
- Remove stale kubectl/deploy-kubeconfig reference
- Generalize inference description

demo/DEMO-SCRIPT.md:
- Fix entrypoint (claude not claude --bare -p)
- Replace providers.toml with profiles directory
- Replace gateway.toml with gateway.yaml
- Remove harness providers step
The demo/ directory and agents/demo.yaml were not actively used.
Updated README task agent example to use a generic name.
registerProviders() now takes the agent's provider name list instead of
a gateway config. Only providers listed in the agent YAML are registered
— no more hardcoded list of all four providers.

The agent YAML is the single source of truth for which providers a
sandbox needs. If a provider isn't in the YAML, it's not registered.
The 'What harness up replaces' section now flows: the harness command,
the agent YAML it reads, then the openshell commands it replaces.
Removed the duplicate Agent Configs section.
The agent YAML can now specify its deployment target via gateway: field.
harness up reads it to determine local vs remote — no --local/--remote
flag needed when the agent config declares it.

- gateway: local (default) — Podman on your machine
- gateway: ocp — OpenShift cluster
- gateway: kind — local kind cluster
- --local/--remote flags override the agent config

Added agents/ocp.yaml as a concrete example.
Show the additional Helm deploy + sandbox create commands that
harness up runs when gateway: ocp is set.
The correct OCP sequence is: namespace + CRD + SCCs + Helm + rollout +
gateway register → then provider registration → then sandbox create.
Previously showed providers before deploy.
…-env

Provider config values (JIRA_URL, JIRA_USERNAME, etc.) now flow through
the provider system via --config on 'openshell provider create' instead
of being merged into --env on sandbox create.

- BuildEnvMap() returns only the agent's env: section (sandbox-level vars)
- ProviderRef.ConfigList() returns config as KEY=VALUE pairs for --config
- registerProviders() takes []agent.ProviderRef instead of []string,
  passing each provider's config to the registration call
- Provider configs are managed by the gateway, not manually injected
Provider non-secret vars (JIRA_URL, JIRA_USERNAME) are sandbox env vars,
not gateway-managed config. Rename the field from 'config' to 'env' to
make this clear.

Both top-level env: and providers[].env: merge into BuildEnvMap() and
are injected via --env on sandbox create. Provider env overrides
top-level env on collision. The gateway only manages secrets
(credentials) — non-secret vars go directly to the container.
…pdate README commands

- Add status.Cmd() call for 'gws auth export --unmasked' so it shows
  with --show-commands
- Add gws provider to builtin.yaml (was missing vs default.yaml)
- Update README 'What harness up replaces' with actual captured output
  from --show-commands (includes gws export, inference set order, env
  var alphabetical order)
- Add --debug flag to test-flow.sh (passes --show-commands, shows output)
Provider registration now returns errors instead of silently skipping.
If you declare a provider in your agent YAML, you need it — missing
credentials are a configuration error, not a graceful degradation.

builtin.yaml slimmed to vertex-local only (inference). Users who need
github/atlassian/gws create agents/default.yaml with the full list.
@robbycochran robbycochran merged commit 6def170 into main Jun 12, 2026
5 checks passed
@robbycochran robbycochran deleted the rc-simplify-md branch June 13, 2026 14:03
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