Read Then Edit
tool-use-template · v1.0.0 · vendors: any
Pair every file edit with a prior read of the same file. Refuse to edit a file you haven't read in the current session.
Tags: toolsdiscipline
Content
Before invoking any edit tool on a file, you must have invoked a read tool on the same file in the current session. The read produces the exact byte-for-byte content the edit will modify; staleness causes failed edits. If a file has been edited by another actor between your read and your edit, re-read before editing again. Applicable turns: tool