the-ai-counsel-api

the-ai-counsel-api is a skill for Claude Code, Codex from jacob-bd/the-ai-counsel. It costs 85 tokens per session (17,581 once invoked), scanned D, original, MIT.

An interface for The AI Counsel, a service where several AI models or named advisers respond to and discuss a question. It supports both anonymous model comparison followed by a combined answer and structured debates between named personas.

In plain words
What is it for?
Use it for factual or creative questions, choosing among options, reviewing risks, prioritising work, discussing strategy or ethics, and reaching a structured verdict.
Why use it?
It gives you a way to ask for several independent views, compare them, or run a debate without manually coordinating each response. It can use connected MCP tools or a web API when those tools are unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Good fit Use it for factual or creative questions, choosing among options, reviewing risks, prioritising work, discussing strategy or ethics, and reaching a structured verdict.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jacob-bd/the-ai-counsel/the-ai-counsel-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jacob-bd/the-ai-counsel --skill the-ai-counsel-api
Clone the repo
git clone --depth 1 https://github.com/jacob-bd/the-ai-counsel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for the-ai-counsel-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/jacob-bd/the-ai-counsel/the-ai-counsel-api/github.svg)](https://agentmods.dev/skills/jacob-bd/the-ai-counsel/the-ai-counsel-api)
Your own site
<a href="https://agentmods.dev/skills/jacob-bd/the-ai-counsel/the-ai-counsel-api"><img src="https://agentmods.dev/badge/skills/jacob-bd/the-ai-counsel/the-ai-counsel-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for the-ai-counsel-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/jacob-bd/the-ai-counsel/the-ai-counsel-api"><img src="https://agentmods.dev/badge/skills/jacob-bd/the-ai-counsel/the-ai-counsel-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 17,581 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.17581
Opus 5 $0.00043 $0.08790
Sonnet 5 $0.00017 $0.03516
Haiku 4.5 $0.00009 $0.01758

Measured 2d ago against content hash 02106f3e88d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade D, and why

the-ai-counsel-api scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

CONV_ID=$(curl -s -X POST http://localhost:8001/api/conversations -H "Content-Type: application/json" -d '{}' | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

CONV_ID=$(curl -s -X POST http://localhost:8001/api/conversations -H "Content-Type: application/json" -d '{}' | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: The AI Counsel — MCP-first (10 action-based tools) when The AI Counsel MCP server is connected; REST/curl fallback when MCP is unavailable, for cron scripts, or raw SSE. Triggers on "ask the council", "run a
skills/the-ai-counsel-api/SKILL.md · 1,532 lines

How it starts

The opening of the file, as written. The whole thing — 1,532 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The AI Counsel — API & MCP Skill

Overview

The AI Counsel has two operating modes:

  • Council mode — 3-stage multi-LLM deliberation: individual responses → anonymous peer ranking → chairman synthesis
  • Advisor mode — Named personas debate a question across configurable rounds, reaching consensus or delivering a structured verdict

Use Council for direct answers, creative prompts, factual questions, and "give me the best response" synthesis. Use Advisor only when the user wants named personas to debate a decision, tradeoff, risk review, prioritization, strategy, ethics, or genuine disagreement. Simple prompts can drift off-topic in Advisor mode because advisor prompts intentionally force positions, rebuttals, consensus scoring, and verdicts.

Transport rule (read first): If The AI Counsel MCP tools are available in your session, call them — do not shell out to curl for the same operation. This skill’s REST sections are the fallback reference when MCP is missing, the SSE session is stale, or you need raw SSE/admin export.

MCP server (v0.13.0): Built-in SSE at http://localhost:8001/mcp/sse (stdio: python -m the_ai_counsel_mcp). Exposes 10 action-based tools (not 25). Verify via GET /api/health"mcp": {"tools": 10, "sse_url": "..."}.

The server's connect message is minimal by design — it does not list the tools. Use the roster below.

Default base URL (REST fallback only): http://localhost:8001 (override with PORT_BACKEND / LLM_COUNCIL_BIND_PORT)
Remote server: replace with http://<server-ip>:8001


MCP-first routing

When to use MCP (preferred)

Use MCP when your tool list includes any of these 10 tools (server may appear as the-ai-counsel, ai-counsel, or user-the-ai-counsel):

You want to… MCP tool Action(s) Do not use curl
Check server / providers providers health GET /api/health
Test an API key providers test POST /api/settings/test-provider
List models providers list_models GET /api/models
Read council config (+ presets) council_settings get GET /api/settings (council fields)
Update council members/chairman/mode council_settings update PUT /api/settings (council fields)
Council preset CRUD council_settings list_presets, save_preset, delete_preset, set_default_preset PUT /api/settings
Set search provider / API key providers set_search, set_api_key PUT /api/settings
Backup / restore / reset config config_backup export, import, reset export/import/reset endpoints
Full deliberation council_deliberate full /api/ask or message stream
Stage 1 / 2 / 3 only council_deliberate stage1, stage2, stage3 stage stream endpoints
One-shot model chat model_chat quick POST /api/ask
Multi-turn chat with a model model_chat multi_turn conversation message endpoints
List / read conversations conversations list, get conversation GETs
Check active run progress conversations progress GET /api/conversations/{id}/progress
List / read / edit personas personas list, get, update, reset /api/personas
Create / delete custom personas (no MCP action) (Advisor Setup or REST) POST /api/personas / DELETE /api/personas/{id}
Read advisor defaults (+ presets) advisor_settings get GET /api/settings (advisor fields)
Update advisor defaults advisor_settings update PUT /api/settings (advisor fields)
Advisor preset CRUD advisor_settings list_presets, save_preset, delete_preset, set_default_preset PUT /api/settings
Run advisor debate advisor_debate (direct params) debate/stream
Run multi-round debate run_iterative_debate (direct params) debate message endpoints

Read the full file on GitHub · 1,532 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +2 lines 02106f3e88d4
  2. 7d ago Changed 5045084e017b
  3. 8d ago Changed · +27 lines 885fe6c3c28d
  4. 12d ago First seen · 1,503 lines · 85 tokens per session scan D 0a3b436d24f1

Subscribe to this mod's changes

the-ai-counsel-api is a skill published in the GitHub repository jacob-bd/the-ai-counsel (113 stars, last pushed 3d ago), licensed MIT. It adds 85 tokens to every session and 17,581 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it D with 3 findings (sends data to an external url, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens