Your Next Software Dependency Might Tell Your AI What to Do
A new pnpm feature lets dependencies ship instructions for AI coding assistants, raising questions about trust, security, and who controls your agent.
By Jeff Mixon · Published
Written by Jeff Mixon. How we label content
Your Next Software Dependency Might Tell Your AI What to Do #
Package managers are beginning to distribute instructions for coding agents alongside ordinary software. A new pnpm release shows how useful that could be, and why developers may need to rethink what they trust.
Installing a JavaScript library has always involved a certain amount of trust. You ask a package manager for some code, and it brings that code into your project, often along with dozens of packages you didn't explicitly request. Developers have learned to live with this arrangement, even as the security problems surrounding it have grown harder to ignore.
Now imagine that the library arrives with instructions for your AI coding assistant, too.
Not documentation you might read or examples you might copy into your editor. Instructions that an agent can discover and use when it works on your code.
That's one of the additions in pnpm 12.11.0, released October 9. It's a relatively small feature, but it points toward a change in the relationship between software libraries and the tools developers use to work with them.
A dependency no longer has to provide only code. It can also teach your coding assistant how its authors want that code to be used.
When packages come with instructions #
A package can now include agent skills, typically Markdown files describing tasks, conventions, or workflows for AI coding tools. They might explain how to configure a library, perform a migration, or avoid a common implementation mistake.
With pnpm's new support, these skills can travel with the packages they describe.
When a direct dependency includes skills, pnpm detects them and offers an approval step. Approved skills are linked into the project's agent directories, such as .claude/skills for Claude Code. Other supported destinations include those used by Cursor, Codex, Gemini CLI, and GitHub Copilot.
Importantly, pnpm doesn't automatically approve these instructions. Developers must authorize a package's skills using pnpm approve, and that decision is recorded in the project's permissions configuration.
Consider a database library that ships a migration skill. It might explain which command generates migrations, how schema changes should be reviewed, and why certain operations shouldn't run against production data. An assistant using that skill could make fewer mistakes than one relying on its general training.
Library authors understand their tools better than a general-purpose language model does. Keeping instructions alongside the relevant package also makes them easier to maintain as the software changes.
But what happens when a dependency's instructions conflict with the developer's intentions?
Code and instructions carry different risks #
Software dependencies have long been targets for attackers. A compromised package can introduce malicious code, steal credentials during installation, or tamper with an application's behavior. Lockfiles, vulnerability scanning, restricted installation scripts, and other supply-chain defenses exist partly to manage those risks.
Agent skills introduce a related, but different, problem.
A JavaScript dependency generally affects an application when its code executes. An agent skill can affect the developer's workflow when an AI assistant reads and follows its instructions.
Suppose a skill tells an assistant to run a setup command. That might be perfectly legitimate. Now suppose it tells the assistant to disable a security check, read a credentials file, or send diagnostic information to an external service.
The Markdown file itself doesn't need to execute anything. It only needs to persuade an assistant with access to tools to do the work.
This is a form of prompt-injection risk, although the circumstances differ from a malicious instruction hidden on a web page. Here, the instruction arrives through a recognized software distribution channel, perhaps attached to a dependency the developer already trusts.
Most third-party skills will probably amount to useful, specialized documentation. The concern is that instructions can acquire authority they haven't earned, especially when agents use them with little human supervision.
Approval establishes a boundary, but it isn't a complete security guarantee. pnpm's documentation specifies that approving a package's skills also covers later versions. An update can therefore change the instructions available to an agent without requiring fresh approval.
That's worth remembering when reviewing dependency updates.
The rest of the toolchain is catching up #
Other releases this week suggest that attention is shifting toward the machinery surrounding AI agents.
Windmill 1.837.0 changes agents to run on behalf of their deployer. That sounds like an implementation detail until you consider what it means for authorization. An agent needs an identity under which to act, and the privileges associated with that identity determine what it can do.
On October 13, GitHub added AI Scan metrics to its security overview, giving administrators a way to see how many AI-assisted security findings were generated and resolved. Meanwhile, Claude Code 2.1.301 introduced a setting that limits how long an unattended session can wait when it encounters a usage limit.
These releases address different problems, but they illustrate a common shift. The question is becoming less about whether an AI assistant can produce working code and more about how that assistant fits into the systems around it.
Who authorizes its actions? What happens when it encounters a failure? And whose instructions does it follow?
Package-distributed skills add another piece to that picture. They make outside instructions part of the normal development environment, rather than something a developer must deliberately copy into a prompt.
What should developers review? #
A conventional dependency review might examine licenses, maintainers, known vulnerabilities, install scripts, and changes between package versions. If a dependency also supplies agent skills, those files deserve attention for a different reason.
What does the skill instruct the agent to do? Which commands does it recommend? Does it request access to sensitive resources? Are those instructions appropriate for the project?
The answers won't always be obvious. A deployment tool might legitimately need cloud credentials. A build system might ask an agent to modify configuration files. The capabilities that make specialized skills useful also make them difficult to judge with simple rules.
And approving a skill doesn't make every command it recommends safe. A package manager can control whether instructions are made available to an agent. Enforcing what that agent can actually do remains the responsibility of its runtime, permissions, and operating environment.
A skill is a source of guidance, not a grant of authority. At least, that's how the relationship ought to work.
Software is starting to explain itself to machines #
There's something appealing about the idea behind pnpm's new feature.
Documentation has always struggled to keep up with software. Developers encounter outdated examples, obsolete command-line flags, and migration guides written for versions they stopped using years ago. Shipping instructions with a package could help close that gap.
An assistant working with a particular version of a library could consult guidance written for that version instead of improvising from whatever it remembers. Package maintainers could publish tested workflows alongside the code those workflows operate on.
None of that requires fully autonomous agents. Even a coding assistant that asks permission before running commands benefits from better instructions.
The difficulty is deciding how much to trust them.
For years, installing a dependency meant accepting someone else's code into a project. Developers developed imperfect but increasingly elaborate ways to manage that trust. Now a dependency can also carry instructions for software that reads files, edits code, invokes tools, and makes decisions on the developer's behalf.
pnpm's approval mechanism acknowledges that those instructions shouldn't be treated as ordinary package contents. It doesn't settle every question about their safety or authority, but it makes those questions harder to overlook.
The next time you install a library, its authors might not be speaking only to your application. They might be speaking to your AI assistant, too.
Releases in this piece
From the week of Oct 12–18, 2026: every notable release and security fix that week.