Skip to content

Text file editor tool plugin#1155

Merged
frdel merged 15 commits intoagent0ai:developmentfrom
linuztx:text-editor-tool-plugin
Feb 28, 2026
Merged

Text file editor tool plugin#1155
frdel merged 15 commits intoagent0ai:developmentfrom
linuztx:text-editor-tool-plugin

Conversation

@linuztx
Copy link
Copy Markdown
Contributor

@linuztx linuztx commented Feb 28, 2026

  • Added text_editor tool plugin: read, write, patch with numbered lines
  • Native read/write/patch tools for text files with line numbers
  • Token budgeting: long line cropping, total-read limit, warning messages when content is trimmed
  • Binary detection and reject with a clear terminal message
  • Insert/replace/delete edits in a single patch
  • Mtime tracking so patches require a prior read and reject when the file changed
  • In-place patch optimization: allow consecutive patches without re-read when each edit replaces N lines with N lines
  • Enforce re-read after insert, delete, or N≠M replace to avoid line-number drift
  • Overlap and overflow validation for edits
  • Stream patch application to a temp file to avoid loading large files fully into RAM
  • Extension hooks: read_after, write_before/after, patch_before/after
  • Config UI: max line tokens, default line count, max total read tokens
  • Compress prompts for tokens and direct agents to use the terminal for search/replace

@frdel frdel merged commit 080c169 into agent0ai:development Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants