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.
- package/.agent/ARCHITECTURE.md +6 -7
- package/.agent/agents/frontend-reviewer.md +13 -0
- package/.agent/agents/frontend-specialist.md +14 -0
- package/.agent/agents/logic-reviewer.md +11 -0
- package/.agent/agents/orchestrator.md +15 -0
- package/.agent/agents/project-planner.md +5 -0
- package/.agent/agents/security-auditor.md +13 -0
- package/.agent/agents/ui-ux-auditor.md +7 -31
- package/.agent/history/memory/.memory.idx +1693 -0
- package/.agent/history/memory/MEMORY.md +123 -0
- package/.agent/routing_index.json +694 -714
- package/.agent/rules/GEMINI.md +88 -13
- package/.agent/scripts/_colors.js +131 -89
- package/.agent/scripts/_utils.js +163 -128
- package/.agent/scripts/auto_preview.js +207 -197
- package/.agent/scripts/bundle_analyzer.js +227 -192
- package/.agent/scripts/case_law_manager.js +991 -689
- package/.agent/scripts/checklist.js +233 -190
- package/.agent/scripts/context_broker.js +930 -605
- package/.agent/scripts/dependency_analyzer.js +275 -184
- package/.agent/scripts/graph_builder.js +412 -341
- package/.agent/scripts/graph_visualizer.js +392 -390
- package/.agent/scripts/graph_zoom.js +198 -156
- package/.agent/scripts/inner_loop_validator.js +523 -445
- package/.agent/scripts/lint_runner.js +199 -157
- package/.agent/scripts/marathon_harness.js +819 -661
- package/.agent/scripts/minify_context.js +115 -100
- package/.agent/scripts/mutation_runner.js +321 -280
- package/.agent/scripts/prompt_compiler.js +62 -42
- package/.agent/scripts/schema_validator.js +373 -280
- package/.agent/scripts/security_scan.js +333 -190
- package/.agent/scripts/session_manager.js +306 -270
- package/.agent/scripts/skill_evolution.js +810 -637
- package/.agent/scripts/skill_integrator.js +327 -307
- package/.agent/scripts/strengthen_skills.js +203 -193
- package/.agent/scripts/swarm_dispatcher.js +558 -457
- package/.agent/scripts/test_runner.js +178 -152
- package/.agent/scripts/verify_all.js +200 -168
- package/.agent/skills/fabel-protocol/SKILL.md +271 -0
- package/.agent/skills/thinking-protocol/SKILL.md +27 -0
- package/.agent/workflows/generate.md +2 -1
- package/.agent/workflows/tribunal-full.md +4 -3
- package/.agent/workflows/tribunal-speed.md +1 -1
- package/README.md +184 -58
- package/bin/mcp-server.js +496 -173
- package/bin/tribunal-kit.js +1245 -987
- package/bin/wrapper.js +108 -74
- package/dist/cli.js +44 -0
- package/dist/commands/align.js +201 -0
- package/dist/commands/case.js +23 -0
- package/dist/commands/compile.js +84 -0
- package/dist/commands/init.js +42 -0
- package/dist/commands/learn.js +57 -0
- package/dist/commands/memory.js +456 -0
- package/package.json +22 -10
- package/scripts/benchmark.js +162 -125
- package/scripts/changelog.js +196 -168
- package/scripts/sync-version.js +94 -81
- 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="
|
|
3
|
+
<img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="400">
|
|
4
4
|
</picture>
|
|
5
5
|
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
[](https://www.npmjs.com/package/tribunal-kit)
|
|
14
|
+
[](LICENSE)
|
|
15
|
+
[](CHANGELOG.md)
|
|
16
|
+
[](mcp_config.json)
|
|
17
|
+
[](AGENT_FLOW.md)
|
|
18
|
+
[](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 **
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
## ⚡
|
|
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
|
|
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`
|
|
60
|
-
- **In-Process MCP Routing**: `mcp-server.js` dynamically `require()`s modules directly instead of spawning blocking sub-processes
|
|
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
|
-
|
|
64
|
-
|
|
83
|
+
<br>
|
|
84
|
+
<hr style="border: 1px solid #222; margin: 40px 0;">
|
|
65
85
|
<br>
|
|
66
86
|
|
|
67
|
-
|
|
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
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
## ⚖️
|
|
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 -->|
|
|
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:#
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
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-
|
|
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>
|