Cognition Workbench
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 --> CQuick 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:codexRestart 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 |
| Guided discussion, contextual recall, and daily-topic workflows |
| Local MCP tools for retrieval, relationships, review, and daily topics |
| Your formal topics, cognition units, sources, and project records |
| Unconfirmed updates and daily topic proposals; ignored by Git |
| Human-editable Markdown record templates |
| Non-personal sample knowledge, kept outside the live knowledge base |
| 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 testThe 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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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