Thoughtbox

by Kastalien-Research

251 downloads
Not rated
GitHub

Description

# Thoughtbox [![smithery badge](https://smithery.ai/badge/@Kastalien-Research/clear-thought-two)](https://smithery.ai/server/@Kastalien-Research/clear-thought-two) Successor to Waldzell AI's Clear Thought. ## Features - Break down complex problems into manageable steps - Revise…

About

# Thoughtbox [![smithery badge](https://smithery.ai/badge/@Kastalien-Research/clear-thought-two)](https://smithery.ai/server/@Kastalien-Research/clear-thought-two) Successor to Waldzell AI's Clear Thought. ## Features - Break down complex problems into manageable steps - Revise and refine thoughts as understanding…

Details

Author
Kastalien-Research
Downloads
251
Categories
Other, AI

- Break down complex problems into manageable steps
- Revise and refine thoughts as understanding deepens
- Branch into alternative paths of reasoning
- Dynamically adjust the total number of thoughts
- Generate and verify solution hypotheses

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Thoughtbox
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via Smithery (npx -y @smithery/cli install @Kastalien-Research/clear-thought-two) or by adding it to your claude_desktop_config.json with npx -y clear-thought-two. Invoke the thoughtbox tool, providing the current thought, whether another step is needed, thought number, total thoughts, and optional parameters for revision, branching, and requesting more thoughts.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "thoughtbox": {
            "thoughtbox": {
                "command": "npx",
                "args": [
                    "-y",
                    "@smithery/cli",
                    "install",
                    "@Kastalien-Research/clear-thought-two"
                ]
            }
        }
    }
}

McpServers

{
    "thoughtbox": {
        "command": "npx",
        "args": [
            "-y",
            "@smithery/cli",
            "install",
            "@Kastalien-Research/clear-thought-two"
        ]
    }
}

Multi-agent collaborative reasoning that's auditable.Thoughtbox is an MCP server for structured, multi-agent reasoning, with a companion web app for workspace and inspection flows. Every step is recorded as a structured thought in a persistent reasoning ledger that can be visualized, exported, and analyzed.

Runtime modes:Local development can use filesystem or in-memory storage. Deployed mode uses Supabase-backed storage, and the current production MCP server runs on Cloud Run.

Observatory UI showing a reasoning session with 14 thoughts and a branch exploration (purple nodes 13-14) forking from thought 5.

Thoughtbox exposes exactlytwo MCP toolsusing the Code Mode pattern:

- thoughtbox_search— Write JavaScript to query the operation/prompt/resource catalog. The LLM has full programmatic filtering power over the catalog.
- thoughtbox_execute— Write JavaScript using thetbSDK to chain operations. Access thoughts, sessions, knowledge, notebooks, hub, observability, and protocol tools through a unified namespace.

Workflow:search to discover available operations, then execute code against them. Useconsole.log()for debugging — output is captured in response logs.

This replaces per-operation tool registration with a two-tool surface that scales without context window bloat.

The Hub is the coordination layer. Agents register with role-specific profiles, join shared workspaces, and work through a structured problem-solving workflow — all viathoughtbox_execute.

The workflow:register → create workspace → create problem → claim → work → propose solution → peer review → merge → consensus

- Problem— A unit of work with dependencies, sub-problems, and status tracking (open → in-progress → resolved → closed)
- Proposal— A proposed solution with a source branch reference and review workflow
- Consensus— A decision marker tied to a thought reference for traceability
- Channel— A message stream scoped to a problem for discussion

Agent Profiles:MANAGER,ARCHITECT,DEBUGGER,SECURITY,RESEARCHER,REVIEWER— each provides domain-specific mental models and behavioral priming.

28 operationsacross identity, workspace management, problems, proposals, consensus, channels, and status reporting.

Every thought is a node in a graph — numbered, timestamped, linked to its predecessors, and persisted across sessions. This creates an auditable trail of how conclusions were reached.

Agents can think forward, plan backward, branch into parallel explorations, and revise earlier conclusions. Each pattern is a first-class operation:

Each thought carries a semanticthoughtType(reasoning,decision_frame,action_report,belief_snapshot,assumption_update,context_snapshot,progress) that classifieswhat kindof thought it is, orthogonal to the process pattern used.

See thePatterns Cookbookfor comprehensive examples.

TheObservatoryis a built-in web UI athttp://localhost:1729for watching reasoning unfold live.

- Live Graph— thoughts appear as nodes in real-time via WebSocket
- Branch Navigation— branches collapse into clickable stubs; drill in and back out
- Detail Panel— click any node to view full thought content
- Multi-Session— switch between active reasoning sessions
- Deep Analysis— analyze sessions for reasoning patterns, cognitive load, and decision points

The full observability stack includes OpenTelemetry tracing, Prometheus metrics, and Grafana dashboards.

Knowledge Graph— Persistent memory across sessions. Capture insights, concepts, workflows, and decisions as typed entities with typed relations (BUILDS_ON,CONTRADICTS,SUPERSEDES, etc.) and visibility controls (public,agent-private,team-private).

Notebooks— Interactive literate programming combining documentation with executable JavaScript/TypeScript in isolated environments.

Thoughtbox is currently optimized forClaude Code. We are actively working on supporting additional MCP clients. Due to variation in capability support across the MCP ecosystem — server features (prompts, resources, tools), client features (roots, sampling, elicitation), and behaviors likelistChangednotifications — we implement custom adaptations for many clients.

If you're using a client other than Claude Code and encounter issues, pleaseopen an issuedescribing your client and the problem.

Thoughtbox runs as a Docker-based MCP server. It requires Docker and Docker Compose.

git clone https://github.com/Kastalien-Research/thoughtbox.git cd thoughtbox docker compose up --build

This starts Thoughtbox and the full observability stack. The MCP server listens on port1731and the Observatory UI is available athttp://localhost:1729.

Since Thoughtbox uses HTTP transport, configure your MCP client to connect via URL.

Add to your~/.claude/settings.jsonor project.claude/settings.json:

{ "mcpServers": { "thoughtbox": { "url": "http://localhost:1731/mcp" } } }

To connect through the observability sidecar (adds OpenTelemetry tracing):

{ "mcpServers": { "thoughtbox": { "url": "http://localhost:4000/mcp" } } }

Add to your MCP settings or.vscode/mcp.json:

{ "servers": { "thoughtbox": { "url": "http://localhost:1731/mcp" } } }
Thought 1: "Users report slow checkout. Let's analyze..." Thought 2: "Data shows 45s average, target is 10s..." Thought 3: "Root causes: 3 API calls, no caching..." Thought 4: "Options: Redis cache, query optimization, parallel calls..." Thought 5: "Recommendation: Implement Redis cache for product data"
Thought 8: [GOAL] "System handles 10k req/s with <100ms latency" Thought 7: "Before that: monitoring and alerting operational" Thought 6: "Before that: resilience patterns implemented" Thought 5: "Before that: caching layer with invalidation" ... Thought 1: [START] "Current state: 1k req/s, 500ms latency"
Thought 4: "Need to choose database architecture..." Branch A (thought 5): branchId="sql-path" "PostgreSQL: ACID compliance, mature tooling, relational integrity" Branch B (thought 5): branchId="nosql-path" "MongoDB: Flexible schema, horizontal scaling, document model" Thought 6: [SYNTHESIS] "Use PostgreSQL for transactions, MongoDB for analytics"

For local development (requires Node.js 22+):

pnpm install pnpm build pnpm dev # Development with hot reload
npx vitest run # Unit tests pnpm test # Full suite (build + vitest) pnpm test:agentic # Agentic tests — full suite (build + run) pnpm test:agentic:tool # Agentic tests — tool-level only pnpm test:agentic:quick # Agentic tests — quick (no build) pnpm test:behavioral # Behavioral contract tests

docker compose up --buildstarts the full stack:

Persistent data is stored in named volumes:thoughtbox-data,prometheus-data,grafana-data.

src/ ├── index.ts # Entry point (Streamable HTTP transport) ├── server-factory.ts # MCP server factory with tool registration ├── thought-handler.ts # Core thought recording logic ├── types.ts # Shared type definitions ├── database.types.ts # Supabase generated types ├── code-mode/ # Code Mode tool surface │ ├── search-tool.ts # thoughtbox_search — catalog query via JS │ ├── execute-tool.ts # thoughtbox_execute — operation chaining via tb SDK │ ├── search-index.ts # Frozen catalog of operations/prompts/resources │ └── sdk-types.ts # TypeScript definitions for the tb SDK ├── thought/ # Thought operations and tool definitions ├── sessions/ # Session management ├── persistence/ # Storage layer │ ├── storage.ts # InMemoryStorage with LinkedThoughtStore │ ├── filesystem-storage.ts # FileSystemStorage with atomic writes │ └── supabase-storage.ts # SupabaseStorage for deployed/cloud usage ├── observatory/ # Real-time visualization │ ├── ui/ # Self-contained HTML/CSS/JS │ └── ws-server.ts # WebSocket server for live updates ├── hub/ # Multi-agent collaboration │ ├── identity.ts # Agent registration │ ├── workspace.ts # Workspace management │ ├── problems.ts # Problem tracking with dependencies │ ├── proposals.ts # Solution proposals with reviews │ ├── consensus.ts # Decision recording │ ├── channels.ts # Problem-scoped messaging │ ├── hub-handler.ts # Hub operation dispatcher │ └── operations.ts # 28-operation catalog ├── channel/ # Hub event channels and SSE streaming ├── protocol/ # Ulysses and Theseus protocol tools ├── knowledge/ # Knowledge graph memory ├── auth/ # API key authentication ├── audit/ # Audit manifest generation ├── evaluation/ # LangSmith evaluation and online monitoring ├── notebook/ # Literate programming engine ├── events/ # Event emission system ├── observability/ # Prometheus/Grafana integration ├── prompts/ # MCP prompt definitions ├── references/ # Anchor parsing and resolution ├── revision/ # Revision indexing ├── operations-tool/ # Operations tool handler └── resources/ # Documentation and patterns cookbook

Thoughtbox supports three storage backends:

- InMemoryStorage: Volatile storage for testing, usesLinkedThoughtStorefor O(1) thought lookups
- FileSystemStorage: Persistent storage with atomic writes and project isolation (default)
- SupabaseStorage: Cloud-native storage backed by Supabase Postgres for deployed instances

Data is stored at~/.thoughtbox/by default (FileSystemStorage):

~/.thoughtbox/ ├── config.json # Global configuration └── projects/ └── {project}/ └── sessions/ └── {date}/ └── {session-id}/ ├── manifest.json └── {thought-number}.json

We welcome contributions! SeeCONTRIBUTING.mdfor:

- Development setup
- Commit conventions (optimized forthick_readcode comprehension)
- Testing with vitest and agentic scripts
- Pull request process

MIT License — free to use, modify, and distribute.

Advanced cognitive thinking MCP server with DAG-based thought graph, multiple reasoning strategies, metacognition, and self-evaluation.

OpenEnded Philosophy MCP Server with NARS Integration

A philosophical reasoning system combining OpenEnded Philosophy with the Non-Axiomatic Reasoning System (NARS) for advanced analysis and synthesis.

An advanced MCP server for multi-dimensional, adaptive, and collaborative reasoning.

True deliberative consensus MCP server where AI models debate and refine positions across multiple rounds

Multi-round AI debates between GPT, DeepSeek, Groq, and Claude — all models argue, critique, and synthesize inside your coding assistant.

A reasoning engine with multiple strategies, including Beam Search and Monte Carlo Tree Search.

MCP server for the Oyemi semantic lexicon. Provides deterministic word-to-code mapping and valence/sentiment analysis for AI agents like Claude, ChatGPT, and Gemini.

AI Reasoning Cache & Consensus Layer with 50+ reasoning objects across 14 domains. Cache hit/miss with token savings, failure risk check before execution, cross-model verification, and citation tracking. 11 MCP tools via Streamable HTTP.

Institutional research and manager diligence reports on hedge funds, venture capital and private equity managers. Summary of filings, personnel changes, media screening and social signals delivered to you in minutes.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.