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
chore: repo hygiene + make the CI drift guards real
0xnyk0a2531403794
diff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlnew file mode 100644index 0000000..02f92e1--- /dev/null+++ b/.github/FUNDING.yml@@ -0,0 +1,3 @@+buy_me_a_coffee: nyk_builderz+custom:+ - "https://solscan.io/account/2k1oq9U99mwy4gm8P2hXPJoZusoXQCpFs35EEf5Ve73y"diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.mdnew file mode 100644index 0000000..807325b--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.md@@ -0,0 +1,29 @@+---+name: Bug report+about: Something in the council protocol, installer, or scripts misbehaves+title: "bug: "+labels: bug+---++## What happened++<!-- What did you run, what did you expect, what did you get instead? -->++## Host & mode++- Host coordinator: <!-- Claude Code / Codex / Gemini CLI / other -->+- Command: <!-- e.g. /council --quick Should we ... -->+- Mode: <!-- full / quick / duo -->+- Providers detected: <!-- paste `bash scripts/detect-providers.sh` output if relevant -->++## Relevant output++```text+<!-- paste the verdict/session-metadata block or error output; redact anything sensitive -->+```++## Environment++- OS:+- Install method: <!-- install.sh flags used -->+- Version: <!-- CHANGELOG version or commit SHA -->diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.mdnew file mode 100644index 0000000..62b58fe--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature_request.md@@ -0,0 +1,25 @@+---+name: Feature request+about: Propose a protocol enhancement, new persona, or new capability+title: "feat: "+labels: enhancement+---++## The problem or opportunity++<!-- What can't you do today, or what evidence suggests the protocol could be better? -->++## Proposed change++<!-- What should change? Protocol changes land in SKILL.md first, then get mirrored into SKILL.codex.md and SKILL.gemini.md — say if your proposal is host-specific. -->++## Evidence (encouraged)++<!-- This project prefers research-backed protocol changes — link papers, benchmarks, or reproducible observations if you have them. See issue #28 for the running literature tracker. -->++## Scope++- [ ] Affects `SKILL.md` (Claude coordinator)+- [ ] Affects `SKILL.codex.md` / `SKILL.gemini.md` mirrors+- [ ] Affects agent personas (`agents/`)+- [ ] Affects installer / scripts / configsdiff --git a/.github/ISSUE_TEMPLATE/provider_support.md b/.github/ISSUE_TEMPLATE/provider_support.mdnew file mode 100644index 0000000..f3b05a1--- /dev/null+++ b/.github/ISSUE_TEMPLATE/provider_support.md@@ -0,0 +1,23 @@+---+name: Provider / host support+about: Request or propose support for a new LLM provider or host coordinator+title: "provider: "+labels: enhancement, provider+---++## Provider / host++<!-- Name, link, and how it's invoked (CLI binary, OpenAI-compatible endpoint, extension system, ...) -->++## Which integration path++- [ ] New **deliberation seat** provider (members routed to it) — usually fits the existing `openai_compatible_api` archetype or a new exec archetype in `SKILL.md` STEP 2+- [ ] New **host coordinator** (a new `SKILL.<host>.md` + `install.sh --<host>` path, like Codex/Gemini)++## Detection++<!-- How can scripts/detect-providers.sh detect it? Binary name, env var, endpoint? -->++## Notes++<!-- Auth model, model IDs, timeouts, anything unusual. New host coordinators must carry full protocol parity (see the checklist's SKILL parity checks) — additive, never replacing an existing host. -->diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdnew file mode 100644index 0000000..d2b9406--- /dev/null+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -0,0 +1,21 @@+## What & why++<!-- One paragraph: what changes and what problem it solves. Link the issue if there is one. -->++## Protocol parity++Protocol features live in three coordinator files that must not drift:++- [ ] Change applied to `SKILL.md` (or N/A)+- [ ] Mirrored in `SKILL.codex.md` (or N/A / host-exempt with reason)+- [ ] Mirrored in `SKILL.gemini.md` (or N/A / host-exempt with reason)++## Validation++- [ ] `./scripts/council-simulation-checklist.sh` passes+- [ ] `./install.sh --dry-run` passes (plus `--codex` / `--gemini` if installer changed)+- [ ] Tested at least one mode (full/quick/duo) if protocol behavior changed++## Evidence++<!-- For protocol changes: cite the paper/benchmark/observation motivating it (repo convention — see issue #28). For fixes: how to reproduce the bug. -->diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 3dcfc77..6456c7a 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -28,10 +28,16 @@ jobs:shellcheck scripts/council-simulation-checklist.sh- name: Markdownlint+ # Rule selection lives in .markdownlint.json. The previous inline+ # --disable invocation was missing the trailing "--" that the variadic+ # flag requires, so it swallowed the file arguments and this step+ # silently linted nothing.run: |- markdownlint \- --disable MD013 MD024 MD033 MD041 \- README.md CONTRIBUTING.md CHANGELOG.md \- SKILL.md SKILL.codex.md \+ markdownlint --config .markdownlint.json \+ README.md CONTRIBUTING.md CHANGELOG.md CLAUDE.md \+ SKILL.md SKILL.codex.md SKILL.gemini.md \"agents/**/*.md" \"demos/**/*.md"++ - name: Council simulation checklist (drift guard)+ run: ./scripts/council-simulation-checklist.shdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 765402f..a2bd9d3 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -23,6 +23,9 @@ jobs:tar --exclude='./.git' \--exclude='./.github' \--exclude='./demos' \+ --exclude='.DS_Store' \+ --exclude='./.gstack' \+ --exclude='*.log' \-czf "../${ARCHIVE}" .echo "ARCHIVE=$(pwd)/../${ARCHIVE}" >> "$GITHUB_ENV"diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..b68056a--- /dev/null+++ b/.gitignore@@ -0,0 +1,16 @@+# OS cruft+.DS_Store+Thumbs.db++# Logs and local tool state+*.log+.gstack/++# Editor+.vscode/+.idea/+*.swp++# Local scratch+tmp/+scratch/diff --git a/.markdownlint.json b/.markdownlint.jsonnew file mode 100644index 0000000..2da563b--- /dev/null+++ b/.markdownlint.json@@ -0,0 +1,16 @@+{+ "comment": "Style-only rules are disabled to match the repo's established authoring style (dense prompt files, heredoc-interrupted lists, compact tables, bold-as-label). Substantive rules (broken link syntax, trailing spaces, heading hierarchy, empty links) stay on.",+ "default": true,+ "MD013": false,+ "MD022": false,+ "MD024": false,+ "MD029": false,+ "MD031": false,+ "MD032": false,+ "MD033": false,+ "MD036": false,+ "MD040": false,+ "MD041": false,+ "MD058": false,+ "MD060": false+}diff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..5be4197--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,27 @@+# Security Policy++## What this project ships++Council of High Intelligence distributes **prompt files (skills + agent personas) and shell scripts** that users install into their AI coding tools (Claude Code, Codex, Gemini CLI). The threat model is therefore supply-chain shaped:++- **Prompt injection** — a malicious change to `SKILL*.md` or `agents/*.md` could smuggle instructions into a user's AI assistant.+- **Shell execution** — `install.sh` and `scripts/*.sh` run on user machines; the coordinator protocol dispatches provider CLIs via shell.+- **Credential handling** — provider API keys (e.g. `NVIDIA_API_KEY`, `CURSOR_API_KEY`) are resolved from environment variables at runtime and must never be inlined, logged, or placed in process argv.++## Reporting a vulnerability++Please **do not open a public issue** for security-sensitive reports. Instead use+[GitHub private vulnerability reporting](https://github.com/0xNyk/council-of-high-intelligence/security/advisories/new).++You can expect an initial response within 7 days. Verified fixes are credited in the changelog unless you prefer otherwise.++## Guarantees we aim to hold++- No `curl | bash` install path — users clone the repo and run `install.sh` locally.+- No network calls at install time; provider detection only probes locally installed CLIs and, when an API key is present, the provider's `/models` endpoint.+- API keys are passed to `curl` via process substitution, never as argv.+- All contributed prompt/script changes are reviewed for embedded instructions, obfuscation (base64, hex blobs), and unexpected URLs before merge.++## Supported versions++Only the latest release is supported with security fixes.diff --git a/scripts/council-simulation-checklist.sh b/scripts/council-simulation-checklist.shindex 12cb3f6..5b48d0e 100755--- a/scripts/council-simulation-checklist.sh+++ b/scripts/council-simulation-checklist.sh@@ -17,9 +17,11 @@ warn() { echo "[WARN] $1"; }pass "SKILL.md exists"[[ -f "SKILL.codex.md" ]] || fail "SKILL.codex.md is missing"pass "SKILL.codex.md exists"+[[ -f "SKILL.gemini.md" ]] || fail "SKILL.gemini.md is missing"+pass "SKILL.gemini.md exists"if compgen -G "agents/council-*.md" >/dev/null; then- agent_count=$(python3 -c "import glob; print(len(glob.glob('agents/council-*.md')))" 2>/dev/null || echo "unknown")+ agent_count=$(compgen -G "agents/council-*.md" | wc -l | tr -d ' ')pass "Agent definitions found (count=${agent_count})"elsefail "No agent definitions found under agents/council-*.md"@@ -111,6 +113,44 @@ pass "Session Metadata schema wired in SKILL.md"grep -q "Session Metadata\|session metadata\|session_metadata" SKILL.codex.md || fail "Session Metadata missing in SKILL.codex.md (issue #7)"pass "Session Metadata referenced in SKILL.codex.md"+# --- SKILL.gemini.md parity checks ---+# The Gemini variant is the least-exercised of the three coordinator files and+# is exactly where feature drift shipped once before. Every protocol feature+# checked for codex above is checked for gemini here.++grep -q "anonymiz" SKILL.gemini.md || fail "Round 2 anonymization missing in SKILL.gemini.md (issue #17)"+pass "Round 2 anonymization wired in SKILL.gemini.md"++grep -q "Anti-conformity directive" SKILL.gemini.md || fail "Anti-conformity directive missing in SKILL.gemini.md (issue #19)"+pass "Anti-conformity directive present in SKILL.gemini.md"++grep -q -i "chairman" SKILL.gemini.md || fail "Chairman role missing in SKILL.gemini.md (issue #18)"+pass "Chairman role wired in SKILL.gemini.md"++grep -q "Acceptable Compromises" SKILL.gemini.md || fail "Acceptable Compromises missing in SKILL.gemini.md (issue #21)"+grep -q "Kill Criteria" SKILL.gemini.md || fail "Kill Criteria missing in SKILL.gemini.md (issue #21)"+grep -q "Concrete Next Step" SKILL.gemini.md || fail "Concrete Next Step missing in SKILL.gemini.md (issue #21)"+pass "Verdict actionability sections present in SKILL.gemini.md"++grep -q "openai_compatible_api\|openai-compatible\|OpenAI-Compatible" SKILL.gemini.md || fail "openai_compatible_api archetype missing in SKILL.gemini.md (issue #16)"+pass "openai_compatible_api archetype wired in SKILL.gemini.md"++grep -q "Session Metadata\|session metadata\|session_metadata" SKILL.gemini.md || fail "Session Metadata missing in SKILL.gemini.md (issue #7)"+pass "Session Metadata referenced in SKILL.gemini.md"++# --- Structured stance / weighted tally parity (PR #36) ---+# All three coordinator files must carry the STANCE line, the Vote Tally+# verdict field, and the 1.5x domain-weight seat. This is the check that+# would have caught the Gemini regression.++for skill_file in SKILL.md SKILL.codex.md SKILL.gemini.md; do+ grep -q "STANCE:" "${skill_file}" || fail "Structured STANCE line missing in ${skill_file} (PR #36)"+ grep -q "Vote Tally" "${skill_file}" || fail "Vote Tally verdict field missing in ${skill_file} (PR #36)"+ grep -q "1\.5" "${skill_file}" || fail "1.5x domain-weight seat missing in ${skill_file} (PR #36)"+ grep -q "2/3" "${skill_file}" || fail "2/3 consensus threshold missing in ${skill_file} (PR #36)"+done+pass "Structured stance + weighted tally present in all three SKILL files"+# --- Agent structure checks ---required_sections=("Identity" "Grounding Protocol" "Analytical Method" "What You See" "What You Tend to Miss" "When Deliberating" "Output Format (Council Round 2)" "Output Format (Standalone)")@@ -215,23 +255,32 @@ elsewarn "shellcheck not installed; skipped"fi-./install.sh --dry-run >/tmp/council-install-dry-run.log+TMP_LOG_DIR="$(mktemp -d)"+trap 'rm -rf "${TMP_LOG_DIR}"' EXIT++./install.sh --dry-run >"${TMP_LOG_DIR}/dry-run.log"pass "install.sh --dry-run completed"-grep -q "Installed .* council agents" /tmp/council-install-dry-run.log || fail "install dry-run output missing agent install summary"+grep -q "Installed .* council agents" "${TMP_LOG_DIR}/dry-run.log" || fail "install dry-run output missing agent install summary"pass "install summary output present"-./install.sh --dry-run --copy-configs >/tmp/council-install-dry-run-configs.log+./install.sh --dry-run --copy-configs >"${TMP_LOG_DIR}/dry-run-configs.log"pass "install.sh --dry-run --copy-configs completed"-grep -q "Installed .* config files" /tmp/council-install-dry-run-configs.log || fail "copy-configs dry-run output missing config install summary"+grep -q "Installed .* config files" "${TMP_LOG_DIR}/dry-run-configs.log" || fail "copy-configs dry-run output missing config install summary"pass "config summary output present"-./install.sh --dry-run --codex >/tmp/council-install-dry-run-codex.log+./install.sh --dry-run --codex >"${TMP_LOG_DIR}/dry-run-codex.log"pass "install.sh --dry-run --codex completed"-grep -q "Installed Codex skill to" /tmp/council-install-dry-run-codex.log || fail "codex dry-run output missing Codex skill summary"+grep -q "Installed Codex skill to" "${TMP_LOG_DIR}/dry-run-codex.log" || fail "codex dry-run output missing Codex skill summary"pass "Codex install summary output present"+./install.sh --dry-run --gemini >"${TMP_LOG_DIR}/dry-run-gemini.log"+pass "install.sh --dry-run --gemini completed"++grep -q "gemini-extension.json" "${TMP_LOG_DIR}/dry-run-gemini.log" || fail "gemini dry-run output missing gemini-extension.json manifest step"+pass "Gemini install manifest step present"+echoecho "Checklist complete."