Implementation:0xNyk Council of high intelligence install sh
| Knowledge Sources | |
|---|---|
| Domains | Installation, Scripting, CLI_Integration |
| Last Updated | 2026-10-20 00:00 GMT |
Overview
Concrete multi-host installer script for the Council of High Intelligence skill, agents, and scripts, with dry-run validation support.
Description
install.sh is a bash script that installs the Council of High Intelligence into one or more CLI host environments: Claude Code (default), Codex, Gemini CLI, and opencode. It copies the skill file (`SKILL.md` or host-specific mirror), agent personas (`agents/council-*.md`), and scripts (`scripts/detect-*.sh`) to the appropriate destination directories for each host. For Gemini, it generates a `gemini-extension.json` manifest. For opencode, it runs `convert-agents-opencode.py` to reshape agent frontmatter.
The script derives the project version from the latest `CHANGELOG.md` entry, supports `--dry-run` to print actions without writing files, and optionally copies config files with `--copy-configs`.
Usage
Run this script when:
- Installing the council skill for the first time on any host
- Updating to a new version of the skill
- Verifying installation via dry-run (used by the simulation checklist)
- Installing to multiple hosts simultaneously (e.g., `--codex --gemini`)
Code Reference
Source Location
- Repository: Council of High Intelligence
- File: install.sh
- Lines: L1-432 (full script)
Signature
install.sh [OPTIONS]
OPTIONS:
--claude-dir PATH Target Claude config dir (default: ~/.claude)
--codex-dir PATH Target Codex config dir (default: ~/.codex)
--gemini-dir PATH Target Gemini config dir (default: ~/.gemini)
--opencode-dir PATH Target opencode config dir (default: ~/.config/opencode)
--codex Also install Codex skill
--codex-only Install only Codex skill
--gemini Also install Gemini skill
--gemini-only Install only Gemini skill
--opencode Also install opencode skill + subagents
--opencode-only Install only opencode skill + subagents
--copy-configs Also install configs/ into skill config folders
--dry-run Print actions without writing files
--help Show help message
# Internal helpers:
run_cmd(cmd...) -> void # executes or prints [dry-run] based on DRY_RUN
Import
# From the repo root:
./install.sh # Claude Code (default)
./install.sh --codex --gemini # Claude + Codex + Gemini
./install.sh --dry-run # Verify without writing
./install.sh --dry-run --opencode # Verify opencode install
./install.sh --copy-configs # Include configs/ directory
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| CLI args | flags | --claude-dir, --codex-dir, --gemini-dir, --opencode-dir, --codex, --gemini, --opencode, --copy-configs, --dry-run | |
| CHANGELOG.md | file | Yes | Latest version entry for manifest version |
| agents/council-*.md | files | Yes | 18 agent persona files |
| SKILL.md / SKILL.*.md | files | Yes | Protocol files (canonical + mirrors) |
| scripts/detect-*.sh | files | Yes | Provider detection scripts |
Outputs
| Name | Type | Description |
|---|---|---|
| Installed files | filesystem | Agents (0644), scripts (0755), skill files (0644) in target dirs |
| gemini-extension.json | file | Manifest for Gemini extension (name, version, description) |
| Summary | stdout | Per-host install counts (agents, skill, scripts, configs) |
Usage Examples
Default Claude Code Install
# Installs to ~/.claude/:
# agents/council-*.md → ~/.claude/agents/
# SKILL.md → ~/.claude/skills/council/SKILL.md
# scripts/detect-*.sh → ~/.claude/skills/council/scripts/ (mode 0755)
./install.sh
# Output:
# Installing Council of High Intelligence...
# Claude target directory: /home/user/.claude
# Installed 18 council agents to /home/user/.claude/agents
# Installed skill to /home/user/.claude/skills/council/SKILL.md
# Installed 1 scripts to /home/user/.claude/skills/council/scripts
# Done.
# Restart your CLI client(s) and use /council to convene the council.
Dry-Run Verification
# Print actions without writing (used by simulation checklist):
./install.sh --dry-run
# [dry-run] mkdir -p /home/user/.claude/agents /home/user/.claude/skills/council
# [dry-run] install -m 0644 agents/council-socrates.md /home/user/.claude/agents/
# ...
# Installed 18 council agents to /home/user/.claude/agents
# Installed skill to /home/user/.claude/skills/council/SKILL.md
Multi-Host Install with Configs
# Install to Claude + Codex + Gemini + opencode, including configs:
./install.sh --codex --gemini --opencode --copy-configs
# Each host gets: skill file, agents, scripts, optional configs
# Gemini additionally gets: gemini-extension.json manifest
# opencode agents are converted via convert-agents-opencode.py