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

automagent

v0.4.0

Published

CLI toolkit for the automagent agent definition standard

Readme

automagent

The CLI toolkit for the Automagent agent definition standard. Define AI agents in YAML, validate them, run them interactively, and import from CrewAI and OpenAI formats.

Install

npm install -g automagent

To run agents, install the SDK for your provider:

# For Claude models
npm install @anthropic-ai/sdk

# For GPT models
npm install openai

Quick Start

# Create a new agent definition
automagent init

# Validate it
automagent validate

# Run it interactively
export ANTHROPIC_API_KEY=sk-...
automagent run

Commands

automagent init

Creates a new agent.yaml definition file with an interactive wizard.

automagent init                  # Interactive prompts
automagent init --quick          # Use defaults
automagent init --quick --name my-bot --model gpt-4o
automagent init --force          # Overwrite existing file

automagent validate

Validates an agent definition against the schema with four checks: schema validation, model pinning, secret detection, and context file existence.

automagent validate              # Validates ./agent.yaml
automagent validate path/to/agent.yaml

automagent run

Runs an agent interactively in the terminal. The provider is auto-detected from the model name (claude-* uses Anthropic, gpt-* uses OpenAI).

automagent run                   # Run ./agent.yaml
automagent run path/to/agent.yaml
automagent run --model claude-sonnet-4-20250514  # Override model

Requires the appropriate API key environment variable (ANTHROPIC_API_KEY or OPENAI_API_KEY).

automagent import

Converts agent definitions from other frameworks into automagent format.

automagent import crew_config.yaml                  # Auto-detect format
automagent import assistant.json --format openai     # Specify format
automagent import config.yaml --force                # Overwrite output

Supported formats:

| Format | Input | Detection | |--------|-------|-----------| | CrewAI | YAML with role + goal + backstory | Auto | | OpenAI Assistants | JSON with instructions + model | Auto |

Unmapped fields are preserved under extensions.<framework> in the output. A # TODO: Review comment is added to fields that may need manual adjustment.

Agent Definition

Agents are defined in YAML conforming to @automagent/schema:

# yaml-language-server: $schema=https://raw.githubusercontent.com/automagent/automagent/main/packages/schema/src/v1.schema.json
name: my-agent
description: A helpful research assistant
model: claude-sonnet-4-20250514
instructions: You are a research assistant that helps find and summarize information.
tools:
  - name: web_search
    description: Search the web for information
    inputSchema:
      type: object
      properties:
        query:
          type: string
          description: The search query

The model field accepts any model identifier. The CLI auto-detects the provider, or you can use the object form:

model:
  id: claude-sonnet-4-20250514
  provider: anthropic

Development

npm install
npm run build       # Build with tsup
npm run dev         # Watch mode
npm run test        # Run tests
npm run lint        # Type-check

License

Apache-2.0