llm_fs_edit_many
Apply natural language bulk edits across multiple files. Ideal for cross-file refactors and pattern updates.
Instructions
Generate bulk edit instructions across multiple files.
Extends the ``llm_edit`` pattern to many files at once: the cheap model
reads all target files and returns a JSON array of ``{file, old_string,
new_string}`` edit instructions. Claude applies them mechanically.
Use this for cross-file refactors, bulk renames within files, or updating
repeated patterns across a module.
Args:
task: Natural-language description of what to change, e.g.
"replace all `import sqlite3` with `import aiosqlite as sqlite3`"
or "update the copyright year from 2024 to 2025 in all file headers".
files: Explicit list of file paths to process.
glob_pattern: Glob pattern to find files (e.g. "src/**/*.py"). Use
either ``files`` or ``glob_pattern``, not both.
max_files: Cap on files processed in one call (default 20). Raise if
you need more — but consider splitting into batches for large refactors.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| files | No | ||
| glob_pattern | No | ||
| max_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |