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

@octavus/cli

v1.0.0

Published

CLI for validating and syncing Octavus agent definitions

Readme

@octavus/cli

CLI for validating and syncing Octavus agent definitions.

Installation

npm install -g @octavus/cli

Or use with npx:

npx @octavus/cli validate ./agents/support-chat

Overview

The Octavus CLI provides commands for managing agent definitions from your local filesystem. Use it to:

  • Validate agent definitions before deploying
  • Sync agents to the Octavus platform
  • List and get agent details

Configuration

The CLI reads configuration from environment variables:

| Variable | Description | Default | | --------------------- | ----------------------------------------- | -------------------- | | OCTAVUS_CLI_API_KEY | API key with agent management permissions | - | | OCTAVUS_API_KEY | Fallback API key (if CLI key not set) | - | | OCTAVUS_API_URL | Octavus platform URL | https://octavus.ai |

You can also specify an env file:

octavus --env .env.production validate ./agents/support-chat

Commands

validate

Validate an agent definition without making changes (dry-run).

octavus validate <path>

Options:

  • --json - Output as JSON (for CI/CD pipelines)
  • --quiet - Suppress non-essential output

Example:

octavus validate ./agents/support-chat
# ✓ Agent support-chat is valid

octavus validate ./agents/support-chat --json
# { "slug": "support-chat", "valid": true, "errors": [], "warnings": [] }

sync

Sync an agent to the platform (creates or updates).

octavus sync <path>

Options:

  • --json - Output as JSON
  • --quiet - Suppress non-essential output

Example:

octavus sync ./agents/support-chat
# ℹ Reading agent from ./agents/support-chat...
# ℹ Syncing support-chat...
# ✓ Updated: support-chat
#   Agent ID: agent_abc123

list

List all agents in the project.

octavus list

Options:

  • --json - Output as JSON
  • --quiet - Suppress non-essential output

Example:

octavus list
# SLUG                 NAME                           FORMAT       ID
# ─────────────────────────────────────────────────────────────────────
# support-chat         Support Chat                   interactive  agent_abc123
# product-advisor      Product Advisor                interactive  agent_def456
#
# 2 agent(s)

get

Get agent details by slug.

octavus get <slug>

Options:

  • --json - Output as JSON
  • --quiet - Suppress non-essential output

Example:

octavus get support-chat
# ✓ Agent: Support Chat
#
#   Slug: support-chat
#   ID: agent_abc123
#   Format: interactive
#   Description: Customer support agent with escalation
#
#   Prompts: system, user-message, escalation-summary

Agent Definition Structure

The CLI expects agent definitions in a specific directory structure:

my-agent/
├── settings.json     # Required: Agent metadata
├── protocol.yaml     # Required: Agent logic
└── prompts/          # Optional: Prompt templates
    ├── system.md
    └── user-message.md

settings.json

{
  "slug": "support-chat",
  "name": "Support Chat",
  "description": "Customer support agent with escalation",
  "format": "interactive"
}

protocol.yaml

input:
  COMPANY_NAME: { type: string }

triggers:
  user-message:
    input:
      USER_MESSAGE: { type: string }

agent:
  model: anthropic/claude-sonnet-4-5
  system: system
  input: [COMPANY_NAME]

handlers:
  user-message:
    Add user message:
      block: add-message
      role: user
      prompt: user-message
      input: [USER_MESSAGE]

    Respond:
      block: next-message

CI/CD Integration

Use JSON output mode for CI/CD pipelines:

# Validate in CI
octavus validate ./agents/support-chat --json
if [ $? -ne 0 ]; then
  echo "Validation failed"
  exit 1
fi

# Deploy to staging
OCTAVUS_API_URL=https://staging.octavus.ai octavus sync ./agents/support-chat --json

Exit Codes

| Code | Description | | ---- | ------------------------------------- | | 0 | Success | | 1 | Validation/sync error | | 2 | Configuration error (missing API key) |

License

MIT