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-huge-agents

v0.2.1

Published

OpenCode agent pack: refactor (review-first), ask (read-only), and exec (risk-aware execution orchestrator)

Readme

opencode-huge-agents

$ opencode agent list
  → refactor ──────────── safe, review-first refactoring
  → ask      ──────────── read-only technical advisor
  → exec     ──────────── strategic orchestrator with adaptive execution modes

$ ./overview.sh

┌─────────────┬──────────────────────┬─────────────────────┬────────────────────────┐
│ AGENT       │ PURPOSE              │ EDITING BEHAVIOR    │ BEST FOR               │
├─────────────┼──────────────────────┼─────────────────────┼────────────────────────┤
│ refactor    │ Improve code quality │ After review        │ Safe refactoring       │
│ ask         │ Technical advisor    │ Read-only (never)   │ Understanding code     │
│ exec        │ Orchestrate execution│ Adaptive by risk    │ End-to-end delivery    │
└─────────────┴──────────────────────┴─────────────────────┴────────────────────────┘

$ ./install.sh

# Using npm
$ npm install opencode-huge-agents
$ npx opencode-huge-agents install

# Using Bun
$ bun add opencode-huge-agents
$ bunx opencode-huge-agents install

Verify installation:

$ opencode agent list
  ✓ refactor (primary)
  ✓ ask (primary)
  ✓ exec (primary)

$ ./usage.sh

# Tab completion to select agent
$ opencode [TAB]
  → refactor
  → ask
  → exec

# Direct invocation via slash commands
$ /refactor <target>
$ /ask <question>
$ /exec <task>
$ /exec-fast <task>
$ /exec-balanced <task>
$ /exec-safe <task>

╔══════════════════════════════════════════════════════════╗
║  REFACTOR AGENT                                          ║
║  Safe, review-first refactoring                          ║
╚══════════════════════════════════════════════════════════╝

Commands

$ /refactor                    # General refactoring (balanced)
$ /refactor-legibility         # Focus on readability
$ /refactor-performance        # Focus on optimization
$ /refactor-maintainability    # Focus on maintainability

Workflow

[1] Analyze code
     ↓
[2] Propose improvements
     ↓
[3] Interactive menu:
     → Apply all safe refactors now
     → Apply only high-impact low-risk refactors
     → Select refactor variant
     → Show step-by-step plan
     → Ask questions before changes
     → Cancel
     ↓
[4] Execute (after confirmation)
     ↓
[5] Validate with tests

Examples

$ /refactor src/services/user-service.ts
$ /refactor-performance the data processing pipeline
$ /refactor-legibility components/Dashboard.tsx

Use refactor when: You want to improve existing code quality safely without adding features.


╔══════════════════════════════════════════════════════════╗
║  ASK AGENT                                               ║
║  Read-only technical advisor                             ║
╚══════════════════════════════════════════════════════════╝

Command

$ /ask <question>              # Objective technical answer with evidence (never edits)

What Ask Does

✓ Explores and analyzes code
✓ Prioritizes objective, concise answers by default
✓ Returns direct answer + code evidence (file:line)
✓ Expands only when user explicitly asks for deeper detail
✓ Explains architecture, flows, and dependencies when needed
✓ Answers "how" and "why" questions with verified references
✗ NEVER edits files
✗ NEVER proposes implementation plans or task breakdowns
→ If action is requested, recommends switching to planning/execution mode

Examples

$ /ask How does authentication work in this app?
$ /ask Where is the user validation logic?
$ /ask Explain the data flow in the checkout process
$ /ask What patterns are used in the API layer?
$ /ask What are the dependencies of the UserService?

Use ask when: You need to understand code without making changes.


╔══════════════════════════════════════════════════════════╗
║  EXEC AGENT                                              ║
║  Strategic execution orchestrator                         ║
╚══════════════════════════════════════════════════════════╝

Commands

$ /exec <task>                 # Auto-select mode by impact/risk/reversibility
$ /exec-fast <task>            # Prefer speed for low-risk reversible tasks
$ /exec-balanced <task>        # Plan then execute for medium-risk changes
$ /exec-safe <task>            # Risk-first for high-impact critical tasks

How Exec Works

┌──────────────────────────────────┐
│ Assess impact, risk, reversibility │
└────────────────┬─────────────────┘
                 │
     ┌───────────┼───────────┐
     │           │           │
  ┌──▼───┐   ┌───▼────┐   ┌──▼───┐
  │ FAST │   │BALANCED│   │ SAFE │
  └──┬───┘   └───┬────┘   └──┬───┘
     │           │           │
     │      Plan + review    │
     │      (TodoWrite)      │
     │           │           │
     └───────────┴───────────┘
                 │
      ┌──────────▼──────────┐
      │ Execute + validate  │
      └──────────┬──────────┘
                 │
      ┌──────────▼──────────┐
      │ Delivery contract   │
      │ objective/mode/     │
      │ changes/validation/ │
      │ residual risks      │
      └─────────────────────┘

Fast mode (executes immediately):

  • 1-2 files with clear changes
  • Low risk and reversible
  • Example: "fix typo in config"

Balanced mode (creates plan first):

  • Interconnected changes with moderate risk
  • Dependencies need coordination
  • Example: "add API caching + invalidation"

Safe mode (risk-first execution):

  • High-impact or hard-to-reverse changes
  • Critical paths (auth, data, infra)
  • Example: "migrate authentication flow"

Examples

$ /exec Add error handling to the login function
$ /exec-fast Fix typos and small naming inconsistencies in config
$ /exec-balanced Implement API caching with cache invalidation rules
$ /exec-safe Refactor authentication flow with rollback strategy

Use exec when: You need end-to-end execution with strategy, validation, and clear risk handling.


$ cat opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-huge-agents@latest"],
  "agent": {
    "refactor": {
      "color": "#55f76dff",
      "permission": {
        "question": "allow"
      }
    },
    "ask": {
      "color": "#ff8c42",
      "permission": {
        "question": "allow"
      }
    },
    "exec": {
      "color": "#ff3b3b",
      "permission": {
        "question": "allow"
      }
    }
  }
}

$ diff built-in.txt huge-agents.txt

┌─────────────┬──────────┬──────────┬─────────────────────────┐
│ AGENT       │ EDITING  │ PLANNING │ USE CASE                │
├─────────────┼──────────┼──────────┼─────────────────────────┤
│ build       │ Immediate│ Manual   │ Quick features          │
│ plan        │ Ask first│ Always   │ Understanding & planning│
│ refactor    │ After rev│ Safety   │ Code quality            │
│ ask         │ Never    │ N/A      │ Technical Q&A           │
│ exec        │ Adaptive │ By risk  │ End-to-end execution    │
└─────────────┴──────────┴──────────┴─────────────────────────┘

$ ./uninstall.sh

$ npx opencode-huge-agents uninstall
# or
$ bunx opencode-huge-agents uninstall

$ make build

$ git clone <repository>
$ cd opencode-huge-agents
$ npm install
$ npm run build

$ cat LICENSE

MIT


$ ./contributing.md

Contributions welcome! Please submit issues or pull requests.


$ ./support.md

  • GitHub Issues: [Create an issue]
  • OpenCode Docs: https://opencode.ai/docs