---
canonical: "https://firewall.lpm.dev/npm/@companion-ai/feynman/v/0.5.46"
markdown: "https://firewall.lpm.dev/npm/@companion-ai/feynman/v/0.5.46.md"
package: "@companion-ai/feynman"
report_status: "published"
title: "@companion-ai/feynman@0.5.46 npm security report"
verdict: "suspicious"
version: "0.5.46"
---

# @companion-ai/feynman@0.5.46 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 0.5.46
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The preinstall hook only checks the Node version, and the project-file initializer requires explicit invocation. Automatic setup of Feynman's own agent extension configuration is a guarded first-party capability that merits a warning, but the inspected source does not establish malicious behavior.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 90.0%
- **Started:** 2026-10-14T11:02:38.839Z
- **Finished:** 2026-10-14T11:04:40.115Z
- **Download time:** 1281 ms
- **Static scan time:** 487 ms
- **AI review time:** 119508 ms
- **Total time:** 121276 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Normal CLI startup updates Feynman's own global Pi settings and subagent settings to load its bundled research integrations. The setup is scoped to Feynman's agent directory but occurs automatically, so it warrants a warning.

- **Trigger:** Launching the feynman CLI and reaching normal command startup.

- **Impact:** Feynman's bundled integrations are loaded in subagent sessions and its agent configuration is changed; no foreign agent configuration mutation or malicious behavior was established.

- **Evidence paths:** bin/feynman.js, dist/index.js, dist/cli.js, dist/config/paths.js, dist/pi/settings.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-14T11:04:40.115Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The CLI initializes Feynman settings, adds its research and web access extensions to the default subagent extension list when that list is absent or Feynman-managed, and fills missing subagent configuration defaults.

- **Rationale:** The preinstall hook only checks the Node version, and the project-file initializer requires explicit invocation. Automatic setup of Feynman's own agent extension configuration is a guarded first-party capability that merits a warning, but the inspected source does not establish malicious behavior.

- **Files touched:** ~/.feynman/agent/settings.json, ~/.feynman/agent/extensions/subagent/config.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 90.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The install hook runs a Node version check; it does not perform agent configuration changes., The \`/init\` command is registered for user invocation and creates a project AGENTS.md only when one is absent., The launcher loads the CLI, which calls Feynman's settings initializer during normal command startup., The initializer writes settings under Feynman's own agent directory, with a Feynman home override available., Settings reconciliation adds Feynman's bundled research and web access extensions for subagents only when the existing extension list is absent or already contains only those extensions., Subagent configuration receives missing defaults while preserving existing values and concurrent edits.

- **Evidence against:** No unconsented preinstall mutation of a foreign or broad agent configuration was identified., The project-level AGENTS.md write is behind an explicit command and preserves an existing file., The settings changes are limited to Feynman's own agent directory and configure Feynman package extensions.

## Affected versions and remediation

This report applies to @companion-ai/feynman@0.5.46.

- Review the evidence and your use of @companion-ai/feynman@0.5.46 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@companion-ai/feynman@0.5.46/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.preinstall = node ./scripts/check-node-version.mjs
```

### 2. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/feynman.js
- **Public source:** [View source](<https://unpkg.com/@companion-ai/feynman@0.5.46/bin/feynman.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L37: if (process.argv.length === 3 && (process.argv[2] === "--version" || process.argv[2] === "-v")) {
L38: const { readFileSync } = await import("node:fs");
L39: console.log(JSON.parse(readFileSync(resolve(here, "..", "package.json"), "utf8")).version);
```

### 4. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 5. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 6. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 7. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/feynman.js
- **Public source:** [View source](<https://unpkg.com/@companion-ai/feynman@0.5.46/bin/feynman.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L23: if (compareNodeVersions(parseNodeVersion(process.versions.node), parseNodeVersion(MIN_NODE_VERSION)) < 0) {
L24: const isWindows = process.platform === "win32";
L25: console.error(`feynman requires Node.js ${MIN_NODE_VERSION} or newer (detected ${process.versions.node}).`);
L26: console.error(isWindows
L27: ? "Install a supported Node.js release from https://nodejs.org, or use the standalone installer:"
L28: : `Switch to a supported Node release with \`nvm install ${PREFERRED_NODE_MAJOR} && nvm use ${PREFERRED_NODE_MAJOR}\`, or use the standalone installer:`);
...
L35: 
L36: // `--version` needs only package.json; answer it without loading the CLI.
L37: if (process.argv.length === 3 && (process.argv[2] === "--version" || process.argv[2] === "-v")) {
L38: const { readFileSync } = await
```

### 8. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 9. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

### 10. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 11. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/install/install-skills.sh
- **Public source:** [View source](<https://unpkg.com/@companion-ai/feynman@0.5.46/scripts/install/install-skills.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/install/install-skills.sh
kind = build_helper
sizeBytes = 5249
magicHex = [redacted]
```

### 12. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 13. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/cli.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@companion-ai/feynman@0.5.46/dist/cli.js%23virtual%3Anormalized%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 1
```

### 14. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@companion-ai/feynman@0.5.46/dist/cli.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = @companion-ai/feynman@0.5.40
matchedIdentity = npm:QGNvbXBhbmlvbi1haS9mZXlubWFu:0.5.40
similarity = 0.766
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** preinstall
- **Dependencies:** 11
- **Optional dependencies:** 0
- **Peer dependencies:** 5
- **Development dependencies:** 4
- **Published dependency-graph edges:** 16

### Published dependency entries
- @clack/prompts ^1.8.1 (Dependency)
- @companion-ai/alpha-hub 0.1.7 (Dependency)
- @earendil-works/pi-codemode 1.2.0 (Dependency)
- @earendil-works/pi-mcp 1.2.0 (Dependency)
- @earendil-works/pi-telemetry 1.2.0 (Dependency)
- fast-xml-parser 5.11.2 (Dependency)
- pi-btw 0.8.0 (Dependency)
- pi-docparser 4.0.0 (Dependency)
- pi-subagents 0.78.0 (Dependency)
- pi-web-access 0.40.0 (Dependency)
- posthog-node ^5.53.0 (Dependency)
- @earendil-works/pi-agent-core 1.2.0 (PeerDependency)
- @earendil-works/pi-ai 1.2.0 (PeerDependency)
- @earendil-works/pi-coding-agent 1.2.0 (PeerDependency)
- @earendil-works/pi-tui \* (PeerDependency)
- typebox \* (PeerDependency)

## Package metadata
- **Package:** @companion-ai/feynman
- **Ecosystem:** npm
- **Version:** 0.5.46
- **License:** MIT
- **Version published:** 2026-10-14T08:46:53.218Z
- **Package first seen:** 2026-07-28T18:15:06.584Z
- **Package last seen:** 2026-11-04T15:17:51.647Z
- **Known versions:** 72
- **Latest version:** 0.5.63
- **Appeal under review:** No
- **Description:** The open source AI research agent.
- **Author:** Advait Paliwal
- **Maintainers:** advaitpaliwal
- **Keywords:** pi-package, research-agent, literature-review, experiments
- **Runtime engines:** node: \>=22.22.0
- **Artifact files:** 108
- **Artifact unpacked size:** 750,800 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@companion-ai/feynman/v/0.5.46>)
- [Repository](<https://github.com/Companion-Inc/feynman>)
- [Homepage](<https://github.com/Companion-Inc/feynman#readme>)
- [Issues](<https://github.com/Companion-Inc/feynman/issues>)
