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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cojacklabs/autoforge

v0.4.1

Published

[![npm version](https://img.shields.io/npm/v/autoforge?color=0f9d58&label=autoforge)](https://www.npmjs.com/package/@cojacklabs/autoforge)

Readme

🧠 AutoForge — Multi-Agent SDLC with Autopilot & Continuous Learning

npm version

AutoForge is a multi-agent orchestration framework that lives as .autoforge/ inside your project. AI agents collaboratively plan, design, code, test, and deploy—while improving autonomously with every project through continuous feedback loops.

What's new in this release:

  • Autopilot orchestration – Agents run 24/7 without manual blocking; choose autonomy level (0=manual → 3=adaptive)
  • 🎓 Continuous learning – Every execution trains models; prompts/recipes improve automatically
  • 🚀 Faster initialization – 2-step setup for new projects; 1-step resume for existing ones
  • 📊 Real-time observability – Track agent performance and system improvements quarterly

Planning artifacts stay inside .autoforge/, while application code and tests write to your project paths. (Legacy installs used autoforge/; the CLI recognises both.)

🧩 Quality policies: docs/QUALITY_POLICIES.md 🔐 Governance & memory: docs/GOVERNANCE_AND_MEMORY.md


Quick Start: New Project (2 Steps)

# Step 1: Install and initialize
npm install --save-dev @cojacklabs/autoforge
npx autoforge init

# Step 2: Load context into your AI
npx autoforge load   # prints the full orchestrator context for a single paste

Done! The framework is ready. The --copy flag outputs a ready-to-paste prompt for your coding AI. Paste it and you're set to start building.


Quick Resume: Existing Project

Already have a .autoforge/ directory?

# Re-apply config if codeTargets changed (safe)
npx autoforge configure

# Reload policies/context into your AI
npx autoforge refresh

# Or use the strict orchestrator context entry again
npx autoforge load

Configure Code & Documentation Paths

Update autoforge.config.json once to tell agents where your code lives:

{
  "codeTargets": {
    "backend": "src/server",
    "frontend": "src/client",
    "tests": "tests"
  },
  "contextTargets": {
    "ideas": "ideas",
    "prd": "docs/prd",
    "blueprints": "docs/blueprint"
  },
  "autopilot": {
    "defaultAutonomyLevel": 1
  }
}

Then regenerate managed files:

npx autoforge configure

See the autonomy levels guide to choose the right level (0=manual, 1=supervised, 2=full, 3=adaptive).


Load Orchestrator Context

After init, run npx autoforge load and copy/paste the printed orchestrator context into your AI IDE (Claude Code, Codex, Gemini). This single paste loads strict policies for single-session multi-agent orchestration, memory enforcement, and hard quality gates. If your tool truncates long messages, paste in multiple chunks.


Documentation Index

  • Quickstart: docs/QUICKSTART.md
  • Prompt Handbook: docs/PROMPT_HANDBOOK.md
  • Autopilot Engine (reference): docs/AUTOFORGE_AUTOPILOT_ENGINE.md
  • Expansion Guide (vision): docs/AUTOFORGE_EXPANSION_QUICK_START.md
  • Quality Policies (TS/ESLint/Prettier/artifacts): docs/QUALITY_POLICIES.md
  • Governance & Memory: docs/GOVERNANCE_AND_MEMORY.md
  • AI Coding Mastermind: docs/AI_CODING_MASTERMIND.md
  • Observability: docs/observability/README.md
  • Performance: docs/perf/README.md
  • UI/UX: docs/uiux/README.md
  • PRD: docs/prd/README.md

Capture the Idea (Optional Manual Step)

AutoForge expects at least one idea file before kickoff.

  • Start a high-reasoning conversation:
    Execute .autoforge/ai/prompts/idea_conversation.yaml
    Help me explore the application vision, platforms, tech stack options, and risks.
    The agent will interview you, propose stacks/integrations, and log the dialogue under ai/logs/ideas/.
  • Copy ideas/IDEA_TEMPLATE.yaml, fill in the project vision, and save (e.g., ideas/IDEA-0001_alpha.yaml). OR
  • Let the assistant interview you with a tight template:
    Execute .autoforge/ai/prompts/discovery_researcher.yaml
    Help me capture the project idea by asking clarifying questions.
    The agent writes the filled template plus notes under ai/logs/research/.

Continue iterating with the assistant until the idea reflects what you want built. When you have clarity, run Execute .autoforge/ai/prompts/idea_intake.yaml to convert the notes into a structured plan for the Assembly Line. Record the most important decisions or clarifications in ai/memory/ so future sessions inherit the same story.


Quality Policies

AutoForge v0.4 enforces strict policies during orchestration: TypeScript typecheck, ESLint (no warnings), Prettier, and artifact (JSON/YAML/MD/OpenAPI) validation. See docs/QUALITY_POLICIES.md for details.


Learning & Evaluation

AutoForge captures telemetry for continuous improvement and supports exportable datasets and golden-task evaluation. See docs/AUTOFORGE_AI_MODEL_TRAINING.md for how the training loop works.


Workspace Boundaries & Approvals

  • Planning/logging: keep your assistant in ./.autoforge so ideas, research, and reports stay contained. (Legacy: ./autoforge)
  • Implementation: agents may only touch the host project through the code targets defined in autoforge.config.json (mirrored to the managed ai/code_targets.yaml). Update the config and rerun npx autoforge configure before coding.
  • Elevated actions (package installs, long-running scripts, migrations) should be called out explicitly so the human reviewer can approve before execution.

Guiding your AI teammate

  • Kick off every session by pointing the agent at the latest ideas/IDEA_*.yaml entry and clarifying the goal in your own words.
  • If the agent drifts or makes wrong assumptions, edit the relevant docs (idea, PRD, tech blueprint) or reply with corrections—AutoForge treats those files as the single source of truth.
  • Remind the agent to log discoveries under ai/logs/** and summaries under ai/reports/** so you can audit each step.
  • Use change requests when the scope shifts; the prompts walk the agent through impact analysis and give you checkpoints to accept or redirect work.
  • Expect the agent to ask before running package installs, migrations, or touching files outside the declared targets—approve or deny explicitly to keep control of your repo.
  • Keep an active memory file under ai/memory/ up to date after each session; direct new assistants to review it before continuing work.
  • Before staging commits or running stateful commands, have the agent review docs/ai/COMMIT_PLAYBOOK.md so history stays clean and reproducible.
  • Confirm semantic version bumps (package.json, etc.) follow the playbook—major for breaking changes, minor for new features, patch for fixes.

Manual Orchestration (If Not Using Autopilot)

If you prefer manual control, paste this into your coding assistant:

Read and follow:
- .autoforge/ai/context.manifest.yaml
- .autoforge/ai/agents.yaml
- .autoforge/ai/prompts/kickoff.yaml

While planning, stay inside ./autoforge for docs/logs.
When writing code/tests, use the paths in autoforge.config.json (mirrored to .autoforge/ai/code_targets.yaml).
Confirm the latest idea in ideas/.
Run the kickoff sequence: Product Manager → UI/UX → Architect → Engineer → QA → Security → Performance → SRE → DevOps → Retrospective.
Log outputs to .autoforge/ai/logs/** and .autoforge/ai/reports/**.

Continue agent-by-agent as needed. See docs/PROMPT_HANDBOOK.md for ready-made prompts.


Prompt Jumpstarts (Copy/Paste Ready)

  • Idea workshop (AI agent interview)
    Execute .autoforge/ai/prompts/idea_conversation.yaml
    Partner with me on the product vision. Ask layered questions about audience,
    platform (web/mobile/desktop/framework), tech stack options, third-party integrations,
    delivery cadence, and risks. Summarize decisions in ideas/ and ai/logs/ideas/.
  • Share the current project context
    Execute .autoforge/ai/prompts/context_snapshot.yaml
    Generate a fresh REPO.md snapshot of the host project with `npx autoforge snapshot`.
    Highlight notable directories, recent changes, and any risks downstream agents should know.
  • Intake a structured change request
    Execute .autoforge/ai/prompts/change_intake.yaml
    I have a change request (feature/bug/migration/knowledge share).
    Interview me, capture acceptance criteria, and create the change_requests/ record and intake log.
  • Route any engagement into the SDLC Assembly Line
    Execute .autoforge/ai/prompts/automation_bootstrap.yaml
    Diagnose whether I need a new build, help on an existing codebase, a migration, or troubleshooting.
    Discover available recipes under docs/blueprint/recipes/*.yaml and propose the best fit.
    STOP for approval, then trigger the right prompts (kickoff, change intake, context snapshot, etc.).

Change Request Workflow

  1. Tell the assistant what needs to change:
    Execute .autoforge/ai/prompts/change_intake.yaml
    I need help with <feature|bug|migration|knowledge share>.
    Ask follow-up questions, create the change request file for me, and log any open issues.
    The agent interviews you, clones CR-0000_example.yaml, and saves a populated record under change_requests/.
  2. Review or edit the generated change request if needed, then commit/push. The GitHub Action validates and posts instructions in the run summary.
  3. In Chat Mode, run the prompts in order:
    • Execute .autoforge/ai/prompts/change_request.yaml
    • (If UX involved) Execute .autoforge/ai/prompts/uiux_designer.yaml
    • Execute .autoforge/ai/prompts/impact_analysis.yaml
    • Follow the chain (Fullstack → QA → Security → Performance → SRE → DevOps → Retrospective)
  4. Record outputs to the paths defined in each prompt (ai/logs/**, ai/reports/**, etc.).

Urgent defect? Run Execute .autoforge/ai/prompts/hotfix.yaml instead. It keeps the scope to a single bug, enforces reproducibility, and still requires you to follow the commit rules in docs/ai/COMMIT_PLAYBOOK.md.


Stage Gate Checklist

Tick these items before shipping a slice:

  • ✔ Idea: .autoforge/ideas/IDEA_*.yaml
  • ✔ UI/UX: .autoforge/docs/uiux/style_guide.md, wireframes.md, user_flows.md, accessibility_guidelines.md, ai/reports/uiux/*.md
  • ✔ Architecture: .autoforge/docs/blueprint/*.md, .autoforge/diagrams/*.mmd, .autoforge/api/openapi.yaml
  • ✔ Engineering outputs: code targets from autoforge.config.json (mirrored to .autoforge/ai/code_targets.yaml) contain new code (../src/backend, ../src/frontend, ../tests by default)
  • ✔ QA: .autoforge/ai/logs/test_runs/latest_report.md, .autoforge/qa/reports/defects.md
  • ✔ Security: .autoforge/security/reports/security_audit.md, .autoforge/security/reports/findings.json
  • ✔ Performance: .autoforge/docs/perf/plan.md, .autoforge/docs/perf/scripts/*, .autoforge/ai/reports/perf/*.md
  • ✔ Observability: .autoforge/docs/observability/dashboards.md, alerts.md, slo.md, .autoforge/ai/reports/observability/*.md
  • ✔ DevOps: .autoforge/devops/runbooks/deploy.md, .autoforge/ai/logs/deployments/*_deploy.md
  • ✔ Retrospective: .autoforge/ai/reports/retrospective_*.md
  • ✔ Versioning: package manifests bumped per docs/ai/COMMIT_PLAYBOOK.md and rationale captured in commits/memory.

Tip: Recipe-driven CI templates live under devops/ci/ (e.g., devops/ci/web_app.yml). Copy and adapt them in your host repo or reference as examples.


CLI Reference

Essential commands:

  • autoforge init [--force] — scaffold .autoforge/ and autoforge.config.json
  • autoforge load — print copy/paste stub, then paste .autoforge/ai/prompts/orchestrator_context.md
  • autoforge snapshot [path] — generate REPO.md for audits/handover
  • autoforge configure — regenerate managed YAML files from config (safe)
  • autoforge refresh — emit a context-reload prompt to re-read policies + latest memory
  • autoforge version — print CLI version

Update AutoForge (Non-Destructive)

# Upgrade the package
npm install --save-dev @cojacklabs/autoforge@latest

# Re-apply managed config (safe)
npx autoforge configure

# Reload policies and the latest memory into your AI
npx autoforge refresh

This flow preserves existing .autoforge/ data (logs, memory, reports) and keeps your policies in your repo. Use autoforge load to re-enter the strict orchestrator context when you start a new session.


Documentation & Resources

| Resource | What it covers | | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | docs/QUICKSTART.md | Fast setup for new and existing projects | | docs/AUTOFORGE_EXPANSION_QUICK_START.md | One-page guide to autopilot & training | | docs/AUTOFORGE_AUTOPILOT_ENGINE.md | Full orchestration spec, autonomy levels, state machine | | docs/AUTOFORGE_AI_MODEL_TRAINING.md | Training data collection, feedback loops, continuous improvement | | docs/AUTOFORGE_EXPANSION_SYNTHESIS.md | How it all fits together + implementation roadmap | | docs/AUTOFORGE_MULTI_PROJECT_GUIDE.md | Multi-project workflows and recipes | | docs/PROMPT_HANDBOOK.md | Ready-made prompts for all agent roles |

“AutoForge lets you build software at the speed of thought — ideas in, deployments out.”


License

Released under the MIT License. © 2025 CoJack Labs.


Contributing

We welcome contributions! Please:

  • Read the Contributing Guide and Code of Conduct
  • Look for issues labeled good first issue or help wanted
  • Follow the commit guidance in docs/ai/COMMIT_PLAYBOOK.md
  • Run local checks before opening a PR:
    • npm run build
    • npx autoforge configure (if config changed)
    • npx autoforge validate

Use Discussions and Issues to coordinate. Assign/mention teammates to draw attention when needed.