Minified tools
read_minified returns a compact view of a source file: comments removed, blank lines
dropped, indentation collapsed to one space per nesting level. patch_minified and
multi_patch_minified edit through that same view. A source map translates every
edit back to the real file, and nothing is written until every edit succeeds.
// The mode leads: whether the agent may // modify the workspace must be readable. if let Some(mode) = session.active_mode() { stats.push(theme.bold(&theme.fg( mode_color(&mode.id, mode.shell), &mode.id, ))); } // Build the stats line. let pwd = location_parts.join(" • ");15 tokens (est.)
if let Some(mode) = session.active_mode() { stats.push(theme.bold(&theme.fg( mode_color(&mode.id, mode.shell), &mode.id, ))); } let pwd = location_parts.join(" • ");7 tokens (est.)