
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
sub-agents
Advanced tools
Initialize and manage specialized AI sub-agents for Claude Code in your project
Initialize and manage specialized AI agents for Claude Code in your project. Get tailored AI assistance based on your project's technology stack.
\ud83d\udce6 This is a CLI tool meant to be used with npx
, not installed as a project dependency.
⚠️ Important: This tool is designed to be used with npx
, not installed as a dependency.
# ✅ Correct usage
npx sub-agents init --interactive
# ❌ Do NOT install with npm/yarn
# npm install sub-agents # This won't work as expected
Initialize sub-agents in your project:
npx sub-agents init
Or with specific options:
# Interactive mode
npx sub-agents init --interactive
# Auto-detect and install relevant agents
npx sub-agents init
# Install specific categories
npx sub-agents init --categories=frontend,backend
# Install specific agents
npx sub-agents init --agents=nextjs-developer,postgres-dba
.claude/agents/
directoryAfter initialization, your project will have:
your-project/
├── .claude/
│ ├── agents/ # Installed agent configurations
│ ├── templates/ # Custom agent templates
│ ├── config.json # Project configuration
│ └── README.md # Agent documentation
└── ... your project files
.claude/
directory can be gitignored or committed# Initialize with auto-detection
npx sub-agents init
# Interactive initialization
npx sub-agents init --interactive
# Force re-initialization
npx sub-agents init --force
# List installed agents
npx sub-agents list
# Install additional agents (interactive by default)
npx sub-agents install
npx sub-agents install --agents=docker-specialist,kubernetes-operator
# Remove agents
npx sub-agents uninstall --agents=agent-name
# Update agents
npx sub-agents update --all
npx sub-agents categories
- List all available agent categoriesnpx sub-agents search <query>
- Search for agentsnpx sub-agents info <agent-name>
- Show agent detailsnpx sub-agents create
- Create new agent definitionnpx sub-agents template
- Generate agent templatenpx sub-agents validate
- Validate agent filesnpx sub-agents publish
- Publish custom agentsnpx sub-agents config
- Manage configurationnpx sub-agents integrations
- Manage optional integrationsnpx sub-agents integrations --list
- List available integrationsnpx sub-agents integrations --status
- Show integration statusnpx sub-agents integrations --install serena
- Install Serena integrationnpx sub-agents integrations --refresh
- Refresh Serena indexView all categories with npx sub-agents categories
npx sub-agents template -o my-agent.md
Edit the template with your agent definition
Validate your agent:
npx sub-agents validate --path=my-agent.md
npx sub-agents install --agents=my-agent --path=.
npx sub-agents publish my-agent.md
Claude Agents can be configured globally or per-project:
# Set default registry
npx sub-agents config set registry https://registry.sub-agents.io
# Enable auto-updates
npx sub-agents config set autoUpdate true
# View all settings
npx sub-agents config list
Agents are stored in:
~/.claude/agents/
.claude/agents/
Sub-Agents offers optional integration with Serena, a semantic code analysis tool that enhances Claude Code's understanding of your codebase.
Before enabling Serena, ensure you have:
curl -LsSf https://astral.sh/uv/install.sh | sh
)During init
or install
, you'll be offered three options:
You can also set up Serena anytime with:
npx sub-agents integrations --install serena
If prerequisites are missing, sub-agents will:
Once installed, Serena works automatically with Claude Code. To interact with it:
/mcp__serena__initial_instructions
Agents are defined as Markdown files with YAML frontmatter:
---
name: my-agent
category: backend
description: Brief description
version: 1.0.0
author: Your Name
license: MIT
tools:
- Read
- Write
- Bash
tags:
- nodejs
- api
---
# Agent Name
Detailed description and documentation...
Contributions are welcome! Please read our contributing guidelines.
MIT License - see LICENSE file for details
FAQs
Initialize and manage specialized AI sub-agents for Claude Code in your project
The npm package sub-agents receives a total of 464 weekly downloads. As such, sub-agents popularity was classified as not popular.
We found that sub-agents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.