Skip to content

Commit 657612c

Browse files
GanemoCorpclaude
andcommitted
home prompt: check-then-install-or-upgrade flow + WSP_GOVERNANCE_DOC note
Step 1 of the agent prompt now probes the installed version first and branches into three cases (already current / installed but outdated / not installed) instead of always re-installing. Uses --force for upgrades, plain install otherwise. Also use `awac` as the canonical command name throughout (alias of `wsp` shipped in v1.2.0). Adds a rule about WSP_GOVERNANCE_DOC for orgs with their own governance doc (v1.2.1). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8505a64 commit 657612c

1 file changed

Lines changed: 39 additions & 20 deletions

File tree

src/content/docs/index.mdx

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,42 +52,58 @@ You are an AI coding agent. Set up an AWaC workspace in this folder.
5252
AWaC ("Agent Workspace as Code") is a Terraform-style tool: a `workspace.yml`
5353
manifest declares which versioned "stack" repos compose into this workspace's
5454
`.agents/` folder + `CLAUDE.md` + `AGENTS.md`. The CLI binary is named `wsp`
55-
(not `awac`). Site: https://awac.ganemo.com — public repo:
55+
(also installed as `awac` from v1.2.0+). Public repo:
5656
https://github.com/getGanemo/workspace-cli-oss
5757

58-
Step 1 — Install (skip if `python -m wsp --version` already works):
59-
Latest release wheel:
60-
https://github.com/getGanemo/workspace-cli-oss/releases/latest
61-
Install:
62-
gh release download --repo getGanemo/workspace-cli-oss \
63-
--pattern '*.whl' --dir /tmp/wsp
64-
pipx install /tmp/wsp/wsp-*.whl
65-
(If gh is not installed, fall back to `pip install` from the wheel URL.)
58+
Required CLI version: 1.2.0 or later.
59+
60+
Step 1 — Detect CLI state (DO NOT install or upgrade yet, just probe):
61+
awac --version 2>/dev/null || python -m wsp --version 2>/dev/null \
62+
|| echo "NOT_INSTALLED"
63+
64+
Three branches:
65+
a) Output starts with "wsp," or "awac," AND version >= 1.2.0
66+
→ already installed and current. SKIP to Step 2.
67+
b) Output starts with "wsp," or "awac," AND version < 1.2.0
68+
→ installed but outdated. Upgrade with:
69+
gh release download --repo getGanemo/workspace-cli-oss \
70+
--pattern '*.whl' --dir /tmp/wsp
71+
pipx install --force /tmp/wsp/wsp-*.whl
72+
Then continue to Step 2.
73+
c) Output is "NOT_INSTALLED" (or command failed)
74+
→ install with:
75+
gh release download --repo getGanemo/workspace-cli-oss \
76+
--pattern '*.whl' --dir /tmp/wsp
77+
pipx install /tmp/wsp/wsp-*.whl
78+
(If `gh` is not installed, fall back to plain `pip install` from
79+
the wheel URL at https://github.com/getGanemo/workspace-cli-oss/releases/latest)
80+
Then continue to Step 2.
6681

6782
Step 2 — Self-orient. Run BEFORE doing anything else:
68-
python -m wsp guide discover
69-
python -m wsp guide init
70-
python -m wsp templates --json
83+
awac guide discover
84+
awac guide init
85+
awac templates --json
7186

7287
Step 3 — Ask me, do not infer:
7388
- The workspace name (kebab-case lowercase).
7489
- Which template I want. Read out the available templates from
75-
`wsp templates --json` and show me which are "product templates"
90+
`awac templates --json` and show me which are "product templates"
7691
(the ones flagged `requires_confirmation: true` — those clone product
7792
repos and embed me in a product-specific deploy/secrets flow).
78-
- DO NOT infer the template from the folder name. Folder prefixes
93+
- DO NOT infer the template from the folder name. Folder prefixes are
7994
coincidence; templates carry semantic blast radius. If unclear, default
8095
to `blank`.
8196

8297
Step 4 — Once I confirm name + template:
83-
python -m wsp init <name> --template <T> # add --yes only if
84-
# template is product-specific
85-
# AND I confirmed in this turn
86-
python -m wsp bootstrap
98+
awac init <name> --template <T> # add --yes only if template is
99+
# product-specific AND I confirmed
100+
# in this turn
101+
cd <name>
102+
awac bootstrap
87103

88104
Step 5 — If template was product-specific, after bootstrap run:
89-
python -m wsp secrets check <product> # validates my local vault
90-
python -m wsp deploy <product> # plan-only
105+
awac secrets check <product> # validates my local vault
106+
awac deploy <product> # plan-only
91107

92108
Step 6 — Report what got created (file count, .agents/ tree summary, any
93109
missing secrets) and stop. Do not start writing product code.
@@ -99,6 +115,9 @@ Rules:
99115
mirror of the product stack. For per-workspace variation, edit
100116
`workspace.yml#deploy_overrides` or `#devvault_overrides`.
101117
- Never push or commit anything I haven't asked for.
118+
- If your org has its own governance doc, set `WSP_GOVERNANCE_DOC=<url>`
119+
before running scaffold-repo / scaffold-stack so seed READMEs reference
120+
it instead of the AWaC public default.
102121
````
103122

104123
After paste, the agent will install + self-orient + ask you the two questions (name, template) before scaffolding. If your agent skips a step or infers a template without asking, that's a bug — send us a [GitHub issue](https://github.com/getGanemo/workspace-cli-oss/issues/new) with the transcript.

0 commit comments

Comments
 (0)