You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: git-ai can consume >20 GB memory during git pull #1677
On macOS, the git-ai process may consume extremely high memory while pulling the latest code.
Observed behavior
During a code pull/update flow, Activity Monitor showed the git-ai process using about 21.17 GB of memory. This appears high enough to severely impact the machine.
Reproduction
Switch to a relatively old branch. It does not have to be a very old branch.
Run a pull/update to get the latest code.
Observe git-ai memory usage on macOS.
Expected behavior
git-ai should keep memory usage bounded during git pull / fetch / merge operations, even when processing many changed files or trace events.
Notes
Platform: macOS
Screenshot evidence: Activity Monitor showed git-ai at approximately 21.17 GB memory usage.
This may be related to pull/fetch/merge handling, trace2 ingestion, rewrite tracking, or processing a larger diff/history range, but I have not confirmed the exact cause yet.
Thanks for reporting this, we're aware of the issue. We've had another user report similar memory behavior and are actively investigating. We're currently gathering concrete metrics to validate the root cause & measure the fix before shipping it.
A couple of questions to help us narrow this down:
How many changed files / commits were involved in the pull? (rough estimate is fine)
Which tool do you use Cursor, Copilot, Claude Code, or another AI coding tool alongside git-ai?
Was this the first git pull after installing git-ai, or does it happen on subsequent pulls too?
What git-ai version are you on? (git-ai --version)
Appreciate the report and the screenshot, very helpful! ❤️
total 780000
drwxr-xr-x@ 18 user staff 576 Jun 30 12:19 .
drwxr-xr-x@ 22 user staff 704 Jun 17 18:43 ..
-rw-r--r--@ 1 user staff 6148 May 27 00:38 .DS_Store
-rw-r--r--@ 1 user staff 1306624 Jun 30 18:13 bash-checkpoints-db
-rw-r--r--@ 1 user staff 32768 Jun 30 12:31 bash-checkpoints-db-shm
-rw-r--r--@ 1 user staff 4140632 Jun 30 21:03 bash-checkpoints-db-wal
drwxr-xr-x@ 7 user staff 224 Jun 30 12:19 daemon
-rw-r--r--@ 1 user staff 16556032 May 13 18:39 db
-rw-r--r--@ 1 user staff 32768 May 14 19:26 db-shm
-rw-r--r--@ 1 user staff 164713512 May 14 18:44 db-wal
-rw-r--r--@ 1 user staff 36 Apr 7 20:26 distinct_id
-rw-r--r--@ 1 user staff 191078400 Jun 30 18:06 metrics-db
-rw-r--r--@ 1 user staff 32768 Jun 29 16:50 metrics-db-shm
-rw-r--r--@ 1 user staff 8639672 Jun 30 21:19 metrics-db-wal
-rw-r--r--@ 1 user staff 147456 Jun 30 12:19 transcripts-db
-rw-r--r--@ 1 user staff 32768 Jun 30 12:19 transcripts-db-shm
-rw-r--r--@ 1 user staff 725152 Jun 30 21:19 transcripts-db-wal
-rw-r--r--@ 1 user staff 94 Jun 30 12:19 update_check
Activity
Siddhant-K-code commentedon Jun 30, 2026
Thanks for reporting this, we're aware of the issue. We've had another user report similar memory behavior and are actively investigating. We're currently gathering concrete metrics to validate the root cause & measure the fix before shipping it.
A couple of questions to help us narrow this down:
git-ai --version)Appreciate the report and the screenshot, very helpful! ❤️
Siddhant-K-code commentedon Jun 30, 2026
Could you run these and share the output? It'll help us pinpoint the cause:
Also:
sudo?rootinstead of your username, it was likely installed withsudo.Thanks!
svarlamov commentedon Jun 30, 2026
@peckfly Do you have a chance to share the above before you head off for the evening?
peckfly commentedon Jun 30, 2026
git-ai --version
1.6.3
ls -la ~/.git-ai/internal/
total 780000
drwxr-xr-x@ 18 user staff 576 Jun 30 12:19 .
drwxr-xr-x@ 22 user staff 704 Jun 17 18:43 ..
-rw-r--r--@ 1 user staff 6148 May 27 00:38 .DS_Store
-rw-r--r--@ 1 user staff 1306624 Jun 30 18:13 bash-checkpoints-db
-rw-r--r--@ 1 user staff 32768 Jun 30 12:31 bash-checkpoints-db-shm
-rw-r--r--@ 1 user staff 4140632 Jun 30 21:03 bash-checkpoints-db-wal
drwxr-xr-x@ 7 user staff 224 Jun 30 12:19 daemon
-rw-r--r--@ 1 user staff 16556032 May 13 18:39 db
-rw-r--r--@ 1 user staff 32768 May 14 19:26 db-shm
-rw-r--r--@ 1 user staff 164713512 May 14 18:44 db-wal
-rw-r--r--@ 1 user staff 36 Apr 7 20:26 distinct_id
-rw-r--r--@ 1 user staff 191078400 Jun 30 18:06 metrics-db
-rw-r--r--@ 1 user staff 32768 Jun 29 16:50 metrics-db-shm
-rw-r--r--@ 1 user staff 8639672 Jun 30 21:19 metrics-db-wal
-rw-r--r--@ 1 user staff 147456 Jun 30 12:19 transcripts-db
-rw-r--r--@ 1 user staff 32768 Jun 30 12:19 transcripts-db-shm
-rw-r--r--@ 1 user staff 725152 Jun 30 21:19 transcripts-db-wal
-rw-r--r--@ 1 user staff 94 Jun 30 12:19 update_check
AI tool transcript sizes
/Users/user/.cursor: 573M
/Users/user/.codex: 2.6G
/Users/user/.claude: 16M
Metrics DB size
-rw-r--r--@ 1 user staff 182M Jun 30 18:06 /Users/user/.git-ai/internal/metrics-db @svarlamov @Siddhant-K-code
fix(memory): bound attribution-recovery diff to the immediate parent
Merge pull request #1699 from git-ai-project/fix/recovery-diff-memory…
svarlamov commentedon Jun 30, 2026
@peckfly Sorry to hear that you ran into this, and we should, between 1.6.6 and 1.6.7 (latest) have addressed this issue
fix(memory): bound attribution-recovery diff to the immediate parent
svarlamov commentedon Jul 1, 2026
v1.6.8 should be even more complete
Siddhant-K-code commentedon Jul 1, 2026
Once again, thanks @peckfly for reporting this, really appreciated ❤️
Let us know, if you notice any other problems!