[PR #5508] feat: add cache management command #11443

Closed
opened 2026-02-16 18:16:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5508

State: closed
Merged: No


Summary

  • Add opencode cache command for managing the plugin/package cache directory
  • Includes cache clean to remove cached plugins and cache info to inspect cache contents

This helps users diagnose and resolve slow startup issues caused by stale cache entries, where outdated plugin versions in the cache trigger force reinstalls on every launch.

Usage

# View cache info (path, size, installed packages)
opencode cache info

# Remove cache (with confirmation)
opencode cache clean

# Remove cache without confirmation
opencode cache clean --force

# Preview what would be removed
opencode cache clean --dry-run
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5508 **State:** closed **Merged:** No --- ## Summary - Add `opencode cache` command for managing the plugin/package cache directory - Includes `cache clean` to remove cached plugins and `cache info` to inspect cache contents This helps users diagnose and resolve slow startup issues caused by stale cache entries, where outdated plugin versions in the cache trigger force reinstalls on every launch. ### Usage ```bash # View cache info (path, size, installed packages) opencode cache info # Remove cache (with confirmation) opencode cache clean # Remove cache without confirmation opencode cache clean --force # Preview what would be removed opencode cache clean --dry-run ```
yindo added the pull-request label 2026-02-16 18:16:17 -05:00
yindo closed this issue 2026-02-16 18:16:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11443