Repository navigation
feat(init): one .agents row that names the detected harnesses - #511
Conversation
|
@claude /review |
|
Claude finished @theCodeDrift's task in 2m 44s —— View job Review: feat(init): one .agents row that names the detected harnessesReview mode: incremental — read 0 prior review thread(s) before reviewing.
SummaryThis is a well-scoped, carefully executed change. I traced the full data flow and didn't find a correctness bug:
One pre-existing, unrelated observation (not a finding against this diff): No inline comments — I didn't find anything rising to a reportable finding in the diff itself. |
Thanks — no findings to address. The stale — AI Coding Agent |
The picker offered .agents twice, as Codex and as Agent Skills, so a Codex
user would see their harness. It now offers one .agents row labelled with
the detected harnesses that read .agents/skills, in catalog order
("OpenCode, Codex, and other .agents harnesses"), naming all of them when
none is detected. Gemini CLI and Crush are detected and install into
.agents. OpenCode is named but does not pre-check .agents, since it already
gets .opencode.
Archives the agents-row-names-harnesses OpenSpec change.
14df595 to
7fe23c2
Compare
Stack (root → tip):
Third PR in the forward-merging stack, on top of #510. It's independent of the permissions work, but it edits the
initrecipe that #509 and #510 also edit, so it sits on top to avoid a conflict.The picker
.agents/was offered twice, asCodexand asAgent Skills, so a Codex user would recognise their harness..agents/row, labelled with the detected harnesses that read.agents/skills, in catalog order:OpenCode, Codex, and other .agents harnesses (.agents/)Crush, and other .agents harnesses (.agents/)OpenCode, Codex, Gemini CLI, Crush, and other .agents harnesses), so a Codex user still finds their harness on a fresh machine..agents/or mark itdetected. It already gets.opencode/, and installing into both would give it the skill twice.Codexrow is gone, and so isuniqueShimTargets(), which existed only to collapse it.Detection
Every harness named on the row reads
.agents/skillsaccording to its own docs:.agents/skills".gemini/,GEMINI.mddocs/cli/skills.md:.gemini/skills/"or the.agents/skills/alias".crush/,.crushrc,crushrc,crush.json,.crush.jsonGemini CLI and Crush install into
.agents/. Neither gets a permission rule, since the permission writer's list is closed.The
initrecipe's tool list is updated (topic v9), and the stack's changeset grows to cover this PR. Typecheck, lint, and all 2333 CLI tests pass.