Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rjkaesv2.13.1Apache-2.0In 1 marketplace
Edits files only when the agent's old text matches the file's current contents, rejecting stale or ambiguous edits. Reads just the outline or line ranges it needs, and its hooks run automatically on session start and around edit and read calls.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An MCP plugin that gives AI coding agents hash-verified file editing and targeted reads. Works with Claude Code, Gemini CLI, VS Code Copilot, OpenCode, and Codex CLI.
Claude Code (recommended; hooks are automatic):
/plugin marketplace add rjkaes/trueline-mcp
/plugin install trueline-mcp@trueline-mcp
Other platforms (Gemini CLI, VS Code Copilot, OpenCode, Codex CLI): See INSTALL.md for platform-specific setup.
CLI (no MCP): For agents that use shell commands instead of MCP, install
globally with npm i -g trueline-mcp and add configs/cli/instructions.md
to your agent's system prompt. See INSTALL.md.
AI coding agents read entire files to find one function, then echo back everything they're replacing. Both waste context on content the agent already knows or doesn't need. That context costs money, eats into the conversation window, and limits how much real work fits in a session.
Worse, the built-in edit tools match by string content. If the agent hallucinates a line, works from stale context, or hits an ambiguous match, your code gets silently corrupted.
trueline fixes both problems: it reads less, writes less, and rejects every edit that doesn't match the file's actual content.
trueline provides six MCP tools organized around three workflows.
trueline_outline returns an AST-based structural outline of any file:
functions, classes, declarations, and their line ranges. For a typical
source file, that's 10-20 lines instead of hundreds.
7-14: (8 imports)
20-23: export const jsonFlag = {
26-30: export interface CliSubcommand {
28-28: usage: string;
29-29: run(argv: string[]): Promise<void>;
36-36: export class UsageError extends Error {}
39-39: export class HelpRequested extends Error {}
45-47: type ParsedArgs<T extends ParseArgsOptionsConfig> = ReturnType< typeof parseArgs<{ options: T; allowPositionals: true }>
50-50: const LONG_FLAG_LIKE = /^--[A-Za-z]/;
57-84: export function parseCliArgs<T extends ParseArgsOptionsConfig>(argv: string[], options: T) {
90-96: export function parseIntFlag(name: string, raw: string | undefined, min: 0 | 1): number | undefined {
104-106: export function fromCwd(arg: string): string {
115-126: async function assertNotDenied(filePath: string): Promise<void> {
128-130: function stripBom(text: string): string {
146-183: export async function loadAtOrDashOrLiteral(value: string, kind: "json" | "text"): Promise<unknown> {
189-193: export interface FormatOptions {
190-190: json: boolean;
192-192: search?: boolean;
206-225: export function emitResult(result: ToolResult, opts: FormatOptions): void {
(19 symbols, 225 source lines)
The agent sees the full structure, then uses trueline_read to fetch only
the ranges it needs. Ranges are specified inline on each path:
file_paths: ["src/cli/io.ts:115-126", "src/tools/verify.ts:1-20,35-60"]
A 500-line file where the agent needs one 20-line function? It reads 20 lines, not 500. Multiple files with different ranges in a single call.
trueline_search finds lines by literal string or regex and returns them
with edit-ready refs, no outline or read step needed. For targeted
edits where the agent knows what it's looking for, this is the fastest path.
The built-in edit tool requires the agent to echo back the old text being
replaced. trueline_edit replaces that with a compact line-range reference
and a content hash. The agent outputs only the new content.
The savings scale with the size of the replaced block. A one-line change saves little; replacing 30 lines of old code saves the agent from outputting all 30 of those lines again.
Multiple edits can be batched in a single call and applied atomically.
All MCP trueline tools require an absolute file_path/file_paths; relative
paths are rejected to avoid silently operating on the wrong file when the
agent is working in a git worktree. The CLI (trueline edit, trueline read, etc.) still accepts relative paths, since its working directory is
unambiguous.
trueline_changes provides an AST-based summary of structural changes
compared to a git ref. Instead of raw line diffs, it reports
added/removed/renamed symbols, signature changes, and logic modifications
with inline mini-diffs. Pass ["*"] to diff all changed files at once.
Every line from trueline_read and trueline_search carries a content
hash. Every edit must present those hashes back, proving the agent is
editing what it thinks it's editing.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rjkaes/trueline-mcp --plugin trueline-mcpPlugins from other owners that cover similar ground