Memory
Knowledge graph-based persistent memory system
MOmodelcontextprotocol/servers92k200 new stars in the last 7 days
Markdown knowledge base as agent memory. Runs against the notes directory it is started in.
IWE turns a folder of Markdown files into a knowledge graph. You browse and refactor it from your editor through an LSP server, and your AI agent queries it through a CLI and an MCP server. Same files, same links. It is written in Rust and needs no database, no cloud and no account.
It is for people who want database-style queries on their notes — "all drafts under this subtree", "every accepted decision in Q1" — without moving them into an actual database.
Quick start · How it works · Editor · CLI · AI agents · Mac app · Templates · Comparison · iwe.md
English · 简体中文 · 한국어 · 日本語 · Deutsch
$ iwe find --lexical "rename" --limit 2
- [IWE Rename](cli-rename) -> [Inclusion Links](inclusion-links) <- [How to Use in Command Line](cli), [Files Renaming](feature-renaming)
- [Files Renaming](feature-renaming) -> [IWE Rename](cli-rename) <- [IWE](index)
$ iwe tree -k index
- [IWE](index)
- [Architecture](architecture)
- [Benchmark](benchmark)
- [Data Model](data-model)
- [Keys and Cross-References](keys)
- [How to Use in Command Line](cli)
...
$ iwe retrieve -k feature-renaming
````markdown #feature-renaming
---
title: Files Renaming
includedBy:
- key: index
title: IWE
sectionPath:
- Features
---
# Files Renaming
...
Output from this repository's own docs/ folder, shortened where marked .... A search hit comes back with what it links to (->) and what links to it (<-); a retrieved note comes back with where it sits in the graph.
brew install iwe-org/iwe/iwe
Also on npm (npm install -g @iwe-org/iwe) and Cargo (cargo install iwe iwes iwec); see the installation guide.
Then, in a folder that already has Markdown files:
iwe init
iwe find
iwe tree
From here, set up your editor, connect your agent, or both.
If IWE is useful to you, a star helps other people find it.
IWE treats your notes as a connected structure built from two kinds of links:
IWE's own documentation: the 52 documents under its index and their 720 sections, exported with iwe export and laid out by Graphviz. Draw your own.
What you get:
.md files in a local directory. Read them, edit them, git push them.How it differs from marksman, markdown-oxide, Obsidian and zk, including where IWE is weaker: How IWE compares.
IWE gives your editor IDE-like features for Markdown notes. It works with Neovim, Helix, VS Code, Zed, and any editor that supports the Language Server Protocol.
Editor plugins: iwe.nvim · vscode-iwe · zed-iwe
| Command | What it does |
|---|---|
find | Search with fuzzy and full-text ranking, plus filters over frontmatter and graph edges |
retrieve | Get a document with its linked context in one call |
tree | Show the hierarchy from any starting point |
update | Guarded edits: frontmatter changes and targeted block operations |
schema | Infer the store's schemas, or validate documents against them |
The full set — new, extract, inline, rename, delete, squash, stats, normalize, export and more — is in the CLI reference, with workflow examples in this repository.
The same notes work with Claude Code, Claude Desktop, Codex, Gemini, Cursor, and any tool that supports the Model Context Protocol.
Claude Code — install the plugin, then run /iwe:init in any project you want remembered:
/plugin marketplace add iwe-org/skills
/plugin install iwe@iwe-org
/iwe:init
Any MCP agent — point it at the MCP server. iwec serves the directory it runs in, so set the working directory to your notes:
{
"mcpServers": {
"iwe": {
"command": "iwec",
"cwd": "~/notes"
}
}
}
Without installing anything, npx fetches the server on demand: use "command": "npx" with "args": ["-y", "@iwe-org/mcp"]. More in the agent connection guide.
Or let the agent set itself up — paste this into any agent that can run commands:
Set up IWE for my notes: install it (brew install iwe-org/iwe/iwe,
npm install -g @iwe-org/iwe, or cargo install iwe iwes iwec), run `iwe init`
in my notes directory, then add the `iwec` MCP server with its working
directory set to that folder.
Docs: https://iwe.md/docs/agentic/
iWe is a free native Mac app for the same folder of Markdown: a native SwiftUI editor, no Electron, built on the same Rust engine as the CLI. Open a folder of notes and you get a keyboard-driven space to write and browse, with your existing Claude Code or Codex agent editing the document in front of you. Your editor and other tools keep working on the same files.
Download the DMG from iwe.md → · free · macOS 15 or later · no account
Your agent, writing in the page (2 min) — Claude Code tightens a paragraph, writes a new section, then adds a chart of the open bugs that redraws as each bug changes stage.
https://github.com/user-attachments/assets/e57763df-46c9-4aea-92a2-ddd0d1010091
Vim keys for your notes (2 min) — Move block by block, follow links, search, cut and paste bullets, undo and redo, all without leaving the keyboard.
https://github.com/user-attachments/assets/c3edd2cb-4b7c-4f68-9eda-58aa740c1b23
More screenshots, and both videos with captions, on iwe.md →
A template is the starting content of a whole workspace: documents, schemas, the workspace config, and the instructions and skills your agent runs with. Each one is an ordinary repository of Markdown you can read before you use it.
To use one, clone its repository and work in that folder with the CLI or your editor, or pick it in iWe for Mac under File ▸ New Workspace from Template…. More templates, and how to submit your own, are in the template registry.
Projects already build on IWE, as an agent-memory backend and as the graph layer of other tools: see the running list, and add yours so we know what not to break. The CLI and the MCP server are the supported ways to integrate today.
Questions, rough edges and examples of how you use it are welcome in Discussions. You can also report a bug or help improve the documentation.
Community: Twitter/X · Reddit · Discussions
Knowledge graph-based persistent memory system
MOmodelcontextprotocol/servers92k200 new stars in the last 7 days
Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.
PLplastic-labs/honcho8.4k102 new stars in the last 7 days
Semantic search across Sui documentation and knowledge sources, powered by kapa.ai
MYMystenLabs/sui7.8k
Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.
OOoomol-lab/pdf-craft6.8k35 new stars in the last 7 days
Access Gemini Notebook via CLI and MCP Server.
JAjacob-bd/gemini-notebook-mcp-cli6.6k78 new stars in the last 7 days
Search, read and cite papers from your Zotero library in any AI agent.
5454yyyu/zotero-mcp6.1k97 new stars in the last 7 days