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

@op1/workspace

v0.5.5

Published

Project-scoped plan management plugin for OpenCode - plans, notepads, verification hooks

Readme

@op1/workspace

Operational continuity plugin for OpenCode: plans, notepads, worktree tooling, tmux orchestration, and runtime safety hooks.

What It Provides

  • Persistent plan workflow (plan_* + linked plan docs)
  • Notepad memory across sessions (learnings, issues, decisions)
  • Session continuity and diagnostics
  • Pairs with @op1/delegation for async task orchestration
  • Worktree and terminal orchestration (including tmux-aware behavior)
  • Safety hooks (verification reminders, context scouting, compaction, non-interactive guard)

Installation

bun add @op1/workspace

Add plugin to OpenCode config:

{
  "plugin": ["@op1/workspace"]
}

Runtime Requirements

  • Bun runtime
  • Git repository (required for worktree tools)
  • Optional tmux support:
    • tmux installed and available on PATH
    • OpenCode session running inside tmux (TMUX env set)
  • macOS terminal fallbacks use osascript/open for GUI terminals

Configuration

Config files are merged in this order:

  1. Global: ~/.config/opencode/workspace.json
  2. Project: .opencode/workspace.json

Project values override global values.

Default Operational Profile

All operational improvements are on by default. Tool approval is delegated to native OpenCode permission rules.

{
  "safeHookCreation": false,
	"features": {
		"momentum": true,
		"completionPromise": true,
    "writePolicy": true,
    "taskReminder": true,
    "autonomyPolicy": true,
    "notifications": true,
		"verificationAutopilot": true,
		"hashAnchoredEdit": true,
		"contextScout": true,
		"externalScout": true,
		"taskGraph": true,
		"continuationCommands": true,
    "tmuxOrchestration": true,
    "boundaryPolicyV2": true,
    "mcpOAuthHelper": true
  },
  "thresholds": {
    "taskReminderThreshold": 20,
    "contextLimit": 200000,
    "compactionThreshold": 0.78,
    "verificationThrottleMs": 45000
  },
  "notifications": {
    "enabled": true,
    "desktop": true,
    "privacy": "strict"
  }
}

tmux Orchestration

features.tmuxOrchestration controls tmux-aware terminal behavior for worktree flows.

When enabled and running inside tmux:

  • Uses tmux as terminal target
  • Reuses existing project-scoped windows when available
  • Deduplicates stale duplicate windows
  • Persists tmux metadata (tmux_session_name, tmux_window_name) for continuation/delegation traceability

Scoped window naming format:

  • op1-<project>-<window>

Fallback behavior (when tmux is unavailable or not active):

  • iTerm2 -> Ghostty -> Warp -> Terminal.app

To disable tmux orchestration:

{
  "features": {
    "tmuxOrchestration": false
  }
}

Important Notes

  • contextScout/externalScout are hook-based context pipelines, not subagents.
  • boundaryPolicyV2 hardens continuation and edit-safety behavior without adding a second approval system.
  • Tool approval is handled by native OpenCode permission rules rather than workspace-local approval settings.
  • Hook creation is fail-fast by default (safeHookCreation=false) so missing/broken runtime dependencies fail visibly.

Tooling Surface

Key tool groups exposed by this plugin:

  • Plan: plan_save, plan_read, plan_list, plan_set_active, plan_promote, plan_archive, plan_unarchive, plan_context_read, plan_context_write
  • Plan docs: plan_doc_link, plan_doc_list, plan_doc_load
  • Notepads: notepad_read, notepad_write, notepad_list
  • Sessions: session_list, session_read, session_search, session_info
  • Worktree: worktree_create, worktree_list, worktree_enter, worktree_leave, worktree_delete

Async task orchestration lives in @op1/delegation:

  • task
  • background_output
  • background_cancel
  • agent_status
  • task_graph_status

Data Layout

Runtime state is stored under:

<project>/.opencode/workspace/

Includes plans, notepads, session registries, and feature state files. @op1/delegation also stores its durable task records here.

License

MIT