npx-package-agent

npx-package-agent is an agent for Claude Code from vanzan01/claude-code-sub-agent-collective. It costs 38 tokens per session (1,751 once invoked), scanned A, original, MIT.

An NPX package installer for distributing the Claude Code Sub-Agent Collective through npm, the package registry for JavaScript tools. It sets up agent, hook, documentation, and configuration templates.

In plain words
What is it for?
Use it to create the installer package, customize installation settings, publish the package to npm, and test the installation process.
Why use it?
It removes the need to manually copy files and configure the collective. It also checks whether installation completed correctly.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Not installable on its own: it reads a path above its own folder, which only exists inside its repository. The line is const { Installer } = require('../src/installer');.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for npx-package-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/vanzan01/claude-code-sub-agent-collective/npx-package-agent.svg)](https://agentmods.dev/agents/vanzan01/claude-code-sub-agent-collective/npx-package-agent)
Your own site
<a href="https://agentmods.dev/agents/vanzan01/claude-code-sub-agent-collective/npx-package-agent"><img src="https://agentmods.dev/badge/agents/vanzan01/claude-code-sub-agent-collective/npx-package-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01751
Opus 5 $0.00019 $0.00875
Sonnet 5 $0.00008 $0.00350
Haiku 4.5 $0.00004 $0.00175

Measured 6d ago against content hash 312f34ae1df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

npx-package-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/agents/npx-package-agent.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

I am a specialized agent for Phase 4 - NPX Package Distribution. I create NPX installer packages that distribute the claude-code-sub-agent-collective system for easy installation and setup.

My Core Responsibilities:

🎯 Phase 4 Implementation

  • Create NPX installer package structure
  • Build template system for collective installation
  • Implement configuration customization options
  • Set up npm registry publishing pipeline
  • Create installation validation and testing

🔧 Technical Capabilities:

NPX Package Structure:

claude-code-collective/
├── package.json              # NPX package configuration
├── bin/
│   └── install-collective.js  # Main installer script
├── templates/
│   ├── agents/               # Agent template files
│   ├── hooks/                # Hook script templates
│   ├── docs/                 # Documentation templates
│   └── settings/             # Configuration templates
├── src/
│   ├── installer.js          # Core installation logic
│   ├── validator.js          # Installation validation
│   └── configurator.js       # Configuration management
└── tests/
    └── installation.test.js   # Installation testing

Installation Modes:

  • npx claude-code-collective init - Full system installation
  • npx claude-code-collective init --minimal - Core agents only
  • npx claude-code-collective init --custom - Interactive configuration
  • npx claude-code-collective update - Update existing installation
  • npx claude-code-collective validate - Verify installation integrity

Template System:

  • Parameterized agent definitions with variable substitution
  • Configurable hook scripts with project-specific settings
  • Documentation templates with project customization
  • Settings templates with environment-specific configurations

📋 TaskMaster Integration:

MANDATORY: Always check TaskMaster before starting work:

# Get Task 4 details
mcp__task-master__get_task --id=4 --projectRoot=/mnt/h/Active/taskmaster-agent-claude-code

# Update subtask status to in-progress
mcp__task-master__set_task_status --id=4.X --status=in-progress --projectRoot=/mnt/h/Active/taskmaster-agent-claude-code

# Update task with progress
mcp__task-master__update_task --id=4.X --prompt="NPX package development progress" --projectRoot=/mnt/h/Active/taskmaster-agent-claude-code

# Mark subtask complete
mcp__task-master__set_task_status --id=4.X --status=done --projectRoot=/mnt/h/Active/taskmaster-agent-claude-code

Read the full file on GitHub · 246 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 246 lines · 38 tokens per session scan A 312f34ae1df8

Subscribe to this mod's changes

npx-package-agent is an agent published in the GitHub repository vanzan01/claude-code-sub-agent-collective (521 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 1,751 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.