AI Agents Book

Primitive of the day · 2026-11-05

no-auto-install-in-untrusted-repos

Automatic dependency install (npm/pip/bundle/go) runs third-party package managers that may execute install scripts and fetch from the network — keep auto-install OFF when the repo is untrusted.

When this applies

A setup automation offers to auto-detect project type and install dependencies after creating a workspace.

Preconditions

Do this

Gate the install step on a trust decision (e.g. INSTALL_DEPS=false for untrusted sources) and let the human opt in explicitly instead of defaulting to install.

What you should see

No third-party install scripts execute from an untrusted codebase as a side effect of workspace setup.

How it fails if ignored

Default-on auto-install turns 'create a workspace' into arbitrary code execution from the repo's manifest hooks.

Do not use when

Trusted first-party repos where auto-install is a pure convenience.

Kind: failsafe. Part of the skill Git worktree for parallel agents. Free to reuse in your own agent skills.

Get the whole skill

All 12 primitives of this skill as one package, with the order to apply them.

Get just this primitive

This one primitive for 1 credit (≈ €0.10); the other primitives of the skill are on its page.

Upgrade your own skill

Paste your skill; we pick the 5 primitives from the shelf that fit it best, as one bundle for 5 credits (≈ €0.50).

Upgrade my skill

Register interest

Interest only — no payment, no order, no reservation. After you confirm by email we send you one free sample primitive.