Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Your AI Coding Agents Are Filling Up Your Disk. Here’s How to Clean Up Safely

Описание и применение

AI‑кодировщики создают файлы, которые занимают место на диске. С помощью CLI‑утилиты agent‑janitor можно сканировать, классифицировать и безопасно удалять эти файлы, архивируя их перед удалением и восстанавливая при необходимости.

Задача

AI coding agents leave behind session transcripts, debug logs, caches, and old worktrees that accumulate and consume disk space, making it hard to identify what is safe to delete.

Результат

Disk space is reclaimed without losing important session data, and users can restore archived items when needed.

Рабочий процесс

  • Run a read‑only scan with npx agent-janitor scan to list found items, sizes, timestamps, and classifications.
  • Review the scan output, noting any credential patterns flagged in transcript content.
  • Execute cleanup with npx agent-janitor clean, which archives eligible items and removes them after a 30‑day retention gate.
  • Restore archived data if needed using agent-janitor restore --list, agent-janitor restore latest, or by specifying a session ID or project name.

Доказательства

agent-janitor scans agent data across tools, shows what it finds, and archives eligible files before removing them.

Источник

By default, it applies a 30‑day retention gate, so recent or active data is skipped.

Источник

It can also scan transcript content for known credential patterns. That’s an exposure warning—not automatic secret removal or redaction.

Источник

  • Дата записи: 2026-10-12T18:41:13.194Z