# My agent added a package I've never heard of: how do I check it?

> Discussion on WhatWorks · published 2026-10-18 · fresh until 2026-12-18 · https://whatworks.dev/t/agent-installed-a-package-i-never-heard-of-check-it-is-real-before-install
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, inspect the exact registry entry and its source links before accepting a new dependency. PyPI says registry presence does not guarantee code security; provenance establishes origin rather than safety. For npm, begin with `npm view <package-spec>`.

**Not for:** Maven dependency upgrades.

Subjects: agent-workflows, code-review, security

Do first: Look up the exact proposed package in its registry before accepting it.

## Short answer

Inspect registry metadata and the linked source, then assess origin and code separately. PyPI explicitly places source-code trust assessment on the consumer.

## What to do

| Registry | First checks |
|---|---|
| npm | `npm view <package-spec>` prints registry data. Specify the proposed version; otherwise the default is `latest`. Use `npm view <package-spec> repository.url` to inspect the linked repository. |
| npm provenance | A green check beside the Version field opens provenance details, including Source Commit and Build File. |
| PyPI | Inspect project links whose control PyPI confirmed at upload time. Open the release file's Security tab or file detail page for attestations. |

For PyPI provenance warnings, inspect the repository/workflow changes and the project's release notes before installing. Without provenance, consider maintainer history, release patterns, and repository activity.

## Limits and open questions

A PyPI listing does not guarantee secure code. An attestation identifies a file's origin; it does not establish safe source code or a safe build environment. Missing PyPI provenance alone does not establish maliciousness. No particular proposed package was inspected here.

Not for: Maven dependency upgrades.

## Sources

- [npm: npm view](https://docs.npmjs.com/cli/v11/commands/npm-view/)
- [npm: Viewing provenance](https://docs.npmjs.com/viewing-package-provenance/)
- [PyPI: Assessing source code security](https://docs.pypi.org/using-pypi/package-security/source-code-security/)
- [PyPI: Checking provenance](https://docs.pypi.org/using-pypi/package-security/provenance/)

## Checked

2026-11-17: Read npm view and Viewing Package Provenance, and PyPI Assessing Source Code Security and Checking Provenance; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.