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

@elvatis_com/aahp-runner

v0.2.3

Published

Autonomous agent runner for AAHP v3 projects - spawns Claude agents to work through tasks across all repos

Downloads

441

Readme

aahp-runner

Autonomous agent runner for AAHP v3 projects. Spawns Claude/Copilot agents to work through tasks across all your repos - unattended or on-demand. Includes AI-driven planning, overnight loops, and follow-up chaining.


The AAHP Toolchain

Install both packages for the full experience.

| Package | What it does | When to use | |---------|-------------|-------------| | aahp-orchestrator | VS Code extension. Injects AAHP context into Copilot/Claude Code while you code. Live status bar, @aahp chat, sidebar dashboard. | Every coding session - your human-in-the-loop assistant. | | aahp-runner ← you are here | Autonomous CLI. Spawns agents that plan tasks, implement them, run tests, and commit - no human input needed. Schedulable. | Overnight / CI - your unattended worker. |

Together they cover the full AAHP loop: you guide during the day → the runner plans and implements at night → you wake up to committed progress.


How it works

  1. Scans a root development folder for all repos with .ai/handoff/MANIFEST.json
  2. Syncs GitHub issues ↔ MANIFEST, imports NEXT_ACTIONS.md tasks, creates missing GitHub issues
  3. For each project with ready or in_progress tasks, spawns an agent using the configured backend
  4. The agent reads the full AAHP context (phase, task, conventions) and uses tools to:
    • Read/write files, run builds and tests, commit changes
    • Update MANIFEST.json (marks task done, updates quick_context)
    • Close the linked GitHub issue
    • Regenerate NEXT_ACTIONS.md with current task state
  5. Logs are written to each repo's .ai/logs/YYYY-MM-DD.log (auto-gitignored)
  6. Can run on a daily schedule via cron (Linux/macOS) or Windows Task Scheduler

Agent backends

| Backend | Description | Requirements | |---------|-------------|-------------| | auto (default) | Auto-detects: tries claude, then copilot, then sdk | Claude Code or Copilot extension | | claude | Claude Code VS Code extension | Claude Code extension installed | | copilot | GitHub Copilot via gh CLI | gh auth login | | sdk | Anthropic API directly | ANTHROPIC_API_KEY env var |


Setup

npm install -g @elvatis_com/aahp-runner

# 1. Bootstrap AAHP handoff files in each repo you want to manage
cd my-project
aahp init

# 2. Configure the runner (API key only needed for --backend sdk)
aahp config --root "E:\_Development"

# For SDK backend (direct Anthropic API)
aahp config --api-key "sk-ant-..."

# Or use env vars
export AAHP_ROOT="E:\_Development"
export ANTHROPIC_API_KEY="sk-ant-..."   # only needed for --backend sdk

Commands

aahp init — bootstrap a new project

Creates the full .ai/handoff/ directory structure from official AAHP v3 templates. Run this once in any repo you want to manage with aahp-runner.

aahp init                    # bootstrap in current directory
aahp init ./my-project       # bootstrap in a specific directory
aahp init --force            # overwrite any existing handoff files

What it creates:

.ai/handoff/
  MANIFEST.json      task registry + session metadata (AAHP v3 schema)
  STATUS.md          current system state template
  NEXT_ACTIONS.md    task queue template (edit to add your first tasks)
  LOG.md             agent journal (append-only)
  LOG-ARCHIVE.md     overflow archive for LOG.md rotation
  DASHBOARD.md       build health + pipeline state dashboard
  CONVENTIONS.md     agent coding conventions (edit for your stack)
  TRUST.md           verification confidence register
  WORKFLOW.md        multi-agent pipeline definition
  .aiignore          safety firewall (blocks secrets/PII from handoff files)

Also appends .ai/logs/ to .gitignore (agent run logs should not be committed).

Project name is auto-detected from package.json (name field, scope stripped), falling back to the directory name.

After aahp init:

  1. Edit NEXT_ACTIONS.md - add your first tasks in T-001, T-002... format
  2. Edit CONVENTIONS.md - configure for your stack (remove TypeScript hints if Python, etc.)
  3. Run aahp list to verify the project is detected
  4. Run aahp run to launch an agent on your first task

aahp list — inspect task state

aahp list                   # repos with actionable tasks
aahp list --all             # include idle repos (no tasks)

aahp status — live overview

aahp status                 # snapshot of live agents + project table
aahp status --watch         # auto-refresh every 3s (Ctrl+C to stop)

aahp run — execute agents

# Run agent on a specific project (interactive confirm)
aahp run openclaw-ops

# Run all projects with ready tasks (parallel, live status board)
aahp run --all --yes

# Cap at 3 concurrent agents
aahp run --all --yes --limit 3

# Explicit backend or timeout
aahp run --all --yes --backend claude --timeout 20

# Follow-up mode: after completing tasks, auto-plan idle repos and
# re-run new tasks. Chains until no more tasks or plans are generated.
aahp run --all --yes --follow-up
aahp run --all --yes --follow-up --limit 3

aahp plan — AI-driven roadmap generation

Analyzes idle repos (no ready tasks) and instructs an agent to write 3-5 new tasks to .ai/handoff/NEXT_ACTIONS.md. After planning, the scanner pipeline automatically syncs new tasks → MANIFEST → GitHub issues.

aahp plan                   # plan first idle repo (asks for confirm)
aahp plan --all --yes       # plan ALL idle repos without prompts
aahp plan openclaw-ops      # plan a specific repo
aahp plan --all --local     # include repos with no GitHub remote
aahp plan --backend claude --timeout 8

The planning agent reads README.md, package.json, and recently completed tasks. It writes NEXT_ACTIONS.md and does not commit.

aahp overnight — fully autonomous loop

Full plan → run → commit/push cycle that repeats until --hours expires. Logs are written to rootDir/.ai/logs/overnight-YYYY-MM-DD.log.

aahp overnight --yes                    # 8h run, limit 5 agents
aahp overnight --yes --hours 0          # run forever (Ctrl+C to stop)
aahp overnight --yes --hours 4 --limit 3
aahp overnight --yes --pause 10         # 10min pause between cycles
aahp overnight --yes --local            # include local-only repos
aahp overnight --yes --backend copilot

Each cycle:

  1. Plan — runs planning agent on any idle repos
  2. Run — spawns agents on all actionable tasks (with live status board)
  3. Commit — commits and pushes all dirty repos

PowerShell wrapper (aahp-overnight.ps1) also available for Task Scheduler.

aahp logs — inspect agent output

Logs are written to each repo's .ai/logs/YYYY-MM-DD.log. The command scans all repos in --root for per-repo logs, with fallback to ~/.aahp/logs/.

aahp logs                          # list all log files with relative paths
aahp logs openclaw-ops             # show last 40 lines
aahp logs openclaw-ops -f          # stream in real-time (like tail -f)
aahp logs openclaw-ops -n 100      # show last 100 lines

aahp metrics — run history

aahp metrics                       # last 30 days, all repos
aahp metrics --repo openclaw-ops --days 7
aahp metrics --json                # raw JSON export

aahp config — persistent settings

aahp config                        # show current config
aahp config --root "E:\_Development"
aahp config --backend claude
aahp config --timeout 20           # default per-agent timeout (minutes)
aahp config --api-key "sk-ant-..."
aahp config --alert-webhook "https://example.com/hook"
aahp config --alert-slack "https://hooks.slack.com/..."
aahp config --alert-clear

aahp schedule — nightly cron

aahp schedule --time 02:00         # register daily job at 02:00
aahp schedule --remove             # remove the job
  • Linux/macOS: installs a cron entry (marker: # AAHP-Runner-Daily)
  • Windows: creates a Task Scheduler job (AAHP-Runner-Daily)

Running aahp with no arguments launches a guided setup wizard.


Autonomy modes

| Mode | Command | Behaviour | |------|---------|-----------| | Single pass | aahp run --all --yes | Run current ready tasks, then stop | | Self-chaining | aahp run --all --yes --follow-up | Run → plan idle repos → run new tasks → repeat until done | | Overnight loop | aahp overnight --yes | Plan + run + commit cycle, repeats for 8h | | Forever daemon | aahp overnight --yes --hours 0 | Same loop, never stops (Ctrl+C) | | Scheduled | aahp schedule --time 02:00 | OS-level daily trigger of aahp run --all --yes |


Log layout

repoPath/
  .ai/
    handoff/
      MANIFEST.json          task registry + session metadata
      NEXT_ACTIONS.md        human-readable task roadmap
      CONVENTIONS.md         code style rules for agents
    logs/                    agent run logs (auto-added to .gitignore)
      2026-03-02.log
      plan-2026-03-02.log    planning agent log

rootDir/
  .ai/
    logs/
      overnight-2026-03-02.log   overnight loop log

~/.aahp/
  logs/                      fallback (legacy) log location
  metrics.jsonl              run metrics (all repos, all time)
  sessions.json              live session state (used by VS Code extension)

What the agent does per task

  1. Reads relevant source files to understand the codebase
  2. Implements the task (writes/edits files)
  3. Runs tests/builds to verify
  4. Commits with a conventional commit message
  5. Updates .ai/handoff/MANIFEST.json - marks task done, updates timestamp
  6. Closes the linked GitHub issue
  7. Regenerates NEXT_ACTIONS.md with current task state

Requirements

  • Node.js >= 20
  • Repos bootstrapped with aahp init (creates .ai/handoff/MANIFEST.json per AAHP v3 spec)
  • One of: Claude Code extension, GitHub Copilot (gh auth login), or Anthropic API key (--backend sdk)
  • gh CLI for GitHub issue sync (gh auth login)

License

MIT © elvatis