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

forgeai-agentic-init

v1.4.1

Published

AI project initialization kit for agentic coding workflows.

Readme

ForgeAI Agentic Init

A minimal CLI for installing a markdown-based project harness for AI coding agents.

The goal is simple: every new project should start with the same AI-readable context layer: project context, rules, taste, memory, agents, workflows, skills, and OpenSpec-style change templates.

Required Runtime

ForgeAI installs markdown instructions and small helper scripts. It does not install or authenticate AI providers for you. To run the full workflow, the host environment should provide these tools:

| Capability | Required for full workflow | CLI/plugin expected | | --- | --- | --- | | Orchestration | The current model handles task intake, decomposition, scoring, final synthesis, and any work that cannot be delegated | Any AI coding tool that can read the harness: Claude Code, Codex CLI, AGY CLI, Cline, RooCode, Aider, local models, or custom agents | | Reviewer | Reviews delegated results before final delivery | Configured reviewer model/agent, Claude Code reviewer skill from .claude/skills/reviewer/SKILL.md, or the current model applying .ai/skills/code-review/SKILL.md | | Cheap/fast delegation | AGY handles score 0-2 tasks | agy CLI | | Standard/strong delegation | Codex handles score 3-8 tasks by default, but tiers are configurable | codex CLI or any configured adapter | | Token-output compression | RTK filters noisy shell output before it reaches the model context | rtk CLI and tool hook/plugin | | Project initialization | Runs this installer and tests | Node.js >=18.18.0 |

If a model CLI is missing, unavailable, out of quota, or fails, the router returns current_model_executes_locally; the orchestrator/current model must complete that bounded assignment locally instead of blocking the task.

RTK is recommended, not mandatory. When installed, agents should prefer rtk wrappers for high-output shell commands such as git diff, git status, rg/grep, cat/file reads, and test runners. If rtk is not installed, agents fall back to the original command.

Install in a new project

Use the latest published CLI directly with npm:

npx forgeai-agentic-init@latest

Preview without writing files:

npx forgeai-agentic-init@latest --dry-run

Install with automatic stack detection:

npx forgeai-agentic-init@latest --profile auto

Pin a version only when you need a reproducible setup:

npx [email protected]

1.4.1 adds optional stack profiles (nextjs, node-api, tauri, monorepo, python-api, and mobile), --profile auto, .ai/manifest.json, --check-profile, and --list-profiles. npm package versions are immutable, so publish this only if [email protected] has not already been published.

Common commands

npx forgeai-agentic-init@latest --check
npx forgeai-agentic-init@latest --check-updates --check
npx forgeai-agentic-init@latest --upgrade
npx forgeai-agentic-init@latest --list-profiles

Version preflight

ForgeAI records the installed harness package version in .ai/manifest.json. On interactive runs, the CLI checks npm for the latest forgeai-agentic-init version before initialization/check commands. If a newer package exists, it prompts:

1. Skip for now
2. Update the ForgeAI harness to latest

For non-interactive agent sessions or CI, run the check explicitly:

npx forgeai-agentic-init@latest --check-updates --check

Use --skip-update-check when offline or when a workflow must avoid network access.

When the human chooses to update, run:

npx forgeai-agentic-init@latest --upgrade

--upgrade overwrites the installed ForgeAI harness files with the selected package version and preserves the profile recorded in .ai/manifest.json.

Optional stack profiles

The base harness works for any project. Profiles add stack-specific guidance without replacing the shared .ai/ workflow:

npx forgeai-agentic-init@latest --profile nextjs

Use --profile auto to detect a supported stack from project files such as package.json, next.config.*, pnpm-workspace.yaml, src-tauri/, pyproject.toml, or mobile framework files. Supported profiles are nextjs, node-api, tauri, monorepo, python-api, and mobile; run npx forgeai-agentic-init@latest --list-profiles for the current list. After initialization, .ai/manifest.json records the package version and selected profile.

Check the installed profile:

forgeai-init --check-profile

Optional RTK Setup

RTK can be initialized for the tools you use:

rtk init -g
rtk init -g --codex
rtk init -g --agy

After setup, restart the AI tool and run a simple command such as rtk git status or rtk gain. The ForgeAI workflow treats RTK as a token-saving layer only; it is not part of model routing.

What gets installed

CLAUDE.md
AGENTS.md
.ai/
  manifest.json
  README.md
  BOOTSTRAP.md
  PROJECT.md
  RULES.md
  TASTE.md
  MEMORY.md
  AGENT_REGISTRY.md
  MODEL_ROUTING.md
  model-routing.yaml
  cli-adapters.json
  router/run-model.ts
  WORKFLOW.md
  state/CURRENT.md
  state/assignments/TASK-CODEX-TEST.md
  state/assignments/TASK-REVIEWER-SMOKE.md
  workflows/task-intake.md
  workflows/delegated-assignment.md
  profiles/<profile>.md
  workflows/<profile-specific-workflow>.md
  agents/
    orchestrator.md
    planner.md
    architect.md
    frontend.md
    backend.md
    tester.md
    reviewer.md
    pr-writer.md
  skills/
    frontend-implementation/SKILL.md
    backend-implementation/SKILL.md
    code-review/SKILL.md
    spec-planning/SKILL.md
    testing/SKILL.md
    <profile-specific-skill>/SKILL.md
.claude/
  skills/
    frontend/SKILL.md
    backend/SKILL.md
    testing/SKILL.md
    reviewer/SKILL.md
openspec/
  README.md
  project.md
  changes/_template/
    proposal.md
    design.md
    tasks.md
    specs/capability.md

profiles/<profile>.md, profile-specific skills, and profile-specific workflows are installed only when --profile <name> or a successful --profile auto is used. Profile-specific skills are additive guidance on top of the shared skills unless a profile explicitly says it replaces one.

After Initialization

Once the files are installed, populate the project-specific context before relying on an agent for real tasks:

  1. Open the project in your AI coding tool (Claude Code, Codex CLI, AGY CLI, Cline, RooCode, Aider, ...).

  2. Ask it to bootstrap the harness from the real repository, for example:

    Read the ForgeAI harness and populate PROJECT.md, MEMORY.md, and AGENT_REGISTRY.md from the current repository. Do not modify source code.

  3. The agent should follow .ai/BOOTSTRAP.md, which explains what to read, what to populate, what must not change, how to discover repo context (package.json, lockfiles, config files), and how to handle unknown information (leave TODO, never guess).

  4. Check the installed harness:

    forgeai-init --check
    forgeai-init --check-git

    If no extra model CLIs are available, the checker reports single-agent mode: the current model must orchestrate, implement, review, and validate locally. If multiple model CLIs are available, it reports multi-agent mode: the human can choose which available model acts as orchestrator.

    The git checker reports repository provider, remote, base branch, current branch, semantic branch naming, dirty worktree state, local merge-conflict risk, hook detection, and provider PR/MR tooling. If no GitHub, GitLab, Bitbucket, or other remote is connected, it recommends local-only work: create a semantic branch such as feat/<short-slug> or fix/<short-slug>, validate locally, and do not push or create a PR/MR until a remote is configured.

  5. Verify optional integrations:

    claude --version
    codex --version
    agy --version
    rtk --version

    Missing commands do not make the harness unusable, but they change delegation behavior. Missing model CLIs fall back to the current model; missing RTK falls back to normal shell commands.

How each tool finds the harness

  • Claude Code auto-reads CLAUDE.md at the project root. It points the agent at .ai/README.md and the recommended read order.
  • Codex auto-reads AGENTS.md at the project root, following the same pointer pattern. ForgeAI's own agent-role registry lives separately at .ai/AGENT_REGISTRY.md to avoid colliding with this convention.
  • AGY CLI, Cline, RooCode, Aider (and other tools) do not auto-load either file today — tell the agent to read .ai/README.md first, as shown in step 2 above.

Working across multiple agents

Because all context lives in plain markdown under .ai/ (plus .claude/ for Claude-native skill wrappers), the same project can be worked on by different tools without duplicating instructions:

  • .ai/PROJECT.md, .ai/RULES.md, .ai/TASTE.md, .ai/MEMORY.md, .ai/WORKFLOW.md — shared context and rules for any agent.
  • .ai/AGENT_REGISTRY.md + .ai/agents/*.md — shared agent-role definitions and model routing.
  • .ai/skills/* — shared, model-agnostic task guidance.
  • .claude/skills/* — Claude Code-specific skill entry points that point back to .ai/skills/* for the full content.

Design principles

  • Keep the first version small and usable.
  • Use markdown as the source of truth before adding databases or complex orchestration.
  • Make the harness model-agnostic: Claude, Codex, Cursor, local models, or custom agents can all read the same files.
  • Prefer explicit task intake, spec, implementation, validation, and human review.

Model routing

ForgeAI uses the current model as the orchestrator by default unless the human explicitly chooses another model. Claude Code, Codex, AGY, Cline, RooCode, Aider, local models, or custom agents can all act as orchestrator when they can read the harness. For each subtask, the orchestrator scores complexity, risk, ambiguity, and required context, then routes by .ai/model-routing.yaml. Defaults route scores 0-2 to AGY, scores 3-5 to Codex, scores 6-8 to the configured strong tier, and scores 9-10 stay with the current orchestrator. If the selected CLI is not installed, the current model executes the bounded assignment locally instead of blocking on the router.

After delegated work finishes, the configured reviewer checks the result. In Claude Code this can be the Claude reviewer sub-agent; in other tools it can be the current model applying .ai/agents/reviewer.md and .ai/skills/code-review/SKILL.md. If the review fails, the findings go back to the implementing model once; if that still fails or the model is unavailable, the current model fixes locally or escalates the remaining decision.

Configure provider/model names and token budgets after initialization:

.ai/model-routing.yaml

Configure local CLI commands separately:

.ai/cli-adapters.json

When delegation is available through local CLIs, invoke a tier with:

npx tsx .ai/router/run-model.ts --tier standard --assignment .ai/state/assignments/TASK-01.md

The full scoring, handoff, fallback, and review protocol is documented in .ai/MODEL_ROUTING.md. ForgeAI does not store provider credentials or install model integrations; the host tool must expose models through a CLI, API, MCP, or sub-agent capability.

Smoke Tests

After initialization, run these checks in a real AI tool environment:

npx tsx .ai/router/run-model.ts --tier standard --assignment .ai/state/assignments/TASK-CODEX-TEST.md

Ask your configured reviewer to review the smoke assignment. In Claude Code, ask:

Use the reviewer sub-agent/skill to review .ai/state/assignments/TASK-REVIEWER-SMOKE.md

The reviewer smoke test should return Request changes because the simulated delegated result is intentionally missing validation evidence.