Agent Hoard — AI skill for Claude Code
Local disk space manager for AI coding agents (DSH, Codex, Claude Code, Cursor, Gemini, Aider.
How to install Agent Hoard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dawnnnnnnnnnnnnnnnn/space-manager and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Hoard does
Local disk space manager for AI coding agents (DSH, Codex, Claude Code, Cursor, Gemini, Aider...) - risk-tiered cleanup, session management, git worktree GC. Web UI + MCP server + CLI. Zero dependencies.
Alternatives in AI
- OpenSpace — "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/ 7.5k ★
- Skilldock — SkillDock is an AI skill manager and skill management desktop app for Claude Code, Cursor, Codex, Windsurf, Ge 490 ★
- Claude Skills Governance Risk And Compliance — Claude Skills for Governance, Risk & Compliance (GRC): Expert-level compliance guidance for ISO 27001, SOC 2 340 ★
README
AgentHoard
AI agents hoard. See what, and take it back.
本地磁盘空间管理台,专治 **AI 编码 agent 在硬盘上留下的垃圾**。 零依赖(Node 内置模块),只绑 `127.0.0.1`,数据不出本机。

截图使用虚构的演示数据(`npm run demo` 生成),不含任何真实路径。
**平台**:Windows 10/11 优先,已实测。macOS / Linux **未测试** —— 盘符统计(`fs.statfsSync('C:\\')`)、 junction 去重、`%TEMP%` 路径都是 Windows 语义,其他平台能启动但行为不保证。 **运行环境**:Node.js ≥ 18.15(用到 `fs.statfsSync`)。
快速开始
git clone && cd agent-hoard
node server.mjs
打开 http://127.0.0.1:5178 ,点右上角「重新扫描」(1–2 分钟)。 Windows 上也可以双击 `start.cmd`,它会检查 Node、启动服务并打开浏览器。
为什么不打包成 exe:目标用户都装了 Node(Claude Code / Codex 本身就是 npm 装的), 而 90 MB 的未签名 exe 做「删文件」操作极易被 SmartScreen 拦。源码 225 KB,`start.cmd` 双击即用。
**三个入口共用一套核心逻辑**(`lib/core.mjs`):
| 入口 | 命令 | 适合 |
|---|---|---|
| Web UI | node server.mjs → http://127.0.0.1:5178 |
看图、点选、批量挑 |
| MCP Server | node mcp-server.mjs |
让 agent 自己调清理能力 |
| CLI | node cli.mjs |
脚本 / 远程 / 无浏览器 |
和别人比,它多了什么
同类工具([agent-cleaner](https://github.com/funny-dog/agent-cleaner)、[agent-residue](https://github.com/0721gaoshoua/agent-residue)、[spoilheap](https://github.com/Blackman99/spoilheap)、[agent-footprint](https://github.com/jvroth18/agent-footprint))覆盖的,这里都有;除此之外补了四块:
- 可视化联动 —— 风险 × 平台二维图表,点扇区就筛到「Codex 的低风险项」,CLI 类工具做不到
- 两个只在真机上才踩得到的去重坑
- junction 去重:
~/.dsh/sessions是指向D:\dsh-data的目录联接,跟着走会把同一份数据算两遍(本机凭空多算 2 GB) - 父子去重:目录是树,全选会父子重复累加。修之前全选报 269 GB —— 超过磁盘总量
- junction 去重:
- 归档 ≠ 省空间 —— 直接告出
archivedSessionIds在哪,并算给你看:归档了多少个、占多少 MB,一点没少 - git worktree 走
git worktree remove—— 不是rm -rf;判定 dirty / unmerged 的默认拒绝
支持的 agent(22 种,自动探测)
DSH、Codex CLI、Claude Code、Cursor、Gemini CLI、Aider、OpenCode、Windsurf、Continue、Cline、Roo Code、GitHub Copilot CLI、Ollama、LM Studio、WorkBuddy、Qoder、Trae、Zed、Amp、Kilo Code、OpenHands,外加「系统临时文件」。
不靠写死的清单跑,而是逐个候选路径 `stat`,存在才纳入扫描。常见情况是 22 种里能命中 5–8 种。
node cli.mjs agents
设计系统与动效
Token(全部动画只引用这里,不写裸值)
--ease-out: cubic-b
Related Skills
Mac Dev Cleanup
Safely free disk space and RAM on a macOS dev machine: package caches, Xcode/iOS simulator cleanup, AI-agent w
Cleanup Cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Pc Cleanup Performance
Cross-platform skill that lets your AI coding agent (Claude Code, Codex, Cursor...) safely clean up and speed
Clawd Agent OS
Orchestrate 50+ Claude agents in tiered hierarchies: git-worktree-isolated fleet spawning, a durable agent bus
Lagless
A native macOS task manager for the age of AI agents: see every Claude Code session, Codex thread and MCP serv
Xcfs
Run several AI coding agents (Claude Code, Codex, Cursor) on one Xcode project in parallel: each gets a git wo
Related Agents
Ensemble Curator
High-volume triage agent for external-AI-agent PRs (Codex, Jules, Hermes, Droid, Aider, etc.). Analyzes, conso
Frappe Doctor
Diagnose a Frappe/ERPNext site's health, read-only — background workers, error logs, slow queries, failed jobs
Plugins
Agent Plugin System - manages the pluggable AI agent architecture (Claude, Cursor, Gemini). Use proactively wh