[KongchangAI]
Product

edit_file

A built-in file editing tool in CodeSmith. Its description steers the model away from performing edits through shell commands such as sed -i, encouraging use of the dedicated tool instead.

Timeline (last 90 days)

Nov 11

The filesystem server in v2.4.0 fixes several edge cases: search_files' excludePatterns is aligned with directory_tree behavior (#5446), exclusion globs ending in /** are correctly pruned (#5456), edit_file can match oldText ending in a newline (#5447), and a clear error is reported when the parent directory is missing (#5448).

Unverified50%
Oct 17

The core Syntax Gate module is only 455 lines long and unifies the admission logic of the four disk-writing tools write_file, edit_file, apply_patch and fim_edit.

Unverified50%
Oct 16

CodeSmith's tool descriptions contain about ten anti-pattern lists in the form 'Use this instead of ...', for example write_file discouraging heredoc, edit_file discouraging sed -i, fetch_url discouraging curl, and grep_files discouraging grep -r.

Unverified50%
Oct 16

The edit_file tool performs exact-match replacement, and its validation rules include: if search and replace are identical, reject directly; replace_all and occurrence are mutually exclusive; occurrence must be a 1-based positive integer.

Unverified50%
Oct 16

edit_file implements a three-level fuzzy fallback strategy: the first level tolerates leading whitespace; the second level normalizes typographic punctuation (curly quotes→straight quotes, em dash→--, non-breaking space→regular space); the third level strips line-number prefixes.

Unverified50%

All Facts (5)

Source Articles