Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Tribunal Kit

БесплатноПоддерживается

Anti-Hallucination AI Agent Kit for IDEs (Cursor, VSCode, Windsurf) — 43 specialist agents, 34 workflows, 20 parallel Tribunal code reviewers, Model Context Pro

GitHubEmbed

Описание

Anti-Hallucination AI Agent Kit for IDEs (Cursor, VSCode, Windsurf) — 43 specialist agents, 34 workflows, 20 parallel Tribunal code reviewers, Model Context Protocol (MCP) server, and long-running autonomous agent harness.

README

TribunalKit — Code Without Hallucinations

TRIBUNAL KIT

Anti-Hallucination Pipeline • Long-Running Autonomy • Absolute Control


NPM License Version MCP Code Quality ko-fi


[!IMPORTANT] AI GENERATES CODE. TRIBUNAL ENSURES IT WORKS.
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.




📋 Table of Contents




🚀 Quick Start — Setting Up your AI Agent Code Review Engine

Drop Tribunal into any existing project to instantly weaponize your IDE.

# Pull the intelligence payload into your project directory
npx tribunal-kit init

[!NOTE] init automatically generates bridge rules for Cursor, Windsurf, Gemini, Copilot, and Claude. No configuration required.

🔄 Auto-Syncing IDEs

Keep your entire team aligned. Run npx tribunal-kit sync to instantly push the latest .agent rules directly into your IDE config files. Use npx tribunal-kit hook to install a Git pre-push hook that auto-evolves and syncs rules every time you push code.

💻 Terminal Agent Support (Claude Code, Aider, OpenCode)

Tribunal Kit breaks out of the IDE with first-class support for terminal-based AI agents.

  • 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.
  • Static Compilation: Run tk compile to statically generate a .tribunal-compiled.md file for terminal tools that require static context files.



⚡ State-of-the-Art Performance (Tokio Rust Core)

Tribunal-Kit v5 is rebuilt from the ground up to be blazingly fast. We've eliminated initialization latency and blocking I/O:

  • Native Rust Core Engine: The CLI parser and critical paths are powered by a compiled tokio-based Rust binary (tribunal-core).
  • Parallel I/O Processing: File copies and bridge generation run concurrently with bounded thread pools (Semaphore concurrency: 64 in Rust, 32 in JS).
  • Zero-Latency Updates: init --force uses SHA-256 hash manifesting. It diffs your current installation and only transfers changed files.
  • In-Process MCP Routing: mcp-server.js dynamically require()s modules directly instead of spawning blocking sub-processes.
  • Lazy-Loaded Architecture: The JavaScript CLI now lazy-loads commands on demand, cutting parsing overhead by 70%.



⚔️ The Command Arsenal — Swarms & Agentic Workflows

Workflow Command Operational Scope
/generate Full Tribunal sequence: Generate → Audit → Human Gate.
/create Scaffold major applications via App Builder routing.
/enhance Safely extend existing codebases with zero regression.
/swarm Fan-out orchestrator. Dispatch isolated workers, synthesize output.
/tribunal-full Unleash ALL 20 domain reviewers simultaneously for maximum scrutiny.
/debug Systematic 4-phase root-cause investigation. No guessing.
/ui-ux-pro-max Advanced visual aesthetic engine. No generic AI slop.



💻 CLI Command Reference

You can run Tribunal commands using npx tribunal-kit <command> (or the short alias tk <command> if installed globally/locally).

Core Commands

  • init: Initialize the .agent/ configuration payload in the current directory.
    npx tribunal-kit init [--force] [--path <dir>] [--minimal] [--dry-run]
    
  • status: Check the status and integrity of the .agent/ directory.
    npx tribunal-kit status
    
  • update: Re-install or refresh to pull the latest agent configurations into the project.
    npx tribunal-kit update
    
  • sync: Instantly synchronize the latest .agent rules directly with local IDE config files (Cursor, Windsurf, Copilot, VSCode, Gemini).
    npx tribunal-kit sync
    
  • hook: Install or configure Git pre-push hooks to auto-sync rules on push.
    npx tribunal-kit hook
    
  • compile: Compile static context rules into a .tribunal-compiled.md file for terminal agents.
    npx tribunal-kit compile
    
  • uninstall: Cleanly remove .agent/ from the target project.
    npx tribunal-kit uninstall [--path <dir>]
    

Case Law Engine (case)

Manage the Supreme Court Case Law database to prevent AI hallucinations.

  • case add: Interactively record a new AI mistake/precedent.
  • case list: List all recorded precedence entries.
  • case search "<query>": Search historical cases.
  • case show --id <id>: Show details of a specific case.
  • case stats: Display statistics on case counts and types.
  • case export: Export database to a readable .agent/history/case-law/CASE_LAW.md.
  • case overrule --id <id>: Remove/overrule a case entry.

Memory Engine (memory)

Manage the 4-Type Taxonomy Persistent Memory Engine.

  • memory store: Store a tagged memory (semantic, procedural, episodic, or working).
    npx tribunal-kit memory store --type semantic --content "Uses PostgreSQL" --tags "db"
    
  • memory recall: Recall budget-gated memories.
    npx tribunal-kit memory recall --query "postgres" --budget 1000
    
  • memory gc: Garbage collect expired episodic and all working memories.
  • memory stats: Show memory index statistics.
  • memory export: Export the human-readable MEMORY.md index projection.

Codebase Graphs & Context

  • graph: Analyze codebase dependencies, generate architecture graphs, and build context snapshots.
    npx tribunal-kit graph
    
  • context <file>: Read and inspect a specific context snapshot for a given file.
    npx tribunal-kit context src/utils.js
    
  • mutate <file> "<test-cmd>": Run mutation testing on a file to verify test suite robustness.
    npx tribunal-kit mutate src/utils.js "npm test"
    

Learning & Evolving

  • learn: Evolve your project's custom skills and architectural idioms by reading git diffs.
    npx tribunal-kit learn [--dry-run] [--head]
    

Marathon Long-Running Harness (marathon)

Run long-running, multi-session tasks tracked inside the feature DAG.

  • marathon init "<spec>": Start a new long-running task.
  • marathon status: Show interactive progress dashboard.
  • marathon next: Print next incomplete feature task.
  • marathon mark <id> <pass|fail>: Mark a specific feature status.
  • marathon log "<note>": Append a progress log.
  • marathon session-start / session-end: Manage session contexts.



⚖️ The Tribunal Pipeline — Mitigating AI Code Hallucinations

Code generation is solved. Code correctness is the frontier.

graph TD
    A[User Request] -->|Intent Parsed| B(Context Broker)
    B --> C{Inner-Loop Validator}

    C -->|Syntax & Secrets Check| D[Parallel Tribunal Review]
    C -.->|Failed| E[Maker Auto-Correction]
    E -.-> C

    D -->|20 Domain Reviewers| F[Human Gate]
    F -->|Approved| G((Committed to Disk))

    classDef default fill:#1a1a1a,stroke:#333,stroke-width:2px,color:#fff;
    classDef critical fill:#ff1637,stroke:#fff,stroke-width:2px,color:#fff;
    classDef success fill:#ccff00,stroke:#fff,stroke-width:2px,color:#1a1a1a;

    class D critical;
    class G success;



🏛️ The Supreme Court Case Law Engine — Persistent Memory for AI Coding

The Tribunal Kit features persistent memory. The AI never makes the same mistake twice and auto-learns your engineering culture.

[!WARNING]

1. The Case Law Engine

Record mistakes as legal precedent. The precedence-reviewer checks this database locally to forcefully block the AI from repeating banned patterns.

  • npx tribunal-kit case add (Record an AI hallucination)

[!TIP]

2. Skill Evolution Forge

Stop writing manual rules. The system reads your Git diffs, strips token bloat, and auto-extracts your project's architectural idioms.

  • npx tribunal-kit learn (Digest staged files)



🏃 The Marathon Harness — Long-Running Autonomous AI Agents

The Marathon Harness is an engine designed to keep autonomous agents on track during long-running, multi-session projects without looping or losing context.

⛓️ DAG Support

Cascade failures are obsolete. Features can now be declared with dependencies (--deps=1,2). If a database schema task fails, the API route task is automatically flagged as Deadlocked and bypassed until the root issue is resolved.

🧠 Memory Distillation

Context windows dilute over time. The new distill command allows agents to forge crucial architectural decisions into a permanent distilled_context.md memory matrix, bridging the amnesia gap between long work sessions.

📊 Native Swarm Dashboard

When dispatching parallel tasks via /swarm, Tribunal intercepts the noisy terminal output and renders a sleek, zero-dependency ANSI TUI Dashboard. Watch agents research, generate, and review in real-time.

🔮 Failure Context Tracking

Agents no longer blindly retry failed approaches. When a feature fails, the reason and attempt count are permanently logged. The next agent receives the exact failure history to course-correct immediately.




🧠 Advanced Capabilities & System Prompt Rules (v5.8)

The 5.8 update introduces a massive leap in long-running agent capabilities and code correctness:

  • 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.
  • Dependency Ladder Enforcement: Automatically prevents over-engineering and architectural bloat through strict 6-rung dependency analysis before any new packages are introduced.
  • Skill Variance Tracking: The system now self-evaluates custom skills by running benchmark prompts (Edge case, Standard, Malicious) and generating performance matrices.
  • Complex Artifact Protocol: Upgraded agents with strict rules forbidding single-file monoliths for complex artifacts, enforcing proper component splitting and routing/state conventions.



🔌 Model Context Protocol (MCP) Server for Cursor, VSCode & Windsurf

Tribunal-Kit functions as a standalone Model Context Protocol (MCP) server via stdio.

Bind your AI IDE directly to tribunal-kit to unlock autonomous tool execution:

  • run_tribunal_audit: AI can trigger a full workspace health check.
  • search_case_law: AI can query your project's historical code rejections to avoid making mistakes before it writes code.
  • sync_ide_bridges: Force rule alignment directly from the AI chat.
  • list_tribunal_agents & get_tribunal_skill: Terminal agents can dynamically fetch specific skills without overloading their context windows.



❓ Frequently Asked Questions (FAQ)

How does Tribunal-Kit prevent AI hallucinations?

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.

Which IDEs and AI tools are supported by Tribunal-Kit?

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.

How do I connect Claude Code or Aider to Tribunal-Kit via MCP?

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.

What is the Supreme Court Case Law Engine?

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.



Status

"Never guess database column names. Error handling on every async function. Evidence-based closeouts. Welcome to the Tribunal."
MIT Licensed • Engineered for maximum autonomy and precision.

from github.com/Harmitx7/tribunal-kit

Установить Tribunal Kit в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install tribunal-kit

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add tribunal-kit -- npx -y tribunal-kit

FAQ

Tribunal Kit MCP бесплатный?

Да, Tribunal Kit MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Tribunal Kit?

Нет, Tribunal Kit работает без API-ключей и переменных окружения.

Tribunal Kit — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Tribunal Kit в Claude Desktop, Claude Code или Cursor?

Открой Tribunal Kit на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Tribunal Kit with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development