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

copilot-agent

v1.2.7

Published

Autonomous AI agent manager — auto-resume, task discovery, overnight runs. Supports GitHub Copilot CLI + Claude Code.

Readme

copilot-agent

Autonomous AI agent manager — auto-resume sessions, discover tasks, run overnight. Supports GitHub Copilot CLI and Claude Code.

Features

| Command | Description | |---------|-------------| | status | View sessions & active processes from both Copilot and Claude | | watch | Monitor a session, auto-resume when it stops | | run | Auto-discover and fix issues in any project | | overnight | Run tasks continuously until a deadline (e.g. 07:00) | | research | Architecture, security, and performance analysis | | report | Session activity report — tools, commits, files, tokens | | dashboard | htop-style TUI dashboard with blessed (scrollable, keyboard nav) | | web | Web dashboard with live updates (Hono + htmx + SSE) | | config | Persistent configuration defaults (global + per-project) | | proxy | Manage copilot-api proxy for Claude Code via Copilot | | diff | Show git changes made by an agent session | | quota | Track premium requests, tokens, and usage over time | | compact | Generate context summary for session handoff/resume | | hooks | Event-driven automation (on_task_complete, on_error, etc.) | | pr | Auto-create GitHub Pull Request from session changes | | log | Search, timeline, and export session history | | template | Manage custom task templates (add/list/remove/import/export) | | schedule | Cron-like recurring task scheduler with daemon mode | | multi | Multi-project orchestration — parallel runs, status tracking | | review | AI-powered code review of session changes, diffs, or PRs |

All commands support --agent copilot or --agent claude (auto-detects if omitted).

Install

npm install -g copilot-agent

Prerequisites

At least one of:

Usage

Show session status

# All sessions (copilot + claude merged)
copilot-agent status

# Active processes only
copilot-agent status --active

# Filter by agent
copilot-agent status --agent claude

Watch & auto-resume

# Auto-detect latest incomplete session
copilot-agent watch

# Watch specific session with Claude
copilot-agent watch abc12345-... --agent claude

# Custom resume settings
copilot-agent watch --steps 100 --max-resumes 50

Discover & fix issues

# Run with auto-detected agent
copilot-agent run

# Run on specific project with Claude Code
copilot-agent run ~/my-project --agent claude

# Preview tasks without executing
copilot-agent run --dry-run

# Use git worktree for parallel execution
copilot-agent run --worktree

Overnight runner

# Run until 7am (default)
copilot-agent overnight ~/my-project

# Run with Claude Code
copilot-agent overnight --agent claude --until 07 --max-premium 200

Session report & diff

# Latest session report
copilot-agent report

# Show git changes from latest session
copilot-agent diff

# Show changes from specific session with diffstat
copilot-agent diff abc12345-... --stat

Dashboards

# htop-style TUI (blessed — scrollable, keyboard nav, cached rendering)
copilot-agent dashboard

# Custom refresh interval
copilot-agent dashboard --refresh 3

# Web UI (Hono + htmx, opens browser)
copilot-agent web

Configuration

# Set persistent defaults
copilot-agent config set agent claude
copilot-agent config set steps 50
copilot-agent config set worktree true

# View all config (defaults + global + project)
copilot-agent config list

# Per-project config: create .copilot-agent.yaml in project root

Proxy management (Claude Code via Copilot)

# Start copilot-api proxy (auto-detects Copilot OAuth token)
copilot-agent proxy start

# Check status (PID, port, token, model count)
copilot-agent proxy status

Usage tracking

# Show last 7 days of premium/token usage
copilot-agent quota

# All-time usage
copilot-agent quota --all

# Last 30 days
copilot-agent quota --days 30

Context handoff (compact)

# Generate context summary from latest session
copilot-agent compact

# Save compact to file
copilot-agent compact --save

# Get a resume prompt to continue the work
copilot-agent compact --resume-prompt

Hooks (event-driven automation)

# Show configured hooks
copilot-agent hooks list

# Test-run hooks for an event
copilot-agent hooks test on_task_complete

Create ~/.copilot-agent/hooks.yaml or .copilot-agent/hooks.yaml:

on_task_complete:
  - command: "npm test"
    name: "Run tests"
on_session_end:
  - command: "git push origin HEAD"
    name: "Auto-push"
on_error:
  - command: "curl -X POST $SLACK_WEBHOOK -d '{\"text\":\"Agent error!\"}'"
    name: "Notify Slack"

Auto-create Pull Request

# Create PR from latest session
copilot-agent pr

# Dry-run (preview without creating)
copilot-agent pr --dry-run

# Create ready (non-draft) PR
copilot-agent pr --no-draft

Session log (search & export)

# Search sessions by keyword
copilot-agent log search "auth" --limit 10

# View session timeline
copilot-agent log timeline <session-id>

# Export history as JSON or CSV
copilot-agent log export --format json --output sessions.json
copilot-agent log export --format csv --limit 50

Task templates

# List custom templates
copilot-agent template list

# Add a reusable task template
copilot-agent template add security-audit --prompt "Run a full security audit"

# Remove a template
copilot-agent template remove security-audit

# Export/import templates (YAML)
copilot-agent template export > my-templates.yaml
copilot-agent template import team-templates.yaml

Scheduled tasks

# Add a recurring schedule
copilot-agent schedule add nightly-lint \
  --cron "0 2 * * *" \
  --prompt "Fix all lint errors and run tests" \
  --project /path/to/project

# List all schedules
copilot-agent schedule list

# Preview what would run next
copilot-agent schedule dry-run

# Start the scheduler daemon
copilot-agent schedule run

Multi-project orchestration

# Register projects
copilot-agent multi add ~/project-a
copilot-agent multi add ~/project-b

# Run tasks on all projects (with Claude, in parallel)
copilot-agent multi run --agent claude --parallel

# Check per-project status
copilot-agent multi status

# Dry-run preview
copilot-agent multi run --dry-run

AI code review

# Review latest session changes
copilot-agent review

# Review with security focus
copilot-agent review --focus security

# Review current git diff
copilot-agent review diff

# Review a GitHub PR
copilot-agent review pr 42 --agent claude

How it works

  1. Agent abstraction — Unified interface for both Copilot CLI and Claude Code
  2. Session detection — Reads Copilot (~/.copilot/session-state/) and Claude (~/.claude/projects/) session files
  3. Auto-resume — Copilot: --resume --autopilot; Claude: --resume --dangerously-skip-permissions
  4. Task discovery — Detects project type and generates relevant maintenance tasks
  5. Race prevention — File locking + process tracking prevents concurrent agents in the same directory
  6. Worktree isolation — Optional --worktree flag for parallel task execution via git worktree
  7. Config layering — Defaults → ~/.copilot-agent/config.yaml.copilot-agent.yaml → CLI flags

Supported project types

| Type | Detection | Specialized tasks | |------|-----------|-------------------| | KMP | gradle.properties + composeApp/ | Compose optimization, expect/actual, Room migrations | | TypeScript | tsconfig.json | Strict types, any removal | | React | vite.config.ts | Performance, re-renders | | Node | package.json | Error handling | | Python | pyproject.toml | Type hints | | + 7 more | Auto-detected | Common tasks (TODOs, deps, tests, lint, docs, security) |

Requirements

  • Node.js ≥ 18
  • macOS or Linux
  • At least one: GitHub Copilot CLI or Claude Code

License

MIT