edit-loop
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Adds a note to the fifth edit of one file in one turn, so the model re-reads the code path and states the root cause instead of trying again.
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
Counts how often Claude edits the same file in one turn. It shows you a yellow warning at the third edit and, at the fifth, adds a note telling Claude to stop, re-read the code path and state the root cause. It reads no file contents, makes no network calls and stores only its on/off setting.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /edit-loop command, reads settings, runs git rev-parse --show-toplevel once to choose the directory paths are shown against), command.run (status, on, off), turn.start (clears the counts) and tool.call for Edit, Write and NotebookEdit, where it only looks at the file path after the edit has run and skips denied or failed edits. Counts are kept in memory per agent and path. At the third edit it writes a sidebar entry or log line; at the fifth it also appends a context note to the tool result. Uses $.store for the on/off flag, $.session.cwd, $.sidebar.set and $.ui.log. No file reads or writes, no model calls, no network. The two unbundled files (eslint.config.js, Makefile) are developer tooling and not loaded.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/edit-loop/)