A local-first knowledge workspace for developers and AI agents. Keep team notes in Markdown, find source passages with ranked search, explore their connections, and give coding assistants scoped access through MCP.
Run the demo · Developer guide · Architecture · Benchmarks · Contribute
Team knowledge gets scattered across notes, handoffs, and decisions. An assistant needs the right context, and a developer needs to inspect where that context came from. EKB makes Markdown the durable source of truth, with a web workspace, command-line access, and an MCP interface over the same files.
This project grew out of a consulting-team knowledge workspace. The developer release generalizes that workflow into a standalone tool. It retains the original Go module and legacy configuration aliases so existing integrations can migrate incrementally.
Requires Go 1.26.1+, Node.js 22+, Python 3.10+, a C compiler for SQLite, and make.
git clone https://github.com/ichen27/enterprise-knowledge-base-system.git
cd enterprise-knowledge-base-system
make demoOpen http://127.0.0.1:8096. The isolated demonstration includes fictional engineering decisions, architecture notes, and incident runbooks. Search for release rollback owner, open the matching source, and explore the Engineering workspace. No model account is required for notes, search, or the graph.
The demo keeps its database and files in ignored .demo/, binds to loopback, and stops with Ctrl-C. It does not use an existing workspace or real organizational data. See the demo guide for screenshots and a guided walkthrough.
| Workflow | Implementation |
|---|---|
| Write and organize knowledge | Markdown files, rich-text editor, private and shared spaces, optimistic concurrency through ETags |
| Find relevant sources | Deterministic BM25 ranking, source paths, line numbers, and readable excerpts |
| Inspect relationships | A graph built from linked notes and inferred relationships; inferred edges are not verified facts |
| Connect an assistant | Eight MCP tools over stdio, API-key authentication, user and space boundaries |
| Automate from a terminal | Read, write, search, list, inspect locks, and upload through the CLI |
| Chat with your workspace | Existing tool-using chat supports configured OpenAI-compatible, Anthropic, and Ollama providers; requires a working provider |
Create an API key in the workspace's token settings, then:
make build-cli
export EKB_URL=http://127.0.0.1:8096
# Set EKB_API_KEY in your shell or secret manager; do not commit it.
bin/ekb search 'release rollback owner' --scope spaces/engineering/notes
bin/ekb ls spaces/engineering/notesFor MCP, build the server with make build and configure your client to launch bin/ekb-server mcp, with DATA_DIR, DB_PATH, and EKB_API_KEY pointing to the same workspace. MCP setup and tool reference includes the full configuration. Existing SLICE_API_KEY and SLICE_URL are accepted as fallbacks.
flowchart LR
Web[React workspace] --> API[Go HTTP API]
CLI[Developer CLI] --> API
Client[MCP client] --> MCP[Go stdio server]
API --> Scope[User and space access]
MCP --> Scope
Scope --> Files[Markdown source files]
Scope --> Search[BM25 source retrieval]
API --> DB[SQLite: users, spaces, chat]
Eval[Benchmark runner] --> Search
- Portable sources: Markdown remains readable without this application.
- No-key retrieval: BM25 is reproducible and inexpensive. It does not understand semantic paraphrases the way an embedding model can.
- Inspectable evidence: Results point back to files rather than silently replacing source material with generated summaries.
- Small-deployment architecture: search rebuilds an in-memory index from the requested scope; large corpora need an incremental index. SQLite and local files prioritize straightforward operation over horizontal scaling.
Read architecture and design decisions for the boundaries, existing chat/collaboration components, and why these choices were made.
The repository includes a runner that calls the same Go ranker as the application, adapters for LongMemEval, LoCoMo, and ConvoMem, pinned dataset provenance, and per-question prediction artifacts. The benchmark report states the exact coverage, exclusions, and measured results.
The frozen baseline measured 85.47% macro all-evidence session recall@5: LongMemEval-S 82.98% (470 eligible questions), LoCoMo 79.07% (1,438 eligible questions), and a fixed ConvoMem user-facts subset 94.37% (462 questions, 50–300 candidate conversations).
Retrieval recall is not answer accuracy. This asks whether every labeled evidence session appears in the first five results. The macro figure gives these three scopes equal weight; it is not an official combined benchmark and includes a ConvoMem subset. No answers were generated or judged. Protocol, exclusions, source hashes, and prediction files make the narrower claim reproducible.
cd web && npm ci && cd ..
make check
make build build-cli
python3 -m unittest discover -s benchmarks -p 'test_*.py'CI runs backend tests, benchmark-adapter tests, and frontend tests/build on pushes and pull requests. Test reports prove covered behavior; they do not establish production usage or external benchmark accuracy.
This is a self-hosted developer release, not a claim of enterprise certification or a managed service. The no-key demo is tested separately from provider-dependent chat. Development login must stay on loopback. Other deployments require a strong JWT_SECRET, configured authentication, backups, and appropriate operational review. Live external provider calls and multi-user production operations are not established by a local demo.
Do not commit API keys, databases, personal notes, or downloaded benchmark datasets. See CONTRIBUTING.md for setup, testing, commit conventions, and evidence requirements.

