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

@frugally3683/agent-loop-plugin

v6.0.0

Published

Minimal Task Continuation Plugin - Automatically continues sessions when incomplete tasks remain

Readme

Task Continuation Plugin

Minimal task continuation plugin for OpenCode - automatically continues sessions when incomplete tasks remain.

Overview

This plugin provides task continuation functionality:

  1. Task Continuation: Automatically continues sessions when incomplete todos remain

Perfect for:

  • Multi-step task execution with automatic continuation
  • Long-running agent workflows
  • Preventing premature session termination
  • Ensuring all tasks in a todo list are completed

Installation

npm install @frugally3683/agent-loop-plugin

Usage

import agentLoopPlugin from "@frugally3683/agent-loop-plugin"

export default agentLoopPlugin

Configuration

The plugin can be configured with the following options:

{
  countdownSeconds: 2,        // Seconds to wait before auto-continuation
  errorCooldownMs: 3000,      // Cooldown period after errors
  toastDurationMs: 900,       // Toast notification duration
  agent: "custom-agent",      // Agent name for continuation prompts
  model: "custom-model",      // Model name for continuation prompts
  logFilePath: "path/to/log", // Path to log file for debugging
}

Features

  • Automatic Continuation: Sessions automatically continue when incomplete tasks remain
  • User Message Handling: Cancels pending continuations when users send new messages
  • Error Handling: Graceful handling of session errors with cooldown periods
  • Recovery Support: Sessions can be marked as recovering to pause auto-continuation

API

Plugin Export

import { agentLoopPlugin, createTaskContinuation } from "@frugally3683/agent-loop-plugin"

Task Continuation API

const continuation = createTaskContinuation(input, options)

continuation.handler({ event }) // Handle session events
continuation.cleanup() // Cleanup resources
continuation.scheduleContinuation(sessionID) // Manually schedule continuation
continuation.markRecovering(sessionID) // Mark session as recovering
continuation.markRecoveryComplete(sessionID) // Mark recovery as complete
continuation.cancel(sessionID) // Cancel pending continuation

License

MIT