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

Stop Letting Agents Fill Your SSD With npm

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

AI‑агенты, запускающие npm install, создают дубли пакетов, занимая место на SSD. Используя always‑pnpm, команды npm автоматически преобразуются в pnpm, что позволяет хранить пакеты один раз и экономить дисковое пространство.

Задача

AI agents running npm install commands duplicate node_modules, consuming large disk space.

Результат

Agents can be guided to use pnpm automatically, preventing redundant package copies and conserving SSD space.

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

  • 1. Prompt AI agent to prototype web apps. 2. Agent runs npm install for each project. 3. Disk space alert appears. 4. Install always-pnpm to intercept npm commands. 5. Agent’s npm commands are rewritten to pnpm. 6. Projects use shared pnpm store, saving space.

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

The agent had downloaded three separate copies of React, Vite, TypeScript, and ESLint. Each project had its own 600 MB node_modules directory.

Источник

pnpm writes packages once to a global store at ~/.local/share/pnpm/store. Projects link to those files using filesystem hard links.

Источник

I built always-pnpm to stop fighting prompt instructions. The tool hooks directly into the agent runtime. When ... runs a shell command starting with npm or npx, always-pnpm parses the string and rewrites it to pnpm in under three milliseconds.

Источник

  • Дата записи: 2026-10-08T18:56:06.293Z