mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-07-14 03:55:17 +03:00
1b31b7a670
install.sh hardcoded the division set in two lists (AGENT_DIRS, ALL_DIVISIONS), and both had gone stale — missing healthcare (#655). So `--tool claude-code`/`copilot` skipped healthcare's 2 agents, `--division healthcare` errored "Unknown division", the interactive team list omitted it, and the agent count was low by 2 (#668). Derive both lists from divisions.json (the single source of truth), using the same no-jq awk/grep/sed parse as check-divisions.sh. ALL_DIVISIONS is now exactly the divisions.json entries; AGENT_DIRS is that set plus strategy/ (preserving the intentional scan of its frontmatter-less docs, which is_agent_file filters out). This is the same fix pattern as #659 (check-agent-originality.sh) and #666 (build-hermes-plugin.py): a derived list can't drift, so check-divisions.sh needn't be extended to cover it. Verified: ALL_DIVISIONS resolves to 17 (healthcare in, strategy out), strategy still scanned, and `--division healthcare --dry-run` now finds 2 agents instead of "Unknown division". Fixes #668 Claude-Session: https://claude.ai/code/session_01WKnDRWM4izsB8WAXKszhsq Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>