ReasonKit
The AI Reasoning Engine
"Designed, not Dreamed." β From Prompt to Cognitive Engineering.
Auditable Reasoning for Production AI | Rust-Native | Turn Prompts into Protocols
Website | Pro | Docs | Resources | Enterprise | About | GitHub
π Quick Install
|
Universal Installer β’ All Platforms β’ All Shells β’ 30 Seconds
π Installation Guide β’ π¦ Crates.io β’ π Docs.rs
The Problem We Solve
Most AI is a slot machine. Insert prompt β pull lever β unclear, hope for coherence, at the mercy of chance.
ReasonKit is a factory. Input data β apply protocol β deeper logic, auditable result, known probabibility.

The Cost of Wrong Decisions: Without structured reasoning, AI decisions lead to financial loss and missed opportunities. Structured protocols catch errors early and prevent costly mistakes before they compound.
LLMs are fundamentally probabilistic. Same prompt β different outputs. This creates critical failures:
| Failure | Impact | Our Solution |
|---|---|---|
| Inconsistency | Unreliable for production | Deterministic protocol execution |
| Hallucination | Dangerous falsehoods | Multi-source triangulation + adversarial critique |
| Opacity | No audit trail | Complete execution tracing with confidence scores |
We don't eliminate probability (impossible). We constrain it through structured protocols that force probabilistic outputs into deterministic execution paths.
Quick Start
Already installed? Jump to Choose Your Workflow or How to Use.
Need installation help? See the Installation Guide or Installation Section below.
π€ Choose Your Workflow
π€ Claude Code (Opus 4.5)
Agentic CLI. No API key required.
Learn more: Claude Code Integration
π ChatGPT (Browser)
Manual MCP Bridge. Injects the reasoning protocol directly into the chat.
# Generate strict protocol
|
# β Paste into ChatGPT: "Execute this protocol..."
Learn more: ChatGPT Integration
β‘ Gemini 3.0 Pro (API)
Native CLI integration with Google's latest preview.
Learn more: Google Gemini Integration β’ All Provider Integrations
Note: The
rkcommand is the shorthand alias forrk.
30 seconds to structured reasoning. See How to Use for more examples.
ThinkTools: The 5-Step Reasoning Chain
Each ThinkTool acts as a variance reduction filter, transforming probabilistic outputs into increasingly deterministic reasoning paths.
π Full Documentation: ThinkTools Guide β’ API Reference



| ThinkTool | Operation | What It Does |
|---|---|---|
| GigaThink | Diverge() |
Generate 10+ perspectives, explore widely |
| LaserLogic | Converge() |
Detect fallacies, validate logic, find gaps |
| BedRock | Ground() |
First principles decomposition, identify axioms |
| ProofGuard | Verify() |
Multi-source triangulation, require 3+ sources |
| BrutalHonesty | Critique() |
Adversarial red team, attack your own reasoning |
Variance Reduction: The Chain Effect
Result: Raw LLM variance ~85% β Protocol-constrained variance ~28%
Reasoning Profiles
Pre-configured chains for different rigor levels. See Reasoning Profiles Guide for detailed documentation.
# Fast analysis (70% confidence target)
# Standard analysis (80% confidence target)
# Thorough analysis (85% confidence target)
# Maximum rigor (95% confidence target)
| Profile | Chain | Confidence | Use Case |
|---|---|---|---|
--quick |
GigaThink β LaserLogic | 70% | Fast sanity checks |
--balanced |
All 5 ThinkTools | 80% | Standard decisions |
--deep |
All 5 + meta-cognition | 85% | Complex problems |
--paranoid |
All 5 + validation pass | 95% | Critical decisions |
See It In Action

$ rk think --profile balanced "Should we migrate to microservices?"
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ThinkTool Chain: GigaThink β LaserLogic β BedRock β ProofGuard
Variance: 85% β 72% β 58% β 42% β 28%
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[GigaThink] 10 PERSPECTIVES GENERATED Variance: 85%
1. OPERATIONAL: Maintenance overhead +40% initially
2. TEAM TOPOLOGY: Conway's Law - do we have the teams?
3. COST ANALYSIS: Infrastructure scales non-linearly
...
β Variance after exploration: 72% (-13%)
[LaserLogic] HIDDEN ASSUMPTIONS DETECTED Variance: 72%
β Assuming network latency is negligible
β Assuming team has distributed tracing expertise
β Logical gap: No evidence microservices solve stated problem
β Variance after validation: 58% (-14%)
[BedRock] FIRST PRINCIPLES DECOMPOSITION Variance: 58%
β’ Axiom: Monoliths are simpler to reason about (empirical)
β’ Axiom: Distributed systems introduce partitions (CAP theorem)
β’ Gap: Cannot prove maintainability improvement without data
β Variance after grounding: 42% (-16%)
[ProofGuard] TRIANGULATION RESULT Variance: 42%
β’ 3/5 sources: Microservices increase complexity initially
β’ 2/5 sources: Some teams report success
β’ Confidence: 0.72 (MEDIUM) - Mixed evidence
β Variance after verification: 28% (-14%)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
VERDICT: conditional_yes | Confidence: 87% | Duration: 2.3s
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
What This Shows:
- Transparency: See exactly where confidence comes from
- Auditability: Every step logged and verifiable
- Deterministic Path: Same protocol β same execution flow
- Variance Reduction: Quantified uncertainty reduction at each stage
Architecture
The ReasonKit architecture uses a Protocol Engine wrapper to enforce deterministic execution over probabilistic LLM outputs.
π Full Documentation: Architecture Guide β’ API Reference


Three-Layer Architecture:
-
Probabilistic LLM (Unavoidable)
- LLMs generate tokens probabilistically
- Same prompt β different outputs
- We cannot eliminate this
-
Deterministic Protocol Engine (Our Innovation)
- Wraps the probabilistic LLM layer
- Enforces strict execution paths
- Validates outputs against schemas
- State machine ensures consistent flow
-
ThinkTool Chain (Variance Reduction)
- Each ThinkTool reduces variance
- Multi-stage validation catches errors
- Confidence scoring quantifies uncertainty
Key Components:
- Protocol Engine: Orchestrates execution with strict state management
- ThinkTools: Modular cognitive operations with defined contracts
- LLM Integration: Unified client (Claude, GPT, Gemini, 18+ providers)
- Telemetry: Local SQLite for execution traces + variance metrics

flowchart LR
subgraph CLI["ReasonKit CLI (rk)"]
A[User Command<br/>rk think --profile balanced]
end
subgraph PROTOCOL["Deterministic Protocol Engine"]
B1[State Machine<br/>Execution Plan]
B2[ThinkTool Orchestrator]
B3[(SQLite Trace DB)]
end
subgraph LLM["LLM Layer (Probabilistic)"]
C1[Provider Router]
C2[Claude / GPT / Gemini / ...]
end
subgraph TOOLS["ThinkTools Β· Variance Reduction"]
G["GigaThink<br/>Diverge()"]
LZ["LaserLogic<br/>Converge()"]
BR["BedRock<br/>Ground()"]
PG["ProofGuard<br/>Verify()"]
BH["BrutalHonesty<br/>Critique()"]
end
A --> B1 --> B2 --> G --> LZ --> BR --> PG --> BH --> B3
B2 --> C1 --> C2 --> B2
classDef core fill:#030508,stroke:#06b6d4,stroke-width:1px,color:#f9fafb;
classDef tool fill:#0a0d14,stroke:#10b981,stroke-width:1px,color:#f9fafb;
classDef llm fill:#111827,stroke:#a855f7,stroke-width:1px,color:#f9fafb;
class CLI,PROTOCOL core;
class G,LZ,BR,PG,BH tool;
class LLM,llm C1,C2;
Built for Production
ReasonKit is written in Rust because reasoning infrastructure demands reliability.
| Capability | What It Means for You |
|---|---|
| Predictable Latency | <5ms orchestration overhead, no GC pauses |
| Memory Safety | Zero crashes from null pointers or buffer overflows |
| Single Binary | Deploy anywhere, no Python environment required |
| Fearless Concurrency | Run 100+ reasoning chains in parallel safely |
| Type Safety | Errors caught at compile time, not runtime |
Benchmarked Performance (view full report β’ online version):
| Operation | Time | Target |
|---|---|---|
| Protocol orchestration | 4.4ms | <10ms |
| RRF Fusion (100 elements) | 33ΞΌs | <5ms |
| Document chunking (10 KB) | 27ΞΌs | <5ms |
| RAPTOR tree traversal (1000 nodes) | 33ΞΌs | <5ms |
Why This Matters:
Your AI reasoning shouldn't crash in production. It shouldn't pause for garbage collection during critical decisions. It shouldn't require complex environment management to deploy.
ReasonKit's Rust foundation ensures deterministic, auditable execution every timeβthe same engineering choice trusted by Linux, Cloudflare, Discord, and AWS for their most critical infrastructure.
Memory Infrastructure (Optional)
Memory modules (storage, embedding, retrieval, RAPTOR, indexing) are available in the standalone reasonkit-mem crate.
π Documentation: Memory Layer Guide β’ Crates.io β’ Docs.rs
Enable the memory feature to use these modules:
[]
= { = "0.1", = ["memory"] }
Features:
- Qdrant vector database (embedded mode)
- Hybrid search (dense + sparse fusion)
- RAPTOR hierarchical retrieval
- Local embeddings (BGE-M3 ONNX)
- BM25 full-text search (Tantivy)
Installation
Primary Method (Universal - All Platforms & Shells):
|
π Full Installation Guide: docs.reasonkit.sh/getting-started/installation
Platform Support:
- β Linux (all distributions)
- β macOS (Intel & Apple Silicon)
- β Windows (WSL & Native PowerShell)
- β FreeBSD (experimental)
Shell Support:
- β Bash (auto-detected, PATH configured)
- β Zsh (auto-detected, PATH configured)
- β Fish (auto-detected, PATH configured)
- β Nu (Nushell) (auto-detected, PATH configured)
- β PowerShell (cross-platform, PATH configured)
- β Elvish (auto-detected, PATH configured)
- β tcsh/csh/ksh (basic support)
Features:
- π¨ Beautiful terminal UI with progress visualization
- β‘ Fast installation (~30 seconds)
- π Secure (HTTPS-only, checksum verification)
- π§ Smart shell detection and PATH configuration
- π Real-time build progress with ETA
- π Automatic Rust installation if needed
π Learn more: Installation Guide β’ Installation Audit Report
# Cargo (Rust) - Recommended for Developers
# From Source (Latest Features)
&&
π¦ Package Links: Crates.io β’ Docs.rs β’ GitHub Releases
Windows (Native PowerShell):
irm https://get.reasonkit.sh/windows | iex
Python bindings available via PyO3 (build from source with --features python).
How to Use
Command Structure: rk <command> [options] [arguments]
π Full CLI Reference: CLI Documentation β’ API Reference
Standard Operations:
# Balanced analysis (5-step protocol)
# Quick sanity check (2-step protocol)
# Maximum rigor (paranoid mode)
# Scientific method (research & experiments)
With Memory (RAG):
# Ingest documents
# Query with RAG
# View execution traces
π Learn more: RAG Guide β’ Memory Layer Documentation
Contributing: The 5 Gates of Quality
We demand excellence. All contributions must pass The 5 Gates of Quality:
π Contributing Guide: CONTRIBUTING.md β’ Quality Gates Documentation

# Clone & Setup
# The 5 Gates (MANDATORY)
Quality Score Target: 8.0/10 minimum for release.
π Complete Guidelines: CONTRIBUTING.md β’ Quality Metrics
π·οΈ Community Badge
If you use ReasonKit in your project, add our badge:
[](https://reasonkit.sh)
π Badge Guide: Community Badges β’ All Variants
π¨ Branding & Design
- Brand Playbook - Complete brand guidelines
- Component Spec - UI component system
- Motion Guidelines - Animation system
- 3D Assets - WebGL integration guide
- Integration Guide - Complete integration instructions
π Online Resources: Brand Guidelines β’ Design System
Design Philosophy: Honest Engineering
We don't claim to eliminate probability. That's impossible. LLMs are probabilistic by design.
We do claim to constrain it. Through structured protocols, multi-stage validation, and deterministic execution paths, we transform probabilistic token generation into auditable reasoning chains.
| What We Battle | How We Battle It | What We're Honest About |
|---|---|---|
| Inconsistency | Deterministic protocol execution | LLM outputs still vary, but execution paths don't |
| Hallucination | Multi-source triangulation, adversarial critique | Can't eliminate, but can detect and flag |
| Opacity | Full execution tracing, confidence scoring | Transparency doesn't guarantee correctness |
| Uncertainty | Explicit confidence metrics, variance reduction | We quantify uncertainty, not eliminate it |
Version & Maturity
| Component | Status | Notes |
|---|---|---|
| ThinkTools Chain | β Stable | Core reasoning protocols production-ready |
| MCP Server | β Stable | Model Context Protocol integration |
| CLI | πΆ Scaffolded | mcp, serve-mcp, completions work; others planned |
| Memory Features | β Stable | Via reasonkit-mem crate |
| Python Bindings | πΆ Beta | Build from source with --features python |
Current Version: v0.1.5 | CHANGELOG | Releases β’ π¦ Crates.io β’ π Docs.rs
Verify Installation
# Check version
# Verify MCP server starts
# Run a quick test (requires LLM API key)
OPENAI_API_KEY=your-key
π Troubleshooting: Installation Issues β’ Common Problems
License
Apache 2.0 - See LICENSE
Open Source Core: All core reasoning protocols and ThinkTools are open source under Apache 2.0.
π License Information: LICENSE β’ License Strategy

ReasonKit β Turn Prompts into Protocols
Designed, Not Dreamed
Website | Pro | Docs | Resources | Enterprise | About | GitHub