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

@aerem/ai-harness

v0.1.2

Published

Claude Code extension for autonomous feature delivery — CLI + slash-command plugins that scaffold .aerem/ state, drive a 13-phase pipeline, introspect brownfield repos, and orchestrate polyrepo workspaces.

Downloads

409

Readme

@aerem/ai-harness

Claude Code extension for autonomous feature delivery — a CLI plus a pair of slash-command plugins that scaffold project state, drive a 13-phase feature pipeline, introspect brownfield repos, and orchestrate polyrepo workspaces.

Install

# 1. Install the CLI globally
npm install -g @aerem/ai-harness
# or:  pnpm add -g @aerem/ai-harness
# or:  yarn global add @aerem/ai-harness

# 2. Register the Claude Code slash commands (one-time, per machine)
aerem-ai-harness setup

After step 2, /harness:* and /aerem:* slash commands resolve in any Claude Code session.

Quick start

# Scaffold the harness into a project
cd my-project
aerem-ai-harness init                # auto-detects greenfield vs brownfield
                                      # — brownfield: also runs deep introspection
                                      #   + emits .aerem/repo-map.json + .aerem/next-steps.md
aerem-ai-harness init --no-deep       # brownfield: shallow only (just scaffold + MIGRATION-MAP)

# Verify
aerem-ai-harness doctor

# Start a feature (creates a campaign in .aerem/campaigns/<ulid>/state.json)
aerem-ai-harness feature "add user impersonation"

# Move it through the 13-phase pipeline
aerem-ai-harness advance             # research → tb
aerem-ai-harness advance             # tb → design
aerem-ai-harness decision R1 approved "TB + Design coherent; ADR captures the choice."
aerem-ai-harness advance             # ...etc through compound

# Operate across many projects in a polyrepo container
cd ~/Code/sunstore                   # parent of multiple harness-initialized children
aerem-ai-harness workspace doctor
aerem-ai-harness workspace cost --parallel 3

Inside Claude Code, the same flows are available as slash commands:

/harness:init [--no-deep]
/harness:doctor
/harness:feature "<intent>"
/harness:advance
/harness:decision <gate> <outcome> "<rationale>"
/harness:pause
/harness:resume
/harness:checkpoint
/harness:cost
/harness:workspace <subcommand> [args...]
/aerem:knowledge-author --section=<name>  | --all
/aerem:spec-author --discipline=tb | design | fe | be | qa
/aerem:adr-author --stage=draft | final
/aerem:architecture-doc-updater --module=<name>
/aerem:vendor-doc-author --vendor=<name>
/aerem:learnings-backfill
/aerem:backfill-orchestrator

What gets scaffolded by init

<your-project>/
├── .aerem/
│   ├── memory/constitution.md       (R-rules + machine checks)
│   ├── ratchets.json                (R-rule baselines)
│   ├── state.json                   (master pointer to active campaign; gitignored)
│   ├── repo-map.md                  (shallow structural index)
│   ├── repo-map.json                (brownfield default — omit with --no-deep)
│   ├── next-steps.md                (brownfield default — omit with --no-deep)
│   ├── specs/                       (per-feature spec directories)
│   ├── campaigns/<ulid>/            (per-feature state + checkpoint + progress)
│   ├── cards/reject-log.jsonl       (R1/R2/R3 reject audit log)
│   └── backups/                     (artifact backups; gitignored)
├── .claude/
│   ├── settings.json                (hooks block, relative paths)
│   └── hooks/                       (3 lifecycle hooks as CJS bundles)
├── docs/{adrs,architecture,references,solutions}/INDEX.md
├── AGENTS.md
├── CLAUDE.md                        (one-line @AGENTS.md redirect)
├── harness.config.yml               (cost caps, parallelism, review gate weights)
└── harness.lock.yml                 (installed version + detected stack)

Plus, for brownfield repos, a MIGRATION-MAP.md listing detected AI artifacts that were backed up.

The 13-phase pipeline

research → tb → design → fe → be → spec-pair → qa
        → tasks → impl → verify → arch-update → pr → compound

State machine is forward-only — phases cannot be skipped or rewound. Each campaign records phase timestamps, gate decisions, and accumulated token cost atomically. Crash-safe writes use the tmp + fsync + rename pattern.

Three review gates fire at fixed points:

  • R1 (heavy, after design) — forced-rationale review of TB + Design + ADR
  • R2 (light, after qa) — default-approve if specs are green
  • R3 (adaptive, after verify) — diff-sized review of impl + arch update

Programmatic API

import { RepoMapSchema, HARNESS_VERSION } from "@aerem/ai-harness";

const data = JSON.parse(readFileSync(".aerem/repo-map.json", "utf-8"));
const repoMap = RepoMapSchema.parse(data);   // Zod-validated

Requirements

License

UNLICENSED (proprietary — Aerem internal). Contact for licensing.

Links

  • Issues: https://github.com/aerem/aerem-ai-harness/issues
  • Source: https://github.com/aerem/aerem-ai-harness