explaingit

vakovalskii/gitmark-memory-bank

21PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A minimal Python CLI that turns plain Markdown files in a git repo into a searchable knowledge base with full-text search, a visual link graph, and a Claude Code plugin for AI-assisted documentation.

Mindmap

mindmap
  root((gitmark-memory-bank))
    Core CLI
      Full-text search SQLite
      Fuzzy and ranked results
      Lint for broken links
    Outputs
      HTML document tree
      Interactive link graph
      Search snippets
    Claude Code Plugin
      Search knowledge base
      Guided doc editing rules
    Design
      No external packages
      Plain Markdown plus git
      Works offline
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Build a searchable documentation base for a project using only Markdown files and no external services.

USE CASE 2

Generate a visual HTML map showing how all your docs link to each other.

USE CASE 3

Give a Claude Code AI agent reliable access to project documentation so it stops guessing from source code.

Tech stack

PythonSQLite

Getting it running

Difficulty · easy Time to first run · 5min

Requires only Python 3.7+ with no external packages, install from pip and run.

MIT license, use freely for any purpose, including commercial, as long as you keep the copyright notice.

In plain English

GitMark Memory Bank is a Python tool for building a searchable knowledge base out of plain Markdown files stored in a git repository. The idea is that a project's documentation should live as simple text files you can read in any editor, with a README in each folder acting as that folder's index. Everything else, including the search index, an HTML overview, and a visual graph of links between documents, gets generated fresh from those files on demand and is never stored in git itself. The core component is a command-line tool called gitmark that uses only Python's built-in standard library and requires no external packages. It builds a local SQLite database with a full-text search index that supports ranked results, substring matching, and fuzzy matching to handle typos and non-English text. You can search by keyword and get back results showing the file, the heading, and a snippet of context. The map command produces a self-contained HTML file with a collapsible document tree, rendered Markdown, and an interactive graph showing how documents link to each other. A lint command can optionally check for broken links, missing folder indexes, and other structural problems. There is also a plugin for Claude Code, the AI coding assistant tool. Once installed, it gives the AI agent two skills: searching the knowledge base instead of blindly searching files, and following a set of rules when editing documents. This is aimed at teams that use AI assistants for coding and want the AI to have reliable, fast access to the project's documentation rather than guessing from source code alone. The tool is intentionally minimal. The README positions it against wikis, Notion, and vector-database memory systems by arguing that plain Markdown plus git plus a single auditable Python file is simpler to own, works offline, and shares nothing with external services. The project is licensed under MIT and requires Python 3.7 or newer.

Copy-paste prompts

Prompt 1
I have a folder of Markdown docs in a git repo. Show me how to use gitmark to build a search index and find documents matching a keyword.
Prompt 2
How do I install the gitmark Claude Code plugin and configure it so the AI searches my knowledge base instead of scanning raw files?
Prompt 3
Walk me through using the gitmark map command to produce an HTML overview with a link graph for my project docs.
Open on GitHub → Explain another repo

← vakovalskii on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.