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-compass

v0.0.3

Published

Navigate your codebase with confidence—guided workflows that keep your AI agents on course from planning to PR

Readme

Status: Under active development. APIs and commands may change.

opencode-compass

Navigate your codebase with confidence. A plugin that keeps your AI agents on course—from planning to PR.

Why

Most AI coding setups give you raw model power, but not much workflow discipline. opencode-compass adds opinionated rails around common engineering tasks so agents can load the right context, follow a repeatable path, and stay grounded in the actual repo state.

Why use this plugin

  • Opinionated yet composable workflows for plan, dev, and review. opencode-compass gives you default rails for common engineering flows, while still letting teams enable only the commands they want and override templates, prompts, and components.
  • Handcrafted tools for better performance and token efficiency. Instead of forcing agents to rediscover context through broad repo exploration, tools like changes_load, pr_load, and ticket_load return focused, structured data for the exact workflow at hand.
  • Optimized for token-efficient execution. The plugin is designed to keep context compact: review flows load normalized PR metadata first, development flows reuse embedded guidance, and diff loading omits expensive or unnecessary payloads like full added-file bodies and binary patches.

What it adds

  • tools: changes_load, pr_load, ticket_load, ticket_create
  • subagents: reviewer, planner
  • commands: /pr/create, /pr/review, /pr/fix, /ticket/plan, /ticket/dev, /review, /dev
  • embeddable navigation components for consistent guidance

Review Workflow

  • /pr/review starts with paginated, normalized pr_load metadata, then uses changes_load for the actual git-based file diffs, and publishes via gh api
  • /review starts with changes_load, expands only the files that matter, and summarizes findings in chat

Debug Scripts

  • ./scripts/changes-load.ts --diff
  • ./scripts/changes-load.ts --base origin/main --head HEAD --diff
  • ./scripts/pr-load.ts --reviews --issueComments --threads
  • ./scripts/pr-load.ts --pr 123 --reviews --issueComments --threads

Tests

  • bun test

Install from npm

Add the package to your OpenCode config:

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

Structure

agents/          subagent prompts
commands/        command templates with embedded guidance
components/      reusable navigation guidance
lib/             shared loaders and path helpers
tools/           one file per tool
config.example.json  example configuration file
index.ts         plugin entrypoint

Configuration

Create a configuration file at .opencode/compass.json or opencode-compass.json in your project root to customize behavior:

{
  "commands": {
    "enabled": ["pr/create", "pr/review", "pr/fix", "ticket/plan", "ticket/dev", "review", "dev"],
    "templates": {
      "pr/create": "custom/path/to/pr-create.txt"
    }
  },
  "agents": {
    "enabled": ["reviewer", "planner"],
    "reviewer": {
      "description": "Custom reviewer description",
      "promptPath": "custom/path/to/reviewer.txt",
      "permission": {
        "edit": "deny"
      }
    }
  },
  "tools": {
    "enabled": ["changes_load", "pr_load", "ticket_load", "ticket_create"]
  },
  "components": {
    "enabled": ["pr-author", "dev-flow", "ticket-plan", "pr-fix", "pr-review"],
    "paths": {
      "pr-author": "custom/path/to/pr-author.txt"
    }
  },
  "defaults": {
    "baseBranch": "main",
    "agentMode": "subagent"
  }
}

See config.example.json for all available options.

Test locally before publishing

Point OpenCode at the local entry file:

{
  "plugin": ["file:///Users/danielpolito/Code/opencode-compass/index.ts"]
}

Validate

bun run check

Publish

npm publish --access public

The package is plain Bun-friendly ESM TypeScript, so there is no build step.