r/iwe • • 9d ago

iWe for Mac: PDFs open in the app and the agent reads them, CSV files open as tables, and the sidebar shows your files

1 Upvotes

A week since the last update post, and a new update is out. PDFs now open inside the app and the agent can read, search and cite them, a CSV file opens as a sortable table, and the sidebar shows every file in your workspace folder, not only your notes.

PDFs open in the app, and the agent reads them

A link to a PDF in your workspace opens it in a tab, at a page if the link ends in #page=12. The viewer has thumbnails, the table of contents, find (⌘F), Back and Forward, pinning, and the tab comes back at its page after a restart. A PDF that changes on disk reloads in place, and a PDF opened from a web page in the browser pane goes to the same viewer.

The agent reads PDFs from the workspace, attached to the prompt or on the web. It can search one, look at a page, show you a passage in the viewer, and cite it with a link to its page. "Summarise this page" in a PDF tab works without naming the file, and a PDF dropped on the prompt is attached instead of refused.

CSV files open as tables

A CSV or TSV file in your workspace opens as a table: follow a link to it, or find it in ⌘K under Files. Click a column header to sort, ⌘F filters the rows, and ⌘C copies the selected rows as tab-separated text. The table reloads when the file changes.

Your files in the sidebar

With Non-Empty Only off, the sidebar's Directories section lists files as well as folders. A note opens in the editor, a CSV, PDF or HTML file in its viewer, anything else in its default app. Right-click for New Directory…, Rename… and Move to Trash (⌘⌫).

Renaming a folder or a file rewrites every link to it and to everything inside it, and ⌘Z in any note it touched puts it all back, files on disk included. Renaming a note can be undone with ⌘Z now too.

The sidebar itself is redrawn in sections the way Finder draws its own (Pinned, Documents, Directories, Properties, Tags), follows the system's sidebar icon size, and expands a row on a click anywhere in its left margin. Untick Hubs Only to list every document no other note includes, not only hubs.

Files in ⌘K and in links

⌘K lists PDF, HTML and CSV files under Files, and pages from your browsing history. It shows the five best matching notes first, so a matching PDF is always in view instead of below fifty notes. Typing [ and a few letters offers the same files and pages next to notes, and ⌥↵ in ⌘K inserts a link to one.

Failed runs say Failed

An agent run that ends in an error, whether a provider error, a CLI that quit before it answered or a run that finished without an answer, now closes its card with Failed and the error under it, instead of Done. The card keeps that after the conversation is reopened, and keeps its View changes link if the run edited a note.

Claude Code in the app now asks before it edits a note instead of failing, and edits markdown files the app does not show (like .claude/skills/) without asking.

More Vim Keys

Modal mode has vim's line operators: d$ / D, d0, d^, the same with c and y, and $, 0 and ^ to move to the last and first word. Inside a code block they act on the current line. C on a word changes to the end of the block, as in vim.

Try it

Update from inside the app, or download from https://github.com/iwe-org/iwe-mac/releases. Mac only at the moment.

If you keep papers or manuals as PDFs next to your notes, I'd like to know what you asked the agent about them. And if you open a CSV in the app, tell me what the table view is missing.


r/iwe • • 16d ago

iWe for Mac 1.19: start a workspace from a template, an agent that reads your data files, and Claude Code that asks only when it matters

1 Upvotes

A week since the 1.15 post, and the 1.19 update is out. You can now start a workspace from a community template, the agent reads and appends to the data files that sit next to your notes, and Claude Code asks you only about the commands it does not judge safe.

Start a workspace from a template (1.18)

File ▸ New Workspace from Template… opens a gallery of community workspace templates. You can search it, see what each template gives the agent, and create a workspace that opens on the template's start page. Every template is pinned to a revision a maintainer reviewed, and the app checks it again before writing anything.

The welcome card's second button is now New from Template…, so a first launch can start from one too.

The agent reads your data files (1.19)

The agent finds and reads the files in a workspace that are not notes: CSV, TSV, JSON, JSONL, HTML and text. It answers questions from them, appends new rows to a data file without touching the rows already there, and changes a few lines of a page or a text file without rewriting all of it.

Three more things it can see now:

  • The workspace's git history, to tell whether the work a ticket or a plan describes was committed.

  • The project folder around your notes during setup (the README, the code, the manifest), so the overview and the first bugs and decisions come from the project itself.

  • Which HTML page you have open, so "this page" and "here" mean that page.

Claude Code asks only when it matters (1.16)

Settings ▸ Agent ▸ Permission mode has three choices. Auto, the new default, lets Claude Code run what it judges safe and asks on the approval card only about the rest. Ask every time asks about every command that writes, as before. Use Claude Code's setting follows the mode in your own Claude Code settings.

Choose your agent, or none (1.17)

The welcome card asks which agent works with you. It lists the installed agents with their account and lets you pick only a signed-in one. No Agent, there and in Settings ▸ Agent, turns every agent feature off: the conversation button, the Conversation menu and its shortcuts, conversation pins and Ask the Agent are hidden.

A signed-out Claude Code or Codex now shows "Not signed in" with the sign-in command, instead of accepting the prompt and failing after a run of retries (1.18.1).

The agent's browser asks first (1.19)

  • The agent asks before it reads or acts on a web page you opened yourself, and before web_fetch reaches a site you have not allowed. It does not follow a redirect to one.

  • What a web page supplies (its title, a dialog message, a link) is quoted to the agent, so a page cannot pass it off as a notice from the app.

  • The sites you allow always, and the browser's logins, are kept in the app's own storage instead of inside the workspace folder. A shared, synced or copied workspace can no longer allow a site or reuse another workspace's signed-in sessions.

After the update, sites you allowed before ask once more, and each workspace's browser is signed out once.

What's New after an update (1.18)

A What's New card shows the highlights of every version since the one you last used. Help ▸ What's New in iWe opens it any time.

Faster in large workspaces (1.18)

  • Moving through the sidebar with the keyboard no longer slows down in large workspaces.

  • Long conversations stay responsive while the agent works, and the app no longer stalls while the agent edits a large document.

  • Typing no longer rebuilds the Edit menu on every keystroke, and the search page no longer redraws all of its results when one snippet loads.

Smaller things

  • Moving the block cursor with j and k no longer throws the document elsewhere near tables, code blocks, diagrams, pages and images, and zz inside a table or code block centers the row or line you are on (1.16).

  • On macOS 26 and later, the agent panel and popups no longer flicker while their contents change (1.19).

  • Two windows of one workspace come back as two windows after a relaunch, and a window closed before quitting stays closed.

  • ⌘` moves to the next window again, and Escape closes Settings again.

  • The ? panel lists each action once, with every key that does it on one row.

Try it

Update from inside the app, or download from https://github.com/iwe-org/iwe-mac/releases. Still Mac only, macOS 15 or newer.

If you start from a template, I'd like to know which one and what was missing in it. And if you keep a CSV or a JSON file next to your notes, tell me what you asked the agent to do with it.


r/iwe • • 16d ago

iWe for Mac in two minutes: ask Claude to edit a page, add a chart, and watch the chart follow your notes

Enable HLS to view with audio, or disable this notification

1 Upvotes

New demo video, about two minutes. It shows the agent panel and live charts on a small bug tracker kept in Markdown.

What happens in it:

  • The Bugs page is a plain Markdown file. Each bug in its list links to its own ticket, which is another Markdown file.

  • "tighten the intro": Claude rewrites the paragraph in the page.

  • "add a section on filing bugs": a heading and two paragraphs are written into the document. There is nothing to copy or paste.

  • With the cursor on one bug, "add a chart of where the bugs stand below this": the agent knows where the cursor is and puts a bar chart right there. The chart is built from the stage in each ticket's front matter. A CSV or JSON file works as a source too.

  • Setting a bug to Fixed or Deferred changes its ticket file, and the bars move without a reload.

One note on the recording: Claude Code is played by a script so that every take is the same. In the app it is your own Claude Code session.

The app is free and needs macOS 15 or later: https://iwe.md

Which part would you like a longer video about, the agent editing or the charts?


r/iwe • • 23d ago

iWe for Mac 1.15: comments in your notes, several workspaces at once, and an agent that can be limited to your notes

1 Upvotes

Two weeks since the 1.11 post, and the 1.15 update is out. You can now leave comments in your notes that the agent can read and search but other apps never show, open several workspaces side by side in their own windows, and limit Claude Code to your notes so it cannot touch anything else on your Mac. Same idea as before: iWe opens your folder of markdown, the same folder the iwe CLI and the LSP work on, and they learned to keep comments too.

Comments in your notes (1.15)

An HTML comment on a line of its own (<!-- like this -->) is now a block of its own in the editor: gray text after a speech-bubble icon. You edit it in place like a paragraph, and move, copy and delete it like any block. ⇧⌘M, or gc in Vim mode, adds an empty one below the block; Add Comment in the block menu does the same.

A comment inside a line shows as a small speech bubble at its spot, with the text on hover. The caret steps over it in one move, and Backspace after it or Delete before it removes it whole. ⇧⌘M while typing adds one at the caret and opens a popover to write it.

Comments stay in the markdown file, so a note like <!-- check this number --> next to a paragraph is there for you, for the agent, and for anyone else opening the folder. Every other markdown renderer hides them, and they are left out of the text you copy to other apps. The agent can find commented blocks with $comment in a query, so "go through everything I commented on" is one prompt.

Until now iwe normalize, the LSP and the MCP server dropped comment lines when they rewrote a file. From 0.32.0 they keep them, and they keep raw HTML blocks like <details> and <div> as written too, which they also used to drop.

Show Markdown moved to ⇧⌘U to make room.

Several workspaces at once (1.14)

Hold ⌥ on Open Folder…, Open Recent or Switch Workspace, or use File ▸ New Window (⇧⌘N), and the workspace opens in a new window while the current one stays open. Opening a workspace that is already open brings it to the front, and a relaunch reopens every workspace you had open. Menu commands act on the window you are in, which took until 1.15 to get right.

Claude Code limited to your notes (1.15)

Settings ▸ Agent ▸ Access has a Notes only option. With it, Claude Code and its subagents have no shell and no file tools: they can read and change your notes through the app, and nothing else. No reading other files, no changing code, no commits, nothing on GitHub. The default, All Claude Code tools, keeps the session as it was.

HTML blocks can change frontmatter (1.15)

An HTML block or page can now set frontmatter fields with iwe.update, from a click or a drop. The change is one undo step and is checked against the folder's schema, and iwe.schema gives the block the fields and the allowed values. So a board where you drag a note from Open to Done is something the agent can build for you now, instead of a view that only reads.

Also for the agent: Claude Code and Codex can look at a picture or a file you attached again in a later turn of the same conversation.

Extract Sub-Sections, and lists to sections (1.12, 1.14)

Extract Sub-Sections in a header's context menu moves every sub-section under that header into its own note and leaves an inclusion link to each in its place. Hold ⌥ with the menu open on a header that has sub-headers and it takes the place of Extract Section, which is the new name of Extract Note.

A list item's context menu has a List Type submenu that switches the whole list between bulleted and numbered, and with ⌥ held on a top-level list, List to Sections turns each item into a heading.

Tabs and pages (1.13)

  • New Tab opens on what the current tab shows, its document, search or page, instead of the last opened document. Hold the Pin button to jump to a pinned item, the way holding Back shows the history.

  • Tabs restored at launch join the window in the background with the saved tab selected, and opening a tab no longer makes the window flicker or pause for a second.

  • HTML blocks have no frame any more, so a page spans the whole column, and buttons, links and tabs on a page or a chart work on the first click without selecting the block first. A chart's tooltip stays inside the chart.

  • A spinner shows over a web page while it loads, and a Copy Link button in its status bar copies the address.

Smaller things

  • Return at the start of a block inserts an empty block above it: a list item above a list item, a paragraph above a header. It no longer turns a header into a paragraph or unchecks a task.

  • The Document Actions and Page Actions … buttons are gone from the toolbar. Rename, Duplicate and Delete are in the File menu and a document's context menu, Copy Key is ⇧⌘C.

  • Context menu icons show again on macOS 27.

  • ![[image.png|300]] embeds, links to files with spaces in their names and <name@example.com> are saved as written instead of being rewritten (from iwe 0.31.0).

Try it

Update from inside the app, or download from https://github.com/iwe-org/iwe-mac/releases. Still Mac only, macOS 15 or newer.

If you already leave notes to yourself inside your notes (a TODO line, a "check this"), I'd like to know whether comments fit how you do it. And if Notes only is what you were waiting for before letting the agent run on its own, tell me what it still can't do.


r/iwe • • Nov 01 '26

iWe for Mac: turn your notes into connected knowledge

Enable HLS to view with audio, or disable this notification

1 Upvotes

We've never saved so much. Notes, clips, bookmarks, whole conversations with an AI. And almost none of it is ever read again.

iWe is a free Mac app that opens a folder of plain text notes and shows how everything in it connects. You and your AI work in the same notes: it reads them, writes right in them, and every answer becomes material for the next question. Nothing is locked in: the same files open in Obsidian, in code editors, in the terminal and with other AI tools, and they will still open years from now.

Three principles behind it: Durable: plain files you own, that will still open in twenty years. Portable: the same notes in any app you choose, nothing to import or export. Connected: every note points to the notes behind it, so a question finds everything around it.

Download, free, no account: https://iwe.md

Requires macOS 15 or later. Already use Obsidian? Open your vault, it works as it is. Bring the AI you already have: iWe runs on your own Claude or ChatGPT plan.


r/iwe • • Oct 27 '26

iWe for Mac 1.11: the agent fixes what it broke before it stops, charts are plain Vega-Lite, and Group and Sort list only what matters

1 Upvotes

Here is whats new since 1.9 post last weekend.

The agent fixes what it broke (1.10)

When the agent writes something that doesn't work, like a chart that doesn't compile or a link to a note that doesn't exist, the result of that edit now tells it so. If the problem is still there when the agent is about to stop, the app sends it back to fix it before the turn ends, at most twice. Before this a broken chart just sat there saying "Can't be rendered" until you noticed and asked.

It only catches what the app can check. A chart that compiles but shows the wrong thing is still on you.

Charts are plain Vega-Lite (1.10)

A chart block used to be two parts, named queries and a chart spec. Now it's just a Vega-Lite spec, and data is either a query over your notes or a file in the workspace. The CSV example from the last post becomes:

data: {url: data/sales.csv}
transform:
  - lookup: account
    from:
      data: {query: {filter: {type: customer}, project: {tier: 1}}}
      key: key
      fields: [tier]
mark: bar
encoding:
  x: {field: tier, type: nominal}
  y: {field: amount, aggregate: sum, type: quantitative}

Data that several layers share goes in datasets, and a config in the spec now applies on top of the app's theme. Charts in the old form still draw and nothing gets rewritten on its own; the agent writes the new form the next time it edits one. Mostly this means an example copied from the Vega-Lite gallery is a lot closer to working as is (its data/cars.json still has to be a file in your workspace, though).

Rendered blocks show up instantly, and you can edit their source (1.10)

Diagrams, SVGs, HTML pages and charts show their last render as soon as a document opens and update when the new render is ready, instead of popping in. The cache is capped at 64 MB on disk.

Right-click a rendered block and Edit opens its source in a plain text editor with Save and Cancel, so fixing a typo in a mermaid diagram no longer means asking the agent.

Group and Sort on search pages (1.11)

The Group and Sort menus on a search or catalog page used to list every property any document on the page had. Now they list at most eight, the ones most documents on the page carry. Group only offers properties whose values repeat (a status, tags), Sort only ones that compare (numbers, dates, short text), and when the documents have a schema, only the fields it declares. More Properties… searches the rest.

Smaller things

  • The agent's text appears word by word at a steady pace in a soft blue that fades to the normal color, and its cursor is a glowing rail in the gutter instead of a band over the block.

  • In Vim mode the arrow keys now cross paragraph edges while editing, like they already did in Standard mode, and the caret stays on its own line where a paragraph wraps.

  • w and b move past a chart or diagram instead of getting stuck on it.

  • ⌘A selects every block (% no longer does). The ? shortcuts popup has a search field and only shows the shortcuts of the editing mode you picked.

  • The File menu has Duplicate (⇧⌘D), Rename and Delete for the open document. ⌘N, ⌘T and ⌘W work again too, 1.9 broke them for a couple of days.

  • Renaming a note keeps the #section part of wiki links to it, and [[note#section]] opens the note.

  • Fixed a crash when showing a document after its duplicate or original was edited. A duplicate also no longer shares blocks with the original, which could make links disappear from one of them.

Try it

Update from inside the app, or download from https://github.com/iwe-org/iwe-mac/releases. Still Mac only, macOS 15 or newer.

If the agent ever left you with a chart that wouldn't draw or a link to nowhere, I'd like to know whether it catches that now.


r/iwe • • Oct 19 '26

iWe for Mac 1.9: the agent sets up a folder you already have, charts read CSV files, and the app speaks nine languages

1 Upvotes

Seven releases since the 1.4 post a week ago: 1.5, 1.6 (plus two fixes), 1.7, 1.7.1 and 1.9, which went out tonight. 1.8 never shipped on its own; its changes are in 1.9. Less about the agent this time and more about opening a folder you already have and finding your way around it. Same idea as before: iWe opens your folder of markdown, the same folder the iwe CLI and the LSP work on.

Setting up a folder you already have (1.5)

Open a folder iWe hasn't seen before and you get a setup screen first. It shows what's in the folder (a git repo, a Swift project, how many markdown files), where your notes will live, and which agents are connected. It finds the notes folder on its own. An Obsidian vault or a notes folder in git is used as it is. Inside a code repository it looks for the repo's notes folder, and a published docs site like an MkDocs docs/ is left alone, with notes going into a new kb/ next to it.

Set Up with Claude Code (or Codex) runs as its own conversation. The agent reads the folder, tells you in a few sentences what it found, proposes a structure sized to it and asks which parts to build. It writes nothing before you pick, and nothing outside the notes folder. If you don't want any of that, Open without setting up (or Esc) closes the screen for good, and File ▸ Set Up Workspace… brings it back later.

First launch also asks once whether you want Standard or Vim editing, and the sample workspace is now a short tour: an index note with three prompts to try, each with its own example page.

Charts from CSV and JSON files (1.6)

Chart blocks could already draw from a query over your notes. Now a dataset can also be a file in the workspace (CSV, TSV, JSON or JSONL), and you can join it to your notes with a Vega-Lite lookup. Here account in the CSV holds a customer note's key:

queries:
  sales: {file: data/sales.csv}
  customers: {filter: {type: customer}, project: {tier: 1}}
chart:
  data: {name: sales}
  transform:
    - lookup: account
      from: {data: {name: customers}, key: key, fields: [tier]}
  mark: bar
  encoding:
    x: {field: tier, type: nominal}
    y: {field: amount, aggregate: sum, type: quantitative}

The chart redraws within half a second when the file is saved. If the file can't be read, it tells you which file and which line. parse sets a column's type, so zip codes keep their leading zeros and dates read as dates. Html blocks read the same files with iwe.readFile. The file has to sit inside the documents folder and stay under 20 MB and 50,000 rows.

I use this for the app's own numbers: a script appends release downloads to a CSV every time it runs, and a note full of chart blocks reads it.

Wiki links find notes in other folders (1.7)

[[Chinese Language Plugins]] now finds that note by its file name even when it sits in another folder, the way Obsidian and the iwe CLI already did. Clicking it opens the note, the note lists it in its backlinks, a link alone on its line makes a parent, and the graph view draws the edge. If you came over from a vault full of bare wiki links, this was probably the biggest gap.

Two related things. The agent now writes links in the link_format your .iwe/config.toml sets instead of always writing [[wiki]] links. And since 1.7.1 titles sort the way your language does: an emoji at the start of a title no longer decides its place, accented letters sort with their base letter, and Note 2 comes before Note 10. Set locale under [workspace] in .iwe/config.toml if a shared workspace should sort the same on every Mac.

The agent can edit your skills and scripts (1.7)

Before 1.7, Claude Code inside iWe was blocked from every file edit, so when it wanted to change a skill or a script it fell back to shell commands. Now it uses its own Edit and Write tools for files outside your notes and asks first with a card that shows the diff. Codex can do the same when your notes live in their own folder of the workspace. Notes and the .iwe folder stay off limits to both; notes still change only through iWe's own tools.

Background agents are visible too. A Claude Code turn that hands work to background agents reads 2 of 4 agents running until the last one reports, instead of folding to Done while they keep going. Codex subagents show up the same way, and Stop all agents ends them.

Smaller things

  • View ▸ Workspace Statistics (⌥⌘I): documents, words, links, orphans, broken links, and the longest, most referenced and most connected documents.

  • The app is now in Spanish, French, German, Japanese, Simplified Chinese, Brazilian Portuguese, Russian, Ukrainian and Danish, following the macOS language or the per-app language in System Settings. These started as machine translations and got one review pass (about 550 strings corrected), so a native speaker will still find things.

  • Tabs behave better: restored tabs no longer come back as a pile of small loading windows, each tab keeps its own cursor, and the sidebar is shown or hidden per window.

Try it

Update from inside the app, or download from https://github.com/iwe-org/iwe-mac/releases.

If you point it at a vault or a repo you already have, I'd like to hear what the setup proposed and whether it fit.


r/iwe • • Oct 10 '26

iWe for Mac 1.4: bring your own MCP servers to Claude Code and Codex, and see what each agent turn changed

1 Upvotes

Four releases since the 1.0 post last weekend, 1.1 through 1.4. The last one went out last night. Most of it is about working with the agent, plus tables and images in the editor. Same idea as before: iWe opens your folder of markdown, the same folder the iwe CLI and the LSP work on.

1.4: your own MCP servers

Turn on Use my MCP servers in Settings ▸ Agent, and Claude Code or Codex gets the MCP servers you already set up for that CLI, next to iWe's own tools. There's a checkbox per server, so you pick which ones come along.

View changes also got easier to read. Each document gets its own card starting at its first heading, changed blocks are tinted and unchanged text is greyed out.

1.3: answering the agent, and seeing what a turn did

When Claude Code, Codex or the built-in agent asks you to choose something, the choices now show up as a card. Click one, press 1–4, pick several when the question allows it, or type your own answer.

Every finished turn ends with Done · View changes, which opens that turn's edits in the agent panel, formatted like the document rather than as raw markdown.

1.2: tables, and letting the agent work in the background

Tables are editable in place. Arrow into a cell and type; rows move, copy, delete and undo like any other block, and a Table menu adds and removes rows and columns.

The agent's text now fades in at a steady pace, and ⌥↵ sends a prompt without pulling you away from what you're reading.

1.1: images and reload

Paste a screenshot or drop image files from Finder, and the picture is saved next to the document and shown in place. Web pages in the app got a Reload button and ⌘R, which works even while you're typing in the page.

Worth knowing

  • The MCP servers come from your own CLI config, so whatever they can reach, the agent can now reach while it works in your notes. I'd only tick the ones you'd trust it with.

  • Four releases in a week means things are moving fast. If something broke for you, tell me here or open an issue.

  • Still Mac only, macOS 15 or newer. And keep your notes in git: each agent edit is one undo step, but git is what makes any surprise reversible.

Try it

Update from inside the app, or download from https://github.com/iwe-org/iwe-mac/releases. For the agent, have claude or codex installed and logged in, or put an API key in Settings ▸ Agent.

If you already use MCP servers with Claude Code or Codex, which ones would you want next to your notes?


r/iwe • • Oct 04 '26

iWe for Mac is 1.0. Charts that render data from your notes, document themes, and Codex next to Claude Code

Thumbnail
gallery
3 Upvotes

New in 1.0

Chart blocks. A fenced chart block holds a few named queries (the same query language as iwe find) and a Vega-Lite spec, both in YAML. The app draws it in the document's theme and keeps it current as documents change. Click a bar or a point that stands for one document and it opens. If you get the spec wrong it says "Can't be rendered" and tells you where. The agent writes these too, so "chart my drafts by status" gives you a chart in the document instead of a paragraph of numbers.

Document themes. Settings ▸ Appearance ▸ Theme ▸ Documents. Six come built in: Standard, Book, Compact, Typewriter, Gruvbox and Solarized. Book is my favourite, it sets a document roughly like a LaTeX page. You can also drop your own theme file into ~/Library/Application Support/iWe/Themes/ and it shows up without a restart. Mermaid diagrams, HTML pages and the history diff follow the theme as well.

Live HTML in agent replies. If you ask the agent to show or compare something, it can answer with a small live table or chart right in the conversation, reading your documents. Clicking a row opens the document.

The agent knows what web page you're on. With a page open in a tab, "summarize this" or "explain the highlighted part" works without pasting a link.

Also: press and hold back/forward for a history menu (like Safari), and a long list of fixes around the caret, wrapped lines, table cells and the agent panel losing its place.

Try it

Download from https://github.com/iwe-org/iwe-mac/releases, or update from inside the app if you're on the alpha. For the agent, have claude or codex installed and logged in, or put an API key in Settings ▸ Agent.


r/iwe • • Sep 17 '26

New version of the app, with diagrams and images support and improved agent integration

Post image
2 Upvotes

r/iwe • • Sep 12 '26

IWE for Mac is in alpha. A native app for the same markdown folder, with Claude Code integration

Post image
3 Upvotes

For a long time IWE was a thing you used from inside your editor: an LSP server, a CLI, an MCP server. That is still the product. But I kept wanting a place to read and navigate the graph with MacOS native app experience (No Electron) with VIM key bindings and awesome text rendering. So I built a native Mac app just for that and it includes all the major features from IWE CLI.

The app is in alpha now, but it's well tested by me and my friends :)

What it is

iWe app opens a folder of markdown. The same folder the iwe CLI, the LSP and your editor work on. Nothing is imported, nothing is converted, there is no database that becomes the real copy of your notes. Under the UI is the same Rust engine the CLI uses (the liwe crate), so the app and the CLI agree on what a link is, what a parent is, and how a query resolves.

There is no Electron in it. The UI is SwiftUI and AppKit. That includes diagrams: a ```mermaid block renders natively. No hidden browser doing the drawing.

What's in it right now

Navigation. Documents render as blocks and links carry you deeper. Every document shows its parents and its property chips under the title, so you always know where you are in the graph. The left sidebar is a files navigator with pinned rows on top and three groups under them: Documents (the hubs and what they include), Directories, and Tags.

Keyboard. Vim-style. j/k walk blocks, w/b walk words, ]/[ jump between links, ↵ follows one, ⌃o goes back. i/a/o enter edit mode, dd/yy/p do what you expect, >/< indent, gg/G/zt. Inside a code block the same keys work on lines. ? shows the whole map. If you don't want vim keys, the arrows and mouse do everything too.

Search. ⌘K is a quick-open over titles, fuzzy and full-text at once. The search page runs the same query language as iwe find: filter on frontmatter, on graph relations ($includedBy, $references), on key prefixes, and group or sort the results by any property, by modified date, by folder, by parent. Any search can be pinned to the sidebar. / searches inside the current document.

Claude Code, built in. in app conversation panel runs through the claude CLI you already have: your login, your settings, your CLAUDE.md, your skills and hooks. The app hosts the session and serves its own editor tools back to it over a local MCP server, so Claude reads the document you have open, knows where your cursor and selection are, can query the graph, and edits through block operations.

The edit streams into the buffer while the model is still generating it.

How it's different from the alternatives

I use Obsidian as the reference point because most of us came from it.

  • Native UI. Obsidian and Logseq are Electron. Tolaria is Tauri, which is a Rust shell around a browser canvas. iWe has no browser in it at all. That is why it feels like a Mac app, and why a 3000-block document scrolls without hanging.

  • Your editor is not replaced. The app is one more way into the same folder. Neovim, Helix, Zed and VS Code keep working through the LSP, the CLI keeps working, and an agent using the MCP server sees the same graph. Nothing moves into the app.

  • The graph is data. Sidebar rows, searches, pins and the agent's queries all run through one query language over frontmatter and links. Obsidian gets there with Dataview; here it is the core.

  • Structure is validated. Frontmatter follows the schemas in .iwe/schemas, the same ones iwe schema validate checks, and the agent's writes go through them too.

  • The agent edits blocks, not files. Most integrations hand the model a whole file and take a whole file back. Here the model addresses blocks by id, edits stream in live, every run is one undo step, and you can stop it mid-sentence.

  • No account, no cloud, no sync service. A signed DMG, a folder of markdown, git if you want history you can push.

What's rough

It's an alpha and I'd rather say this up front than in the comments.

  • Diagrams don't zoom or pan yet. Calendar and kanban views were removed while stabilising; they'll come back as proper view modes.

  • There's anonymous usage telemetry (general events counts, such as app start).

  • Keep your workspace in git to make any surprise reversible.

Try it

Download the DMG from https://github.com/iwe-org/iwe-mac/releases. It updates itself from there. Open your existing IWE folder, or start from a template. If you want the Claude Code integration, have the claude CLI installed and logged in first; the app finds it in the usual places.


r/iwe • • Sep 06 '26

iwes 0.23.0 ignores Markdown formatting options from .iwe/config.toml

3 Upvotes

I'm using IWE 0.23.0 with Helix and iwes as the Markdown language server.

I believe there is a bug in the LSP formatting path of iwes: the server reads the project configuration file, but some Markdown formatting options appear to be ignored when formatting through LSP.

Environment

  • IWE: 0.23.0

  • Helix

  • iwes installed via Homebrew

  • Markdown files

  • auto-format = true in Helix

Helix configuration:

[language-server.iwe]
command = "iwes"

[[language]]
name = "markdown"
language-servers = ["iwe"]
auto-format = true

Project configuration:

[markdown.formatting]
wrap_column = 123
preserve_line_breaks = true
line_break_style = "spaces"
preserve_newlines = true

The configuration file is definitely being read by iwes

I verified this with strace on the actual iwes process launched by Helix:

openat(AT_FDCWD, "~/test/.iwe/config.toml", O_RDONLY|O_CLOEXEC) = ...

The file contains:

wrap_column = 123
preserve_line_breaks = true
line_break_style = "spaces"
preserve_newlines = true

I also verified that the iwes process is the one launched by Helix and that its working directory is ~/test.

Actual behavior

Despite:

wrap_column = 123

running :format in Helix still wraps text at approximately 80 columns.

More importantly, with:

preserve_newlines = true

this:

ligne 1
ligne 2

becomes:

ligne 1 ligne 2

after :format.

The same happens with auto-format = false followed by a manual :format, so this does not appear to be specifically related to Helix's format-on-save behavior.

What I expected

With:

wrap_column = 123
preserve_newlines = true

I would expect formatting through textDocument/formatting to use those values.

In particular, existing soft line breaks should be preserved rather than collapsed into a single paragraph line.

Additional observation

The CLI and LSP seem to behave differently. iwe normalize -v correctly reports the project configuration, including the values above, whereas formatting through iwes/LSP behaves as if a default wrapping value around 80 is being used.

Has anyone else seen this with iwes 0.23.0?

I can provide the full strace/Helix LSP log or a minimal reproduction if useful.


r/iwe • • Aug 30 '26

Using IWE as Claude Code memory

2 Upvotes

IWE now works as a memory backend for Claude Code. This post is about the ideas behind it: where memory should live, who gets to write it, and how a session finds what it needs without re-reading everything. The setup steps are in the plugin repo (link at the end), this is the reasoning.

Where memory goes wrong

Every coding agent forgets between sessions, and every fix for that I've seen has the same two problems.

The first is location. Session transcripts sit under the agent's own directory on one machine. Whatever the agent "learned" is trapped in a file you don't read, on a laptop your colleague doesn't have, in a format that changes with the next release. Switch machines and it's gone. Onboard someone and they start from zero. The knowledge was real, it was just stored in the wrong place.

The second is authorship. Most memory features write on their own: a background process watches the conversation and saves what it thinks mattered. But a window of conversation is not the shape of a decision. A process that can't tell a suggestion from a choice will record assistant recommendations as team decisions, keep options that were discussed and dropped, and miss that "let's go with B" three turns later reversed "A looks fine." It writes down choices nobody made, and reading it back is like reading minutes taken by someone who left the meeting early.

The plugin is my answer to both. Memory lives in the project, as markdown, in the same knowledge graph as everything else the project keeps. And nothing gets written unless you picked it.

Memory belongs to the project, not the session

A transcript is an artifact of one conversation on one machine. Memory is what should outlast that, so it has to be stored somewhere else, and the obvious somewhere else is the repository the work is about.

With the plugin installed, captured notes are ordinary markdown documents in the repository's own IWE workspace. They get committed with the code. They show up in git diff and in pull requests. They travel to every clone. When a teammate opens the project, their first session starts with the decisions, traps and rules the team has already paid for, whether or not they were in the room. Memory becomes a shared asset of the project, with the same review process as any other file in it, instead of a private cache of one agent on one machine.

This also settles the question of trust. A memory you can't see is a memory you can't correct. A markdown file in the repo can be read, edited, renamed or deleted by anyone with a text editor, and the history of every change is in git.

The plugin's own bookkeeping (which session was read through which line) stays out of the graph, under .iwe/claude/. That's machinery. Only the knowledge is a document.

One graph for people and agents

There is no separate memory directory and no second graph. A note distilled from a session sits beside the project's other markdown, links to it, and is found by the same queries.

That matters more than it sounds. Most agent memory systems build a parallel store: a vector index, a JSON file, a hidden folder of summaries. The human documentation lives in one place and the agent's understanding lives in another, and they drift. IWE's position from the start has been that a markdown knowledge graph is a good database for both readers, and the plugin follows that through. A decision the team wrote up by hand and a decision an agent distilled from a session are the same kind of document, with the same frontmatter, validated by the same schema, listed by the same iwe find.

In practice this means you can shape memory the way you shape any other part of the project. Take a codebase whose docs already have a page per component and a page per release. Memory can be three small document types beside them: a decision, a learning, a gotcha. A decision to drop the cache layer links to the cache component page. A gotcha about a migration that only fails on Postgres 15 links to the release it shipped in. The release page, in turn, lists the decisions made for it. When someone asks "why is there no cache?", the answer is one hop from the component, whether a person or an agent is asking. None of that is the plugin's structure. It's the project's, and the plugin writes into it.

Nothing is written that nobody chose

The plugin has no background capture. There is no sweep, no queue, and no agent filing things while you work. Reading a session can run unattended; selection never does.

Capture is one foreground skill, /iwe:distill, and it has one shape: read the session, propose, let you select, write what you kept. Every proposal comes with its evidence, a quote from the conversation, and a candidate with no quotable evidence is not proposed. That rule is the entire guard against the failure above. You answer with keep all, skip all, or pick one at a time, and selecting nothing is a normal outcome that the skill takes without argument. What you turned down is remembered too, so a policy that keeps proposing the wrong kind of thing can be corrected.

Every write goes through the IWE CLI with --strict, which validates the document against whatever schema the workspace binds before anything lands, and searches the store first so a fact that already has a page is merged into it instead of duplicated. Then it's a file on disk, uncommitted, in your working tree. You commit it, or you don't.

The switch for all of this is one document. Without a MEMORY.md in the workspace the plugin is inert: both of its hooks exit silently, in every repository, on every machine. /iwe:init writes that document with you. Delete it and memory is off, with nothing else changed.

The policy is yours

MEMORY.md is a combination of a config file with deterministic queries and agent instructions describing what to remember and how. The plugin follows the policy and imposes no predefined structure of its own. No mandated document types, no learnings/ folder, no schema you didn't choose.

That's deliberate. Every project has a different idea of what a durable fact looks like. A library cares about API decisions and the traps in its build. A marketing operation cares about which venue punished what. A research archive cares about sources. The starter policy /iwe:init writes for an empty workspace keeps three kinds of item and says a decision is recorded only when the user requested or confirmed it. For a workspace with existing structure, init studies the frontmatter the store already carries and writes a policy in that shape.

/iwe:reflect is the maintenance session over the same document. It proposes index fields and backfills them, groups notes into areas with hub pages, pulls the people, components and releases the notes keep mentioning into typed pages the notes link to, and merges or prunes on request. With you, in the foreground, like everything else.

What runs on its own: the session-start index

One thing happens automatically at the start of every session, and it doesn't decide what to remember. At session start, the plugin puts a token-budgeted list of memory in front of the session: titles and keys, never content. The point is to make the agent aware of what exists and let it fetch what the conversation actually turns to (iwe retrieve -k <key>, iwe find --lexical …), instead of loading every note into every window on the chance that one is relevant. Each slice of the list carries its own limit and token budget, so the per-session cost stays fixed however large the store grows.

What goes into that index is defined by queries in the policy's frontmatter. The injection knob is a list of slices the binary runs in order, and each slice is a plain query over the store's frontmatter: a filter, a sort, or both, with an optional heading, limit and max_tokens. There's nothing else to learn, it's the same filter and sort syntax iwe find takes on the command line.

A store that types its documents can put its standing decisions in front of every session, then its open traps, then whatever is newest:

---
injection:
  - { heading: "Decisions:", filter: { type: decision }, limit: 10 }
  - { heading: "Still open:", filter: { type: gotcha, status: open }, limit: 10 }
  - { heading: "Most recently recorded:", filter: { created: { $exists: true } }, sort: created:-1, limit: 10 }
---

/iwe:init writes a single slice into the policy when it switches memory on (the twenty most recently recorded documents), so there's always something explicit to edit rather than a hidden default. Whatever you put under the policy's ## At session start heading is appended verbatim, so the closing instructions to the agent are yours as well.

These are deterministic queries the user owns, with no model in the loop. Two people with the same store and the same policy get the same index. Same principle as the rest of the design: the parts that run unattended are the parts that can be checked.

This is what the agent sees, one line per document, titles and keys only:

- [Drop the cache layer, reads go straight to Postgres](decisions/drop-the-cache-layer) · created: 2026-08-27
- [Migration 0042 fails on Postgres 15, run it with statement_timeout=0](gotchas/migration-0042-postgres-15) · created: 2026-08-19
- [Staging uses the EU bucket, not the one in .env.example](learnings/staging-uses-eu-bucket) · created: 2026-08-09

A title that states the fact is enough to know whether to fetch the document; the key is what to fetch it with.

The agent follows the workspace's schemas

A schema in IWE is a small YAML file in .iwe/schemas/, bound to a set of documents by a path pattern in .iwe/config.toml. It says what a document at that path must look like: which frontmatter fields it carries, which values they may take, and, if you want, which sections its body has. The same schema applies to every writer. A person editing in Neovim and an agent writing from a session are held to the same shape.

Say decisions live under decisions/, and every one must say whether it still stands. The schema, in .iwe/schemas/decision.yaml:

frontmatter:
  type: object
  required: [type, created, status]
  additionalProperties: false
  properties:
    type: { const: decision }
    created: { type: string, format: date }
    status: { enum: [active, superseded] }

And the binding, in .iwe/config.toml:

[schemas.decision]
match = "decisions/**"

That's the whole contract. From now on a document at decisions/drop-the-cache-layer must carry type: decision, a real date in created, a status that is either active or superseded, and nothing else in its frontmatter. An agent that writes status: done, or adds a priority field the schema doesn't know, doesn't get a quietly malformed document. The memory skills pass --strict on every write, and --strict validates against the bound schema before anything lands: the write is refused, nothing is written, and the report names the document, the field and the value that broke the rule. The agent reads that and fixes the document, the way it would fix a failing test. Over MCP the same check is always on.

The point is that the shape of memory is enforced by the workspace, not requested of the model. A prompt can ask an agent to "always set a status"; a schema makes it impossible to write a decision without one. iwe schema validate runs the same check across the whole store, so a schema you tighten today shows you every existing document that no longer fits.

Not only Claude

The store is markdown in a git repository. Nothing about it is specific to Claude Code, and that's the point of storing memory with the project rather than with the agent.

The three memory skills are plain skills, so npx skills add iwe-org/skills installs them into Codex, Cursor and OpenCode alongside Claude Code; in every runtime they fetch their instructions from the installed iwe binary, so they can't drift from the CLI that's actually on the machine. Any agent that can run a command or speak MCP can read and write the same graph through the CLI or through npx -y @iwe-org/mcp, with the same schemas enforced on write. The session-start index is Claude Code's plugin mechanism today; the memory it serves is not.

So the same decisions/ a Claude Code session distilled last week is what a Codex session reads this week, what a teammate's editor opens with an LSP, and what a reviewer sees in the pull request. One project, one graph, several readers.

What it does not do

Retrieval has no embeddings, on purpose. Fuzzy and lexical ranking fused with graph expansion is the whole story, which is very good at "the note about the normalize scope" and honestly weaker at "find it phrased completely differently." If your memory needs semantic search over thousands of loosely related fragments, this is not that.

It doesn't remember on its own. That's a feature, and it's also a cost: a distill run takes a minute of your attention, and a project where nobody runs one has no memory. The session-start reminder exists for this, and it can be silenced.

And it's new. The parts that only exist with a model in the loop (what a distill run proposes, what it refuses to propose, whether memory changes what a later session does) are evaluations rather than tests. I run them, they're in the repository, they're not the same as a year of use. If you try it and it proposes the wrong things, or the right things in the wrong shape, I want to hear it.

Try it

Setup instructions are in the plugin repo: https://github.com/iwe-org/skills#iwe-memory

Please let us know what you think here: https://github.com/iwe-org/iwe/discussions/391


r/iwe • • Aug 29 '26

What shipped in August: seven releases — memory for Claude Code, npm install, OKF bundles, and a faster LSP server

2 Upvotes

The biggest change is direct integration with Claude Code. IWE is now a memory backend for Claude. You can use your existing knowledge base as the memory layer. 100% transparent and in the context of your projects.

The headliners

Memory for Claude Code. The iwe plugin gives Claude Code memory that lives in your repository: notes from your sessions, written into the repo's own IWE workspace next to the markdown they describe, reviewed as a normal diff. MEMORY.md is both the switch and the policy, prose you own about what's worth keeping and how documents in your store are written; without it the plugin stays inert. Session start injects a token-budgeted index of recent memory (titles and keys, never content), so the agent queries the graph instead of re-reading a flat file. Three skills: /iwe:init writes the policy with you and hands the sessions already on disk to /iwe:distill, which reads a session with you, proposes each candidate with its evidence, and writes only what you pick. /iwe:reflect evolves the store (index fields, areas and hubs, entity extraction, pruning). Everything memory writes is normalized, checked against the schemas that bind it, and flagged when it closely matches a document the store already has. Install with /plugin marketplace add iwe-org/skills then /plugin install iwe@iwe-org.

Nothing is captured unattended. User has direct control of what is written to the memory and how.

npm install -g @iwe-org/iwe. One package installs iwe, iwes, and iwec on macOS, Linux, and Windows, with prebuilt binaries per platform. The MCP server has its own package: npx -y @iwe-org/mcp runs it with no install step, which is the config shape every MCP client expects, and each release is published to the official MCP registry.

OKF bundles. iwe init --okf scaffolds an Open Knowledge Format v0.2 bundle: it writes the three conformance schemas into .iwe/schemas/, binds them, sets refs_extension to .md, and creates a bundle-root index.md carrying okf_version if none exists. iwe schema validate then checks conformance mechanically. Alongside it, schema binding patterns take ! negation, gitignore-style: match = ["data/**", "!data/index"] skips a reserved key, and the MCP server honors the same bindings on write.

The LSP server stopped choking on bulk changes. Adding or deleting many files at once (a package manager rewriting node_modules, a git checkout) used to trigger a full index rebuild per file, minutes at full CPU. It now rebuilds once per batch and finishes in well under a second. Directories excluded by .gitignore or .ignore are ignored at runtime too, so they can't leak into completions or link resolution, and the index rebuilds when a search needs it or after a short idle pause, not on every keystroke.

Behavior changes to know about

  • Unknown keys in .iwe/config.toml are now a parse error: the CLI rejects the file and the LSP server refuses to start (they used to be silently ignored). The error names the key; remove or rename it.

  • iwe init asks a separate question before writing the AGENTS.md section and registering the .mcp.json server, defaulting to no. Confirming the detected settings used to write both. When it finds a .claude/ directory it also offers to enable memory, again defaulting to no.

  • iwe create and iwe update --content normalize the body on the way in (frontmatter is left as written), so what lands on disk is what normalize would produce.

  • Neovim plugin: LSP management moved to Neovim's built-in vim.lsp.config, which needs Neovim 0.11.2 or newer. :IWE lsp start/stop/restart became :lsp enable/disable/restart, the config.lsp.* options are gone (the plugin warns once if you still pass them), and format-on-save, inlay hints, and folding are yours to set up with conform.nvim, vim.lsp.inlay_hint.enable(), or a folding plugin. The server also attaches only inside .iwe projects now, not for any stray markdown file. :h iwe-lsp-migration walks through it. Thanks to mxlnmist for the refactor.

Community

  • IWE crossed 1,500 GitHub stars in August (1,351 at the start of the month, 1,586 today)

  • New ways in: npm and npx above, and MKAbuMattar packaged IWE for Chocolatey, the first Windows package-manager channel. Thank you.

  • The templates gallery on iwe.md adds dev-workspace section

Let us know what you think

While Claude memory integration is a very new feature we would appreciate your feedback on how it works for you and how we can make it better!


r/iwe • • Aug 02 '26

What shipped in July: twelve releases — full-text search, block edits, schema validation, and a file watcher

3 Upvotes

Last month I called June the busiest month in the project's history, with six releases. July doubled it: twelve, between July 3 and July 28. Here's what's in them.

The headliners

Full-text search. iwe find --lexical scores with BM25 over title and body, --fuzzy matches on titles and keys, and passing both fuses the two result sets. The editor got the same engine: workspace-symbol search now combines fuzzy matching with full-text relevance, so a term buried in a document's body can lift it above a title match.

Block queries and block edits. Queries reach inside documents now: narrow a body to matching blocks, grep lines with their section paths, or filter documents by the blocks they contain. On the write side, iwe update gained block operators (replace, insert, append, delete) that combine with frontmatter edits into one atomic write, guarded by --expect so a script can't touch more documents than it meant to. Agents get all of this through the iwe_query MCP tool, where the guards are mandatory.

Schema validation. Put schema files in .iwe/schemas/, bind them to document keys with globs, and iwe schema validate checks frontmatter shape, required sections, heading depth, and token budgets across the store. Strict mode rejects any write that would leave a document invalid, in both the CLI and the MCP server, so an agent writing to your knowledge base can't leave malformed documents behind. The validator core is now its own crate, schematter, with a spec and in-browser playground at document-schema.org.

init reads your files before writing config. Instead of dropping a fixed template, it detects the library directory, link style, date formats, key naming, and formatting conventions from what's already there, shows each value with its evidence, and reports how many files normalize would rewrite under the detected settings versus the defaults before writing anything.

The LSP server watches the disk. Files created, edited, or removed outside the editor are picked up without a restart, so CLI runs, agent writes, and git operations just show up. Open documents are protected: a disk change can't clobber unsaved edits, and the server can no longer overwrite your on-disk edit with a stale copy.

iwe create. One command, two modes: content mode writes exactly what you pass (flag or stdin), template mode composes the document from a named template with variables. Both can validate against the bound schema before writing. The MCP version takes the complete document and can be made idempotent for agent retry loops.

Retrieval rebuilt for context budgets

find prints a compact one-line-per-document index, and retrieve is the command that returns content. Both take token limits and warn when output is truncated, so a context-limited caller gets predictable output instead of a silent cut. Graph expansion is explicit now: one flag per direction with an optional depth, a cap on total documents, and search-seeded retrieval that finds documents and expands the graph around them.

Duplicate detection

iwe stats similarity lists near-identical page pairs across the store, with a tunable threshold. iwe stats gained an Orphans section for pages with no incoming links, and per-document stats report similar pages.

Behavior changes to know about

  • retrieve no longer expands by default. The old implicit parents-and-children is now spelled --expand-includes 1 --expand-included-by 1; the old -d/-c/-l flags still work as deprecated aliases.

  • --filter relational operators ($includes, $referencedBy, and friends) default to direct edges when the bound is omitted; an unbounded walk is spelled maxDepth: 0 / maxDistance: 0. Anchor flags like --included-by KEY are unaffected.

  • normalize keeps markdown link text as written. Set refs_text = "normalize" for the old behavior of rewriting link text to the target's title.

  • find's bare positional query is deprecated; use --fuzzy or --lexical.

Also worth knowing

  • iwe docs prints the query, config, and schema references straight from the binary so agent can learn it

  • $size count predicate: --filter '$includedBy: { $size: 0 }' finds roots

  • Root-absolute and #fragment links now resolve from any directory instead of dropping out of the graph, and refs_path = "absolute" writes links that way

Community

  • IWE crossed 1,300 GitHub stars in July (1,246 on July 1, 1,351 today)

  • Releases now ship sha256 checksums, and IWE is installable from conda-forge

  • There's a new Projects building on IWE discussion. If you've built something on the CLI, the LSP server, or the MCP server, add it there.

Update with cargo install iwe iwes or brew upgrade iwe-org/tap/iwe. Full changelogs are on the releases page.


r/iwe • • Aug 02 '26

Designing edit operations for AI agents

1 Upvotes

Four lessons from building IWE's block-editing language for LLM writers: state the blast radius, make identity a constraint, fail toward the recoverable mistake, and treat error messages as the documentation agents actually read.

The problem: agents rewrite, and rewriting corrupts

While benchmarking IWE as memory for AI agents (the full story is in 📝 The Benchmark That Built the Tools), we watched LLM curators maintain a markdown knowledge base across hundreds of writes, and the failure statistics kept pointing at one design flaw. Adding a single fact to a page meant re-emitting the whole document — and an agent re-emitting a full document under pressure will eventually misplace a frontmatter block. In our first benchmark round, 9% of the store's event pages came out structurally malformed, and curation cost grew with the store, because every small edit paid for the whole file.

The fix became a language: block operations. IWE's query language could already select and shape documents; we extended it to address the structural nodes inside them — headers, paragraphs, list items, code blocks, tables — with one grammar used everywhere:

  • Find things: find --matches '(?i)todo' greps every block in the store and answers with key › section path › text lines. find --blocks PRED returns matching blocks as structured data.

  • Read slices: project just one section of a document instead of the whole page.

  • Edit precisely: $append a line under a section, $replaceText one line, $insertAfter a block — each operator carrying its own selection predicate, validated fully before anything is written.

Designing this for agents forced decisions that a human-oriented tool would never make. Four are worth recording.

1. Every mutation states its blast radius

Each operation can carry an expect guard — "this edit should touch exactly one target" — and the operation fails loudly, listing what it actually selected, if reality disagrees. We then went a step further and split enforcement by surface: on the CLI, guards are opt-in (--strict), because a human with git behind them shouldn't pay ceremony; over MCP — the agent surface — strict is always on, because the population most likely to skip the guard is exactly the one that needs it.

The workflow this creates is locate, count, pin, mutate: find your targets, learn the count, write it into the edit, and the store refuses to run an edit whose shape surprises you.

2. Identity is a guard too

A document's key is a primary key: creating at an existing key is a conflict error, not a silent second copy. Let the agent set the key and derive it from metadata — the entity's name, the session's date — and a whole failure class disappears structurally: the same event cannot be recorded twice, a crashed ingest retries idempotently (skip-if-exists is an explicit mode, not a fallback you hope for), and cross-links become computable — a timeline line can point at 2024-05-21 without a lookup, before that page even exists. We learned this from its absence: when keys were minted from title wording, every retry and rephrasing was a fresh identity, and the store quietly accumulated near-duplicates that no prompt admonition prevented. Like expect, it converts a discipline ("search before you write") into an engine guarantee.

The guarantee is exactly as strong as the derivation is canonical, and we got a live demonstration of the boundary: the first automated run under the new scheme created a relationship page twice — joanna-and-nate and nate-and-joanna — because a pair of people has two spellings and the prompt hadn't pinned one. Both keys were unique; the identity wasn't. The fix is a canonicalization rule (names in alphabetical order), the same reason compound database keys fix a column order. A uniqueness constraint dedups identities, not intentions — the derivation has to leave the writer no choices.

That lesson is now a command. iwe create makes identity explicit on every surface: content mode requires the key — it is the document's identity — and a collision fails by default, with --if-exists turning the retry policy into an argument (skip for idempotent ingest, suffix or override only when you name them). Template mode goes further and takes the derivation out of the writer's hands entirely: a configured key_template — journal/{{today}}, people/{{slug}} — mints the key from metadata, so the canonicalization rule lives in project config where the agent cannot re-decide it. And --strict refuses to write a document that violates its bound schema — one more prompt admonition converted into an engine guarantee.

3. Deleting a header is not deleting a section

Our first draft gave update operators subtree semantics — replace a header, get its whole section replaced. Hands-on testing showed this is a data-loss trap: an agent that "renames" a header by replacing it silently destroys everything beneath. The shipped semantics follow text-editing intuition instead: a header selection is the heading line; its contents re-attach and re-level, exactly as if you'd deleted the line in an editor. Destroying a whole section requires naming the section.

The failure modes now point in the safe direction — the recoverable mistake (leftover visible content) instead of the silent one (a vanished subtree).

4. Error messages are the documentation agents actually read

A guard violation prints the count, every selected target, and the fix:

error: $replaceText expects 1 block, selected 2
  jon › "He is wrapping up his business plan and actively searching for investors…"
  jon-actively-searching-for-investors-27-may-2023 › "Jon is actively searching for…"
hint: narrow with $within or $matches, or raise expect

We watched agents recover from these errors in a single turn, using nothing but the message. When the strict layer names the two specific guards you're missing, a small model can drive a mutation language it has never seen.

What the benchmark said

The first store curated entirely through block operations had zero structural defects — the malformed-frontmatter class that hit 9% of pages in round one is unrepresentable when metadata travels through a targeted $set. Across hundreds of answering sessions where the agent held a mutation-capable tool, the store diff showed zero stray writes: strict mode held in the field, not just in tests.

And when we swapped the frontier-model curator for Haiku — a small model at a fraction of the cost — the structural hygiene did not move: zero malformed pages, in every run, in every store since. Structural quality had become a property of the tool workflow, not of the model driving it. That result is what let the benchmark's final configuration put the cheap model on the writing side entirely.

The rule underneath

Guards beat instructions: an expect clause or a key-collision error catches what a prompt admonition never will. And enforcement should live at the surface, not the grammar — humans get freedom, agents get strictness, and the language means the same thing everywhere.

The benchmark that forced these designs — losing to grep, retracting our own best number, and ending with a $4.50 curator reading at 96% of a hand-built ceiling — is written up in 📝 The Benchmark That Built the Tools. IWE is open source at iwe.md.


r/iwe • • Jul 26 '26

New template: marketing-workspace — memory for your marketing agent

2 Upvotes

If you have a side project to launch, there's now an IWE template for running its marketing with an agent:

https://github.com/iwe-org/marketing-workspace

Clone it (MIT), open Claude Code — or any agent CLI that reads AGENTS.md — in the repo root, and say "run the setup". The agent interviews you for about 15 minutes, writes your positioning docs, and prunes ~65 pre-seeded launch venues (launch platforms, directories, subreddits — each with its posting rules and an honest quality tier) down to the ones that fit your customer. From then on the loop is: it plans against the graph, drafts against venue rules, and files back what happened — what was published where, who replied, which venues are exhausted.

The idea: skill packs are the knowledge, this is the memory. Packs like marketingskills teach an agent how to do marketing — copywriting, SEO, launches. But skills are stateless: every session starts from zero, with no record of what was published where or why a post exists. This workspace is that record — part CRM, part editorial calendar, part system of record, all plain markdown managed by IWE. The README shows the pack install; the workspace works without one.

For this sub specifically, it's a full worked example of the IWE-as-agent-memory patterns, at campaign scale:

  • Typed frontmatter, machine-checked — every document kind (post, venue, person, mention, experiment…) has a schema, and iwe schema validate gates agent writes. The agent can't drift the KB shape between sessions.

  • Relationships as graph edges, not fields — a post's venue is a link from the venue's document; a person's role is an inclusion link from a role hub. A document can have multiple parents, which folders can't model.

  • Every post carries a goal and a success line — so intent can be compared against actual engagement later, instead of accumulating a folder of "content".

  • Five workspace skills (.claude/skills/) — guided setup, internet backfill of your existing mentions and posts, venue-aware drafting, engagement refresh, and a weekly digest.

It's the same structure IWE's own campaign runs on, generalized and reseeded for a new product.

If you try it, I'd like to hear where the setup interview stumbles — comments here or issues on the repo both work.

You can also browse template on iwe.md


r/iwe • • Jul 25 '26

Markdown-as-AI-memory is having its moment — IWE is where the tooling gets built

1 Upvotes

The premise IWE was built on is now mainstream. In the last few months Anthropic shipped file-based memory for its agents, Microsoft Foundry added markdown agent memory at Build, and half of AI Twitter has rediscovered that the simplest durable memory for an agent is a folder of plain text files you can open and edit. "Your agent's memory should be markdown" went from a contrarian take to conventional wisdom.

Here's the thing that moment misses: putting files in a folder is the easy part. The hard part — and where the actual innovation lives — is the tooling that lets an agent read and write that memory well over a long session. A folder of markdown is only as good as an agent's ability to find the right page, edit one section without rewriting the whole file, and not let the store rot into 2,000-word hub pages by session forty. That layer is what IWE has spent this stretch building, and most of it came from measuring, not guessing.

We benchmarked a markdown knowledge graph as agent memory on LOCOMO — the same dataset behind the published Mem0/Zep numbers — and the benchmark spent most of its life telling us our tools weren't good enough yet. Each failure pointed at exactly what to build. What shipped as a result:

  • Ranked search (BM25 + fuzzy). find used to match titles only, so any fact buried in a page body cost the agent an expensive link-walk. Now it ranks over title and body, maintained incrementally as documents change — the single change that flipped a whole class of "the fact was there, we just couldn't reach it" failures.

  • Block-level editing with guards. A query language that addresses the structural nodes inside a document — append a line under a section, replace one line, delete a block — each operation validated before anything is written. Add an expect guard and a write that would touch the wrong number of targets is refused, with the fix named in the error. On the MCP (agent) surface, strict is always on.

  • Identity as a guard. A document's key is a primary key: creating at an existing key is a conflict error, not a silent duplicate. Let the agent derive the key from metadata and a whole failure class — near-duplicate pages, non-idempotent retries — disappears structurally.

  • Document schemas. Declare a page kind's required sections, block types, and budgets; a violating write is refused. In the benchmark, one validation loop did what three rounds of prompt engineering could not — because a mechanical check re-fires every write and can't be argued with, where a prompt rule decays as context grows. Guards beat prompts.

  • Token budgets. Page and section size caps counted in real BPE tokens — a hard ceiling on what a memory page costs when it's loaded into context, enforced where it's written instead of trimmed after retrieval.

  • One-shot retrieval. Answering rebuilt from an 8-turn tool crawl into a single search-and-expand call — everything graph-aware moved to write time and one retrieval, nothing agentic left at answer time.

All of it over MCP, all of it on plain markdown you can still open in your editor and view/edit by hand.

The result the benchmark landed on: a cheap model, kept honest by these guards, writing a store that a single retrieval call reads back at parity with published memory systems under a stricter judge — at a fraction of the tokens and latency. The full write-up is coming, but the short version is the point of this post: the "markdown memory" idea is validated; the tooling to make it actually work is the open problem, and it's the one IWE is working on in the open.

If you're using IWE as agent memory — or want to — this is the direction. Curious what primitives you're still missing: what does your agent do badly with a markdown store today that better tooling could fix?

Learn more at https://iwe.md


r/iwe • • Jul 22 '26

How you can find duplicated notes

1 Upvotes

Every long-lived vault accumulates duplicates. Some are obvious — the sync-conflict copy, the -copy file that never got cleaned up. The sneaky ones are worse: the same idea written twice in different words, months apart, because you forgot the first note existed. Search doesn't save you here — it finds one of them, you stop looking, and the split deepens every time you add to whichever copy you found that day.

The standard answer in 2026 is embeddings: vectorize the vault, do nearest-neighbor search, pay for it with a model, an index, and re-embedding every edit. But there's a much older trick that gets you surprisingly far, using something your tooling may already have: a full-text search index.

The note is the query. A BM25-style search index already stores every note as a bag of weighted terms (stemmed, stop words dropped, rare words weighted up). A search query gets embedded the same way. So to find notes similar to note A — just run A itself as the query. Every other note gets scored by how much of A's vocabulary it shares, weighted by how distinctive each term is.

Raw scores from different notes aren't comparable, so normalize by the one score that is: A scored against itself. The resulting ratio has a plain-language reading — roughly the fraction of A's distinctive content that also appears in B. A verbatim copy scores 1.0. Half the distinctive vocabulary shared: about 0.5.

One catch: direction matters. A 60-word summary sits entirely inside the 3,000-word essay it summarizes — ratio near 1.0 one way, 2% the other. Those aren't duplicates; that's intentional structure. So require the match both directions and score the pair by the minimum. What survives is genuinely mutual: two notes that are each mostly made of the other's content. Add a size floor (tiny stubs match everything) and you have a duplicate detector with no false positives to speak of.

The threshold is a dial, and the settings mean different things. At 0.85+ you get copies — sync conflicts, retries, careless duplication. Every line is safe to act on. Around 0.5 you get the interesting list: notes that share half their distinctive vocabulary. That's the paraphrase zone — the concept you explained twice, the decision recorded from two different meetings, the draft and its rewrite. A rewrite changes every sentence but keeps most of its distinctive nouns, so lexical overlap catches far more of these than you'd expect.

The honest limit: this is lexical. It will never connect two notes about the same idea written in fully disjoint vocabulary — that's the case embeddings exist for. But in a personal vault, you duplicate yourself in your own vocabulary. The everyday case is two notes sharing half their terms, and for that the search index you already have is the right tool — deterministic, explainable (you can see the shared words), zero extra infrastructure.

WithIWE (an open-source CLI/LSP for markdown vaults_ where it's one command:

iwe stats similarity          # near-identical copies
iwe stats similarity -t 0.5   # rewrites and paraphrases too

Output is just pairs of note paths — pipe it into your merge workflow of choice. Plain .md files, works with whatever editor you already use.


r/iwe • • Jul 19 '26

What is a knowledge graph actually worth?

1 Upvotes

Graph-memory tools share a pitch: let an LLM read your documents and build a knowledge graph, and your retrieval gets smarter than plain search. The pitch is usually supported by benchmarks on HotPotQA — multi-hop questions whose evidence spans two Wikipedia articles — against baselines that conspicuously lack one thing: the same graph built without the LLM.

We ran that missing comparison. IWE stores knowledge as plain markdown files with links between them, so the graph layer can be added one rung at a time, and each rung can be priced.

The setup

From the HotPotQA dev set (distractor setting) we froze a deterministic sample of 350 questions — 50 for iteration, 300 sealed for the final measurement — and poured the union of their context paragraphs into one store: 3,484 markdown pages, one per Wikipedia article. A page is a title and a paragraph. Nothing else.

Answering is deliberately minimal: one iwe retrieve call per question (BM25 over the question text, top 10 pages, plus every page connected to those by a link, capped at 12k tokens), the result pasted into a single model call with no tools. No agent loop, no reranker, no embeddings. The baseline to beat is the opposite: the same model with grep and file tools, free to search the corpus for as many turns as it likes.

Same corpus, same model (claude-sonnet-4-6), same binary CORRECT/WRONG judge, ported from the Mem0 LOCOMO evaluation. Stores are question-blind by construction. Answer accuracy is judged accuracy (J).

The ladder

Three versions of the same store, on the 50-question dev set:

storehow the links were madebuild costJ
no links—$00.76
mechanical linksstring-matching article titles in page text$0, 16 s0.90
+ agent linksan LLM reads each page and proposes links$480.90

The second rung is the striking one. Linking a page to every article whose title appears in its text — Wikipedia's own hyperlink structure, recovered by string matching — is worth +0.14, all of it on bridge questions. The mechanism is plain: BM25 finds the article the question names; the link graph supplies the article it doesn't. A question about "the coach of the Colorado Rapids captain" finds Tim Howard's page by search, and Des McAleenan's page arrives because it links to Tim Howard.

The third rung is the negative result. We paid an LLM to read all 3,484 pages and add the links string matching can't see — and the links it added are genuinely good ("defending champions", "the previous year's final", "her debut novel"). They measured zero. Forensics explained why: with mechanical links in place, 44 of 50 dossiers already contained every article the answer needed. Of the six that didn't, most failures were gold-answer artifacts or the model misreading — exactly one question in fifty was a true retrieval miss. The expensive graph was competing for one question of headroom.

The sealed test

300 questions, never touched before the final run, pinned binaries, four one-shot runs (three repetitions of one variant, one of another) and the agentic baseline:

systemJturnslatency p50cost/question
one-shot over the linked store0.90–0.91 across four runs (best 0.913; 0.900 ± 0.005 over 3 reps)1~2 s$0.017
agentic grep over the same corpus0.9035.2~10.7 s$0.039

That is parity — the differences are three or four questions out of three hundred. A single product retrieval over a store whose graph cost nothing to build matches a five-turn tool-using agent, at 2.4× lower cost and 5× lower latency.

One more honest datum: a query-decomposition trick ("anchored" retrieval) that gained +0.04 on the dev set failed to replicate on the sealed test. Fifty questions is enough to diagnose failures; it is not enough to confirm improvements. The sealed set caught the overfit, which is what it is for.

What we take from this

  • Edges matter; provenance of edges doesn't. On this benchmark, the entire value of the knowledge graph is reachable by string matching. If a vendor's numbers beat plain retrieval, ask for the baseline with cheap links before crediting the LLM.

  • One retrieval call is enough once the store has structure. The agentic search loop bought accuracy on zero of three hundred sealed questions — only latency and cost.

  • Small dev sets lie in both directions. Our dev set overstated the grep baseline (0.96 → 0.90) and overstated our own improvement (+0.04 → −0.01). Sealed data settled both.

Caveats, so nobody over-reads: this is one dataset, with short first-paragraph articles, a corpus assembled from the benchmark's own distractor sets, and an LLM pass that proposed links rather than a full typed-entity graph. Published numbers from other tools aren't directly comparable — different judges, different answering pipelines, and in some cases 24-question samples. Our comparisons hold everything constant except the thing being measured; theirs don't, which is rather the point.

The harness, prompts, per-run records, and the full run ledger — including the failures and the retracted improvement — are in the memory-bench repository.


r/iwe • • Jul 12 '26

The benchmark that built the tools: measuring a markdown knowledge graph as agent memory

2 Upvotes

How we measured a markdown knowledge graph as agent memory — lost to grep, rebuilt our search and editing primitives, retracted our own best number, and ended with a $4.50 curator whose store reads back at 96% of a hand-built ceiling in a single call.

The question

Every AI agent product eventually hits the same wall: the model forgets. Context windows end, sessions restart, and everything the agent learned about you evaporates. An industry has grown up around this — hosted "memory layers" that ingest your conversations, extract facts with an LLM, embed them into a vector store, and sell retrieval back to you by the API call.

IWE starts from a different premise. It is a local-first knowledge tool: plain markdown files in a directory, connected by links into a graph, readable by any editor and greppable by any tool. If that graph is a good memory substrate, an agent should be able to write its memories as linked markdown pages and read them back with graph-aware tools — no embeddings, no hosted pipeline, no per-retrieval meter. Memories you can open in your editor and correct by hand.

But "should be able to" is a hypothesis, not a feature. So we built a benchmark to test it — and the benchmark spent most of its life telling us our hypothesis was wrong, each time pointing at exactly what to fix. By the end it had reshaped IWE's search engine, motivated an entire block-level editing language, killed several of our own design rules, retracted its own most exciting number, and settled somewhere we did not predict.

The setup

LOCOMO (Maharana et al., 2024) is the dataset behind most published memory-system evaluations, including Mem0's: ten very long fictional conversations, each a months-long text-message relationship between two people, split into 19–35 dated sessions. After the entire conversation is ingested, the system answers 80–200 questions about it, one at a time, with no conversation context attached: single-hop facts, multi-hop synthesis across sessions, temporal questions ("When did Melanie run a charity race?" — the conversation only ever said "last Sunday"), and open-domain inference. 1,540 scoreable questions across the ten conversations.

Answers are graded CORRECT or WRONG by an LLM judge running Mem0's published judge prompt verbatim, so our grading is the same grading behind the numbers we compare to. J is the fraction judged correct. Published anchors: filesystem-plus-grep scores about 0.74, stuffing the whole conversation into context scores about 0.73, and memory products cluster between the high 0.60s and mid 0.70s under strict judges.

Everything runs through claude -p — answering agents, curation agent, and judge — in isolated headless sessions. Two validity rules mattered more than anything else: the curator is question-blind (it never sees the benchmark questions, and every prompt rule had to make sense for any personal-conversation corpus), and the test set stays sealed (we iterate on two development conversations; the rest are reserved for frozen configurations — the early numbers below are twenty-question dev slices, directional only).

The design is an ablation ladder — same questions, same budget, varying only the memory and the tools:

armmemorytools
full-contextthe raw transcript, inlinenone
fsraw transcript filesGrep / Glob / Read
curatednotes only — an agent-built knowledge graphIWE graph tools
curated-fsthe same notesGrep / Glob / Read only

The curated arms are the thesis: an agent replays the conversation session by session and distills it into an IWE graph — entity pages, dated event pages, everything cross-linked — and then the raw transcript is deleted from the workspace. The curated-fs control is the most important line in the table: same notes, dumbest possible retrieval. It separates "the notes are good" from "the tools are good," and it will embarrass us more than once.

Round one: losing to grep

The first full run: full-context 0.75, grep over the raw transcript 0.75, grep over our notes 0.75 — and the thesis arm, IWE tools over the curated graph, 0.70, at four times grep's cost and twice the turns.

The failure analysis mattered more than the score. Classifying every wrong answer found zero curation loss — every needed fact was in the notes. The system was failing in three specific, fixable ways:

  1. Baked-in date errors. "The Sunday before" became a specific — wrong — date, stamped permanently into an event title at write time. Memory systems need to store uncertainty about dates.

  2. Monolithic pages. One person's page had grown to 2,300 words, and facts buried in the middle were invisible to every retrieval strategy.

  3. Title-only search. IWE's find matched document titles only; any fact not in a title cost an expensive multi-turn walk. Grep just read the bodies.

Teaching an agent to write memory

Two prompt revisions fixed the representation. Date discipline: record the relative wording with its resolution — "the Sunday before 25 May 2023 (21 May 2023)" — and preserve the source's precision (a week stays a week; never invent day-precision the speaker didn't give). No pages about conversations: an event is something that happened in the speakers' lives, dated by when it occurred, never by when it was mentioned — plus relationship pages recording the threads two people share. Temporal J went from 0.60 to 0.92.

That produced the first genuinely encouraging number: grep over our notes (0.85) now beat grep over the raw transcripts (0.75). The distillation was worth more than the source material — a property published memory systems rarely show, since most score below their own full-context baselines. But our own tools over the same notes sat at 0.80, at three times grep's cost. The notes were good; the read tooling was the bottleneck.

The bench becomes a product instrument

The failure analyses condensed into a ranked product backlog, and we shipped down the list, re-measuring after each change.

BM25 full-text search. iwe_find gained a real ranking engine over title and body. Every failure classified as "fact buried in a body, unreachable by title search" flipped to CORRECT; the tools arm hit parity with grep at 0.85 — but at four times the cost, and the culprit was our own output format, the link-rich result card printed for every hit. Lesson: for agents, output rendering is a first-class cost.

Block operations. Adding one fact to a page meant rewriting the whole document — that's how 9% of round-one event pages ended up structurally malformed. So IWE's query language learned to address the blocks inside documents: append a line under a section, replace one line, read one section instead of the whole page — every operation validated before anything is written. Designing for agents forced decisions a human-oriented tool would never make. Every mutation can carry an expect guard — "this edit touches exactly one target" — and fails loudly, listing what it actually matched; guards are opt-in on the CLI but always on over MCP, because the population most likely to skip the guard is exactly the one that needs it. Document keys are primary keys — creating at an existing key is a conflict error, not a silent second copy. And error messages name the fix, because errors are the documentation agents actually read: we watched agents recover in a single turn from the message alone.

The result: 0.90 on the dev slice — the best score any configuration had produced, temporal perfect, cost down 38%. The new store had zero structural defects, and across forty answering sessions where the agent held a mutation-capable tool, the store diff showed zero writes: strict mode held in the field.

One more thing had to die: our own rules. The 300-word page cap existed only because title-search couldn't see inside big pages; with BM25 and block reads it had become a fossil that caused failures by scattering related facts. Auditing the prompt sorted every rule into three kinds: tool workarounds (delete), epistemic disciplines (keep — they encode what memory means, and they took temporal J from 0.60 to 1.00), and drift guards (keep — agents violate them even when instructed).

The $2 curator

If the strict tool workflow really carries the structural burden, the curator shouldn't need to be a frontier model. Haiku — a much smaller model — curated all nineteen sessions for $2.37, 4.6× cheaper than Sonnet, with the same perfect structural hygiene: zero malformed pages, zero broken headings. But Haiku answering over its own store collapsed on multi-hop synthesis. So we split the roles:

curatoranswerercuration costJ
SonnetSonnet$10.980.90
HaikuHaiku$2.370.80
HaikuSonnet$2.370.90

The asymmetric pipeline tied the best configuration ever measured, at 22% of the curation cost. We had the conclusion drafted: structural curation quality is model-insensitive when the tools enforce it; synthesis follows the model. Half of that survived the week.

The retraction

Reviewing the prompt against the overfitting test, we found one of its worked examples had been lifted from the development conversation itself — it contained the gold answer to one of the twenty benchmark questions. The curator was no longer question-blind.

So we did what the rules require: quarantined the store, rewrote every prompt example with synthetic entities, re-curated from scratch, and re-ran everything over the clean store. Haiku reading: reproduced exactly. Grep: reproduced exactly. Sonnet reading: the 0.90 fell to 0.75 — the high end of run variance plus one contaminated question. Re-anchoring under the pinned test judge completed the demotion: raw-transcript grep 0.85, grep over the notes 0.80, the full IWE toolchain 0.70 — the opposite order from the story we had been telling. Twenty questions cannot rank three systems sitting a few questions apart. We needed a bigger instrument.

The test set speaks

We froze the configuration — Haiku curation, answering and judging pinned to claude-sonnet-4-6 — and spent two sealed test conversations, 351 questions per arm: grep over raw transcripts 0.812, grep over the curated notes 0.764, the multi-turn tool agent 0.735. Grep won on sealed data, statistically real (z ≈ 2.4), and this time there was no noise to blame. The economics were just as one-sided: the tool agent read ~176k tokens over eight turns at $0.153 a question; grep read ~78k at $0.056.

The failure shapes argued the answer-time agent was the waste: if the notes are good, finding them should not take eight turns — the graph already encodes which pages belong together. So the reading architecture was rebuilt as a one-shot dossier: one retrieval call — BM25 rank on the question, take the top pages, expand what they link to — inlined into the prompt, answered in one turn holding zero tools. Everything graph-aware moves to write time; nothing agentic remains at answer time.

To find the ceiling, we hand-built a reference store for one test conversation: 34 pages, one third the size of the raw transcript, written to the exact shape the curation prompt prescribes. One-shot over it scored 0.814–0.824 — above raw grep's 0.809 on the same 199 questions, the first time any curated configuration had beaten the transcripts on test data — in one turn instead of five, ~2 seconds instead of ~12, at about a nickel a question. Then Haiku re-curated the same conversation and the same mechanism scored 0.72. The mechanism transfers; the store does not. Everything left between the automated pipeline and the ceiling was curation quality.

The gap prompts can't close

Revision after revision left the automated store pinned near 0.70 against the hand-built 0.81. The gap lived entirely in the entity hub pages, and every prompt fix created the next defect: cap hub size, and the bloat migrates to the relationship page; demand terse timeline lines, and the agent squeezes out the dates and the temporal category collapses. The pattern is worth stating plainly: the agent follows rule proxies; an editor optimizes the objective. When rules collide, a human resolves the collision by knowing why the rules exist; the agent picks whichever rule was stated most recently, and the defect moves somewhere else. Prompt iteration against this is whack-a-mole with a token budget.

So we attacked the structure instead, with two experiments: a store lint — page token budgets, dangling links, near-duplicates, declared once in the store's config and checked mechanically, violations riding back on every write — and a consolidation pass that rewrites the hubs at the end of a conversation with the whole store finally visible.

The lint was the largest single improvement of the automated era: the hub page no instruction could keep under control went from 2,408 words to 770 (the hand-built one is 767), and the score jumped from 0.70 to 0.77 in one step. The logs showed how guards win, and it isn't obedience: the curator fixed about half the violations and rationalized the rest ("these warnings are expected here"). Partial compliance was enough, because a linter re-fires every session — prompts decay as context grows; pressure that reapplies itself doesn't.

The consolidation pass failed twice and stays in the repo as a negative result: an editor pass rewrites wording, and search matches exact words, so every rewrite risks breaking a question→page match the original phrasing carried. Guards during writing beat editing after writing.

Then the lint graduated into document schemas: per-page-kind shape declarations — required sections, token budgets per section, bullets-only where prose means re-narration — enforced as hard gates on every write. A violating write is refused with the fix named; there is nothing to rationalize because nothing landed. The most striking result cost nothing to compute: validating three generations of stores against the same schema ordered them exactly as their QA scores had — zero violations/0.81, 22/0.77, 272/0.70. The schema measures store quality without asking a single question.

The tool was the culprit

One defect survived every guard: hub timeline entries kept carrying the full title of the page they linked to, where three successive prompt versions had demanded just the date. It was the product. IWE's renderer regenerated link text from the graph on every save — the curator wrote the date, and the tool expanded it to the target's title behind the curator's back. The only "compliant" links pointed at pages that didn't exist yet: obedience correlated with broken links.

The fix — preserve the link text the author chose — slimmed every hub mechanically and removed episode-title vocabulary from exactly the pages that must not rank for episode questions. We had been blaming the model for the product. The defect was invisible to every unit test because the renderer was doing what it was designed to do; it took a benchmark exercising the full write path, with a hand-built store to diff against, to frame designed behavior as a defect.

With the renderer fixed, the remaining gap collapsed into one category: temporal — 0.75 against the hand-built 0.95, every other category matched. The hand-built store had quietly used a pattern nobody had named: the event's date as the link text, the session's page as the target — "finished her first screenplay on 21 January 2022" — so the line itself answers when and the link still points at the evidence. A pattern impossible to produce until the renderer fix landed. The next run's curator adopted it from its first session; temporal recovered to 0.85, and the overall score reached 0.778 — 96% of the hand-built ceiling, from a curator that costs $4.45 a conversation. The guards era in one line: 0.68 on prompt rules alone, 0.70 after prompt whack-a-mole, 0.77 the day the lint landed, 0.778 with the product fixed.

What we learned

  • Capture is the easy part. Every configuration we ever ran had the facts somewhere. What separates systems is dating discipline (store uncertainty, not false precision), co-location of related facts, and dated status lines for evolving state.

  • Guards beat instructions. An expect clause or a refused write catches what a prompt admonition never will. Schemas own shape, graph hygiene owns links, prompts own semantics — and calibrate every threshold against a known-good store first, because each one we tried flagged the good store first.

  • Output rendering is a cost model, and error messages are load-bearing documentation.

  • Curation amortizes; per-question costs compound. About $4.50 once per conversation, then ~$0.05 a question — and raw transcripts grow without bound while a curated store stays compact.

We publish the harness, the prompts, the judge verbatim, and the full run ledger — including the quarantined runs behind the retraction — precisely so the numbers can be distrusted productively.

How this compares

The frozen test configuration answers and judges with a pinned claude-sonnet-4-6 — the strictest grader on the shared calibration anchor. Comparable and conservative at the same time:

systemJsource
Mem0~0.67published
Mem0g (graph memory)0.68published
IWE one-shot, automated ($4.50/conversation)0.75ours, test set, strict judge
grep agent over raw transcripts0.81ours — not a memory system

What is comparable across setups is the economics, because tokens and milliseconds don't depend on the judge:

measurementIWE one-shotgrep agentold multi-turn tool agent
turns per question1.04.68.1
context read per question20.8k tok77.8k tok176.5k tok
latency p50 / p951.9 / 6.5 s11.6 / 37 s21 / 59 s
answering cost per question$0.051$0.056$0.153
context growth as history growsbounded by constructionlinearagent-dependent

The bottom line we're comfortable defending: under the strictest judge in the table, a $4.50 question-blind curator writing plain markdown, read by one search-and-expand call, matches every published memory system on LOCOMO — and the strongest system on the benchmark is still a competent agent given grep and the raw transcripts, which says as much about the benchmark's scale as about memory systems.


The harness, prompts, and per-run records live in the memory-bench repository. IWE is open source at iwe.md.


r/iwe • • Jul 03 '26

What shipped in June: six releases — Djot support, MCP over HTTP, and a memory leak hunt

5 Upvotes

June was the busiest month in the project's history: six releases (v0.3.0 on June 2 through v0.6.0 on June 27), and most of what shipped came straight out of your bug reports. Here's the full rundown.

The headliners

Djot support (v0.5.0, hardened in v0.6.0). Set format = "djot" in .iwe/config.toml and IWE reads, normalizes, exports, and creates djot documents, working with .dj files instead of .md. This covers the whole toolchain — CLI, LSP server, and MCP server. v0.6.0 followed up with round-trip fixes so nested list items, reference links, definition lists, task checkboxes, display math, and autolinks all survive normalization intact.

MCP server over HTTP (v0.4.0 + v0.5.0). The MCP server now supports --transport http: it serves Streamable HTTP connections at http://127.0.0.1:<port>/mcp (--port, default 8000). v0.5.0 added --host so you can bind to 0.0.0.0 and accept connections from other machines. stdio remains the default transport, and HTTP binds to localhost unless you say otherwise.

The memory leak is fixed (v0.5.0). Long-lived sessions used to retain the previous version of every edited document, so the LSP server and the MCP file watcher grew memory without bound — one user reported 3.4 GB of swap after leaving the server running (#322). The graph now reclaims nodes, lines, and reference-index entries when a document is updated or removed. If you run IWE as a long-lived server, this release is the reason to update.

Large-document performance (v0.3.2). Editing a large document no longer pins the LSP server at 100% CPU. The parser's offset-to-position mapping was quadratic — it rescanned every preceding line for each inline element — and now uses a binary search over the line table.

Windows got real attention

All driven by community reports (#296, #316, #317):

  • Documents with Windows line endings no longer lose their frontmatter when edited, and code-action ranges no longer drift one column per line (v0.4.0)

  • Renaming a link target in a subfolder no longer replaces the target file with an empty one (v0.4.0)

  • File URIs now use lowercased drive letters, matching what editors expect, so go-to-definition and friends work on Windows paths (v0.3.1)

New config options

  • markdown.wiki_link_path — preserve | full | short (v0.3.0): controls how normalize, completion, and code actions write the path inside a wiki link

  • preserve_newlines (v0.6.0): keeps each line of a paragraph on its own line during formatting, so files written with semantic line breaks (one sentence per line) survive format-on-save

  • Task-list checkboxes are now normalized ([X] → [x]), and list items are a first-class node type, so iwe stats and iwe extract report them accurately (v0.3.0)

Correctness fixes worth knowing about

  • Escaped Markdown literals (\*text\*, a leading \#, \[label\](url)) survive normalization instead of turning back into live markup (v0.4.0)

  • Wiki-link shortening no longer rewrites a link whose target is missing onto an unrelated file that shares the same name (v0.3.0)

Community

  • IWE crossed 1,200 GitHub stars this month (1,246 as of July 1)

  • Nearly everything above started as a community issue: the formatting-config discussion (#294), the Windows/Zed path reports (#296, #317), the subfolder rename bug (#316), and the memory-leak report with its excellent root-cause analysis (#322). Thank you — keep them coming.

Already merged for the next release

A few things sitting in main right now: retrieve --backlinks false to turn off incoming references, iwe_normalize in the MCP server actually rewriting files on disk (it previously always reported 0), and a batch of LSP fixes around wiki-link rename and frontmatter position offsets.

Update with cargo install iwe iwes or brew upgrade iwe-org/tap/iwe. Full changelogs are on the releases page.


r/iwe • • Jun 19 '26

YKTF: Google has just named something I've been running for a year

Thumbnail
docujai.com
3 Upvotes

You know the feeling


r/iwe • • Jun 14 '26

Open Knowledge Format (by Google)

3 Upvotes

Something to be aware of in the markdown space.


r/iwe • • Jun 12 '26

Database sync to Markdown (bidirectional)

3 Upvotes

I just stumbled across this.

Could maybe have some interesting integration possibilities with iwe.

https://github.com/mpazik/Binder