transmute
Obsidian cannot search and replace across a vault — the sidebar search is read-only, and has been for years. The regex plugins that fill the gap all assume the same thing: that you already know how to write a regular expression. Transmute closes it from the other side. You describe the edit in plain language, a model running on your own machine turns it into a pattern, and you see every single match, before and after, before a character is written.
Why this one
The interesting part was never "an LLM writes a regex". Models do that adequately, and a wrong regex is cheap to discard. The hard part is trust in the application — and that turns out to be a much stricter requirement than it sounds.
The promise the whole thing rests on is one sentence: what happens is what you saw. Keeping it is surprisingly difficult. Match positions age within seconds — a linter plugin writing updated: into your frontmatter on save shifts everything below it. So applying does not trust the positions it captured; it runs the rule again and only writes if the same replacements come out. The honest guarantee is not "the text is unchanged", it is "exactly what you previewed is what happens".
The same promise governs the display. A pattern shown as /x/i while /x/gi actually ran is not a cosmetic slip: for someone about to copy that pattern, or learn from it, it is simply false. Two releases in a row, the bugs that mattered were all of this one shape — and none of them were visible to a green test suite. They surfaced in actual use, in a real vault, where the assumptions a mocked test makes about the host quietly stop being true.
The turn in 0.3.0
Transmute was built so you would not have to know regex. Then, from using it while building it, the opposite pull showed up: let me see the pattern, let me change it, let me learn from it. Not a request from outside — the thing you notice when the tool sits in your own vault and the generated pattern is almost what you meant.
That is not a feature request, it is a different product thesis — and the two pull the interface in opposite directions. The resolution was to make the learning path additive: the panel still opens exactly as before, and every layer of depth is a door you choose to open. The pattern became an editable form with a live preview. A second, quieter link starts the same preview with no model involved at all, for when you already know what you want. A cheat sheet sits under the fields while you type. An edited rule becomes its own history entry, so the model's version stays one click away.
The most interesting piece is the one about danger. A pattern like (a+)+b can run effectively forever on the wrong text, and Obsidian allows no web workers — a running match cannot be cancelled. Generated patterns are therefore rejected outright. But a pattern you wrote is your call, so it is only a warning — and the release applies to exactly that pattern, not to the session: add one character and the warning returns, because a release for (a+)+b says nothing about (a+)+bc. Before it actually runs, the pattern is timed against a short sample first. Backtracking cost grows exponentially with input length, so something already slow on twenty characters would never finish on a long line. It is a brake, not a guarantee — and it says so.
When nothing matches
The moment a tool like this actually fails is not a wrong replacement — you can see those and discard them. It is the empty result. Nothing matched, and there is nothing on screen to think about. For someone who does not read regular expressions, that is the end of the road, and it is by far the most common way to get stuck.
The obvious move is to ask the model why. The obvious move is also wrong: a model that is handed a pattern and an excerpt will produce a confident, well-written explanation whether or not it has any idea, and a plausible wrong answer is worse here than no answer, because the person reading it cannot check it. So 0.4.0 measures first and asks second. Before the model is involved at all, the same pattern is run against the whole note four more times, each with exactly one condition relaxed — ignoring case, dropping the anchors, dropping the word boundaries, allowing flexible whitespace. Those runs go through the same execution path as everything else, with the same time budget and the same limits; a relaxation the safety guard refuses reports nothing at all, because a missing finding is always harmless and a pattern nobody checked is not.
What comes back is not a theory, it is a fact with line numbers: drop the anchors and this matches on line 14. That is what the model gets, and its job shrinks to putting it in a sentence and proposing a fix. And when none of the four relaxations match either, "there is nothing of the kind in this text" stops being a guess and becomes a measurement — which is the one answer that actually ends the search instead of prolonging it.
The last piece is a refusal. The model is explicitly allowed to suggest nothing, and a suggested fix that turns out to be the same pattern is thrown away before you ever see it. Small models do return the pattern they were just told does not work; a button that changes nothing looks exactly like a way out. A tool that always produces a fix is a tool that invents one.
Alongside that, the endpoint list learned to hold a key per row — so a local server and a hosted one can sit in the same ordered fallback list, and a list that quietly skips an endpoint over a missing key says so instead of going silent.
The whole vault
The first sentence on this page says Obsidian cannot search and replace across a vault. For four releases, neither could Transmute — it worked on the open note, and the thing it was built to fix stayed unfixed. 0.5.0 closes that.
The scope grew, but the promise did not change, and that is where the work was. What happens is what you saw is easy to keep when a note has five matches. At 340 files and 1,200 matches, showing everything is no longer a courtesy, it is a scrolling problem. The resolution was to make the display two-tiered while the truth stays flat: the file rows carry a match count and start collapsed — so 340 files are 340 lines, not 1,204 — and the checkbox on a file is derived from the matches inside it, never stored alongside them. Two parallel selection states would drift apart the first time someone unticks a single match inside an expanded file.
The other half is the way back. Within one note, applying writes through the editor, so Cmd+Z undoes it in a single step — no separate undo system needed. That guarantee ends at the file boundary. So a vault-wide run copies every affected file before the first change, and if that copy cannot be written, nothing is. Restoring afterwards compares a hash of what was written: a file you edited in the meantime is left alone and named, not silently overwritten. An undo that only works under conditions is worth least exactly when you need it most.
The button that did nothing
The interesting failure of this release was not in the feature. It was in the tool that was supposed to check it.
Until now, the pre-release routine here was a human going through a checklist in a real vault — and it kept finding things the test suite could not. This time that checklist became a command instead: 25 checks driven against a running Obsidian over the debugging protocol, in a throwaway vault of 12,000 generated notes. On the first run it found two real bugs behind 403 green unit tests, both on the same promise — that a vault-wide run can be stopped.
The first one is almost funny. Releasing the interface during a long run happened at the end of the loop, behind an early exit for files with too many matches. A pattern like [a-z] hits that limit in every file — so the interface was never released, precisely in the most expensive case, and the cancel button was decoration. The second: every progress tick redrew the entire result list, which at 11,770 files costs more than the run itself and blocks the very interface the progress is meant to inform.
But the sharper lesson was about the check, not the bug. It was wrong three times before it held. It first measured a side effect — are other timers running? — which quietly measured the browser's timer throttling as well, and reported "0 rounds in 998 ms" twice: a number that looks exactly like a workload and was none. Then, twice, it reported a defect where there was merely no need, because the run finished faster than the release interval. It only became trustworthy once it counted the mechanism itself, calibrated its own measuring conditions first, and carried both in its result. A check that measures a consequence instead of the thing will eventually report the weather.
Under the hood
A pure core with no Obsidian imports — pattern compilation, execution, scope resolution, prompt construction, answer parsing — testable in Node without a DOM, enforced by a gate. The Obsidian layer is a sidebar panel, a settings tab and a transport adapter. Model-agnostic throughout: the model list is read live from the endpoint, no name is ever hard-coded. Bilingual (English / Deutsch), following Obsidian's own language setting. Local-first — LM Studio, MLX or Ollama; cloud optional, never required.
Online repository
git.jkaindl.de/jkaindl/obsidian-transmute: source, releases and the technical detail (mirror: github.com/johannes-kaindl/obsidian-transmute).
See also: zettelkasten · Setup help: run your own local LLM