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

opencoding-agent

v1.0.11

Published

OpenCode specialized agents and subagent catalog manager

Readme

opencoding-agent

opencoding-agent is an OpenCode plugin that provides specialized agents and a subagent management system.

Features

  • Custom Agents: Replaces default agents with specialized plan and build modes.
  • Subagent Catalog: Browse and install subagents from the awesome-opencode-subagents repository.
  • TDD Enforcement: Automatically blocks implementation work until tests are written and failed (Red phase).
  • Design Approval Guardrails: Requires explicit user approval for implementation plans before code execution.
  • Tool Alias Correction: Intelligently maps deprecated or incorrect tool calls to the correct plugin tools.
  • Toast Notifications: Real-time feedback in the OpenCode UI for hook execution, system status, and agent transitions.

Workflows

TDD Cycle (Red -> Green -> Refactor)

The plugin enforces a strict TDD cycle through tool execution hooks.

  1. Red Phase: The agent must first write a test that fails. The beforeToolExecution hook monitors test results. If an agent tries to modify source code (src/) without a recorded failing test for the current task, the operation is blocked.
  2. Green Phase: Once a failing test is confirmed, the hook allows modifications to source files. The agent implements the minimal code required to pass the test.
  3. Refactor Phase: After the test passes, the agent can refactor the code. The hook ensures that any further changes still satisfy the existing test suite.
graph TD
    Start[Start Task] --> WriteTest[Write Test]
    WriteTest --> RunTestRed[Run Test: Verify Failure]
    RunTestRed -->|Success: Test Failed| AllowImpl[Hook: Allow Implementation]
    RunTestRed -->|Failure: Test Passed/Error| WriteTest
    AllowImpl --> WriteCode[Implement Minimal Code]
    WriteCode --> RunTestGreen[Run Test: Verify Success]
    RunTestGreen -->|Success: Test Passed| Refactor[Refactor Code]
    RunTestGreen -->|Failure: Test Failed| WriteCode
    Refactor --> Finish[Task Complete]

Design Approval (Approval) Process

To prevent hallucinations and unauthorized actions, the plugin implements a formal approval gateway.

  1. Plan Creation: The agent analyzes the task and generates a detailed implementation plan.
  2. Approval Request: The agent presents the plan to the user and explicitly asks for approval.
  3. Guardrail Check: Any attempt to execute implementation tools (like Edit or Write on source files) before the user provides a "go-ahead" or "approved" signal will be intercepted and blocked by the plugin.
  4. Execution: Once approved, the agent proceeds to the TDD Cycle.

Installation

Add this plugin to your opencode.json:

{
  "plugin": [
    "opencoding-agent"
  ]
}

OpenCode automatically installs plugin dependencies at runtime.

Tools

  • /subagent-catalog:list: List available subagent categories.
  • /subagent-catalog:search <query>: Search for specific subagents by name or description.
  • /subagent-catalog:fetch <name> [scope]: Download and install a subagent (scope: global or local).

Development

To install dependencies:

bun install

To build:

bun run build