https://github.com/spences10/wiki0
Local-first AI memory as a Markdown wiki backed by SQLite search and MCP tools
https://github.com/spences10/wiki0
ai-memory cli knowledge-base markdown mcp sqlite wiki
Last synced: about 1 hour ago
JSON representation
Local-first AI memory as a Markdown wiki backed by SQLite search and MCP tools
- Host: GitHub
- URL: https://github.com/spences10/wiki0
- Owner: spences10
- Created: 2026-05-29T19:42:38.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-06-27T17:47:59.000Z (7 days ago)
- Last Synced: 2026-06-27T19:19:43.844Z (7 days ago)
- Topics: ai-memory, cli, knowledge-base, markdown, mcp, sqlite, wiki
- Language: TypeScript
- Size: 619 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wiki0
[](https://github.com/spences10/wiki0/actions/workflows/ci.yml)
[](https://github.com/spences10/wiki0/actions/workflows/semgrep.yml)
[](https://renovatebot.com)
[](https://viteplus.dev)
[](https://vitest.dev)
Local-first AI memory as a Markdown wiki backed by SQLite search and
MCP tools.
## Value prop
wiki0 gives your AI an explicit, inspectable memory: a Markdown wiki
it can read and write, backed by a disposable SQLite index for fast
search, backlinks, facts, and graph views. No opaque vendor memory;
the knowledge stays local, diffable, and portable.
It is meant to be memory/context infrastructure rather than another
opaque chat history: agents can preserve decisions, retrieve cited
project context, inspect sources, and update the underlying Markdown
so future sessions start from durable knowledge instead of vibes.
## Shape
```txt
wiki0/
wiki/ # canonical Markdown knowledge
.wiki0/ # local SQLite index/cache
packages/core/ # schema, indexing, wikilinks, search primitives
packages/cli/ # wiki0 init/index/search/context/lint/graph/facts
packages/mcp/ # MCP server wrapping core operations
apps/web/ # SvelteKit/mdsvex human interface
```
## Planned workflow
```sh
wiki0 init ~/my-wiki
wiki0 plan --source_type codebase --scope "current repository"
wiki0 extract docs/guide.md
wiki0 sync docs --root ~/my-wiki
wiki0 index
wiki0 search "why sqlite"
wiki0 context "what did we decide about memory?"
wiki0 lint
wiki0 graph
wiki0 topics
wiki0 events
wiki0 facts add "SQLite is a rebuildable index" --category decision
```
Agents use the MCP server to create pages, link related knowledge,
retrieve context with citations, and queue uncertain claims for
review.
## Design stance
- Markdown is source of truth.
- SQLite is a rebuildable index/cache.
- `[[WikiLinks]]` follow an Obsidian-compatible subset.
- Git/cloud sync moves the wiki between machines; the index can be
rebuilt.
- Web UI is optional, for browsing, review, and graph visualisation.