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

opencode-plugin-openspec

v0.1.4

Published

An OpenCode plugin that integrates OpenSpec, providing a dedicated agent for planning and specifying software architecture.

Readme

opencode-plugin-openspec

An OpenCode plugin that integrates OpenSpec, providing a dedicated agent for planning and specifying software architecture.

Motivation

This plugin addresses the need for a dedicated planning mode in OpenCode.

The Problem: When using OpenCode's standard "Build mode" to create or modify OpenSpec planning documents, AI agents often attempt to start implementing code changes immediately, before the planning phase is complete. This can lead to premature coding and a lack of focus on the architectural design.

The Solution: opencode-plugin-openspec introduces a specialized OpenSpec Architect agent. This agent is configured to:

  • Allow creating and editing OpenSpec documents (e.g., project.md, specs/**).
  • Prevent modifications to the implementation code.
  • Focus entirely on planning and specification, ensuring a clear separation between design and implementation.

Features

  • Auto-Detection: Automatically detects if the current workspace is an OpenSpec project.
  • New Agent: openspec-plan: A dedicated agent mode for creating and editing OpenSpec files.
  • Smart Permissions: Automatically grants write permissions for:
    • project.md
    • AGENTS.md
    • openspec/**
    • specs/**
  • Read-Only Safety: Keeps the rest of the codebase read-only when using the openspec-plan agent, ensuring the implementation details are not accidentally modified during the planning phase.

Installation

For Humans

Option 1: Let your agent do it (Recommended)

Copy and paste this prompt to your LLM agent (Claude Code, AmpCode, Cursor, etc.):

Install opencode-plugin-openspec by following the instructions here:
https://raw.githubusercontent.com/Octane0411/opencode-plugin-openspec/main/README.md

Option 2: Manual Installation

Add the plugin package name to your opencode.json configuration file (usually located at ~/.config/opencode/opencode.json or .opencode/opencode.json):

{
  "plugin": [
    "opencode-plugin-openspec"
  ]
}

OpenCode will automatically download and install the plugin the next time it runs.

For LLM Agents

If you are an AI agent tasked with setting up this plugin, follow these steps:

IMPORTANT: Do NOT run npm install or any terminal commands. You only need to edit the configuration file.

  1. Locate Configuration: Find the user's OpenCode configuration file. It is typically at ~/.config/opencode/opencode.json or .opencode/opencode.json in the workspace root.

  2. Read Configuration: Read the content of the configuration file.

  3. Update Configuration: Add "opencode-plugin-openspec" to the plugin array. If the plugin array does not exist, create it.

    {
      "plugin": [
        "opencode-plugin-openspec"
      ]
    }
  4. Verify: Inform the user that the plugin has been added and will be installed on the next OpenCode run.

    Note: You do not need to run npm install or download the package manually. OpenCode will automatically fetch the plugin based on the configuration.

Usage

  1. Open an OpenSpec project in OpenCode.
  2. The plugin will automatically detect the project structure.
  3. Switch to the OpenSpec Architect agent (colored #FF6B6B) in the agent selector.
  4. Start planning your architecture! The agent will have access to modify your spec files while keeping your code safe.

Development

  1. Clone the repository:

    git clone https://github.com/Octane0411/opencode-plugin-openspec.git
    cd opencode-plugin-openspec
  2. Install dependencies:

    bun install
  3. Build the plugin:

    bun run build
  4. Run watch mode for development:

    bun run watch

License

MIT