Skip to content

Add per-line and total output truncation to Read tool#24

Merged
jbreite merged 2 commits intomainfrom
read-tool-line-truncation
Mar 12, 2026
Merged

Add per-line and total output truncation to Read tool#24
jbreite merged 2 commits intomainfrom
read-tool-line-truncation

Conversation

@jbreite
Copy link
Copy Markdown
Owner

@jbreite jbreite commented Mar 12, 2026

Summary

  • Truncates individual lines exceeding 2,000 characters (silent, matching Claude Code behavior)
  • Caps total Read output at 60,000 characters using middle truncation to prevent context bloat
  • Adds configurable maxLineLength option to ToolConfig

Truncates lines exceeding 2000 characters and caps total output at 60000
characters using middle truncation, preventing context bloat from large files.
Adds configurable maxLineLength to ToolConfig.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bashkit-docs Ready Ready Preview, Comment Mar 12, 2026 11:03pm

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jbreite jbreite marked this pull request as ready for review March 12, 2026 23:03
@jbreite jbreite merged commit 4b1c04d into main Mar 12, 2026
6 checks passed
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.

1 participant