Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pi-namespace-patch

Latest version: v1.6.1-namespace.1

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: analyser
0 Stars
0 Forks
19 Versions
887 Downloads
TypeScript Repo language

Scan summary

pi-namespace-patch was last scanned on 25 Nov 2026 at version 1.6.1-namespace.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 19 versions; the latest 2 were published within 7 days (19–25 Nov 2026).
  • Findings: 1 rule fired in version 1.6.1-namespace.1 (1 low). The score describes this version only.
  • Downloads: 887 downloads.

Versions

19 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.6.1-namespace.1 LATEST 25 Nov 2026 1 rule fired
1.5.2-namespace.1 19 Nov 2026 1 rule fired
1.5.0-namespace.1 2 Nov 2026 1 rule fired
1.4.0-namespace.1 26 Oct 2026 Not shown
1.3.0-namespace.1 16 Oct 2026 Not shown

Rules fired in 1.6.1-namespace.1: 1

Findings

1 Low

Findings for v1.6.1-namespace.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

WebAssembly module included

The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 1.6.1-namespace.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

pi-namespace-patch

pi with first-class package namespaces for skills and prompt templates

Your package ships review; your users invoke /acme:review — no collisions, no renamed frontmatter, no silent shadowing.

npm pi base license


What this is

The upstream pi coding agent as a drop-in npm alias, carrying exactly one maintained patch: pi.namespace. A package that declares a namespace exposes every skill and prompt template it ships under one prefix. Nothing else about pi changes.

This is not the official package — that is @earendil-works/pi-coding-agent. This alias tracks every upstream release through an automated re-base pipeline: same code, one feature ahead.

The problem

pi loads skills and prompt templates from every installed package into one flat pool. On a name collision the first one found wins; there is no grouping and no provenance in the invocation surface:

/skill:review    ← the user's review? the project's? pkg-a's? pkg-b's?
/review          ← a prompt template or a skill? from where?

Authors cannot claim a prefix, users cannot tell where a resource came from, and same-named resources silently shadow each other.

The fix

One field in the package manifest:

{
  "name": "@acme/pi-toolkit",
  "pi": {
    "namespace": "acme",
    "skills": ["./skills"],
    "prompts": ["./prompts"]
  }
}
Before (flat pool) With "namespace": "acme"
Skill invocation /skill:review — collision risk /skill:acme:review — canonical, unambiguous
Bare invocation — /acme:review — the package's unified surface
Prompt template /review — may shadow a skill /acme:review — prefixed, coexists
SKILL.md frontmatter name: review name: review — unchanged, spec-clean
User's own /skill:review shadowed or shadowing coexists — namespaces never occupy bare names

Quickstart

As a user there is nothing to learn — install, and packages that declare a namespace simply appear prefixed:

npm install -g pi-namespace-patch
pi --version    # 1.6.1-namespace.1

As a package author, add the pi.namespace field (two lines above), publish, and your resources are invocable in-session:

/acme:review          # unified surface: template first, then a skill of the same name
/skill:acme:review    # the unambiguous skill form

A real consumer — solidforge-pi — declares the field and ships both kinds of resources:

{
  "name": "solidforge-pi",
  "pi": {
    "namespace": "solidforge",
    "skills": ["./skills"],
    "prompts": ["./prompts"]
  }
}

Its skills/blueprint-crafting/SKILL.md keeps the bare name: blueprint-crafting frontmatter and its prompts/arm-tools.md keeps a plain filename; in-session they surface as:

/skill:solidforge:blueprint-crafting
/solidforge:arm-tools

How it works

The mechanics, in order of depth:

  • Applied at load time. The namespace never enters SKILL.md frontmatter or template filenames — the Agent Skills spec stays intact and resource content is untouched. pi composes <ns>:<name> when loading.
  • /ns:name is a unified surface. First, input resolves a prompt template that owns that exact name; then it resolves a skill whose exposed name matches. /skill:<ns>:<name> remains the explicit, unambiguous skill form.
  • Bare names keep working. /skill:review still resolves when the namespaced resource is the unique owner of that base name and no bare skill shadows it; colon-bearing requests always resolve by exact match only.
  • Coexistence by construction. User, project, and other-package resources with the same base name load beside namespaced ones — a namespaced skill no longer occupies its bare name.
  • Validated, not guessed. The value must be lowercase a-z, 0-9, hyphens; ≤64 chars; no leading/trailing or consecutive hyphens. An invalid string warns and the resources load un-namespaced; a non-string pi.namespace is dropped silently.
  • Package resolution only. Namespaces come from pi's package resolution — a raw settings or CLI path that points inside the package bypasses the prefix and loads bare.
  • Scoped to name-keyed resources. Skills and prompt templates only. Themes and runtime-registered tools/commands are not renamed; packages that ship subagents through their own extension read pi.namespace and prefix agent names themselves.
  • Legacy colon-filenames (prompts/acme:cmd.md) keep working via exact match; with a namespace declared they compose to acme:acme:cmd — migrate them to plain filenames.

Versions and upstream tracking

  • The version scheme X.Y.Z-namespace.N mirrors the upstream release it tracks (X.Y.Z) plus the fork patch revision (N). Pin exact versions — never ranges.
  • Each upstream release flows through an automated pipeline: release detection, mechanical re-base, agent repair on conflict, and the full check chain with touched suites. The pipeline then publishes via OIDC trusted publishing with signed provenance.
  • pi --version on this alias reports 1.6.1-namespace.1 (registry-stamped); the GitHub tarball reports the workspace form 1.6.1+namespace.1 — same build, never rebuilt.

Recent releases

  • 1.6.1-namespace.1 — 2026-11-25 — tracks upstream v1.6.1.
  • 1.6.0-namespace.1 — 2026-11-21 — tracks upstream v1.6.0.
  • 1.5.2-namespace.1 — 2026-11-19 — tracks upstream v1.5.2.
  • 1.5.0-namespace.1 — 2026-11-02 — tracks upstream v1.5.0.

Older releases: the releases page.

Provenance and trust

  • Every registry version is derived from the verified release asset of maskshell/pi.
  • Published via npm trusted publishing (OIDC); each version carries a signed provenance statement.
  • The patch is a maintained proposal (earendil-works/pi#8834); the full patch chain, gates, and tracking records are public on the namespace-patch branch.

FAQ

Is this the official pi? No. Install @earendil-works/pi-coding-agent for that. This alias is upstream pi plus the namespace patch; everything else is identical.

Does it change my existing skills and templates? No. Namespacing is opt-in per package. User and project resources load exactly as before, and packages without pi.namespace behave identically to upstream.

What happens when upstream releases? The pipeline re-bases and publishes a tracking version, typically within a day of the upstream tag.

Can I mix this with the official package? Pick one per environment — both provide the pi binary.

License

MIT, as upstream.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm pi-namespace-patch

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229