AI Coding Tools Filling Up Your C Drive? A Guide to Checking Usage, Migration, and Cleanup

    AI coding tools can quietly consume large amounts of system drive space over time as they store model caches, plugin data, and inference logs locally. This guide explains where that data typically lives, how to measure which directories are largest, and introduces three approaches—symlink migration, regular cleanup, and containerization—each with prerequisites, verification steps, and rollback options.

    After using AI coding tools for a while, you may notice the free space on your system drive quietly shrinking. To respond faster, these tools store large amounts of data locally. This article first explains where that data usually lives, then shows how to measure disk usage, and finally covers three approaches: symlink migration, regular cleanup, and containerization. Each approach includes pre-checks, step-by-step instructions, verification methods, applicable conditions, risks, and rollback commands.

    Three Types of Disk Usage

    AI coding tools typically consume disk space in three ways.

    First, model caches. Tools store model indexes, vector databases, and the weights of some lightweight models locally to shorten response times. The larger your projects—and the more repositories and programming languages involved—the bigger the indexes grow. Usage depends on the number of models and the scope of indexing; several gigabytes is common, and heavy users may see much more.

    Second, plugin and extension directories. Plugins for code analysis and syntax parsing generate dependency packages and index files. After uninstalling a plugin, some files may be left behind and need to be checked manually.

    Third, inference logs. During multi-turn conversations, tools record intermediate states, call histories, and code snapshots. A single day of intensive coding can produce hundreds of megabytes of logs. These directories sit under the user profile by default, which is why they tend to eat into the system drive.

    The directory names in this article are placeholder examples only—actual paths differ from product to product, so don’t copy them directly. There are three ways to find the real paths. First, check the tool’s settings for options like “Cache,” “Data Directory,” or “Storage Location.” Second, consult the official documentation and search for keywords such as “cache,” “storage,” or “data directory.” Third, find the largest directories directly: in Windows Explorer’s search box, type size:>500MB, or run the measurement commands in the next section to surface the biggest hidden folders.

    Measure Before You Act

    Before migrating or deleting anything, confirm which directory is the largest. Blind cleanup may remove indexes the tool is actively using, forcing a re-download or rebuild on the next launch—or, in severe cases, breaking functionality. Fully quit the AI tool before measuring so no files are still being written during the scan.

    The commands below only read file sizes and modify nothing.

    Windows (PowerShell):

    1. $dir = "$env:USERPROFILE\.ai-tool"
    2. $size = (Get-ChildItem -Path $dir -Recurse -File -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum
    3. "{0:N2} MB" -f ($size / 1MB)

    macOS or Linux:

    1. du -sh ~/.ai-tool/* 2>/dev/null | sort -h

    The second command sorts results in ascending order by size, so the last line shows the largest directory. If there’s no output at all, the path is wrong—go back to the previous section and confirm the correct location. Record the three largest directories, along with the number of projects and indexing scope at the time of measurement. That way, future measurements will reveal growth trends.

    This approach moves a large directory to another drive, then creates a symbolic link at the original location. The tool keeps accessing the original path, but the actual data now lives on the other drive.

    Prerequisites: the tool does not verify the directory’s true physical location, the target drive has enough free space, and the target drive is a fixed (non-removable) disk. If the tool hardcodes absolute paths internally or performs integrity checks on its directories, it may throw errors after migration.

    Pre-checks