Trueline

•
36
•

Optimizes AI agent interactions by significantly reducing token usage during code reads and edits, while preventing common editing mistakes and ensuring code integrity.

Trueline empowers AI agents to interact with code more efficiently and reliably. It addresses the common problem of AI agents wasting tokens by reading excessive content and echoing old text during edits, alongside silently corrupting code. This plugin replaces standard `Read` and `Edit` tools with a suite of smaller, faster, and verified alternatives. It introduces compact AST outlines for navigation, drastically reduces output tokens by replacing old text with line-range references, enables targeted reads of disjoint code sections, and employs robust hash verification to catch any content mismatches before changes are committed to disk. Additionally, it supports batch edits, streamlining multi-site modifications in a single call.

主な機能

011 GitHub stars
02Ensures code integrity through multi-layered hash verification (per-line, range, mtime guard) before edits hit disk.
03Reduces input tokens by up to 95% with `trueline_outline` for compact AST navigation.
04Enables targeted reads of multiple, disjoint code ranges in a single call with `trueline_read`.
05Supports atomic batch edits, reducing tool-call overhead for multi-site changes.
06Decreases output tokens by 44% using `trueline_edit` which avoids echoing old text.

ユースケース

01Ensuring the integrity and correctness of AI-driven code edits in complex projects.
02Streamlining AI agent interaction with large codebases by providing structured views and targeted access.
03Improving token efficiency for AI code generation and modification tasks within Claude Code.