Skip to content

[ENHANCEMENT] Show Total and Net lines of code added/removed per task and/or iteration #11213

@raf202

Description

@raf202

Problem (one or two sentences)

Users cannot quickly tell, at a glance, how many lines the agent changed on a given iteration or across the whole task. This makes it harder to do a fast sanity check for "too creative" or "too little" changes before a deeper code review.

Context (who is affected and when)

Developers and reviewers using Roo Code to iterate on tasks. Most useful right after an iteration completes and when scanning a task history, especially for experienced devs who can judge expected scope by lines added/removed. Compact view on header for quick glance and expanded header details could be a good solution.

Desired behavior (conceptual, not technical)

When an agent iteration runs, show a simple summary of lines changed: a) a compact total with plus/minus (e.g., +120 / -30) visible in the compact task header for a quick glance, and b) a detailed view in the expanded task header that lists net lines and per-task/per-file breakdowns so reviewers can inspect where the edits happened. The compact view should give immediate signal; the expanded view should allow drill down.

Constraints / preferences (optional)

Keep the compact summary unobtrusive ans visible.
Display must be fast; computing the metric should not noticeably delay UI updates.
Exclude binary files and generated build artifacts by default.
Normalize whitespace and formatting-only changes to avoid noisy line counts.
Allow opt-out or toggles for teams that prefer not to surface line counts.

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

Compute diffs between the file tree state before the iteration and after the iteration, counting lines added and removed per file. Do not rely on git history as the single source, because agent edits may not map neatly to commits and git-based counting can be brittle for the agent workflow. Use a controlled diff of the workspace snapshot to get accurate per-iteration numbers.

Aggregate per-file counts into: total added, total removed, and net. Expose UI: compact header shows total added/removed; expanded header shows net plus per-file breakdown and more detail.

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UXUI/UX related or focused

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions