Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Batch file patches in one call, with a predicted match count per patch — plus a non-blocking nudge away from in-place shell edits.
NOTES.md has the measurements this is built on, including how the harness
actually reacts to writes it did not make. Read it before changing anything here;
several obvious-looking "improvements" are ruled out by findings in it.
{
"patches": [
{ "file": "src/app.rs", "find": "let mut x", "replace": "let x" },
{ "file": "src/app.rs", "regex": "\\blet\\b", "replace": "const", "expect": 10 },
{ "file": "Justfile", "find": "old", "replace": "new", "expect": 2 }
],
"mode": "atomic" // or "independent"
}
find matches literal text; regex is a JS regular expression with
$1 backreferences. Exactly one of the two per patch.expect is how many matches you believe are there. Defaults to 1 for
find, and is required for regex. A mismatch fails the patch rather than
applying it — if you expected 10 and there are 8, your recollection of the file
is wrong, and the right move is to re-read it, not to change 8 things. This is
the part Edit genuinely lacks: replace_all silently applies whatever it
finds.mode: "atomic" (default) writes nothing unless every patch succeeds, and
still reports every patch so you see all the failures at once, not just the
first. mode: "independent" applies what works and names each failure by
index — for sweeps where absence is expected rather than alarming, e.g. the
same rename across 30 files, some of which legitimately do not contain it.retry — when a batch fails, its report carries a token. The next call
sends only the corrected patches; the ones that validated re-run from the
server's cache, so fixing a typo in one of eight patches costs one small
second call, not a re-send of all eight. Nothing that already reached disk
runs again. Single use.dry_run: true validates every patch and reports as usual, but writes
nothing. The token it returns applies the batch as-is later:
{"retry": "<token>", "patches": []}.report — auto (default) shows the changed regions as separate diff
hunks, elided and collapsed to a one-line-per-file summary when the diff
would be large; diff always shows hunks; summary gives line ranges only;
none confirms without regions. context_lines (default 3, 0 for the
tersest) is the other cost lever. Failures are always reported in full.The result echoes changed regions back. That is not decoration: on a file the
session has only Read and never written, the harness does not notice an
external write at all, so this report is the only accurate view of the file.
(On files with a fresh Edit/Write snapshot the harness prints its own
resync note — the two reports can overlap; that is what report: "summary" is
for.)
Mixing super_edit with Edit on the same file is safe: a later Read shows
the new content, and on a Read-only file the next Edit may ask for one
re-Read first — that re-read is the whole cost.
There is deliberately no then_run. See NOTES.md.
PreToolUse on Bash. Spots in-place edits (sed -i, perl -pi, python
write_text, node writeFileSync, cat > f <<EOF, plain redirects) and adds a
one-paragraph nudge. It never blocks — detection is heuristic, shell edits are
sometimes right, and a nudge that cries wolf gets ignored. Known non-writes are
excluded: =>/-> inside quoted arguments (JS closures, jq), scratch paths
including >/tmp/x with no space, and redirects into files that do not exist
yet (creating, not editing — the generated/bulk work the nudge itself exempts).
It warns only a few times per session. The message names a counter file holding the number of warnings remaining:
0 into it → stop the warnings early;The budget is spent by warnings that are ignored. A PostToolUse pass on
super_edit refills it, so taking the advice buys back the nudge. Without that,
the budget ran out partway through a long editing session and the hook was
silent for the rest of it — measured, not hypothetical — which is precisely the
session that needed it.
super_edit is an MCP tool, so in any mode that surfaces tool calls for approval
(Edit automatically, Ask every time) it prompts on every call, while
the sed -i it exists to replace runs unprompted. That gradient is backwards on
risk: the tool that declares match counts, applies atomically and fails loudly is
the only one that costs a human decision.
Pre-approve it to remove the interrupt:
// .claude/settings.json
{ "permissions": { "allow": ["mcp__plugin_super-edit_se__super_edit"] } }
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub danya02/claude-code-extras --plugin super-editPlugins from other owners that cover similar ground