Markdown-first knowledge base engine with Git as the source of truth
Repo Qinbf/groundmap, read from GitHub 26 min ago. Qinbf has not joined Take My Repo.
Qinbf/groundmap is a public repo on GitHub by Qinbf. Markdown-first knowledge base engine with Git as the source of truth. It declares the Apache-2.0 license on GitHub. It is written mainly in TypeScript, has 28 stars and last changed on 2026-07-23. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Source-grounded knowledge map for humans and AI agents.
English | 简体中文
GroundMap is a local-first knowledge map built on Markdown, Git, stable block anchors, and full-page agent reading. It is designed for teams and solo builders who want auditable, source-grounded knowledge without vector databases, document chunking, or hidden LLM runtime inside the core repository.
Most RAG systems optimize for recall first: split documents into chunks, embed them, retrieve fragments, and ask an LLM to reconstruct context.
GroundMap starts from a different premise:
That gives you an AI-ready wiki that is easier to audit, diff, review, and maintain over time.
^h-*, ^p-*, and ^t-* so claims can cite exact source blocks.raw/**, my_thoughts/**, #human-only, and locked: true files are protected by policy and hooks.SUPPORTS, REFUTES, EXTENDS, …), linted against a whitelist and rendered as an interactive graph at /graph in the Web console.GroundMap is designed to be managed with coding agents such as Claude Code, Codex, Cursor-style agents, or any tool that can read files, edit Markdown, and run shell commands. The agent handles LLM reasoning outside the knowledge base: it reads full wiki pages, calls scripts/k.py for search/outline/backlinks/health checks, updates wiki/** Markdown, and commits changes through Git.
For best results, ask your agent to read CLAUDE.md or AGENTS.md before working in the repository. Those files define the operating rules for ingesting sources, answering queries, resolving conflicts, protecting human-only areas, and keeping the Markdown knowledge base auditable.
Browse complete wiki pages with frontmatter, source citations, and block previews.

Explore typed wiki relations as an interactive knowledge graph.

Use the optional debug console to inspect agent reasoning, tool calls, and grounded answers.

Requirements:
git clone https://github.com/Qinbf/groundmap.git
cd groundmap
make setup
make test
make web
Then open http://localhost:3006.
📦 Example
raw/sources are not distributed with this repository (copyright reasons;workspaces/*/raw/is excluded by.gitignore). The example workspaces ship their fullwiki/pages, which remain completely browsable. After a fresh clone,k.py healthreports nonzero broken references (across the example workspaces — "raw 文件不存在" / raw file missing) and source issues (broken-source-link:source_summarypages cite[[raw/...]]blocks that aren't present) — both are expected and do not mean your installation failed; they are the same raw-absent artifact, only the deep links into missing raw blocks are unresolved. To exercise the full convert → cite loop, ingest your own documents into a workspace'sraw/.
The recommended real-world workflow is: clone GroundMap as the engine, prepare your source documents yourself, create a new workspace, then ask Claude Code, Codex, or another coding agent to ingest those files into the knowledge base.
For private or copyrighted documents, keep your data outside the public engine repo and point GroundMap at it with KB_ROOT:
mkdir -p ~/work/my-kb-data/workspaces
KB_ROOT=~/work/my-kb-data python scripts/k.py new-workspace my-research
mkdir -p ~/work/my-kb-data/workspaces/my-research/raw/papers
# Put your PDFs, HTML files, Word docs, or Markdown files into raw/papers/ or raw/articles/ yourself.
Then start your agent in this repository and give it a concrete instruction, for example:
Read AGENTS.md first. Use KB_ROOT=~/work/my-kb-data and workspace my-research.
I put source documents under raw/papers/. Please ingest them into the knowledge base,
update the relevant wiki pages and indexes, run the health/lint checks, and summarize what changed.
To browse the result:
cd web
KB_ROOT=~/work/my-kb-data KB_WORKSPACE=my-research npm run dev
Manual setup:
python -m pip install -r requirements-dev.txt
cd web && npm install && cd ..
bash scripts/install_hooks.sh
python -m pytest scripts/tests
python scripts/k.py health --json
cd web && npm run lint && npm run build
⚠️ Stop your dev server before running
npm run build. The Web console (npm run dev) andnext buildshare the sameweb/.next/directory. Running a production build while a dev server is live can leave the dev server serving 404s. To validate types only without building, runcd web && npx tsc --noEmitinstead. (CI runs the full build in a clean environment, which is fine.)
Local servers listen on localhost (Web console :3006, debug console :3100). With a system/terminal proxy active:
make dev starts the Web console (:3006) and the debug console (:3100) together (Ctrl-C stops both); make web starts just the Web console. Both set no_proxy=localhost,127.0.0.1,::1, so the local servers and their child processes are never routed through the proxy — they start whether or not a proxy is on.npm directly: if you bypass the Makefile with cd web && npm run dev and have no global no_proxy, command-line tools may send loopback requests to the proxy. Use make instead, or export no_proxy=localhost,127.0.0.1,::1 first (persist it in ~/.zshenv).localhost by default. If a proxy extension (e.g. SwitchyOmega) breaks access, add localhost, 127.0.0.1 to its bypass list..next cache (after switching branches / large edits), unrelated to the proxy — run make clean and restart.Engine code (scripts/, web/) is shared; data is isolated per topic under workspaces/<name>/. Each workspace has the same internal layout: wiki/, raw/, exports/, my_thoughts/, .cache/, and log.md. When no workspace is specified, the CLI auto-selects one (and prints a hint when several exist); pass --workspace to choose.
# No --workspace: auto-selects a workspace (prints a hint when several exist)
python scripts/k.py health --json
# Target a specific workspace
python scripts/k.py --workspace ai-ml-demo search "transformer"
cd web && KB_WORKSPACE=rag-evolution npm run dev
This repository ships three example workspaces: smb-ecommerce, rag-evolution, and ai-ml-demo. The first two are living demos; ai-ml-demo is an archived v0 library kept on purpose — most of its pages carry status: deprecated, demonstrating the "mark, never delete" archival workflow.
The web top bar includes a workspace switcher (writes a kb_workspace cookie and reloads), so you can switch libraries live in the UI without restarting; KB_WORKSPACE sets the initial default. The cookie value is validated against the real workspace list (resolveWorkspace()), so a tampered cookie can't escape the workspaces directory.
The engine (scripts/, web/) is a shared tool. Each independent project keeps its own knowledge base in that project's own folder and points the engine at it via the KB_ROOT environment variable:
# Engine installed once; data lives in each project's own directory
KB_ROOT=~/work/project-a/kb-data python ~/tools/groundmap/scripts/k.py --workspace main health
cd ~/tools/groundmap/web && KB_ROOT=~/work/project-a/kb-data KB_WORKSPACE=main npm run dev
KB_ROOT must point to the data root that contains workspaces/ (e.g. <project>/kb-data), not a specific workspace; --workspace / KB_WORKSPACE then picks the library inside it. When KB_ROOT is unset it defaults to the engine repo itself (data-in-repo, the multi-topic mode above). Keeping each project's data in its own folder lets the engine stay pure code — shared, upgraded, and open-sourced without leaking any project's data. See GroundMap-设计文档.md §2.4 for the full deployment model.
All of the following work on a fresh clone (they only read the bundled wiki/ pages):
python scripts/k.py health --json
python scripts/k.py --workspace rag-evolution search "retrieval"
python scripts/k.py --workspace rag-evolution outline wiki/sources/bge.md
python scripts/k.py list-conflicts
python scripts/k.py list-to-update
Web console (defaults to http://127.0.0.1:3006, local single-user; it does not bind to 0.0.0.0 unless you pass -H explicitly):
cd web
npm run dev
.
├── CLAUDE.md # Schema / behavior spec (single source of truth)
├── AGENTS.md # Codex mirror of CLAUDE.md (kept byte-aligned)
├── GroundMap-设计文档.md # System design document
├── scripts/ # CLI (k.py), conversion (convert.py), parsing, tests, hooks
├── web/ # Next.js reading/editing console (+ REST/server actions)
├── .claude/skills/ # Claude Code workflow skills (kb-ingest / query / lint / export / conflict-resolve)
├── .agents/skills/ # Codex mirror of the skills above
├── wiki/_templates/ # Shared page templates (used by all workspaces)
├── workspaces/ # Per-topic data, switchable; ships smb-ecommerce / rag-evolution / ai-ml-demo examples
│ └── <name>/
│ ├── wiki/ # Markdown wiki pages (root_index, indexes, concepts, entities, sources, analyses)
│ ├── raw/ # Source documents and converted markdown (articles, papers, assets)
│ ├── exports/ # Generated outputs
│ ├── my_thoughts/ # Human-only zone (agent read-only)
│ ├── .cache/ # Derived SQLite index (gitignored, rebuildable)
│ └── log.md # Operation log
├── docs/ # Public documentation
├── tools/debug-console/ # Optional standalone debug console (external KB client; see its README)
├── .github/ # CI, issue templates, PR template
└── requirements*.txt # Python dependencies
There is no backend/ directory: the original MCP + REST backend was deprecated (see GroundMap-设计文档.md §10.5). REST and write actions are served by web/ instead.
GroundMap intentionally does not include:
Those boundaries are deliberate. The open-source core focuses on the durable knowledge substrate; product-specific agents, workflows, and enterprise integrations can live outside it.
For Chinese-language notes on frontier AI technology, practical AI applications, and research-oriented AI agent workflows, follow the author's WeChat Official Account: 覃秉丰AI. It also shares GroundMap tutorials, case studies, and related learning resources.
groundmap health.See AGENTS.md for the design contracts and future evolution notes.
Contributions are welcome, especially around documentation, tests, onboarding, CLI ergonomics, and Web UI polish. Please read CONTRIBUTING.md first.
This project is licensed under the Apache License 2.0. See LICENSE.
The Apache-2.0 license applies to the open-source core. Private industry playbooks, customer-specific workflows, and hosted product layers can be maintained separately.
Qinbf/groundmap is a public repo on GitHub by Qinbf. Markdown-first knowledge base engine with Git as the source of truth.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-07-23. GitHub counts 8 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.

This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/Qinbf/groundmapTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.