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

acp-loop

v0.2.0

Published

Recurring prompt scheduler for ACP agents

Downloads

106

Readme

acp-loop

Recurring prompt scheduler for ACP agents. Inspired by Claude Code's /loop command.

Concept

Run prompts on a recurring interval:

# Run every 5 minutes
acp-loop --interval 5m "check if deploy succeeded"

# Cron-style scheduling
acp-loop --cron "*/10 * * * *" "summarize new issues"

# With specific agent
acp-loop --interval 1h --agent codex "review open PRs"

Use Cases

  1. Monitoring - Periodic health checks
  2. Polling - Watch for changes (new issues, PR updates)
  3. Scheduled tasks - Daily summaries, weekly reports
  4. Long-running workflows - Check progress, auto-retry failed tasks

Design Questions

1. Session Management

  • New session per loop iteration? Or reuse session?
  • Claude Code's /loop runs within a session
  • acp-loop could be standalone or integrate with acp-team

2. Integration with acp-team

# Poll for unclaimed tasks and auto-dispatch
acp-loop --interval 30s "acp-team poll"

# Watch for completed tasks
acp-loop --interval 1m "acp-team status | grep completed"

3. Output Handling

  • Log to file?
  • Send to inbox?
  • Conditional execution (only run if previous check found something)?

4. Stop Conditions

# Run until condition met
acp-loop --until "deploy succeeded" --interval 1m "check deploy status"

# Max iterations
acp-loop --max 10 --interval 5m "check status"

# Timeout
acp-loop --timeout 1h --interval 5m "monitor build"

Architecture Options

Option A: Standalone CLI

acp-loop
├── scheduler (cron/interval)
├── executor (calls acpx)
└── logger

Option B: acp-team integration

acp-team watch   # already exists, similar concept
acp-team loop    # new subcommand

Option C: acpx extension

acpx loop --interval 5m "prompt"

MVP Implementation

// Minimal loop runner
async function loop(options: {
  interval: number;      // ms
  prompt: string;
  agent?: string;        // default: codex
  maxIterations?: number;
  until?: string;        // stop condition
}) {
  let iteration = 0;
  while (true) {
    iteration++;
    
    // Run prompt via acpx
    const result = await exec(`acpx ${options.agent} exec "${options.prompt}"`);
    
    // Check stop conditions
    if (options.maxIterations && iteration >= options.maxIterations) break;
    if (options.until && result.includes(options.until)) break;
    
    // Wait for next interval
    await sleep(options.interval);
  }
}

References

  • Claude Code /loop: Added /loop command to run a prompt or slash command on a recurring interval (e.g. /loop 5m check the deploy)
  • acp-team watch: Similar polling concept for task assignment

TODO

  • [ ] Define CLI interface
  • [ ] Implement interval scheduler
  • [ ] Implement cron scheduler
  • [ ] Add stop conditions
  • [ ] Integration with acp-team
  • [ ] Logging and output handling