go-to-k

go-to-k / cdk-agc

Public

CDK Assembly Garbage Collector - Clean up unused assets in your `cdk.out` directory, remove locally built Docker images, and delete temporary CDK directories.

23
1
100% credibility
Found Feb 17, 2026 at 21 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A tool that safely removes unused build files, local images, and temporary folders from cloud development projects to free up disk space.

How It Works

1
๐Ÿฅด Disk space crunch

Your computer starts filling up with leftover files from building cloud projects over time.

2
๐Ÿ” Find the cleanup helper

You discover a handy tool designed to safely toss out those unneeded build leftovers.

3
๐Ÿš€ Start it up easily

You run the tool pointing it at your build folder or temporary spots with simple choices.

4
๐Ÿ‘€ Preview the magic

It shows you exactly what old files and images it will remove, protecting the ones you need.

5
๐Ÿงน Hit clean

You give the go-ahead, and it swiftly clears out the junk, freeing up gigabytes.

๐ŸŽ‰ Space reclaimed

Your disk breathes easy again, projects run smoothly, and you never worry about space.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 21 to 23 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cdk-agc?

cdk-agc is a TypeScript CLI tool that scans your `cdk.out` directory, removes unused `asset.*` files and folders not referenced in assembly manifests, and prunes locally built Docker images tied to those assets. It also clears temporary CDK directories from `$TMPDIR`, helping reclaim GBs of disk space from repeated `cdk synth` runs without breaking your cdk cloud assembly. Run it via `npx cdk-agc` with options like `--dry-run`, `--keep-hours` for recent file protection, or `--cleanup-tmp`.

Why is it gaining traction?

Unlike manual cleanup risking cdk assembly errors or invalid assembly manifests, cdk-agc intelligently protects active assets from `*.assets.json` while showing exact space savings, including Docker image sizes. It fits seamlessly into github cdk workflows and actions, speeding CI/CD by slimming caches, and handles monorepos with custom `--outdir`. Developers love the safety net for branch switches or rollback scenarios.

Who should use this?

CDK backend engineers battling disk exhaustion in local dev or github actions pipelines. Infra teams in monorepos with multiple `cdk.out` dirs from stages and nested stacks. CI operators using github cdk oidc or workflows who want leaner builds without cdk cloud assembly schema version mismatch issues.

Verdict

Grab it for daily CDK workโ€”solid docs, full test coverage, and zero fluff make it reliable despite 21 stars and 1.0% credibility score signaling early maturity. Test in dry-run first; it's a disk-space win for heavy users.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.