AI Coding Tools Filling Up Your C: Drive? Move Their Data with Symbolic Links

    AI coding tools can accumulate large caches, extensions, conversation histories, and project indexes on the system drive. This guide explains how to move those directories to another drive using symbolic links while keeping their original paths, with migration commands, preparation steps, validation checks, and ongoing disk maintenance practices.

    1. Why AI Coding Tools Keep Consuming Disk Space

    AI-powered development environments have become part of everyday coding workflows. Alongside code completion, conversational programming, and automated refactoring, they introduce an easily overlooked problem: growing local storage usage.

    A tool may work normally when first installed, only for available space on the system drive—usually C: on Windows—to shrink over the following weeks. Eventually, new conversations may fail to start, extensions may stop loading, or the operating system may warn that almost no space remains.

    This is not necessarily a defect in a particular tool. Several categories of local data can grow during normal use:

    1. Model and inference caches: Depending on the tool, locally cached model weights or inference-related data can occupy several gigabytes or more.
    2. Plugins and extensions: Extensions, their dependencies, and associated caches accumulate over time.
    3. Conversation history and diagnostic logs: AI interactions generate session records and logs. Tools that store additional inference-related data may consume still more space.
    4. Indexes and temporary files: Codebase indexes, syntax-tree caches, and temporary build artifacts can also become substantial.

    These directories commonly sit inside the user profile on the system drive. When that drive runs low on space, the consequences extend beyond the coding tool: virtual memory can become constrained, operating system updates may fail, and applications can become unstable.

    2. Why Common Fixes Have Limits

    Several approaches can provide relief, but each has drawbacks:

    • Manually clearing caches: This can recover space, but deleting the wrong files may remove settings or disrupt functionality. Caches also tend to grow again.
    • Changing the tool’s data-directory settings: Some tools do not expose this setting, while others allow only certain directories to be relocated. Files may continue to appear in the original locations.
    • Uninstalling and reinstalling: This may reclaim space, but it can also remove settings, extensions, and conversation history. Rebuilding the environment takes time, and the same storage problem may return.

    The underlying issue is that the tool continues writing data to C:, even when another drive has more capacity.

    Symbolic links offer a way to move the data physically while preserving the paths the application expects.

    A symbolic link is a filesystem entry that points to another file or directory. When an application accesses the link, the operating system resolves it to the target location. For ordinary file access, this generally allows the application to continue using its existing paths.

    The migration process is straightforward:

    1. Copy the data directory from C: to a larger drive, such as D:.
    2. Verify the copy, then remove the original directory.
    3. Create a symbolic link at the original path, pointing to the new location.
    4. Restart the tool. Access through the original path now resolves to the data on D:.

    Windows Example

    Run the following commands in an elevated Command Prompt. Replace <username> and <tool-directory> with the actual names.

    The removal command permanently deletes the original directory. Run it only after confirming that the copy completed successfully and that a backup is available.

    1. :: 1. Copy the data to the new location, preserving permissions and attributes
    2. robocopy "C:\Users\<username>\AppData\Roaming\<tool-directory>" "D:\AIDevData\<tool-directory>" /E /COPYALL
    3. :: 2. Remove the original directory only after verifying the copy
    4. rmdir /S /Q "C:\Users\<username>\AppData\Roaming\<tool-directory>"
    5. :: 3. Create a directory symbolic link at the original path
    6. mklink /D "C:\Users\<username>\AppData\Roaming\<tool-directory>" "D:\AIDevData\<tool-directory>"

    Linux and macOS Example

    On Linux and macOS, the equivalent symbolic-link command is ln -s. For a tool using the example configuration path below:

    1. mv ~/.config/some-tool /data/aidata/some-tool
    2. ln -s /data/aidata/some-tool ~/.config/some-tool

    Use the tool’s actual data directory and an appropriate destination on your system.

    A tool may store data in more than one directory. Before migrating, use a disk-usage analyzer or the operating system’s storage tools to identify large configuration, cache, log, and extension directories. Review them individually rather than assuming that moving one folder will relocate everything.

    4. Migration Workflow and Precautions

    4.1 Prepare Before Moving Data

    • Fully stop the tool: Close its windows and check Task Manager for background updaters, language servers, and other related processes. Open files can interfere with copying or prevent directory removal.
    • Check destination capacity: As a practical planning guideline, leave at least 1.5 times the total size of the data being moved available on the destination drive to allow for growth.
    • Create a backup: Archive important configuration data before making changes so that you can restore it if necessary.

    4.2 Migrate One Directory at a Time

    Follow the copy, verify, remove, and link sequence for each directory.

    After moving one directory, start the tool and perform a quick functional check. Close it completely again before migrating the next directory. This reduces the risk of moving everything at once and makes problems easier to isolate.

    4.3 Validate the Migration

    After creating the link:

    • Open the tool and confirm that conversation history, extensions, and personal settings are intact.
    • Start a new conversation or trigger code completion to check that the tool can still write data.
    • Run dir in the parent directory of the original path. A directory symbolic link should appear as SYMLINKD, with its target shown.
    • Check whether files in the destination directory are created or updated after using the tool.

    These checks help confirm that both existing data and new writes are accessible through the original path.

    4.4 Common Pitfalls

    Insufficient permissions

    Creating symbolic links on Windows typically requires an elevated command prompt, unless Developer Mode and the environment permit creation without elevation.

    Destination compatibility and availability

    A local drive on the same machine is generally the simplest destination. Network paths can introduce performance or compatibility issues.

    Application updates

    Some tools may recreate data directories during major updates, potentially disrupting the link-based setup. Check that the links still work after an upgrade and recreate them if necessary.

    Cloud-synced folders

    Avoid placing frequently updated application data in a folder managed by a real-time cloud-sync service. Large numbers of small writes can generate excessive synchronization activity.

    5. Keep Disk Usage Under Control

    Relocating directories addresses where data is stored, but it does not stop that data from growing. Ongoing maintenance remains important.

    Clean Up Logs and Expired Caches

    Use the tool’s supported cleanup options or retention settings where available. A monthly review can help prevent unnecessary accumulation without indiscriminately deleting application files.

    Monitor Directory Growth

    Periodically check the size of important directories and investigate unexpected increases. On systems with the relevant command-line utilities, the following command lists the largest directories under the example destination:

    1. du -sh /data/aidata/* | sort -rh | head -20

    A scheduled script can also check directory sizes and notify you when they exceed a chosen threshold.

    Plan Data Locations When Installing Tools

    Where supported, choose storage locations during initial setup. Keeping applications on the system drive and large application data on a separate data drive can reduce the need for later migrations.

    Standardize Team Setups

    In managed development environments, initialization scripts can establish data-directory redirection when machines are provisioned. This avoids requiring every developer to solve the same storage problem independently.

    If a team already uses centralized logging and monitoring, disk-capacity alerts can be included in that monitoring to identify low-space conditions earlier.

    6. Conclusion

    AI coding tools can accumulate substantial local data through caches, extensions, conversation history, logs, and project indexes. Repeatedly deleting files may provide temporary relief, but it does not change where the tool stores its data.

    Symbolic links let you move those directories to a drive with more capacity while preserving the original paths. With backups, fully stopped processes, verified copies, and post-migration testing, this can be a practical way to reduce pressure on the system drive without rebuilding the development environment.

    Combine relocation with regular cleanup and capacity monitoring to keep disk usage manageable over time.