yet-another-council 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- yet_another_council-1.3.0/.gitignore +12 -0
- yet_another_council-1.3.0/LICENSE +21 -0
- yet_another_council-1.3.0/PKG-INFO +274 -0
- yet_another_council-1.3.0/README.md +244 -0
- yet_another_council-1.3.0/council/__init__.py +3 -0
- yet_another_council-1.3.0/council/__main__.py +4 -0
- yet_another_council-1.3.0/council/algorithms.py +788 -0
- yet_another_council-1.3.0/council/cli.py +416 -0
- yet_another_council-1.3.0/council/history.py +472 -0
- yet_another_council-1.3.0/council/mcp_server.py +246 -0
- yet_another_council-1.3.0/council/model_catalog.py +196 -0
- yet_another_council-1.3.0/council/providers.py +1484 -0
- yet_another_council-1.3.0/council/server.py +692 -0
- yet_another_council-1.3.0/council/static/index.html +3051 -0
- yet_another_council-1.3.0/pyproject.toml +59 -0
- yet_another_council-1.3.0/tests/test_council.py +338 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alp
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: yet-another-council
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: Yet Another Council (YAC): multi-LLM debates on the AI CLIs you already have. No API keys, real web UI, REST API and MCP server.
|
|
5
|
+
Project-URL: Homepage, https://github.com/balpars/yet-another-council
|
|
6
|
+
Project-URL: Repository, https://github.com/balpars/yet-another-council
|
|
7
|
+
Project-URL: Issues, https://github.com/balpars/yet-another-council/issues
|
|
8
|
+
Author: Alp
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: claude,claude-code,codex,consensus,debate,gemini,glm,llm,llm-council,mcp,mixture-of-agents,multi-agent,ollama
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Classifier: Topic :: Software Development
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Requires-Dist: fastapi>=0.115.0
|
|
26
|
+
Requires-Dist: pydantic>=2.9.0
|
|
27
|
+
Requires-Dist: rich>=13.9.0
|
|
28
|
+
Requires-Dist: uvicorn>=0.32.0
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# 🏛️ YAC · Yet Another Council
|
|
32
|
+
|
|
33
|
+
[](https://github.com/balpars/yet-another-council/actions/workflows/ci.yml)
|
|
34
|
+
[](https://github.com/balpars/yet-another-council/blob/main/LICENSE)
|
|
35
|
+
[](https://www.python.org)
|
|
36
|
+
[](https://fastapi.tiangolo.com)
|
|
37
|
+
[](#-mcp-server-claude-code--cursor--windsurf)
|
|
38
|
+
[](#-why-yac)
|
|
39
|
+
|
|
40
|
+
> **Yet another LLM council. This one runs on the AI CLIs you already have (no API keys) and comes with a real web UI.**
|
|
41
|
+
>
|
|
42
|
+
> Put Claude, Gemini, GLM, Codex and local models in one room: they debate, review each other blindly or stress-test an idea, then a judge delivers the verdict. Five deliberation algorithms, drag-and-drop roles, live streaming, plus a REST API, an OpenAI-compatible endpoint and an MCP server.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pipx install yet-another-council
|
|
46
|
+
yac # opens the web UI at http://127.0.0.1:8765
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## ⚡ Why YAC?
|
|
54
|
+
|
|
55
|
+
Classic multi-LLM deliberation frameworks (such as `karpathy/llm-council` or `togethercomputer/MoA`) need per-token API keys. A single 2-round debate across 3 frontier models plus a Judge synthesis triggers **7+ large LLM calls per question**.
|
|
56
|
+
|
|
57
|
+
Many developers already have AI subscriptions that come with an official command-line tool. **YAC needs no extra API keys: it drives the CLIs you already have installed and logged in.**
|
|
58
|
+
|
|
59
|
+
| Subscription / Runtime | CLI Binary / Endpoint | Models |
|
|
60
|
+
| :--- | :--- | :--- |
|
|
61
|
+
| **Claude Pro / Max** | `claude` (Claude Code CLI) | `sonnet` / `opus` / `haiku` (always the latest) |
|
|
62
|
+
| **Google AI Pro / Antigravity** | `agy` (Antigravity CLI) | Live list from `agy models` |
|
|
63
|
+
| **Z.ai GLM Coding Plan** | `zcode` (ZCode CLI) | `GLM-5.3` / `GLM-5.3-Flash` |
|
|
64
|
+
| **ChatGPT Plus / Pro** | `codex` (OpenAI Codex CLI) | Any model your Codex CLI supports |
|
|
65
|
+
| **Local Open-Weights** | `ollama` | Live list of your installed models |
|
|
66
|
+
| **External REST APIs** *(Optional)* | `DeepSeek`, `OpenRouter`, `OpenAI`, `Groq`, Custom | Live list from the provider's `/models` |
|
|
67
|
+
|
|
68
|
+
Model lists are fetched automatically (at most once a day) wherever the provider offers a way to list them, so new models show up without an update. You can always type any model ID by hand.
|
|
69
|
+
|
|
70
|
+
> **Fair use:** Each council run makes several requests (e.g. 3 members × 2 rounds + judge = 7 calls), which count toward your subscription's usage limits. YAC only calls each provider's official CLI, the same way you would from a terminal; please make sure your usage fits each provider's terms.
|
|
71
|
+
|
|
72
|
+
**YAC** auto-detects installed CLIs on your machine, orchestrates them **in parallel** using Python `asyncio`, and streams every round of deliberation live to a calm, minimalist Web UI or Rich terminal interface.
|
|
73
|
+
|
|
74
|
+
### Feature Comparison
|
|
75
|
+
|
|
76
|
+
| Feature | `karpathy/llm-council` | `togethercomputer/MoA` | **🏛️ YAC** |
|
|
77
|
+
| :--- | :---: | :---: | :---: |
|
|
78
|
+
| **Works with your existing CLI subscriptions (no API keys needed)** | ❌ | ❌ | ✅ (`claude`, `agy`, `zcode`, `codex`) |
|
|
79
|
+
| **Local Models (`ollama`) + External APIs (`DeepSeek`, etc.)** | ❌ | ⚠️ Partial | ✅ Hybrid CLI + REST API |
|
|
80
|
+
| **Deliberation Topologies** | 1 (3-Stage) | 1 (MoA) | **5** (`debate`, `karpathy`, `moa`, `blind_vote`, `red_team`) |
|
|
81
|
+
| **Drag-and-Drop Specialist Roles & Role Stacking** | ❌ | ❌ | ✅ Single role in Simple, stackable in Advanced |
|
|
82
|
+
| **Multi-Seat Cloning (Same/Different Models in Different Roles)** | ❌ | ❌ | ✅ e.g. `Claude #1 [Architect]` vs `Claude #2 [Devil's Advocate]` |
|
|
83
|
+
| **Per-Seat Model & Reasoning Effort Selection** | ❌ | ❌ | ✅ (`low`, `medium`, `high`, `xhigh`, `max`) |
|
|
84
|
+
| **Reusable Templates + Outbound REST API (`/api/v1/ask`)** | ❌ | ❌ | ✅ + OpenAI-compatible `/v1/chat/completions` |
|
|
85
|
+
| **Native MCP Server (`yac-mcp`)** | ❌ | ❌ | ✅ Plug into Claude Code, Cursor, Windsurf |
|
|
86
|
+
|
|
87
|
+
### Yes, there are other councils
|
|
88
|
+
|
|
89
|
+
The name is honest: multi-LLM councils are a crowded idea, and some other good tools also use your CLI subscriptions:
|
|
90
|
+
|
|
91
|
+
- [`consult-llm`](https://github.com/raine/consult-llm) and [`deliberation`](https://github.com/antonbabenko/deliberation) live **inside your coding agent** (skills / MCP / plugins) and are great for a quick second opinion while coding.
|
|
92
|
+
- [`mooting`](https://github.com/jyunming/mooting) and [`conclave`](https://github.com/0xDarkMatter/conclave) are **terminal-first** councils.
|
|
93
|
+
|
|
94
|
+
**YAC is the standalone app:** a web UI where you watch every round stream in, pick from five deliberation algorithms, assign roles by drag-and-drop, and keep a searchable history. The same councils are available from the terminal, a REST / OpenAI-compatible API, and MCP.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## ✨ Core Features
|
|
99
|
+
|
|
100
|
+

|
|
101
|
+
|
|
102
|
+
### 1. Auto-Discovery Onboarding & Interactive Spotlight Tour
|
|
103
|
+
On first launch (or anytime via the `?` button), YAC scans your `PATH` for installed CLI tools, displays their readiness status, lets you optionally plug in external API keys (such as **DeepSeek API**, **OpenRouter**, **OpenAI**, **Groq**, or any custom OpenAI-compatible endpoint), and offers a 4-step **Interactive Spotlight Tour** that focuses on each area of the interface.
|
|
104
|
+
|
|
105
|
+
### 2. Progressive Disclosure UI (`Simple` vs. `Advanced` Mode)
|
|
106
|
+
- **Simple Mode:** Zero-config, distraction-free workspace. Type your prompt at the top, drag a specialist role (`🌐 General`, `🏗️ System Architect`, `😈 Devil's Advocate`, `🛡️ Security & Risk`, `⚡ Pragmatic Engineer`, `💰 Product & Cost`, `🔬 First-Principles`) onto any detected member, pick one of the 5 algorithms, and click **Convene Council →**.
|
|
107
|
+
- **Advanced Mode:** Unlocks power-user controls:
|
|
108
|
+
- **Multi-Seat Cloning (`⧉` / `+ Seat`):** Add multiple seats from the same provider (either with the same model in different specialist roles, or different models/efforts debating each other).
|
|
109
|
+
- **Role Stacking:** Drag multiple roles onto a single seat to combine their system prompts.
|
|
110
|
+
- **Per-Seat Model & Reasoning Effort Drawer:** Click any seat's `model • effort ▾` badge to override its model or reasoning effort level.
|
|
111
|
+
- **Editable Role Prompts (`✎`):** Customize the system prompt of any role.
|
|
112
|
+
- **Template, Judge & Rounds Controls:** Switch or save templates, pick the Supreme Judge, and adjust deliberation rounds.
|
|
113
|
+
|
|
114
|
+
### 3. Five Consensus & Deliberation Topologies
|
|
115
|
+
|
|
116
|
+
| Mode (`-m`) | Algorithm | How It Works |
|
|
117
|
+
| :--- | :--- | :--- |
|
|
118
|
+
| **`debate`** | **Multi-Agent Debate (MAD)** | **Round 1:** All seats answer independently in parallel from their assigned role perspectives.<br>**Round 2..N:** Each seat reads its peers' arguments, critiques logical flaws (with anti-sycophancy instructions), and refines its position.<br>**Final:** The Supreme Judge synthesizes consensus points, resolves disputes, and delivers the final verdict. |
|
|
119
|
+
| **`karpathy`** | **Karpathy 3-Stage Council** | **Stage 1 (First Opinions):** Parallel independent responses.<br>**Stage 2 (Anonymous Peer Review):** Responses are masked (`Response_A`, `Response_B`); models critique and rank each other blindly.<br>**Stage 3 (Chairman Synthesis):** Chairman reconciles all first opinions and peer rankings into one verdict. |
|
|
120
|
+
| **`moa`** | **Mixture of Agents (MoA)** | *Together AI pattern:* Layer 1 models act as diverse Proposers in parallel; Layer 2 Master Aggregator fuses the strongest insights from every proposer into one superior response. |
|
|
121
|
+
| **`blind_vote`** | **Blind Peer-Review Leaderboard** | Candidate answers are anonymized (`Candidate_A`, `Candidate_B`, `Candidate_C`). Models act as blind reviewers scoring each candidate `1–10` in structured JSON. A live leaderboard is computed and the highest-rated answer wins. |
|
|
122
|
+
| **`red_team`** | **Devil's Advocate / Stress Test** | Seat 1 proposes a thesis/architecture. Seat 2 (*Devil's Advocate*) ruthlessly attacks hidden assumptions, security flaws, and worst-case edge cases. Seat 3 (*Pragmatic Auditor*) flags over-engineering. The Judge produces a battle-tested synthesis. |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 🧭 Architecture
|
|
127
|
+
|
|
128
|
+
```mermaid
|
|
129
|
+
flowchart LR
|
|
130
|
+
Q["User Prompt / REST API / MCP"] --> O["Async Council Orchestrator"]
|
|
131
|
+
subgraph Seats["Parallel Council Seats (CLI Subscriptions + APIs)"]
|
|
132
|
+
C["Claude CLI (claude -p)"]
|
|
133
|
+
G["Gemini CLI (agy -p)"]
|
|
134
|
+
Z["GLM-5.3 CLI (zcode -p)"]
|
|
135
|
+
X["Codex CLI / Ollama"]
|
|
136
|
+
D["External APIs (DeepSeek / OpenRouter)"]
|
|
137
|
+
end
|
|
138
|
+
O --> C & G & Z & X & D
|
|
139
|
+
C & G & Z & X & D --> A["Consensus Engine\n• Multi-Agent Debate\n• Karpathy 3-Stage Council\n• Mixture of Agents (MoA)\n• Blind Peer-Review\n• Red-Team Stress Test"]
|
|
140
|
+
A --> V["Supreme Verdict\n(SSE Web UI • SQLite History • REST API • Markdown)"]
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 🚀 Quickstart
|
|
146
|
+
|
|
147
|
+
You need Python 3.11+ and at least one supported CLI installed and logged in (e.g. `claude`, `agy`, `zcode`, `codex`, or `ollama`).
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Install (pipx keeps it in its own environment; `pip install yet-another-council` works too)
|
|
151
|
+
pipx install yet-another-council
|
|
152
|
+
|
|
153
|
+
# Start the Web UI (opens http://127.0.0.1:8765 in your browser)
|
|
154
|
+
yac
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
If another tool on your machine already uses the name `yac`, the same command is also installed as `yet-another-council`.
|
|
158
|
+
|
|
159
|
+
Latest development version: `pipx install git+https://github.com/balpars/yet-another-council.git`. From a clone: `pip install -e .` then `yac`, or `python main.py`.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 💻 Terminal CLI Usage
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Check detected CLI & API providers on your machine
|
|
167
|
+
yac --doctor
|
|
168
|
+
|
|
169
|
+
# Default: 2-Round Multi-Agent Debate across all installed providers
|
|
170
|
+
yac "Should we use Kafka, RabbitMQ, or Redis Streams for 15k events/sec?"
|
|
171
|
+
|
|
172
|
+
# Run with a Built-in or Custom Template (-t)
|
|
173
|
+
yac "Evaluate our zero-trust B2B authentication architecture" -t architecture-board
|
|
174
|
+
|
|
175
|
+
# Karpathy's 3-Stage Council (-m karpathy)
|
|
176
|
+
yac "Compare Rust PyO3 vs Cython for CPU-bound Python extensions" -m karpathy
|
|
177
|
+
|
|
178
|
+
# Mixture of Agents with Gemini as Aggregator and High Reasoning Effort
|
|
179
|
+
yac "Design a zero-downtime schema migration strategy for a 2TB Postgres table" -m moa -j gemini -e high
|
|
180
|
+
|
|
181
|
+
# Blind Peer-Review Leaderboard & Save Verdict to Markdown (-o)
|
|
182
|
+
yac "What is the best architecture for real-time collaborative editing (CRDT vs OT)?" -m blind_vote -o verdict.md
|
|
183
|
+
|
|
184
|
+
# List available templates and saved SQLite history
|
|
185
|
+
yac --templates
|
|
186
|
+
yac --history
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## 🔌 Outbound REST API & Templates (`/api/v1/ask`)
|
|
192
|
+
|
|
193
|
+
While `yac` is running, it exposes a REST API and an OpenAI-compatible chat completion endpoint on `http://127.0.0.1:8765`.
|
|
194
|
+
|
|
195
|
+
### 1. Query with a Template (`default` or custom template)
|
|
196
|
+
Built-in templates include `default`, `architecture-board`, and `red-team-audit`. You can also create custom templates from the Web UI or via `POST /api/v1/templates`.
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
curl -X POST http://127.0.0.1:8765/api/v1/ask \
|
|
200
|
+
-H "Content-Type: application/json" \
|
|
201
|
+
-d '{
|
|
202
|
+
"question": "Postgres vs ClickHouse for real-time event analytics?",
|
|
203
|
+
"template": "default"
|
|
204
|
+
}'
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### 2. Parameterized Query (No Template Required)
|
|
208
|
+
Pass `algorithm`, `rounds`, `judge`, and custom `participants` (including multi-seat configurations, specific models, efforts, and roles) directly in the request body:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
curl -X POST http://127.0.0.1:8765/api/v1/ask \
|
|
212
|
+
-H "Content-Type: application/json" \
|
|
213
|
+
-d '{
|
|
214
|
+
"question": "Monolith vs Microservices for a team of 6 engineers?",
|
|
215
|
+
"algorithm": "debate",
|
|
216
|
+
"rounds": 2,
|
|
217
|
+
"judge": "claude",
|
|
218
|
+
"participants": [
|
|
219
|
+
{"provider": "claude", "model": "opus", "effort": "high", "role": "System Architect"},
|
|
220
|
+
{"provider": "gemini", "model": "gemini-4-argon-medium", "role": "Devil'\''s Advocate"},
|
|
221
|
+
{"provider": "glm", "model": "GLM-5.3", "role": "Pragmatic Engineer"}
|
|
222
|
+
]
|
|
223
|
+
}'
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### 3. OpenAI SDK Compatible Endpoint (`POST /v1/chat/completions`)
|
|
227
|
+
Use any standard OpenAI client, LangChain, or n8n node by pointing `base_url` to `http://127.0.0.1:8765/v1` and specifying `model="council/default"` (or `model="council/<template-id>"`):
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
curl -X POST http://127.0.0.1:8765/v1/chat/completions \
|
|
231
|
+
-H "Content-Type: application/json" \
|
|
232
|
+
-d '{
|
|
233
|
+
"model": "council/architecture-board",
|
|
234
|
+
"messages": [
|
|
235
|
+
{"role": "user", "content": "How should we design idempotent webhook consumers?"}
|
|
236
|
+
]
|
|
237
|
+
}'
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 🧩 MCP Server (Claude Code / Cursor / Windsurf)
|
|
243
|
+
|
|
244
|
+
YAC includes a built-in **Model Context Protocol (MCP)** server over `stdio` (`yac-mcp`), exposing `ask_council`, `list_council_templates`, and `list_council_providers`. Your coding agent can automatically convene the council whenever it hits a complex architectural trade-off or bug.
|
|
245
|
+
|
|
246
|
+
### Add to Claude Code CLI in One Command
|
|
247
|
+
```bash
|
|
248
|
+
claude mcp add yac -- yac-mcp
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Add to Cursor / Windsurf / Antigravity (`mcp.json`)
|
|
252
|
+
```json
|
|
253
|
+
{
|
|
254
|
+
"mcpServers": {
|
|
255
|
+
"yac": {
|
|
256
|
+
"command": "yac-mcp"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## 🧪 Running Tests
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
python -m unittest discover -s tests -v
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## 📄 License
|
|
273
|
+
|
|
274
|
+
Released under the [MIT License](https://github.com/balpars/yet-another-council/blob/main/LICENSE).
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# 🏛️ YAC · Yet Another Council
|
|
2
|
+
|
|
3
|
+
[](https://github.com/balpars/yet-another-council/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/balpars/yet-another-council/blob/main/LICENSE)
|
|
5
|
+
[](https://www.python.org)
|
|
6
|
+
[](https://fastapi.tiangolo.com)
|
|
7
|
+
[](#-mcp-server-claude-code--cursor--windsurf)
|
|
8
|
+
[](#-why-yac)
|
|
9
|
+
|
|
10
|
+
> **Yet another LLM council. This one runs on the AI CLIs you already have (no API keys) and comes with a real web UI.**
|
|
11
|
+
>
|
|
12
|
+
> Put Claude, Gemini, GLM, Codex and local models in one room: they debate, review each other blindly or stress-test an idea, then a judge delivers the verdict. Five deliberation algorithms, drag-and-drop roles, live streaming, plus a REST API, an OpenAI-compatible endpoint and an MCP server.
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pipx install yet-another-council
|
|
16
|
+
yac # opens the web UI at http://127.0.0.1:8765
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## ⚡ Why YAC?
|
|
24
|
+
|
|
25
|
+
Classic multi-LLM deliberation frameworks (such as `karpathy/llm-council` or `togethercomputer/MoA`) need per-token API keys. A single 2-round debate across 3 frontier models plus a Judge synthesis triggers **7+ large LLM calls per question**.
|
|
26
|
+
|
|
27
|
+
Many developers already have AI subscriptions that come with an official command-line tool. **YAC needs no extra API keys: it drives the CLIs you already have installed and logged in.**
|
|
28
|
+
|
|
29
|
+
| Subscription / Runtime | CLI Binary / Endpoint | Models |
|
|
30
|
+
| :--- | :--- | :--- |
|
|
31
|
+
| **Claude Pro / Max** | `claude` (Claude Code CLI) | `sonnet` / `opus` / `haiku` (always the latest) |
|
|
32
|
+
| **Google AI Pro / Antigravity** | `agy` (Antigravity CLI) | Live list from `agy models` |
|
|
33
|
+
| **Z.ai GLM Coding Plan** | `zcode` (ZCode CLI) | `GLM-5.3` / `GLM-5.3-Flash` |
|
|
34
|
+
| **ChatGPT Plus / Pro** | `codex` (OpenAI Codex CLI) | Any model your Codex CLI supports |
|
|
35
|
+
| **Local Open-Weights** | `ollama` | Live list of your installed models |
|
|
36
|
+
| **External REST APIs** *(Optional)* | `DeepSeek`, `OpenRouter`, `OpenAI`, `Groq`, Custom | Live list from the provider's `/models` |
|
|
37
|
+
|
|
38
|
+
Model lists are fetched automatically (at most once a day) wherever the provider offers a way to list them, so new models show up without an update. You can always type any model ID by hand.
|
|
39
|
+
|
|
40
|
+
> **Fair use:** Each council run makes several requests (e.g. 3 members × 2 rounds + judge = 7 calls), which count toward your subscription's usage limits. YAC only calls each provider's official CLI, the same way you would from a terminal; please make sure your usage fits each provider's terms.
|
|
41
|
+
|
|
42
|
+
**YAC** auto-detects installed CLIs on your machine, orchestrates them **in parallel** using Python `asyncio`, and streams every round of deliberation live to a calm, minimalist Web UI or Rich terminal interface.
|
|
43
|
+
|
|
44
|
+
### Feature Comparison
|
|
45
|
+
|
|
46
|
+
| Feature | `karpathy/llm-council` | `togethercomputer/MoA` | **🏛️ YAC** |
|
|
47
|
+
| :--- | :---: | :---: | :---: |
|
|
48
|
+
| **Works with your existing CLI subscriptions (no API keys needed)** | ❌ | ❌ | ✅ (`claude`, `agy`, `zcode`, `codex`) |
|
|
49
|
+
| **Local Models (`ollama`) + External APIs (`DeepSeek`, etc.)** | ❌ | ⚠️ Partial | ✅ Hybrid CLI + REST API |
|
|
50
|
+
| **Deliberation Topologies** | 1 (3-Stage) | 1 (MoA) | **5** (`debate`, `karpathy`, `moa`, `blind_vote`, `red_team`) |
|
|
51
|
+
| **Drag-and-Drop Specialist Roles & Role Stacking** | ❌ | ❌ | ✅ Single role in Simple, stackable in Advanced |
|
|
52
|
+
| **Multi-Seat Cloning (Same/Different Models in Different Roles)** | ❌ | ❌ | ✅ e.g. `Claude #1 [Architect]` vs `Claude #2 [Devil's Advocate]` |
|
|
53
|
+
| **Per-Seat Model & Reasoning Effort Selection** | ❌ | ❌ | ✅ (`low`, `medium`, `high`, `xhigh`, `max`) |
|
|
54
|
+
| **Reusable Templates + Outbound REST API (`/api/v1/ask`)** | ❌ | ❌ | ✅ + OpenAI-compatible `/v1/chat/completions` |
|
|
55
|
+
| **Native MCP Server (`yac-mcp`)** | ❌ | ❌ | ✅ Plug into Claude Code, Cursor, Windsurf |
|
|
56
|
+
|
|
57
|
+
### Yes, there are other councils
|
|
58
|
+
|
|
59
|
+
The name is honest: multi-LLM councils are a crowded idea, and some other good tools also use your CLI subscriptions:
|
|
60
|
+
|
|
61
|
+
- [`consult-llm`](https://github.com/raine/consult-llm) and [`deliberation`](https://github.com/antonbabenko/deliberation) live **inside your coding agent** (skills / MCP / plugins) and are great for a quick second opinion while coding.
|
|
62
|
+
- [`mooting`](https://github.com/jyunming/mooting) and [`conclave`](https://github.com/0xDarkMatter/conclave) are **terminal-first** councils.
|
|
63
|
+
|
|
64
|
+
**YAC is the standalone app:** a web UI where you watch every round stream in, pick from five deliberation algorithms, assign roles by drag-and-drop, and keep a searchable history. The same councils are available from the terminal, a REST / OpenAI-compatible API, and MCP.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## ✨ Core Features
|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
### 1. Auto-Discovery Onboarding & Interactive Spotlight Tour
|
|
73
|
+
On first launch (or anytime via the `?` button), YAC scans your `PATH` for installed CLI tools, displays their readiness status, lets you optionally plug in external API keys (such as **DeepSeek API**, **OpenRouter**, **OpenAI**, **Groq**, or any custom OpenAI-compatible endpoint), and offers a 4-step **Interactive Spotlight Tour** that focuses on each area of the interface.
|
|
74
|
+
|
|
75
|
+
### 2. Progressive Disclosure UI (`Simple` vs. `Advanced` Mode)
|
|
76
|
+
- **Simple Mode:** Zero-config, distraction-free workspace. Type your prompt at the top, drag a specialist role (`🌐 General`, `🏗️ System Architect`, `😈 Devil's Advocate`, `🛡️ Security & Risk`, `⚡ Pragmatic Engineer`, `💰 Product & Cost`, `🔬 First-Principles`) onto any detected member, pick one of the 5 algorithms, and click **Convene Council →**.
|
|
77
|
+
- **Advanced Mode:** Unlocks power-user controls:
|
|
78
|
+
- **Multi-Seat Cloning (`⧉` / `+ Seat`):** Add multiple seats from the same provider (either with the same model in different specialist roles, or different models/efforts debating each other).
|
|
79
|
+
- **Role Stacking:** Drag multiple roles onto a single seat to combine their system prompts.
|
|
80
|
+
- **Per-Seat Model & Reasoning Effort Drawer:** Click any seat's `model • effort ▾` badge to override its model or reasoning effort level.
|
|
81
|
+
- **Editable Role Prompts (`✎`):** Customize the system prompt of any role.
|
|
82
|
+
- **Template, Judge & Rounds Controls:** Switch or save templates, pick the Supreme Judge, and adjust deliberation rounds.
|
|
83
|
+
|
|
84
|
+
### 3. Five Consensus & Deliberation Topologies
|
|
85
|
+
|
|
86
|
+
| Mode (`-m`) | Algorithm | How It Works |
|
|
87
|
+
| :--- | :--- | :--- |
|
|
88
|
+
| **`debate`** | **Multi-Agent Debate (MAD)** | **Round 1:** All seats answer independently in parallel from their assigned role perspectives.<br>**Round 2..N:** Each seat reads its peers' arguments, critiques logical flaws (with anti-sycophancy instructions), and refines its position.<br>**Final:** The Supreme Judge synthesizes consensus points, resolves disputes, and delivers the final verdict. |
|
|
89
|
+
| **`karpathy`** | **Karpathy 3-Stage Council** | **Stage 1 (First Opinions):** Parallel independent responses.<br>**Stage 2 (Anonymous Peer Review):** Responses are masked (`Response_A`, `Response_B`); models critique and rank each other blindly.<br>**Stage 3 (Chairman Synthesis):** Chairman reconciles all first opinions and peer rankings into one verdict. |
|
|
90
|
+
| **`moa`** | **Mixture of Agents (MoA)** | *Together AI pattern:* Layer 1 models act as diverse Proposers in parallel; Layer 2 Master Aggregator fuses the strongest insights from every proposer into one superior response. |
|
|
91
|
+
| **`blind_vote`** | **Blind Peer-Review Leaderboard** | Candidate answers are anonymized (`Candidate_A`, `Candidate_B`, `Candidate_C`). Models act as blind reviewers scoring each candidate `1–10` in structured JSON. A live leaderboard is computed and the highest-rated answer wins. |
|
|
92
|
+
| **`red_team`** | **Devil's Advocate / Stress Test** | Seat 1 proposes a thesis/architecture. Seat 2 (*Devil's Advocate*) ruthlessly attacks hidden assumptions, security flaws, and worst-case edge cases. Seat 3 (*Pragmatic Auditor*) flags over-engineering. The Judge produces a battle-tested synthesis. |
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 🧭 Architecture
|
|
97
|
+
|
|
98
|
+
```mermaid
|
|
99
|
+
flowchart LR
|
|
100
|
+
Q["User Prompt / REST API / MCP"] --> O["Async Council Orchestrator"]
|
|
101
|
+
subgraph Seats["Parallel Council Seats (CLI Subscriptions + APIs)"]
|
|
102
|
+
C["Claude CLI (claude -p)"]
|
|
103
|
+
G["Gemini CLI (agy -p)"]
|
|
104
|
+
Z["GLM-5.3 CLI (zcode -p)"]
|
|
105
|
+
X["Codex CLI / Ollama"]
|
|
106
|
+
D["External APIs (DeepSeek / OpenRouter)"]
|
|
107
|
+
end
|
|
108
|
+
O --> C & G & Z & X & D
|
|
109
|
+
C & G & Z & X & D --> A["Consensus Engine\n• Multi-Agent Debate\n• Karpathy 3-Stage Council\n• Mixture of Agents (MoA)\n• Blind Peer-Review\n• Red-Team Stress Test"]
|
|
110
|
+
A --> V["Supreme Verdict\n(SSE Web UI • SQLite History • REST API • Markdown)"]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 🚀 Quickstart
|
|
116
|
+
|
|
117
|
+
You need Python 3.11+ and at least one supported CLI installed and logged in (e.g. `claude`, `agy`, `zcode`, `codex`, or `ollama`).
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Install (pipx keeps it in its own environment; `pip install yet-another-council` works too)
|
|
121
|
+
pipx install yet-another-council
|
|
122
|
+
|
|
123
|
+
# Start the Web UI (opens http://127.0.0.1:8765 in your browser)
|
|
124
|
+
yac
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
If another tool on your machine already uses the name `yac`, the same command is also installed as `yet-another-council`.
|
|
128
|
+
|
|
129
|
+
Latest development version: `pipx install git+https://github.com/balpars/yet-another-council.git`. From a clone: `pip install -e .` then `yac`, or `python main.py`.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 💻 Terminal CLI Usage
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Check detected CLI & API providers on your machine
|
|
137
|
+
yac --doctor
|
|
138
|
+
|
|
139
|
+
# Default: 2-Round Multi-Agent Debate across all installed providers
|
|
140
|
+
yac "Should we use Kafka, RabbitMQ, or Redis Streams for 15k events/sec?"
|
|
141
|
+
|
|
142
|
+
# Run with a Built-in or Custom Template (-t)
|
|
143
|
+
yac "Evaluate our zero-trust B2B authentication architecture" -t architecture-board
|
|
144
|
+
|
|
145
|
+
# Karpathy's 3-Stage Council (-m karpathy)
|
|
146
|
+
yac "Compare Rust PyO3 vs Cython for CPU-bound Python extensions" -m karpathy
|
|
147
|
+
|
|
148
|
+
# Mixture of Agents with Gemini as Aggregator and High Reasoning Effort
|
|
149
|
+
yac "Design a zero-downtime schema migration strategy for a 2TB Postgres table" -m moa -j gemini -e high
|
|
150
|
+
|
|
151
|
+
# Blind Peer-Review Leaderboard & Save Verdict to Markdown (-o)
|
|
152
|
+
yac "What is the best architecture for real-time collaborative editing (CRDT vs OT)?" -m blind_vote -o verdict.md
|
|
153
|
+
|
|
154
|
+
# List available templates and saved SQLite history
|
|
155
|
+
yac --templates
|
|
156
|
+
yac --history
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 🔌 Outbound REST API & Templates (`/api/v1/ask`)
|
|
162
|
+
|
|
163
|
+
While `yac` is running, it exposes a REST API and an OpenAI-compatible chat completion endpoint on `http://127.0.0.1:8765`.
|
|
164
|
+
|
|
165
|
+
### 1. Query with a Template (`default` or custom template)
|
|
166
|
+
Built-in templates include `default`, `architecture-board`, and `red-team-audit`. You can also create custom templates from the Web UI or via `POST /api/v1/templates`.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
curl -X POST http://127.0.0.1:8765/api/v1/ask \
|
|
170
|
+
-H "Content-Type: application/json" \
|
|
171
|
+
-d '{
|
|
172
|
+
"question": "Postgres vs ClickHouse for real-time event analytics?",
|
|
173
|
+
"template": "default"
|
|
174
|
+
}'
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### 2. Parameterized Query (No Template Required)
|
|
178
|
+
Pass `algorithm`, `rounds`, `judge`, and custom `participants` (including multi-seat configurations, specific models, efforts, and roles) directly in the request body:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
curl -X POST http://127.0.0.1:8765/api/v1/ask \
|
|
182
|
+
-H "Content-Type: application/json" \
|
|
183
|
+
-d '{
|
|
184
|
+
"question": "Monolith vs Microservices for a team of 6 engineers?",
|
|
185
|
+
"algorithm": "debate",
|
|
186
|
+
"rounds": 2,
|
|
187
|
+
"judge": "claude",
|
|
188
|
+
"participants": [
|
|
189
|
+
{"provider": "claude", "model": "opus", "effort": "high", "role": "System Architect"},
|
|
190
|
+
{"provider": "gemini", "model": "gemini-4-argon-medium", "role": "Devil'\''s Advocate"},
|
|
191
|
+
{"provider": "glm", "model": "GLM-5.3", "role": "Pragmatic Engineer"}
|
|
192
|
+
]
|
|
193
|
+
}'
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### 3. OpenAI SDK Compatible Endpoint (`POST /v1/chat/completions`)
|
|
197
|
+
Use any standard OpenAI client, LangChain, or n8n node by pointing `base_url` to `http://127.0.0.1:8765/v1` and specifying `model="council/default"` (or `model="council/<template-id>"`):
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
curl -X POST http://127.0.0.1:8765/v1/chat/completions \
|
|
201
|
+
-H "Content-Type: application/json" \
|
|
202
|
+
-d '{
|
|
203
|
+
"model": "council/architecture-board",
|
|
204
|
+
"messages": [
|
|
205
|
+
{"role": "user", "content": "How should we design idempotent webhook consumers?"}
|
|
206
|
+
]
|
|
207
|
+
}'
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## 🧩 MCP Server (Claude Code / Cursor / Windsurf)
|
|
213
|
+
|
|
214
|
+
YAC includes a built-in **Model Context Protocol (MCP)** server over `stdio` (`yac-mcp`), exposing `ask_council`, `list_council_templates`, and `list_council_providers`. Your coding agent can automatically convene the council whenever it hits a complex architectural trade-off or bug.
|
|
215
|
+
|
|
216
|
+
### Add to Claude Code CLI in One Command
|
|
217
|
+
```bash
|
|
218
|
+
claude mcp add yac -- yac-mcp
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Add to Cursor / Windsurf / Antigravity (`mcp.json`)
|
|
222
|
+
```json
|
|
223
|
+
{
|
|
224
|
+
"mcpServers": {
|
|
225
|
+
"yac": {
|
|
226
|
+
"command": "yac-mcp"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## 🧪 Running Tests
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
python -m unittest discover -s tests -v
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 📄 License
|
|
243
|
+
|
|
244
|
+
Released under the [MIT License](https://github.com/balpars/yet-another-council/blob/main/LICENSE).
|