feat(new-agent): Phase 8 optional cross-tool bridges
- Insert Phase 8 between Phase 6 (Report) and Phase 7 (setup) - Single AskUserQuestion with 3 options: all 11 / AGENTS.md only / skip - On accept: invoke ~/.claude/agents/_bridges/emit.sh with the project path from Phase 2 (optionally --only AGENTS.md) - On skip: print the exact command the user can run later - All paths idempotent (emit.sh skips existing files)
This commit is contained in:
parent
3fca2427c1
commit
6feefc6bfb
1 changed files with 46 additions and 0 deletions
|
|
@ -384,6 +384,52 @@ Edit the MANIFEST, not the .md — the no-hand-edit-agents hook will block direc
|
|||
|
||||
---
|
||||
|
||||
## Phase 8 — Project bridges (optional, click-only)
|
||||
|
||||
After reporting the new agent, offer to generate cross-tool bridge files for the project's working tree (so Cursor, Copilot, Aider, Windsurf, Junie, Continue, Gemini/Antigravity, Replit, Codex CLI, Warp, Zed all see the same Constructor-Pattern ruleset). Send this `AskUserQuestion`:
|
||||
|
||||
```json
|
||||
{
|
||||
"questions": [
|
||||
{
|
||||
"question": "Generate cross-tool bridges for this project?",
|
||||
"header": "Bridges",
|
||||
"multiSelect": false,
|
||||
"options": [
|
||||
{"label": "Yes — all 11", "description": "Cursor (legacy + MDC), Copilot, Codex, Windsurf, Junie, Continue, Aider, Replit, Antigravity/Gemini, Warp, Zed — one Constructor-Pattern ruleset across every AI coding tool"},
|
||||
{"label": "Yes — AGENTS.md only", "description": "Minimal — only the universal AGENTS.md that most modern tools read"},
|
||||
{"label": "No — skip", "description": "Agent-only install; user will generate bridges later via install.sh --with-bridges or _bridges/emit.sh"}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Resolve:
|
||||
|
||||
- **Yes — all 11** — invoke:
|
||||
```bash
|
||||
~/.claude/agents/_bridges/emit.sh "<project-path-from-Q2>"
|
||||
```
|
||||
Use the project path the user gave in Phase 2. The helper auto-derives `PROJECT_NAME` from the directory basename and `PROJECT_DESCRIPTION` from the first non-blank line of the project's `CLAUDE.md` or `README.md`.
|
||||
|
||||
- **Yes — AGENTS.md only** — invoke the same helper with the `--only` filter:
|
||||
```bash
|
||||
~/.claude/agents/_bridges/emit.sh --only AGENTS.md "<project-path-from-Q2>"
|
||||
```
|
||||
|
||||
- **No — skip** — print the exact command the user can run later and fall through to Phase 7:
|
||||
```
|
||||
To generate bridges later:
|
||||
cd <project-path> && ~/.claude/agents/_bridges/emit.sh "$PWD"
|
||||
Or at install time:
|
||||
cd <project-path> && <kit-repo>/install.sh --with-bridges
|
||||
```
|
||||
|
||||
All three options are idempotent — existing bridge files in the project are skipped, never overwritten. Report which files were created / skipped verbatim from `emit.sh` output.
|
||||
|
||||
---
|
||||
|
||||
## Phase 7 — Suggested next steps (print, do NOT execute without ask)
|
||||
|
||||
Offer as a final block the user can copy-paste:
|
||||
|
|
|
|||
Loading…
Reference in a new issue