Skip to content

Comments

refactor: Add appending mode to Write Tool for chunked file writing#55

Merged
edenreich merged 6 commits intomainfrom
claude/issue-53-20250816-1549
Aug 16, 2025
Merged

refactor: Add appending mode to Write Tool for chunked file writing#55
edenreich merged 6 commits intomainfrom
claude/issue-53-20250816-1549

Conversation

@edenreich
Copy link
Contributor

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:

  • Append mode for sequential chunk writing
  • Indexed mode for parallel chunk processing
  • Comprehensive security and validation
  • Robust error handling and cleanup
  • Full test coverage

Closes #53

Generated with Claude Code

claude bot and others added 2 commits August 16, 2025 16:02
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>
@edenreich edenreich changed the title refactor: Add WriteChunk tool for chunked file writing refactor: Add appending mode to Write tool for chunked file writing Aug 16, 2025
@edenreich edenreich changed the title refactor: Add appending mode to Write tool for chunked file writing refactor: Add appending mode to Write Tool for chunked file writing Aug 16, 2025
…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>
@edenreich
Copy link
Contributor Author

Might improve it later.

@edenreich edenreich merged commit 64eb38e into main Aug 16, 2025
1 check passed
@edenreich edenreich deleted the claude/issue-53-20250816-1549 branch August 16, 2025 21:21
ig-semantic-release-bot bot pushed a commit that referenced this pull request Aug 16, 2025
## [0.18.5](v0.18.4...v0.18.5) (2025-08-16)

### ♻️ Code Refactoring

* Add appending mode to Write Tool for chunked file writing ([#55](#55)) ([64eb38e](64eb38e)), closes [#53](#53)
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.18.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Refactor Write Tool

1 participant