edit-tool-enhanced
Every file edit the agent makes renders as a full colored diff, insertions in green, deletions in red, context lines for orientation. You see exactly what changed before and after, not just “edit applied.”
The diff stays visible after execution and persists with a summary line showing the file path and confirmation.
Clickable diff link (lazygit)
Section titled “Clickable diff link (lazygit)”When lazygit is installed and the edited file is inside a git repo, each edit footer includes a clickable diff link. Clicking it opens lazygit filtered to that specific file, so you can stage or review the changes interactively.
The link uses a tallow://diff/<path> custom URI scheme via
OSC 8 terminal hyperlinks.
Your terminal needs a handler for the tallow:// scheme to make the
click do something useful.
WezTerm setup
Section titled “WezTerm setup”Add the following to your WezTerm open-uri event handler
(typically in your events config file):
-- Handle tallow://diff/<encoded-path> linksif uri:match("^tallow://diff/") then local encoded_path = uri:gsub("^tallow://diff/", "") local file_path = url_decode(encoded_path) window:mux_window():spawn_tab({ args = { "lazygit", "-f", file_path }, }) return falseendThe url_decode function decodes percent-encoded characters. If you
don’t already have one in your config:
local function url_decode(str) return str:gsub("%%(%x%x)", function(hex) return string.char(tonumber(hex, 16)) end)endBehavior without a handler
Section titled “Behavior without a handler”Terminals without a tallow:// handler will either silently ignore
the link or show a “can’t open URL” notification. No crash, no error
in tallow — the link is purely additive.
Requirements
Section titled “Requirements”- lazygit on
PATH— detected once at extension load time - Edited file inside a git working tree — checked per edit
- Terminal supporting OSC 8 hyperlinks (WezTerm, iTerm2, most modern terminals)