iwe-org/iwe
Local Markdown knowledge graph for editor navigation and agent retrieval
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
IWE turns a local Markdown directory into a graph without putting a database between the files and the editor. A standalone inclusion link defines a parent–child edge; an inline link defines a cross-reference. A note can have several parents without being duplicated. Retrieval finds an entry point with text search or a key, then uses explicit links to supply context, including where the note sits in the hierarchy.
The Rust 2021 Cargo workspace contains five crates: liwe, diwe, iwe, iwes, and iwec. The shared manifest lists clap 4.5, lsp-server 0.10.0, and schematter-validator 0.2.0. Interfaces are divided by client: iwe for command-line workflows, LSP for editors such as Neovim, Helix, VS Code, and Zed, and iwec for MCP clients. Editors and agents work against the same Markdown source rather than maintaining separate knowledge stores.
Key Capabilities & Differentiators
find supports fuzzy and full-text ranking with frontmatter and graph-edge filters, while find --lexical selects lexical search. Search hits can show outgoing and incoming links; tree -k browses a hierarchy from a specific note, and retrieve -k brings the note and linked context into one response. These primitives are useful for queries that combine structured metadata with a subtree or relationship constraint, rather than relying on similarity alone.
The same graph supports link-preserving rename, extract, inline, and delete operations. update can target frontmatter and individual blocks; per-type document schemas validate metadata and structure, and optional expected document and block counts can abort a mismatched edit before anything is written. schema can infer schemas or validate documents. The project benchmark reports building a graph of 20,000 notes in under a second on a laptop; that measures graph construction, not query latency, memory use, or concurrent throughput.
Trade-offs & Limitations
Against embedding-based retrieval, IWE offers traceable context: users can inspect which authored edges and metadata brought a note into scope. The cost is that context quality depends on useful links and consistent frontmatter. A note that uses different vocabulary and has no connecting links may be missed. For a flat, loosely curated corpus where semantic recall is the priority, evaluate vector or hybrid retrieval instead.
Compared with a shared database or managed knowledge service, plain files are easy to inspect, back up, and version with Git, and there is no separate storage service to operate. Do not treat schema checks or edit-count guards as database transactions, concurrent-writer coordination, or per-user access control. For shared or agent-written workspaces, establish external permissions, a review process, and a recovery workflow before enabling writes. Apache-2.0 permits commercial use subject to its terms; it does not determine what a connected agent may do with note contents.
Hardware & Deployment Guide
Install with Homebrew (brew install iwe-org/iwe/iwe), npm (npm install -g @iwe-org/iwe), or Cargo (cargo install iwe iwes iwec). The workspace declares Rust 1.82 for source builds. Run iwe init in an existing Markdown directory, then check it with iwe find and iwe tree. Configure your editor for LSP or point an MCP client at iwec with its working directory set to the notes folder. The npx -y @iwe-org/mcp path fetches the package on demand; for offline use, install the tools in advance.
The core has no database, cloud account, model runtime, or GPU requirement. A separately connected agent may still use remote inference. Use v0.36.1 or later for the fix that skips symlinked notes and rejects CLI/MCP writes through symlinked files or directories. v0.36.0 fixed dotted note names and their link resolution. v0.37.0 preserves footnotes through document transforms, exposes the $footnote query operator, and adds editor navigation and refactoring for footnotes.
find combines fuzzy and full-text ranking with frontmatter and edge filters; retrieve -k returns linked context.update targets frontmatter and blocks; document schemas and optional touch counts can reject mismatched edits before they are written.iwec serves its working directory over MCP, with no model or separate database required by IWE.Individuals and teams with a Git-backed Markdown workspace for specs, decisions, and runbooks, where editors and agents need to retrieve the same linked context and proposed edits can be reviewed.
Your primary requirements are semantic recall across unlinked documents, built-in inference, centrally managed user permissions, or coordinated concurrent writes.
Quick Start & Installation
$ 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
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| iwe ★ | 1.9k | +15 | Rust | Apache-2.0 | Local Markdown knowledge graph for editor navigation and agent retrieval |
| crawl4ai | 88.5k | +408 | Python | Apache-2.0 | Async browser crawler that turns web pages into Markdown and JSON for RAG |
| cognee | 33.8k | +174 | Python | Apache-2.0 | Graph and vector retrieval for persistent agent memory across sessions |
| firecrawl | 216.5k | +4.6k | TypeScript | AGPL-3.0 | Local and hosted web ingestion that turns sites into RAG-ready Markdown |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/iwe-org/iwe.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about iwe
How does an agent connect to the same workspace as my editor?
iwec with its working directory set to the notes folder. The CLI and MCP server are the supported integration surfaces; editors use LSP over the same Markdown files.What hardware do I need, and how much VRAM should I budget?
Can we deploy IWE internally for commercial use?
When should I choose IWE over a vector store or a shared database?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy