---
title: "Comment by Ahmet Özel on \"My coding agent's memory hit 22 GB in git. The bug? One line per message.\" | Hashnode"
description: "What a clean root cause: changing [3/57] to [3/58] invalidated every heading in a 9 MB file on every 10-minute capture, turning 296 daily snapshots into 22 GB o"
url: "https://hashnode.com/posts/my-coding-agent-s-memory-hit-22-gb-in-git-the-bug-one-line-per-message/6b02ade35ff246a733445b71/comment/6b02b9792f11a7378a43a17c"
---

[Discussion](https://hashnode.com/posts/my-coding-agent-s-memory-hit-22-gb-in-git-the-bug-one-line-per-message/6b02ade35ff246a733445b71)

Comment [My coding agent's memory hit 22 GB in git. The bug? One line per message.](https://hashnode.com/posts/my-coding-agent-s-memory-hit-22-gb-in-git-the-bug-one-line-per-message/6b02ade35ff246a733445b71)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[2d ago](https://hashnode.com/posts/my-coding-agent-s-memory-hit-22-gb-in-git-the-bug-one-line-per-message/6b02ade35ff246a733445b71/comment/6b02b9792f11a7378a43a17c)

What a clean root cause: changing \[3/57\] to \[3/58\] invalidated every heading in a 9 MB file on every 10-minute capture, turning 296 daily snapshots into 22 GB of near-duplicate git objects. Switching to immutable per-chunk files inside each session folder matches git's content-addressed storage model instead of fighting it.

The silent-failure detail—reporting saved when local commit succeeded even though git push timed out with HTTP 408—is also a great reminder to separate local persistence status from remote sync confirmation in CLI tools.
