AI Coding Tools Filling C: Drive? A Practical Guide to Symbolic Link Migration

    AI coding tools can quickly consume system-disk space through caches, plugins, logs, and leftover updates. This guide explains why a simple move breaks apps, how Windows symbolic links keep paths unchanged, and a reversible workflow: stop processes, copy data, create mklink directory links, verify, and roll back.

    AI Coding Tools Filling C: Drive? A Practical Guide to Symbolic Link Migration

    Why AI coding tools become C: drive space hogs

    AI-integrated development environments have become daily tools for many developers. They raise coding speed, but they also eat system-disk space in ways that are easy to miss. After a month or two, C: may drop to a fraction of a gigabyte, and even starting a new chat can fail.

    Typical sources of growth:

    1. Model and index caches. To speed completions and chat, tools cache model shards, code indexes, and vector data locally. These caches often reach several GB and keep growing.
    2. Plugin and extension folders. Each plugin writes under the user profile; old versions after updates are often left behind.
    3. Logs and inference data. Chat history and intermediate reasoning data are written frequently and are usually the fastest-growing part.
    4. Leftover update packages. Installers and temp extract folders from auto-updates pile up.

    These paths default to the user directory on the system drive (for example C:\Users\<username>\AppData). Over time they can easily reach tens of GB.

    Why you cannot just cut and paste

    The obvious idea is to move the folder to D:. Internally, tools hard-code paths. A raw move can force cache rebuilds, lose settings, or prevent startup.

    A common OS-level approach is a symbolic link: store files on a larger disk, and leave a pointer at the original path so the OS and the app still see the old location. The app needs no config changes.

    On Windows, directory links use mklink (administrator rights):

    1. :: Create a directory symbolic link (requires admin)
    2. mklink /D "C:\original\path\cache-dir" "D:\new-location\cache-dir"

    Preparation before you migrate

    1. Fully stop related processes. Closing the window is not enough. Background Node.js child processes often remain and lock cache files. End them in Task Manager, or in bulk:
    1. taskkill /F /IM node.exe /T
    2. taskkill /F /IM main-process-name.exe /T

    Confirm with a tool such as Process Explorer that no handles remain.

    1. Full backup. Copy the target directory to another disk first. Keep a rollback copy for any system-level change.

    2. Permissions. Creating symbolic links is a system operation. Run Command Prompt or the script as administrator, or you will get access denied.

    Standard migration steps

    Example: migrating a cache directory.

    1. :: 1. Copy data to D:
    2. robocopy "C:\Users\<username>\.ai-tool-cache" "D:\AICache\.ai-tool-cache" /E /MOVE
    3. :: 2. Create the symbolic link at the original path
    4. mklink /D "C:\Users\<username>\.ai-tool-cache" "D:\AICache\.ai-tool-cache"

    Verify: run dir on the original path. You should see <SYMLINKD> and still be able to open files. Restart the tool, start a new chat, and confirm that new files appear under the D: path so physical storage has switched.

    For several directories, use a batch script in a loop and log each step for audit and rollback.

    Rollback

    The change is fully reversible:

    1. Remove the link itself (rmdir on the link does not delete the real data on D:).
    2. robocopy the data back to the original path.
    3. Restart the tool and verify.

    That is why symbolic links are preferable to changing the registry or environment variables: transparent, controlled, and reversible.

    Ongoing maintenance

    1. Clean logs regularly. After migration, still clear logs and old update packages about once a month.
    2. Watch growth. Use a disk analyzer on the cache folders; investigate sudden jumps.
    3. Team standard. In companies, include the migration script in new-hire machine setup so everyone avoids the same trap.

    Summary

    Local cache growth is a common engineering issue for AI coding tools and is unlikely to be fully fixed by clients soon. The pattern stop processes → move data → create a symbolic link → verify → roll back if needed also applies to other developer tools that write to the system drive and do not support custom paths. A short, careful migration can keep the system disk usable for the long term.