A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
fix(install): claude-code/copilot and the .md converters collide under --path
hotragn453bc88d4789
diff --git a/scripts/install.sh b/scripts/install.shindex f8ccb7fa..d3000299 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -311,12 +311,20 @@ install_file() {# path_collision_group <tool> — tools in the same group write identical# filenames into a shared --path and would overwrite each other; empty means# the tool's output is distinct and may share a path with anything. Derived by-# installing one agent with every tool into a sandbox and comparing what-# landed; re-measure if a converter's output naming changes.+# installing agents with every tool into a sandbox and comparing what landed;+# re-measure if a converter's output naming changes.+#+# claude-code and copilot copy the source file under its own name. For most+# agents that is <division>-<slug>.md, but 73 of 279 are named <slug>.md+# already (all of game-development/, most of specialized/), and for those the+# name is exactly what gemini-cli, opencode, qwen and zcode write. Measuring+# with one engineering agent missed that, so `--tool claude-code,qwen --path X`+# reported both installs OK while qwen overwrote the Claude Code file. One+# group, because a full install collides on 73 files, not zero.path_collision_group() {case "$1" in- claude-code|copilot) printf 'raw-source-md' ;; # <division>-<slug>.md- gemini-cli|opencode|qwen|zcode) printf 'slug-md' ;; # <slug>.md+ claude-code|copilot|gemini-cli|opencode|qwen|zcode)+ printf 'agent-md' ;; # <slug>.md, or the source's nameantigravity|osaurus|dsh) printf 'agency-skill' ;; # agency-<slug>/SKILL.md*) printf '' ;;esacdiff --git a/scripts/test-install.sh b/scripts/test-install.shindex 76549af6..5424612b 100755--- a/scripts/test-install.sh+++ b/scripts/test-install.sh@@ -330,9 +330,9 @@ echo ""echo "parallel workers"# Two tools that write the same filenames into one shared --path would silently-# overwrite each other (claude-code and copilot both copy the raw source as-# <division>-<slug>.md). The installer must refuse, not clobber. Both tools work-# under --no-convert, which keeps this case cheap in CI.+# overwrite each other (claude-code and copilot both copy the raw source under+# its own name). The installer must refuse, not clobber. Both tools work under+# --no-convert, which keeps this case cheap in CI.home="$(sandbox path-collision)"dest="$home/My [Agents]/dest dir"run_install "$home" --tool claude-code,copilot --no-convert --agent "$FIRST_ENG_SLUG" --path "$dest"@@ -340,8 +340,22 @@ assert_eq 1 "$RUN_STATUS" "two tools that write the same filenames into one --paassert_eq 1 "$(printf '%s' "$RUN_OUT" | grep -c 'overwrite')" "the refusal explains the collision"assert_eq 0 "$(count_md "$dest")" "a refused install writes nothing"+# A source file's own name is not always <division>-<slug>.md: 73 agents are+# named <slug>.md, which is what the converted .md tools write. claude-code and+# qwen with one of those used to report two successful installs while qwen's+# file replaced Claude Code's. The refusal comes before any conversion, so this+# stays cheap too.+slug_named="$(for f in "$REPO_ROOT"/game-development/*.md; do+ is_agent_file "$f" && [[ "$(basename "$f" .md)" == "$(agent_slug "$f")" ]] && { agent_slug "$f"; break; }+done)"+home="$(sandbox path-collision-slug-named)"+dest="$home/dest"+run_install "$home" --tool claude-code,qwen --agent "$slug_named" --path "$dest"+assert_eq 1 "$RUN_STATUS" "claude-code and qwen share <slug>.md names, so one --path is refused ($slug_named)"+assert_eq 0 "$(count_md "$dest")" "the refused claude-code+qwen install writes nothing"+# The propagation cases below therefore use a NON-colliding pair: claude-code-# writes <division>-<slug>.md and codex writes <slug>.toml, so BOTH outputs must+# writes .md and codex writes <slug>.toml, so BOTH outputs must# survive in the shared --path — which is a stronger check than one tool's count# alone (a count of 1 cannot tell "two wrote, one clobbered" from "one wrote").# codex has no committed output (integrations/ is generated and gitignored), so