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

@tudeorangbiasa/opencode-agent-rules

v0.3.1

Published

Base OpenCode agent rules for execution discipline, verification, CLI-first scaffolding, and context window management.

Readme

OpenCode Agent Rules

Base OpenCode agent rules for execution discipline, verification, CLI-first scaffolding, and context window management.

This repo is intentionally not an SDD workflow kit. It is the base behavior layer used by any project.

Layers

Use this with higher-level workflow kits:

opencode-agent-rules        # base behavior, verification, context policy
        ↓
sdd-multiagent-opencode     # SDD commands, agents, skills, specs
        ↓
external UI skills          # impeccable, taste, nothing-design, etc.

Contents

AGENTS.md
opencode.json
.opencode/
├── rules/
│   ├── core-behavior.md
│   ├── status-verification.md
│   ├── cli-first.md
│   └── context-budget.md
└── plugins/
    └── context-guard.js

Install

Plugin Install (Recommended)

Add to your opencode.json (global or project-level):

{
  "plugin": [
    "@tudeorangbiasa/opencode-agent-rules@latest"
  ]
}

Restart OpenCode. The plugin auto-registers rules, agents, and context management.

To pin a specific version:

{
  "plugin": [
    "@tudeorangbiasa/[email protected]"
  ]
}

Why npm instead of GitHub? GitHub installs pull the latest commit which may include beta/unstable changes. npm packages are versioned and tested before publish, so you get a stable, mature release.

npx Install (Fallback)

For projects that prefer local files instead of a plugin:

cd your-project
npx -y -p @tudeorangbiasa/opencode-agent-rules init-rules

Manual Copy

cp AGENTS.md /path/to/project/
cp -r .opencode/rules /path/to/project/.opencode/
cp -r .opencode/plugins /path/to/project/.opencode/

Then merge opencode.json into the project's opencode.json.

Compaction Model

Configure the compaction model in one global plugin config:

~/.config/opencode/opencode-agent-rules.json

Free-tier default:

{
  "agent": {
    "compaction": {
      "model": "opencode/nemotron-3-super-free",
      "temperature": 0.1
    }
  }
}

Run opencode models opencode | grep "free" to verify current free model availability.

Restart OpenCode after editing the global config.

Context Budget

  • 60%: reduce context and checkpoint.
  • 80%: preserve state for compaction.
  • Compaction must preserve current goal, source-of-truth files, decisions, files touched, verification state, blockers, and next action.

Related

  • sdd-multiagent-opencode: SDD workflow layer.
  • Impeccable / Taste / Nothing Design: optional UI skill layers.