Skip to main content
Glama
to-real

Cognition Workbench

by to-real

Cognition Workbench

简体中文 · Documentation · Contributing · Security

A local-first cognition system for Codex. It turns guided discussions into reviewable knowledge, recalls relevant judgments in later work, and keeps external evidence separate from personal conclusions.

Why it exists

Most knowledge bases preserve information. Cognition Workbench preserves how a judgment was formed, what supports or challenges it, how confident it is, and when it should be reconsidered.

The first release provides three connected workflows:

  • Guided discussion — explores one branch and asks one question at a time.

  • Contextual recall — retrieves relevant prior cognition during AI, product, strategy, and implementation work.

  • Daily topic — proposes one high-value issue without starting the discussion automatically.

All formal knowledge stays in local Markdown. New conclusions enter a review inbox and are committed only after explicit confirmation.

flowchart LR
    A["Topic or daily prompt"] --> B["Guided discussion"]
    B --> C["Review candidate"]
    C -->|"explicit confirmation"| D["Markdown knowledge base"]
    D --> E["Context retrieval in later work"]
    E --> F["Validation, contradiction, or revision"]
    F --> C

Related MCP server: agent-history-mcp

Quick start

Requirements: Node.js 20 or newer, Codex, and Git.

git clone https://github.com/to-real/cognition-workbench.git
cd cognition-workbench
npm ci
npm run install:dry-run
npm run install:codex

Restart Codex after installation. The installer links the three bundled skills and registers the local MCP server. It derives every path from the checkout, refuses to replace unrelated files, and supports --force only for replacing the existing MCP registration.

Then try:

Let's discuss whether AI agents will replace traditional enterprise software.
Recommend today's topic.
Evaluate whether this AI office product has a durable moat.
Use my previous judgments about workflow switching costs.

Chinese is the default discussion language in the bundled skills, but their instructions can be adapted.

What is included

Area

Purpose

skills/

Guided discussion, contextual recall, and daily-topic workflows

server/

Local MCP tools for retrieval, relationships, review, and daily topics

knowledge/

Your formal topics, cognition units, sources, and project records

inbox/

Unconfirmed updates and daily topic proposals; ignored by Git

templates/

Human-editable Markdown record templates

examples/

Non-personal sample knowledge, kept outside the live knowledge base

docs/

Product model, usage, architecture, and development notes

Design boundaries

  • Markdown is the source of truth; generated state is disposable.

  • Personal judgment and external evidence are distinct record types.

  • Retrieval combines title, body, categories, tags, status, and explicit links.

  • Obsolete cognition is retained as history and excluded from default guidance.

  • No vector database, hosted account, or external analytics is required.

See Architecture, Knowledge model, and Usage for details.

Development

npm ci
npm test

The test suite covers retrieval ranking, relationship expansion, review-before-write behavior, version history, the daily topic constraint, portable installation planning, and a real MCP client/server exchange.

Status

v0.1.0 is an intentionally small local-first release. Semantic retrieval, richer contradiction detection, and a dedicated interface are future options, not runtime requirements.

License

MIT

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • Individual-analyst context layer: recall, remember, and reconcile your data and engineering context.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/to-real/cognition-workbench'

If you have feedback or need assistance with the MCP directory API, please join our Discord server