Skip to content

Feature Request: Storage retention/pruning settings for kiroagent globalStorage #6780

@GerardDeLapelinDumont

Description

@GerardDeLapelinDumont

Kiro Product

IDE

Feature Description

Problem

~/Library/Application Support/Kiro/User/globalStorage/kiro.kiroagent/ grows unbounded. Reached 5.4 GB in ~3 weeks (796+ session files). No settings, commands, or docs for managing this storage.

kiro-cli has --delete-session for its SQLite DB, but Kiro IDE globalStorage has no equivalent.

Requested Features

  1. Max storage size setting — auto-prune oldest sessions when limit reached
  2. Retention period setting — auto-delete sessions older than N days
  3. Manual prune command — e.g., /cache prune --older-than 7d
  4. Storage usage visibility — show current usage via command or settings

Steps to Reproduce

  1. Use Kiro IDE for 2-3 weeks across multiple workspaces
  2. Check globalStorage folder — observe multi-GB growth
  3. Search settings for storage limit or pruning — none exist

Use Case

SA using Kiro IDE daily across 6+ customer workspaces. On a 228 GB MacBook, the globalStorage consumed 5.4 GB in 3 weeks — nearly filling the disk alongside other dev tools. Had to manually investigate and identify the folder as the culprit. Users on smaller drives or heavier usage patterns will hit this faster.

Additional Context

The 5.4 GB breaks down as: ~4.8 GB conversation session files (JSON, ~2-3 MB each), ~564 MB LanceDB vector index. The session files are the growth problem — the index is reasonable. A simple retention policy on session files would address 90% of the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions