tribunal-kit 5.7.0 → 5.8.1

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.
Files changed (59) hide show
  1. package/.agent/ARCHITECTURE.md +6 -7
  2. package/.agent/agents/frontend-reviewer.md +13 -0
  3. package/.agent/agents/frontend-specialist.md +14 -0
  4. package/.agent/agents/logic-reviewer.md +11 -0
  5. package/.agent/agents/orchestrator.md +15 -0
  6. package/.agent/agents/project-planner.md +5 -0
  7. package/.agent/agents/security-auditor.md +13 -0
  8. package/.agent/agents/ui-ux-auditor.md +7 -31
  9. package/.agent/history/memory/.memory.idx +1693 -0
  10. package/.agent/history/memory/MEMORY.md +123 -0
  11. package/.agent/routing_index.json +694 -714
  12. package/.agent/rules/GEMINI.md +88 -13
  13. package/.agent/scripts/_colors.js +131 -89
  14. package/.agent/scripts/_utils.js +163 -128
  15. package/.agent/scripts/auto_preview.js +207 -197
  16. package/.agent/scripts/bundle_analyzer.js +227 -192
  17. package/.agent/scripts/case_law_manager.js +991 -689
  18. package/.agent/scripts/checklist.js +233 -190
  19. package/.agent/scripts/context_broker.js +930 -605
  20. package/.agent/scripts/dependency_analyzer.js +275 -184
  21. package/.agent/scripts/graph_builder.js +412 -341
  22. package/.agent/scripts/graph_visualizer.js +392 -390
  23. package/.agent/scripts/graph_zoom.js +198 -156
  24. package/.agent/scripts/inner_loop_validator.js +523 -445
  25. package/.agent/scripts/lint_runner.js +199 -157
  26. package/.agent/scripts/marathon_harness.js +819 -661
  27. package/.agent/scripts/minify_context.js +115 -100
  28. package/.agent/scripts/mutation_runner.js +321 -280
  29. package/.agent/scripts/prompt_compiler.js +62 -42
  30. package/.agent/scripts/schema_validator.js +373 -280
  31. package/.agent/scripts/security_scan.js +333 -190
  32. package/.agent/scripts/session_manager.js +306 -270
  33. package/.agent/scripts/skill_evolution.js +810 -637
  34. package/.agent/scripts/skill_integrator.js +327 -307
  35. package/.agent/scripts/strengthen_skills.js +203 -193
  36. package/.agent/scripts/swarm_dispatcher.js +558 -457
  37. package/.agent/scripts/test_runner.js +178 -152
  38. package/.agent/scripts/verify_all.js +200 -168
  39. package/.agent/skills/fabel-protocol/SKILL.md +271 -0
  40. package/.agent/skills/thinking-protocol/SKILL.md +27 -0
  41. package/.agent/workflows/generate.md +2 -1
  42. package/.agent/workflows/tribunal-full.md +4 -3
  43. package/.agent/workflows/tribunal-speed.md +1 -1
  44. package/README.md +184 -58
  45. package/bin/mcp-server.js +496 -173
  46. package/bin/tribunal-kit.js +1245 -987
  47. package/bin/wrapper.js +108 -74
  48. package/dist/cli.js +44 -0
  49. package/dist/commands/align.js +201 -0
  50. package/dist/commands/case.js +23 -0
  51. package/dist/commands/compile.js +84 -0
  52. package/dist/commands/init.js +42 -0
  53. package/dist/commands/learn.js +57 -0
  54. package/dist/commands/memory.js +456 -0
  55. package/package.json +22 -10
  56. package/scripts/benchmark.js +162 -125
  57. package/scripts/changelog.js +196 -168
  58. package/scripts/sync-version.js +94 -81
  59. package/scripts/validate-payload.js +85 -78
package/README.md CHANGED
@@ -1,38 +1,52 @@
1
1
  <div align="center">
2
2
  <picture>
3
- <img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="500">
3
+ <img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="400">
4
4
  </picture>
5
5
 
6
- <br><br>
7
-
8
- <h1 style="font-size: 2.5em; border-bottom: none; margin-bottom: 0;">TRIBUNAL KIT</h1>
9
- <p style="font-size: 1.2em; color: #888;">
10
- <b>Anti-Hallucination Agent Architecture • Long-Running Autonomy • Pipeline Scrutiny</b>
6
+ <h1 style="font-size: 3em; font-weight: 800; letter-spacing: -1px; margin-bottom: 0;">TRIBUNAL KIT</h1>
7
+ <p style="font-size: 1.1em; color: #888; text-transform: uppercase; letter-spacing: 2px;">
8
+ <b>Anti-Hallucination Pipeline • Long-Running Autonomy Absolute Control</b>
11
9
  </p>
12
10
 
13
11
  <br>
14
12
 
15
- [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white&color=cb0000)](https://www.npmjs.com/package/tribunal-kit)
16
- [![License](https://img.shields.io/badge/License-MIT-8b5cf6?style=for-the-badge)](LICENSE)
17
- [![Version](https://img.shields.io/badge/Version-5.7.0_Quantum-1a1a1a?style=for-the-badge)](CHANGELOG.md)
18
- [![MCP](https://img.shields.io/badge/MCP-Ready-00e5ff?style=for-the-badge&logo=openai&logoColor=1a1a1a)](mcp_config.json)
19
- [![Code Quality](https://img.shields.io/badge/Zero-Hallucinations-ff1637?style=for-the-badge)](AGENT_FLOW.md)
20
-
21
- <br><br>
13
+ [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white&color=ff1637)](https://www.npmjs.com/package/tribunal-kit)
14
+ [![License](https://img.shields.io/badge/License-MIT-1a1a1a?style=for-the-badge)](LICENSE)
15
+ [![Version](https://img.shields.io/badge/Version-5.8.1-1a1a1a?style=for-the-badge)](CHANGELOG.md)
16
+ [![MCP](https://img.shields.io/badge/MCP-Ready-ccff00?style=for-the-badge&logo=openai&logoColor=1a1a1a)](mcp_config.json)
17
+ [![Code Quality](https://img.shields.io/badge/Hallucination_Mitigation-ff1637?style=for-the-badge)](AGENT_FLOW.md)
18
+ [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y6C122DUQJ)
22
19
 
23
20
  </div>
24
21
 
22
+ <br>
23
+
25
24
  > [!IMPORTANT]
26
25
  > **AI GENERATES CODE. TRIBUNAL ENSURES IT WORKS.**
27
- > A zero-bloat `.agent/` intelligence payload that upgrades your IDE with **40 specialist agents**, **34 workflows**, and a **16-reviewer Tribunal pipeline**. Zero hallucinations. Absolute execution certainty.
26
+ > A zero-bloat `.agent/` intelligence payload and **Model Context Protocol (MCP) server** that upgrades your IDE (**Cursor**, **VSCode**, **Windsurf**) and terminal AI coding assistants (**Claude Code**, **Aider**) with **43 specialist agents**, **34 workflows**, and a parallel **20-reviewer Tribunal pipeline**. Maximizes execution reliability, optimizes context windows, and heavily mitigates AI code hallucinations.
28
27
 
28
+ <br>
29
+ <hr style="border: 1px solid #222; margin: 40px 0;">
29
30
  <br>
30
31
 
31
- <div align="center">
32
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
33
- </div>
32
+ ## 📋 Table of Contents
34
33
 
35
- ## 🚀 QUICK START
34
+ - [🚀 Quick Start — Setting Up your AI Agent Code Review Engine](#-quick-start--setting-up-your-ai-agent-code-review-engine)
35
+ - [⚡ State-of-the-Art Performance (Tokio Rust Core)](#-state-of-the-art-performance-tokio-rust-core)
36
+ - [⚔️ The Command Arsenal — Swarms & Agentic Workflows](#️-the-command-arsenal--swarms--agentic-workflows)
37
+ - [💻 CLI Command Reference](#-cli-command-reference)
38
+ - [⚖️ The Tribunal Pipeline — Mitigating AI Code Hallucinations](#️-the-tribunal-pipeline--mitigating-ai-code-hallucinations)
39
+ - [🏛️ The Supreme Court Case Law Engine — Persistent Memory for AI Coding](#️-the-supreme-court-case-law-engine--persistent-memory-for-ai-coding)
40
+ - [🏃 The Marathon Harness — Long-Running Autonomous AI Agents](#-the-marathon-harness--long-running-autonomous-ai-agents)
41
+ - [🧠 Advanced Capabilities & System Prompt Rules (v5.8)](#-advanced-capabilities--system-prompt-rules-v58)
42
+ - [🔌 Model Context Protocol (MCP) Server for Cursor, VSCode & Windsurf](#-model-context-protocol-mcp-server-for-cursor-vscode--windsurf)
43
+ - [❓ Frequently Asked Questions (FAQ)](#-frequently-asked-questions-faq)
44
+
45
+ <br>
46
+ <hr style="border: 1px solid #222; margin: 40px 0;">
47
+ <br>
48
+
49
+ ## 🚀 Quick Start — Setting Up your AI Agent Code Review Engine
36
50
 
37
51
  Drop Tribunal into any existing project to instantly weaponize your IDE.
38
52
 
@@ -45,30 +59,32 @@ npx tribunal-kit init
45
59
  > <kbd>init</kbd> automatically generates bridge rules for **Cursor**, **Windsurf**, **Gemini**, **Copilot**, and **Claude**. No configuration required.
46
60
 
47
61
  ### 🔄 Auto-Syncing IDEs
48
-
49
62
  Keep your entire team aligned. Run <kbd>npx tribunal-kit sync</kbd> to instantly push the latest `.agent` rules directly into your IDE config files. Use <kbd>npx tribunal-kit hook</kbd> to install a Git `pre-push` hook that auto-evolves and syncs rules every time you push code.
50
63
 
64
+ ### 💻 Terminal Agent Support (Claude Code, Aider, OpenCode)
65
+ Tribunal Kit breaks out of the IDE with first-class support for terminal-based AI agents.
66
+ - **Dynamic MCP Integration**: Modern agents can connect to Tribunal via MCP (Model Context Protocol) to dynamically fetch only the specific skills and agents they need without blowing up the context window.
67
+ - **Static Compilation**: Run <kbd>tk compile</kbd> to statically generate a `.tribunal-compiled.md` file for terminal tools that require static context files.
68
+
69
+ <br>
70
+ <hr style="border: 1px solid #222; margin: 40px 0;">
51
71
  <br>
52
72
 
53
- ## ⚡ STATE-OF-THE-ART PERFORMANCE (v5.0)
73
+ ## ⚡ State-of-the-Art Performance (Tokio Rust Core)
54
74
 
55
75
  Tribunal-Kit v5 is rebuilt from the ground up to be blazingly fast. We've eliminated initialization latency and blocking I/O:
56
76
 
57
- - **Native Rust Core Engine**: The CLI parser and critical paths are now powered by a compiled `tokio`-based Rust binary (`tribunal-core`).
77
+ - **Native Rust Core Engine**: The CLI parser and critical paths are powered by a compiled `tokio`-based Rust binary (`tribunal-core`).
58
78
  - **Parallel I/O Processing**: File copies and bridge generation run concurrently with bounded thread pools (Semaphore concurrency: 64 in Rust, 32 in JS).
59
- - **Zero-Latency Updates**: `init --force` now uses SHA-256 hash manifesting. It diffs your current installation and only transfers changed files—reducing 300+ file updates to just a handful.
60
- - **In-Process MCP Routing**: `mcp-server.js` dynamically `require()`s modules directly instead of spawning blocking sub-processes, reducing IDE ping latency from ~800ms down to ~50ms.
79
+ - **Zero-Latency Updates**: `init --force` uses SHA-256 hash manifesting. It diffs your current installation and only transfers changed files.
80
+ - **In-Process MCP Routing**: `mcp-server.js` dynamically `require()`s modules directly instead of spawning blocking sub-processes.
61
81
  - **Lazy-Loaded Architecture**: The JavaScript CLI now lazy-loads commands on demand, cutting parsing overhead by 70%.
62
82
 
63
- With Tribunal-Kit 5.0, your intelligence payload deploys practically instantaneously.
64
-
83
+ <br>
84
+ <hr style="border: 1px solid #222; margin: 40px 0;">
65
85
  <br>
66
86
 
67
- <div align="center">
68
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
69
- </div>
70
-
71
- ## ⚔️ THE COMMAND ARSENAL
87
+ ## ⚔️ The Command Arsenal — Swarms & Agentic Workflows
72
88
 
73
89
  | Workflow Command | Operational Scope |
74
90
  | :------------------------ | :----------------------------------------------------------------------- |
@@ -76,17 +92,106 @@ With Tribunal-Kit 5.0, your intelligence payload deploys practically instantaneo
76
92
  | <kbd>/create</kbd> | Scaffold major applications via App Builder routing. |
77
93
  | <kbd>/enhance</kbd> | Safely extend existing codebases with zero regression. |
78
94
  | <kbd>/swarm</kbd> | Fan-out orchestrator. Dispatch isolated workers, synthesize output. |
79
- | <kbd>/tribunal-full</kbd> | Unleash **ALL 16** domain reviewers simultaneously for maximum scrutiny. |
95
+ | <kbd>/tribunal-full</kbd> | Unleash **ALL 20** domain reviewers simultaneously for maximum scrutiny. |
80
96
  | <kbd>/debug</kbd> | Systematic 4-phase root-cause investigation. No guessing. |
81
97
  | <kbd>/ui-ux-pro-max</kbd> | Advanced visual aesthetic engine. No generic AI slop. |
82
98
 
99
+ <br>
100
+ <hr style="border: 1px solid #222; margin: 40px 0;">
83
101
  <br>
84
102
 
85
- <div align="center">
86
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
87
- </div>
103
+ ## 💻 CLI Command Reference
104
+
105
+ You can run Tribunal commands using `npx tribunal-kit <command>` (or the short alias `tk <command>` if installed globally/locally).
106
+
107
+ ### Core Commands
108
+ * **`init`**: Initialize the `.agent/` configuration payload in the current directory.
109
+ ```bash
110
+ npx tribunal-kit init [--force] [--path <dir>] [--minimal] [--dry-run]
111
+ ```
112
+ * **`status`**: Check the status and integrity of the `.agent/` directory.
113
+ ```bash
114
+ npx tribunal-kit status
115
+ ```
116
+ * **`update`**: Re-install or refresh to pull the latest agent configurations into the project.
117
+ ```bash
118
+ npx tribunal-kit update
119
+ ```
120
+ * **`sync`**: Instantly synchronize the latest `.agent` rules directly with local IDE config files (Cursor, Windsurf, Copilot, VSCode, Gemini).
121
+ ```bash
122
+ npx tribunal-kit sync
123
+ ```
124
+ * **`hook`**: Install or configure Git `pre-push` hooks to auto-sync rules on push.
125
+ ```bash
126
+ npx tribunal-kit hook
127
+ ```
128
+ * **`compile`**: Compile static context rules into a `.tribunal-compiled.md` file for terminal agents.
129
+ ```bash
130
+ npx tribunal-kit compile
131
+ ```
132
+ * **`uninstall`**: Cleanly remove `.agent/` from the target project.
133
+ ```bash
134
+ npx tribunal-kit uninstall [--path <dir>]
135
+ ```
136
+
137
+ ### Case Law Engine (`case`)
138
+ Manage the Supreme Court Case Law database to prevent AI hallucinations.
139
+ * **`case add`**: Interactively record a new AI mistake/precedent.
140
+ * **`case list`**: List all recorded precedence entries.
141
+ * **`case search "<query>"`**: Search historical cases.
142
+ * **`case show --id <id>`**: Show details of a specific case.
143
+ * **`case stats`**: Display statistics on case counts and types.
144
+ * **`case export`**: Export database to a readable `.agent/history/case-law/CASE_LAW.md`.
145
+ * **`case overrule --id <id>`**: Remove/overrule a case entry.
146
+
147
+ ### Memory Engine (`memory`)
148
+ Manage the 4-Type Taxonomy Persistent Memory Engine.
149
+ * **`memory store`**: Store a tagged memory (`semantic`, `procedural`, `episodic`, or `working`).
150
+ ```bash
151
+ npx tribunal-kit memory store --type semantic --content "Uses PostgreSQL" --tags "db"
152
+ ```
153
+ * **`memory recall`**: Recall budget-gated memories.
154
+ ```bash
155
+ npx tribunal-kit memory recall --query "postgres" --budget 1000
156
+ ```
157
+ * **`memory gc`**: Garbage collect expired episodic and all working memories.
158
+ * **`memory stats`**: Show memory index statistics.
159
+ * **`memory export`**: Export the human-readable `MEMORY.md` index projection.
160
+
161
+ ### Codebase Graphs & Context
162
+ * **`graph`**: Analyze codebase dependencies, generate architecture graphs, and build context snapshots.
163
+ ```bash
164
+ npx tribunal-kit graph
165
+ ```
166
+ * **`context <file>`**: Read and inspect a specific context snapshot for a given file.
167
+ ```bash
168
+ npx tribunal-kit context src/utils.js
169
+ ```
170
+ * **`mutate <file> "<test-cmd>"`**: Run mutation testing on a file to verify test suite robustness.
171
+ ```bash
172
+ npx tribunal-kit mutate src/utils.js "npm test"
173
+ ```
174
+
175
+ ### Learning & Evolving
176
+ * **`learn`**: Evolve your project's custom skills and architectural idioms by reading git diffs.
177
+ ```bash
178
+ npx tribunal-kit learn [--dry-run] [--head]
179
+ ```
180
+
181
+ ### Marathon Long-Running Harness (`marathon`)
182
+ Run long-running, multi-session tasks tracked inside the feature DAG.
183
+ * **`marathon init "<spec>"`**: Start a new long-running task.
184
+ * **`marathon status`**: Show interactive progress dashboard.
185
+ * **`marathon next`**: Print next incomplete feature task.
186
+ * **`marathon mark <id> <pass|fail>`**: Mark a specific feature status.
187
+ * **`marathon log "<note>"`**: Append a progress log.
188
+ * **`marathon session-start` / `session-end`**: Manage session contexts.
189
+
190
+ <br>
191
+ <hr style="border: 1px solid #222; margin: 40px 0;">
192
+ <br>
88
193
 
89
- ## ⚖️ THE PIPELINE // EVIDENCE-BASED CLOSEOUT
194
+ ## ⚖️ The Tribunal Pipeline Mitigating AI Code Hallucinations
90
195
 
91
196
  Code generation is solved. **Code correctness is the frontier.**
92
197
 
@@ -99,50 +204,40 @@ graph TD
99
204
  C -.->|Failed| E[Maker Auto-Correction]
100
205
  E -.-> C
101
206
 
102
- D -->|16 Domain Reviewers| F[Human Gate]
207
+ D -->|20 Domain Reviewers| F[Human Gate]
103
208
  F -->|Approved| G((Committed to Disk))
104
209
 
105
210
  classDef default fill:#1a1a1a,stroke:#333,stroke-width:2px,color:#fff;
106
211
  classDef critical fill:#ff1637,stroke:#fff,stroke-width:2px,color:#fff;
107
- classDef success fill:#00e5ff,stroke:#fff,stroke-width:2px,color:#1a1a1a;
212
+ classDef success fill:#ccff00,stroke:#fff,stroke-width:2px,color:#1a1a1a;
108
213
 
109
214
  class D critical;
110
215
  class G success;
111
216
  ```
112
217
 
218
+ <br>
219
+ <hr style="border: 1px solid #222; margin: 40px 0;">
113
220
  <br>
114
221
 
115
- <div align="center">
116
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
117
- </div>
118
-
119
- ## 🏛️ THE SUPREME COURT (CASE LAW ENGINE)
222
+ ## 🏛️ The Supreme Court Case Law Engine — Persistent Memory for AI Coding
120
223
 
121
224
  The Tribunal Kit features persistent memory. The AI **never makes the same mistake twice** and auto-learns your engineering culture.
122
225
 
123
226
  > [!WARNING]
124
- >
125
227
  > ### 1. The Case Law Engine
126
- >
127
228
  > Record mistakes as legal precedent. The `precedence-reviewer` checks this database locally to forcefully block the AI from repeating banned patterns.
128
- >
129
229
  > - <kbd>npx tribunal-kit case add</kbd> _(Record an AI hallucination)_
130
230
 
131
231
  > [!TIP]
132
- >
133
232
  > ### 2. Skill Evolution Forge
134
- >
135
233
  > Stop writing manual rules. The system reads your Git diffs, strips token bloat, and auto-extracts your project's architectural idioms.
136
- >
137
234
  > - <kbd>npx tribunal-kit learn</kbd> _(Digest staged files)_
138
235
 
236
+ <br>
237
+ <hr style="border: 1px solid #222; margin: 40px 0;">
139
238
  <br>
140
239
 
141
- <div align="center">
142
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
143
- </div>
144
-
145
- ## 🏃 THE MARATHON HARNESS (v4.4+)
240
+ ## 🏃 The Marathon Harness — Long-Running Autonomous AI Agents
146
241
 
147
242
  The **Marathon Harness** is an engine designed to keep autonomous agents on track during long-running, multi-session projects without looping or losing context.
148
243
 
@@ -169,13 +264,24 @@ The **Marathon Harness** is an engine designed to keep autonomous agents on trac
169
264
  </tr>
170
265
  </table>
171
266
 
267
+ <br>
268
+ <hr style="border: 1px solid #222; margin: 40px 0;">
172
269
  <br>
173
270
 
174
- <div align="center">
175
- <img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" width="100%">
176
- </div>
271
+ ## 🧠 Advanced Capabilities & System Prompt Rules (v5.8)
272
+
273
+ The 5.8 update introduces a massive leap in long-running agent capabilities and code correctness:
177
274
 
178
- ## 🔌 NATIVE MCP SERVER
275
+ - **Persistent Memory Engine (4-Type Taxonomy)**: Agents now categorize memory into Semantic, Procedural, Episodic, and Working memory, using budget-gated recall to completely eliminate context window bloat over multi-day tasks.
276
+ - **Dependency Ladder Enforcement**: Automatically prevents over-engineering and architectural bloat through strict 6-rung dependency analysis before any new packages are introduced.
277
+ - **Skill Variance Tracking**: The system now self-evaluates custom skills by running benchmark prompts (Edge case, Standard, Malicious) and generating performance matrices.
278
+ - **Complex Artifact Protocol**: Upgraded agents with strict rules forbidding single-file monoliths for complex artifacts, enforcing proper component splitting and routing/state conventions.
279
+
280
+ <br>
281
+ <hr style="border: 1px solid #222; margin: 40px 0;">
282
+ <br>
283
+
284
+ ## 🔌 Model Context Protocol (MCP) Server for Cursor, VSCode & Windsurf
179
285
 
180
286
  Tribunal-Kit functions as a standalone **Model Context Protocol (MCP)** server via `stdio`.
181
287
 
@@ -184,11 +290,31 @@ Bind your AI IDE directly to `tribunal-kit` to unlock autonomous tool execution:
184
290
  - `run_tribunal_audit`: AI can trigger a full workspace health check.
185
291
  - `search_case_law`: AI can query your project's historical code rejections to avoid making mistakes _before_ it writes code.
186
292
  - `sync_ide_bridges`: Force rule alignment directly from the AI chat.
293
+ - `list_tribunal_agents` & `get_tribunal_skill`: Terminal agents can dynamically fetch specific skills without overloading their context windows.
294
+
295
+ <br>
296
+ <hr style="border: 1px solid #222; margin: 40px 0;">
297
+ <br>
187
298
 
299
+ ## ❓ Frequently Asked Questions (FAQ)
300
+
301
+ ### How does Tribunal-Kit prevent AI hallucinations?
302
+ Tribunal-Kit introduces a systematic, multi-reviewer pipeline called the **Tribunal Review**. When an AI agent generates code, it routes that code through up to 20 specialized domain reviewers (e.g., security, logic, schema) and verifies it against local tests and lint rules before presenting it to the developer.
303
+
304
+ ### Which IDEs and AI tools are supported by Tribunal-Kit?
305
+ Tribunal-Kit natively supports and automatically syncs rules with **Cursor**, **Windsurf**, **VSCode**, **Gemini**, **Copilot**, and **Claude Desktop**. It also supports terminal-based agents like **Claude Code**, **Aider**, and **OpenCode** via Model Context Protocol (MCP) or compiled static context files.
306
+
307
+ ### How do I connect Claude Code or Aider to Tribunal-Kit via MCP?
308
+ Tribunal-Kit includes a built-in Model Context Protocol (MCP) server. You can configure your AI assistant (like Claude Desktop or Claude Code) to spawn `node bin/wrapper.js` as an MCP server. This allows the AI agent to dynamically fetch custom skills, search the local case law precedence database, and run audits on demand.
309
+
310
+ ### What is the Supreme Court Case Law Engine?
311
+ It is a local, lightweight database that records past AI mistakes as legal precedent. Before code generation is committed, the `precedence-reviewer` queries this database to prevent the AI from repeating known codebase anti-patterns.
312
+
313
+ <br>
188
314
  <br>
189
315
 
190
316
  <div align="center">
191
- <img src="https://img.shields.io/badge/Status-Active_&_Secured-00e5ff?style=for-the-badge" alt="Status" />
317
+ <img src="https://img.shields.io/badge/Status-Active_&_Secured-ccff00?style=for-the-badge&logoColor=1a1a1a" alt="Status" />
192
318
  <br><br>
193
319
  <i>"Never guess database column names. Error handling on every async function. Evidence-based closeouts. Welcome to the Tribunal."</i><br>
194
320
  <sub><b>MIT Licensed</b> • Engineered for maximum autonomy and precision.</sub>