Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Turn Prompts into Protocols

ReasonKit is a structured reasoning infrastructure layer that forces AI to show its work. Every angle explored. Every assumption exposed. Every decision traceable.

The “Glass Box” Philosophy

Most AI responses are a Black Box: you input a prompt, and you hope for a smart answer.

ReasonKit is a Glass Box. It decomposes reasoning into verifiable, atomic steps. We don’t just ask the model to “think step by step”; we force it through a rigorous, engineered pipeline of cognitive modules.

Wrong Decisions vs Structured Reasoning { class=“docs-responsive-img” }

Why ReasonKit?

1. The Rust Supremacy (<5ms Overhead)

Reasoning chains add latency. If your framework adds overhead, your agent feels sluggish. ReasonKit’s core engine is written in Rust, offering zero-cost abstractions and sub-5ms overhead per step. It is built for production, not just prototyping.

2. Local-First & Private

Your data shouldn’t leave your VPC unless you want it to. ReasonKit works out-of-the-box with Ollama, LocalAI, and custom local endpoints. It is GDPR-compliant by default.

3. The “Faithfulness Gap” Closed

Standard Chain-of-Thought (CoT) often hallucinates a justification after making a decision. ReasonKit’s ThinkTools force the reasoning to happen before the synthesis, bridging the gap between the model’s logic and its output.

The Solution: ThinkTools

ReasonKit provides specialized cognitive modules, akin to software libraries for thought:

ToolPurposeCatches
GigaThinkExplore all anglesPerspectives you forgot
LaserLogicCheck reasoningFlawed logic hiding in cliches
BedRockFind first principlesSimple answers under complexity
ProofGuardVerify claims“Facts” that aren’t true
BrutalHonestySee blind spotsThe gap between plan and reality

Quick Example

# Install (Linux/macOS)
curl -fsSL https://get.reasonkit.sh | bash

# Ask a question with structured reasoning
rk think "Should I migrate my team to Rust?" --profile balanced

Who Is This For?

  • Engineers building autonomous agents who need reliability guarantees.
  • Enterprises who cannot afford stochastic, hallucinated outputs in legal or financial workflows.
  • Decision Makers who want to see the process, not just the answer.

Open Core

ReasonKit is Open Source (Apache 2.0).

  • Free forever: Core engine + standard ThinkTools.
  • Self-host: Run locally, own your traces.
  • Extensible: Write custom protocols in YAML/TOML.

View on GitHub


Last Updated: March 2026