npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codex-subagents

v1.0.0

Published

AI subagents for specialized coding tasks - delegate work to focused agents for code review, documentation, testing, and debugging

Readme

Codex Subagents

AI-powered specialist agents for coding tasks - Delegate work to focused agents for code review, documentation, testing, and debugging.

npm version License: MIT

🚀 Quick Start

# Install globally
npm install -g codex-subagents

# Initialize configuration
codex-subagents init

# See available agents
codex-subagents list

# Run a code review agent
codex-subagents run code-reviewer --prompt "Review my staged changes"

✨ Features

  • 🤖 Built-in Specialist Agents: Code review, documentation, testing, and debugging
  • 🎯 Task-Focused: Each agent specializes in specific coding tasks
  • 🛡️ Tool Security: Configurable tool allowlists for safe execution
  • ⚙️ Customizable: Create your own agents with simple markdown files
  • 🔄 Git Integration: Seamlessly works with your existing Git workflow
  • 🌍 Cross-Platform: Works on macOS, Linux, and Windows

📦 Built-in Agents

🔍 code-reviewer

Reviews staged Git changes for logic bugs, style issues, and security concerns.

codex-subagents run code-reviewer --prompt "Review these changes for potential issues"

📝 doc-writer

Generates comprehensive documentation for code projects, APIs, and functions.

codex-subagents run doc-writer --prompt "Create API documentation for the user module"

🧪 test-generator

Creates comprehensive test suites with unit, integration, and edge case testing.

codex-subagents run test-generator --prompt "Generate tests for the authentication service"

🐛 bug-hunter

Analyzes code to identify and propose fixes for bugs and performance issues.

codex-subagents run bug-hunter --prompt "Find bugs in the payment processing code"

🛠️ Installation

Prerequisites

  • Node.js 16+
  • Git (for repository analysis)
  • OpenAI API Key (set OPENAI_API_KEY environment variable)

Install

npm install -g codex-subagents

Configuration

# Initialize configuration
codex-subagents init

# Edit configuration file
nano ~/.codex-subagents/config.yaml

API Key Setup

# Set OpenAI API key
export OPENAI_API_KEY="your-api-key-here"

# Or add to your ~/.bashrc / ~/.zshrc
echo 'export OPENAI_API_KEY="your-api-key-here"' >> ~/.bashrc

📖 Usage

Basic Commands

# List all available agents
codex-subagents list

# Run an agent interactively
codex-subagents run <agent-name>

# Run with a specific prompt
codex-subagents run <agent-name> --prompt "Your prompt here"

# Check agent status
codex-subagents status

# Create a new custom agent
codex-subagents create my-agent --template basic

# Check installation health
codex-subagents doctor

Advanced Usage

# Use with pipes
echo "Review this function" | codex-subagents run code-reviewer

# JSON output for automation
codex-subagents list --json

# Verbose logging
codex-subagents run code-reviewer --verbose --prompt "Review main.js"

# Don't wait for completion
codex-subagents run test-generator --no-wait --prompt "Generate tests"

Aliases

For convenience, you can use the short alias cs:

cs list
cs run code-reviewer
cs create my-agent

🎨 Creating Custom Agents

Create agents tailored to your specific workflow:

# Create a new agent
codex-subagents create my-reviewer --template code-review

# Edit the agent definition
nano ~/.codex-subagents/agents/my-reviewer.md

Agent Definition Format

---
name: my-custom-agent
description: Does something specific for my project
model: gpt-4
tools:
  - git
  - npm
  - node
keywords:
  - custom
  - specific-task
---

# My Custom Agent Instructions

I am a specialized agent that helps with...

## What I can do:
- Specific task 1
- Specific task 2

## Usage examples:
- "Help me with X"
- "Analyze Y and suggest Z"

Agent Templates

Available templates:

  • basic - Simple general-purpose agent
  • code-review - Code review specialist
  • docs - Documentation generator
  • testing - Test suite creator

⚙️ Configuration

Configuration is stored in ~/.codex-subagents/config.yaml:

# AI Configuration
ai:
  provider: openai
  model: gpt-4
  apiKey: ${OPENAI_API_KEY}
  temperature: 0.1
  maxTokens: 4000

# Agent Configuration
agents:
  timeout: 300
  maxRetries: 2
  defaultTools: [git, node, npm]

# Security
security:
  allowedCommands: [git, npm, node, cargo, python3]
  blockedCommands: [rm, sudo, chmod]
  requireConfirmation: [git push, git reset --hard]

🔧 Troubleshooting

Installation Issues

# Check installation
codex-subagents doctor

# Reinstall if needed
npm uninstall -g codex-subagents
npm install -g codex-subagents

Common Issues

"Binary not found" Error:

  • Ensure you're on a supported platform (macOS, Linux, Windows)
  • Try reinstalling the package
  • Check the output of codex-subagents doctor

"API key not configured" Error:

  • Set your OpenAI API key: export OPENAI_API_KEY="your-key"
  • Or update the config file: ~/.codex-subagents/config.yaml

"Agent not found" Error:

  • Check available agents: codex-subagents list
  • Ensure agent file exists: ls ~/.codex-subagents/agents/

Getting Help

🎯 Use Cases

Code Review Workflow

# Stage your changes
git add .

# Get AI-powered code review
codex-subagents run code-reviewer --prompt "Review my staged changes for bugs and improvements"

# Address feedback and commit
git commit -m "Fix issues identified by code review"

Documentation Generation

# Generate project README
codex-subagents run doc-writer --prompt "Create a comprehensive README for this project"

# Document specific functions
codex-subagents run doc-writer --prompt "Document the authentication middleware functions"

Test Creation

# Generate comprehensive tests
codex-subagents run test-generator --prompt "Create unit tests for the user service module"

# Add integration tests
codex-subagents run test-generator --prompt "Generate integration tests for the API endpoints"

Bug Hunting

# Analyze problematic code
codex-subagents run bug-hunter --prompt "Find potential bugs in the payment processing logic"

# Performance analysis
codex-subagents run bug-hunter --prompt "Identify performance bottlenecks in this algorithm"

🏗️ Development

Building from Source

git clone https://github.com/stat-guy/codex-cv.git
cd codex-cv
npm install
npm run build
npm test

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built on the foundation of AI-powered coding assistance
  • Inspired by the need for specialized, focused AI agents
  • Thanks to the open source community for tools and inspiration

Ready to supercharge your coding workflow?

npm install -g codex-subagents
codex-subagents init
codex-subagents run code-reviewer

Happy coding! 🚀