refactor: Add appending mode to Write Tool for chunked file writing#55
Merged
refactor: Add appending mode to Write Tool for chunked file writing#55
Conversation
Add WriteChunk tool to support writing large files in chunks when content exceeds size limitations. Supports both append mode (sequential writing) and indexed mode (parallel chunk processing with automatic combination). Key features: - Append mode for streaming content to files - Indexed mode for parallel chunk processing - Comprehensive security validation and path exclusions - Robust error handling and temporary file cleanup - Full test coverage for both modes and edge cases This addresses the issue where LLMs need to write large files (e.g., 1000 lines of code) but are limited by single-operation size constraints. Closes #53 Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
…te tests - Deleted WriteChunkTool implementation and its associated tests. - Updated WriteTool tests to correct the field name from BytesWriten to BytesWritten. - Ensured all references to WriteChunkTool are removed from the codebase. Signed-off-by: Eden Reich <eden.reich@gmail.com>
…handling comments Signed-off-by: Eden Reich <eden.reich@gmail.com>
…istency and simplify result handling Signed-off-by: Eden Reich <eden.reich@gmail.com>
…roved readability Signed-off-by: Eden Reich <eden.reich@gmail.com>
…put and UI integration Signed-off-by: Eden Reich <eden.reich@gmail.com>
Contributor
Author
|
Might improve it later. |
|
🎉 This PR is included in version 0.18.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add WriteChunk tool to support writing large files in chunks
This implementation allows LLMs to write files in parts when the content is too large for a single operation.
Features:
Closes #53
Generated with Claude Code