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

@parallel-labs/mind-agent

v1.0.4

Published

Monitor GitHub organizations and repositories for issues, prepare context, and fix them

Readme

Mind Agent

A background agent that monitors GitHub organizations and repositories for issues, prepares context, and queues them for you to fix.

npm version

Features

  • Multi-target monitoring - Watch entire organizations or specific repositories
  • Background daemon - Runs continuously, polling for new issues
  • Smart context building - Automatically gathers relevant code files for each issue
  • Branch management - Creates feature branches for each issue
  • Desktop notifications - macOS notifications when new issues are found

Quick Start

# Install globally
npm install -g @parallel-labs/mind-agent

# Initialize configuration
github-agent init

# Start the background daemon
github-agent start

# Check status
github-agent status

Installation

npm (recommended)

npm install -g @parallel-labs/mind-agent

npx (no install)

npx @parallel-labs/mind-agent init

From source

git clone https://github.com/owizdom/mind-agent.git
cd mind-agent
npm install
npm run build
npm link

Configuration

Run the interactive setup wizard:

github-agent init

This creates a github-agent.yaml file in your current directory:

# GitHub Personal Access Token
github_token: ${GITHUB_TOKEN}

# What to monitor
targets:
  organizations:
    - your-org
    - another-org
  repositories:
    - owner/specific-repo

# Scanning options
scan:
  interval_minutes: 5
  filters:
    state: open
    labels: []  # Empty = all labels

# Storage paths
paths:
  repos_dir: ~/.github-agent/repos
  data_dir: ~/.github-agent/data

# Notifications
notifications:
  enabled: true
  on_new_issue: true
  on_scan_complete: false
  on_error: true

# Editor to open repositories with
# Examples: code, cursor, vim, nvim, subl
editor: code

Environment Variables

You can set GITHUB_TOKEN as an environment variable instead of putting it in the config file:

export GITHUB_TOKEN=ghp_your_token_here

Getting a GitHub Token

  1. Go to GitHub Settings > Tokens
  2. Generate a new token (classic)
  3. Select scopes: repo (full access to repositories)
  4. Copy the token and add it to your config or environment

Usage

Commands

| Command | Description | |---------|-------------| | github-agent init | Interactive setup wizard | | github-agent start | Start background daemon | | github-agent start -f | Start in foreground (for debugging) | | github-agent stop | Stop the daemon | | github-agent status | Show queued issues and agent status | | github-agent scan | Run a single scan immediately | | github-agent open <issue> | Open issue in your editor | | github-agent push <issue> | Push your fix | | github-agent diff <issue> | Show diff for an issue | | github-agent logs | Show daemon logs | | github-agent logs -f | Follow log output |

Workflow Example

# 1. Initialize and start
github-agent init
github-agent start

# 2. Agent finds issues and notifies you...
# 🔔 "New issue in my-org/my-repo: Bug in authentication"

# 3. Check queued issues
github-agent status

# 4. Open an issue to fix
github-agent open 42
# Opens your editor with the repo

# 5. Fix the issue

# 6. Push your fix
github-agent push 42

# 7. Create PR on GitHub (link shown after push)

Issue Reference Formats

You can reference issues in multiple ways:

# By issue number (finds across all repos)
github-agent open 42

# By repo#number
github-agent open my-repo#42

# By full reference
github-agent open owner/repo#42

How It Works

┌─────────────────────────────────────────────────────────────┐
│                    Background Daemon                         │
├─────────────────────────────────────────────────────────────┤
│  1. Poll GitHub API for issues (every N minutes)            │
│  2. Store new issues in local SQLite database               │
│  3. Clone repositories on-demand                            │
│  4. Create feature branch: fix/issue-{number}-{slug}        │
│  5. Build context file with relevant code                   │
│  6. Send desktop notification                               │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│                    When You Return                           │
├─────────────────────────────────────────────────────────────┤
│  1. Run: github-agent status                                │
│  2. Run: github-agent open 42                               │
│  3. Your editor opens → Fix the issue                       │
│  4. Run: github-agent push 42                               │
│  5. Create PR on GitHub                                     │
└─────────────────────────────────────────────────────────────┘

Data Storage

All data is stored locally:

| Path | Description | |------|-------------| | ~/.github-agent/repos/ | Cloned repositories | | ~/.github-agent/data/github-agent.db | SQLite database | | ~/.github-agent/data/github-agent.log | Log file | | ~/.github-agent/data/tasks/ | Context files for issues | | ~/.github-agent/daemon.pid | Daemon process ID |

Advanced Configuration

Filter by Labels

Only monitor issues with specific labels:

scan:
  filters:
    state: open
    labels:
      - bug
      - help wanted
      - good first issue

Custom Storage Paths

paths:
  repos_dir: /path/to/repos
  data_dir: /path/to/data

Disable Notifications

notifications:
  enabled: false

Troubleshooting

Daemon won't start

Check if it's already running:

github-agent status

Check logs for errors:

github-agent logs

GitHub API rate limiting

The agent polls every 5 minutes by default. If you're hitting rate limits, increase the interval:

scan:
  interval_minutes: 15

Config not found

Make sure you're in the directory with github-agent.yaml or one of its parent directories. The agent searches upward for the config file.

Contributing

Contributions welcome! Please open an issue or PR.

License

MIT