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

oc-agent

v1.0.0

Published

A zero-dependency npx CLI for installing and managing OpenCode agent .md files

Readme

oc-agent

A zero-dependency npx CLI for installing and managing OpenCode agent .md files.

npm version Node.js License

InstallationCommandsPublishing Agents


npx oc-agent add https://github.com/owner/repo --agent my-agent

Features

  • One-command install — clone a git repo and install agents into the right directory
  • Zero dependencies — pure Node.js, no compiled native modules
  • Project or global scope — install agents per-project or system-wide
  • Manifest tracking — every install is recorded for reliable update and remove
  • CI-friendly-y flag skips all prompts for automated workflows

Installation

No install needed — run directly with npx:

npx oc-agent <command>

Or install globally:

npm install -g oc-agent

Commands

add

Install an agent from a git repo.

npx oc-agent add <git-url> [--agent <name>] [-g] [-y]

The repo must have an /agents folder containing .md files. The --agent flag is required when the repo contains more than one agent.

[!TIP] Supports https://, git@, ssh://, and file:// URLs.

# Single-agent repo (--agent optional)
npx oc-agent add https://github.com/owner/repo

# Multi-agent repo (--agent required)
npx oc-agent add https://github.com/owner/repo --agent coder

# Install globally
npx oc-agent add https://github.com/owner/repo --agent coder -g

# Non-interactive (CI)
npx oc-agent add https://github.com/owner/repo --agent coder -g -y

list

Show all installed agents and their source repo.

npx oc-agent list
npx oc-agent list -g   # global agents

remove

Uninstall an agent by name.

npx oc-agent remove coder
npx oc-agent remove coder -g

update

Re-pull and reinstall agents from their source repo.

npx oc-agent update           # update all
npx oc-agent update coder     # update one
npx oc-agent update -g        # update all global

Scope

| Scope | Path | |---|---| | Project (default) | ./.opencode/agents/ | | Global (-g) | ~/.config/opencode/agents/ |

How it works

  1. Clones the repo into a temp directory
  2. Looks for .md files inside the /agents subfolder
  3. Copies the chosen file to the install destination
  4. Records the install in a manifest for future update and remove

Installed agents are tracked in oc-agent-manifest.json alongside your agents, so update and remove always know where a file came from.

Options

| Flag | Description | |---|---| | --agent <name> | Select agent to install (required if repo has multiple) | | -g, --global | Install to ~/.config/opencode/agents/ instead of ./.opencode/agents/ | | -y, --yes | Skip confirmation prompts (CI-friendly) | | -h, --help | Show help message | | -v, --version | Show version |

Publishing Agents

Structure your repo like this:

my-agents/
  agents/
    coder.md
    reviewer.md
    planner.md
  README.md

Each .md file becomes an installable agent. Users install individual agents with --agent <filename-without-extension>.

Requirements

  • Node.js 18+
  • git available in PATH