Structured multi-perspective deliberation for hard decisions. Run full councils, focused triads, or duo debates across Claude Code, Codex, Gemini CLI, and OpenCode.
Shell agent-skillai-agentsclaude-codecodexdecision-makingdeliberationgemini-clillm-routingmulti-agent-systemsmulti-llmopen-sourceopencodeprompt-engineeringstructured-debate
fix: harden installer and update installation docs (#2)
nyke938aa09fb76
diff --git a/README.md b/README.mdindex 4142261..9e3988a 100644--- a/README.md+++ b/README.md@@ -70,10 +70,21 @@ Anti-recursion enforcement prevents Socrates from infinite questioning. Tie-brea./install.sh```+Optional flags:++```bash+# Install into a non-default Claude config directory+./install.sh --claude-dir /path/to/.claude++# Preview actions without modifying files+./install.sh --dry-run+```+Or manually:```bash# Copy agents+mkdir -p ~/.claude/agentscp agents/council-*.md ~/.claude/agents/# Copy skilldiff --git a/install.sh b/install.shindex c4ec1a5..233c215 100755--- a/install.sh+++ b/install.sh@@ -3,20 +3,97 @@ set -euo pipefailSCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"CLAUDE_DIR="${HOME}/.claude"+DRY_RUN=false++usage() {+ cat <<'EOF'+Usage: ./install.sh [--claude-dir PATH] [--dry-run] [--help]++Install Council of High Intelligence agents and skill into a Claude Code config directory.++Options:+ --claude-dir PATH Target Claude config directory (default: ~/.claude)+ --dry-run Print actions without writing files+ --help Show this help message+EOF+}++while [[ $# -gt 0 ]]; do+ case "$1" in+ --claude-dir)+ if [[ $# -lt 2 ]]; then+ echo "Error: --claude-dir requires a path argument" >&2+ usage+ exit 1+ fi+ CLAUDE_DIR="$2"+ shift 2+ ;;+ --dry-run)+ DRY_RUN=true+ shift+ ;;+ --help|-h)+ usage+ exit 0+ ;;+ *)+ echo "Error: unknown argument '$1'" >&2+ usage+ exit 1+ ;;+ esac+done++run_cmd() {+ if [[ "$DRY_RUN" == true ]]; then+ echo "[dry-run] $*"+ else+ "$@"+ fi+}++if [[ ! -d "${SCRIPT_DIR}/agents" ]]; then+ echo "Error: agents directory not found at ${SCRIPT_DIR}/agents" >&2+ exit 1+fi++if [[ ! -f "${SCRIPT_DIR}/SKILL.md" ]]; then+ echo "Error: SKILL.md not found at ${SCRIPT_DIR}/SKILL.md" >&2+ exit 1+fi++shopt -s nullglob+agent_files=("${SCRIPT_DIR}"/agents/council-*.md)+shopt -u nullglob++if [[ ${#agent_files[@]} -eq 0 ]]; then+ echo "Error: no council agent files found under ${SCRIPT_DIR}/agents" >&2+ exit 1+fi++AGENTS_DEST="${CLAUDE_DIR}/agents"+SKILL_DEST_DIR="${CLAUDE_DIR}/skills/council"+SKILL_DEST="${SKILL_DEST_DIR}/SKILL.md"echo "Installing Council of High Intelligence..."+echo "Target directory: ${CLAUDE_DIR}"-# Create directories-mkdir -p "${CLAUDE_DIR}/agents"-mkdir -p "${CLAUDE_DIR}/skills/council"+echo "Creating destination directories..."+run_cmd mkdir -p "${AGENTS_DEST}" "${SKILL_DEST_DIR}"-# Copy agents-cp "${SCRIPT_DIR}"/agents/council-*.md "${CLAUDE_DIR}/agents/"-echo " Installed 8 council agents to ${CLAUDE_DIR}/agents/"+echo "Installing council agents..."+installed_count=0+for agent_file in "${agent_files[@]}"; do+ run_cmd install -m 0644 "${agent_file}" "${AGENTS_DEST}/"+ ((installed_count+=1))+done-# Copy skill-cp "${SCRIPT_DIR}/SKILL.md" "${CLAUDE_DIR}/skills/council/SKILL.md"-echo " Installed skill to ${CLAUDE_DIR}/skills/council/"+echo "Installing council skill..."+run_cmd install -m 0644 "${SCRIPT_DIR}/SKILL.md" "${SKILL_DEST}"-echo ""-echo "Done. Restart Claude Code and use /council to convene the council."+echo+echo "Done."+echo " Installed ${installed_count} council agents to ${AGENTS_DEST}"+echo " Installed skill to ${SKILL_DEST}"+echo "Restart Claude Code and use /council to convene the council."