---
type: "post"
id: "dependency-cooldown-settings-for-claude-code-00b959"
slug: "dependency-cooldown-settings-for-claude-code-00b959"
title: "Dependency Cooldown — Settings for Claude Code"
description: "Claude Code Templates publishes Dependency Cooldown, a user-level setting that makes npm, pnpm and uv reject package versions published within the previous seven days across commands Claude Code starts."
retrieval_nugget: "Claude Code Templates publishes Dependency Cooldown, a user-level setting that makes npm, pnpm and uv reject package versions published within the previous seven days across commands Claude Code starts. It gives teams a practical supply-chain delay, but only for supported package managers and with version-specific caveats."
published_at: "2026-11-22"
updated_at: "2026-11-22"
record_date: "2026-11-22"
date_kind: "published_at"
topics: ["claude","claude-code"]
entities: ["Claude Code Templates","Claude Code","Dependency Cooldown","npm","pnpm","uv"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "A new Claude Code setting blocks npm, pnpm, and uv packages published within the past seven days, reducing exposure to compromised or fabricated package releases."
prior_refs: []
source_url: "https://www.aitmpl.com/component/settings/environment/dependency-cooldown"
source_urls: ["https://www.aitmpl.com/component/settings/environment/dependency-cooldown"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:dependency-cooldown-settings-for-claude-code-00b959"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/dependency-cooldown-settings-for-claude-code-00b959/","markdown":"https://newruntime.com/posts/dependency-cooldown-settings-for-claude-code-00b959.md","json":"https://newruntime.com/posts/dependency-cooldown-settings-for-claude-code-00b959.json"}
markdown_url: "https://newruntime.com/posts/dependency-cooldown-settings-for-claude-code-00b959.md"
---

# Dependency Cooldown — Settings for Claude Code

## Retrieval answer

Claude Code Templates publishes Dependency Cooldown, a user-level setting that makes npm, pnpm and uv reject package versions published within the previous seven days across commands Claude Code starts. It gives teams a practical supply-chain delay, but only for supported package managers and with version-specific caveats.

## Summary
Claude Code Templates publishes Dependency Cooldown, a user-level setting that makes npm, pnpm and uv reject package versions published within the previous seven days across commands Claude Code starts. It gives teams a practical supply-chain delay, but only for supported package managers and with version-specific caveats.

## What happened
Claude Code Templates describes Dependency Cooldown as a setting that can be installed in user settings to cover every project. It configures npm, pnpm and uv to skip any version published less than seven days ago in the processes Claude Code starts. The page specifically names Bash commands, `npx` and `uvx` MCP servers, and hooks. The intended effect is to make a hijacked release or a newly registered package name— including one an AI has invented in a slopsquatting scenario—fail to resolve during the cooldown window rather than install immediately.

The component is installed with `npx claude-code-templates@latest --setting environment/dependency-cooldown`. Claude Code Templates says it merges into the settings file the user selects, and recommends user settings when the goal is coverage across projects. Its configuration sets `npm_config_min_release_age` to `7`, `pnpm_config_minimum_release_age` to `10080`, and `UV_EXCLUDE_NEWER` to `7 days`. Those values express the same seven-day window in the units each tool expects: npm uses days, pnpm minutes, and uv a duration.

There are explicit compatibility limits. npm must be version 11.10 or later; older npm versions ignore the setting silently. The page specifies pnpm 11 or later and a recent uv, tested on version 0.11. It says pip, yarn and bun are not covered. The setting leaves `.npmrc` untouched, so it is applied through the environment configuration rather than by editing that file.

The component also asks for approval when a command mentions the cooldown configuration in an attempt to bypass it, with `--min-release-age=0` given as an example. In `claude -p`, that request is denied. The page separately warns that `uvx` or `uv tool run` commands without an `==version` constraint create a rug-pull risk. Its attached automated SkillSpector scan reports observations in categories including MCP rug pulls and privilege escalation, while cautioning that an observation warrants review and is not a confirmed vulnerability.

## What the archive adds
New Runtime's earlier coverage described Claude Code's experimental Code Mode and tighter handling around memory, MCP calls and hooks in [a November 20, 2026 note](https://newruntime.com/posts/claude-code-changelog-anthropics-claude-code-776d38/). This is a new fact on the broader Claude Code tooling story: a third-party setting now applies a package-age threshold to processes the tool launches.

## Trend signal
This supports [agent security moving to runtime boundaries](https://newruntime.com/patterns/agent-security-moves-to-runtime-boundaries/): the safeguard constrains what Claude Code can install through its execution environment, rather than relying on an instruction in the prompt. Its scope is bounded, however; unsupported package managers and unpinned uvx calls remain outside the same protection.

## Why now
The setting responds to two risks named by Claude Code Templates: compromised newly published releases and slopsquatting, where an AI-generated package name may not exist until an attacker registers it. A seven-day delay is intended to create time for a malicious or mistaken release to be noticed before installation.

## Why it matters
Agent workflows can turn a plausible package name into an installation command with little friction. Delaying newly published versions adds a guardrail at the dependency-resolution boundary, including for MCP servers and hooks, not only ordinary project dependencies. That can matter when an agent runs commands faster than a human can inspect every package it references.

The setting is not a substitute for dependency review. It does not cover every package manager, and it cannot protect an unpinned `uvx` invocation in the way a version constraint can. Teams should treat the seven-day window as one control in a larger policy: check which package managers their workflows use, confirm supported versions, and decide how exceptions are reviewed. Its practical value depends on that configuration matching the commands agents actually run.

## Limits and uncertainty
Claude Code Templates presents this as a setting and explains its configuration, but does not report measured reductions in supply-chain incidents or installation failures. The seven-day delay can also block legitimate newly released dependencies, and the page does not quantify that trade-off. Compatibility is version-dependent, with older npm silently ignoring the setting; pip, yarn and bun are excluded. The page's scanner observations are explicitly not confirmed vulnerabilities. No independent evaluation of the component's effectiveness is described.

## Skill to build now
This week, inventory the package managers invoked by Claude Code commands, MCP servers and hooks. If your workflows use npm, pnpm or uv, test the setting in a representative project and verify the installed tool versions; for uv commands that use `uvx` or `uv tool run`, pin exact versions where reproducibility matters. Keep a documented approval path for legitimate releases inside the seven-day window.

## Reader takeaway
A package-age cooldown can slow some dependency attacks before an agent installs a fresh version, but it only works where the package manager honors the configuration. Check versions and command coverage, and pin uv tools rather than treating the seven-day delay as complete protection.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
