Skip to content

[ENHANCEMENT] Tasks feature: each task's .git folder consumes ~1GB, totaling 33GB+ on disk #12072

@kokorolx

Description

@kokorolx

Problem (one or two sentences)

Describe the bug
The Tasks feature creates task directories that each contain a .git
folder. Each .git is ~1GB in size. With ~33 tasks accumulated, total
disk usage has grown to 33GB.

Context (who is affected and when)

Environment

  • OS: macOS
  • Discovered via: dust (disk usage tool)

Steps to reproduce

  1. Use Roo Code Tasks feature over time
  2. Run dust on the tasks directory to inspect disk usage
  3. Observe large .git directories inside each task folder

Desired behavior (conceptual, not technical)

Expected behavior
Task .git directories should either not be created, be
pruned/compressed automatically, or users should be warned about disk
growth.

Actual behavior
Each task accumulates ~1GB in its .git folder. 33 tasks = 33GB disk
usage.

Constraints / preferences (optional)

No response

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)

Expected behavior
Task .git directories should either not be created, be
pruned/compressed automatically, or users should be warned about disk
growth.

Proposed approach (optional)

Reasonable middle grounds they could offer:

  • Shallow clone / --depth=1 to limit history size
  • Auto-prune tasks older than X days
  • git gc --aggressive after task ends
  • Make git tracking opt-in, not default

Trade-offs / risks (optional)

Pro

  • Full history of every file change Roo made during the task — you can
    git diff, git log, revert mistakes
  • Isolated per-task, no cross-contamination

Con

  • Unbounded disk growth (~1GB/task × N tasks)
  • Most users never look at task git history
  • No auto-cleanup or size warning

The tradeoff: You're paying 1GB per task for a full audit trail that
most users never use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions