piagent_
← ~/map

$ cat ~/map/pi-edit-guard.md

pi-edit-guard

A repair-and-match pipeline behind the built-in edit name that fixes malformed arguments and locates off-whitespace targets.

extensions✓ Sep 11

Facts

repository
github.com/k0valik/pi-edit-guard ↗
GitHub Stars
★ 9
Forks
2
license
MIT
npm / mo
—
last push
Oct 14, 2026

install

pi install npm:pi-edit-guard

## TL;DR

A pi extension that overrides the built-in edit tool with an argument-repair and 14-pass match pipeline, fixing malformed edit calls and off-whitespace matches before they fail, plus an undo tool for recent edits.

## Key points

## FAQ

Q Does the model need to change how it calls edit?

No — extension tools win by name, so the model keeps calling edit exactly as it always has, with no prompt or tool-name changes.

Q Are the benchmark numbers reproducible?

Yes — pnpm replay, pnpm replay:live, and pnpm score rerun the corpora, with baselines pinned in the repository's docs/baselines directory.

## References

## Related entries

## Guides

Last updated: Sep 11, 2026