Skip to content

[Performance]: massive memory usage from forge workspace info #2630

@robtaylor

Description

@robtaylor

Performance Issue Description

the auiomatically run forge workspace info takes a very long time and raises to ~69GB
The issue is that running a test command caused my entire home directory to be a workspace, and my home dir has a LOT of code in it...

Issue Type

High memory usage

Steps to Reproduce

  1. follow forge install instructions
  2. : Hi

Expected Performance

Didn't expect it to try to index my entire home directory on first run...

Actual Performance

forge workspace info rose to 69GB over a number of minutes.

Performance Measurements

5548   0.0  0.1 496639136  29664 s000  SN    4:49a.m.  15:12.56 forge workspace info /Users/roberttaylor/Code/Claude/claude-helper/apple-profiler



forge workspace list   󱙺 FORGE  claude-opus-4-6

Workspace
  id         9105db55-c526-4570-8332-e2143e410b08
  path       /private/tmp/apple-profiler
  created at 10m ago
  updated at 10m ago

Workspace [Current]
  id         8b01682c-1721-4b34-ae6c-33653c8bfad0
  path       /Users/roberttaylor
  created at 1h 21m ago
  updated at 1h 21m ago

Project Size

I don't even dare to think...

Environment Details

  • forge 2.1.0
  • macos 26.3.1
  • 24GB ram
  • Mac M4 Pro

Configuration

FIELD             VALUE
default model     claude-opus-4-6
default provider  ClaudeCode
commit provider   [empty]
commit model      [empty]
suggest provider  [empty]
suggest model     [empty]

Profiling Data

Frequency

Always

Workarounds

No response

Additional Context

FORGE ENVIRONMENT DIAGNOSTICS

Shell Environment
[OK] zsh: 5.9
[OK] Terminal: iTerm.app 3.6.9
[OK] Oh My Zsh: custom
· /Users/roberttaylor/.oh-my-zsh

Forge Installation
[OK] forge: 2.1.0
· /Users/roberttaylor/.local/bin/forge

Plugin
[OK] Forge plugin loaded
[OK] Plugin loading order correct

ZSH Theme RPROMPT
[OK] Forge theme loaded

Dependencies
[OK] fzf: 0.70.0
[OK] fd: 10.4.2
[OK] bat: 0.26.1

Required Plugins
[OK] zsh-autosuggestions loaded
[OK] zsh-syntax-highlighting loaded

System
[OK] FORGE_EDITOR: vim
[OK] PATH: configured

Keyboard Configuration
[WARN] iTerm2: Option key NOT configured as Esc+
· Option+F and Option+B shortcuts won't work for word navigation
· Configure in iTerm2:
· Preferences → Profiles → Keys → Left/Right Option Key → Esc+

Nerd Font
[OK] Nerd Font: enabled (default)
· Forge will auto-detect based on terminal capabilities

Visual Check [Manual Verification Required]
󱙺 FORGE 33.0k  tonic-1.0

Forge uses Nerd Fonts to enrich cli experience, can you see all the icons clearly without any overlap?
If you see boxes (□) or question marks (?), install a Nerd Font from:
https://www.nerdfonts.com/

[WARN] 1 warnings (15 passed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions