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

@kopamed/mlspec

v2.1.0

Published

An evidence-driven ML experimentation framework for AI agents

Downloads

666

Readme

MLSpec

An evidence-driven ML experimentation framework for AI agents.

MLSpec was inspired by OpenSpec's spec-driven workflow, but is a separate tool focused on ML experimentation.

Workflow:
  explore → propose → run → resolve → next

MLSpec gives AI agents a structured methodology for running ML experiments. Instead of ad-hoc trial-and-error, MLSpec guides agents through a disciplined experiment lifecycle with hypothesis validation, evidence collection, and systematic decision-making.

Installation

Requires Node.js 20.19.0 or higher.

# Install MLSpec globally
npm install -g @kopamed/mlspec@latest

# Or use it without installing (npx)
npx @kopamed/mlspec@latest --help

Quick Start

# Navigate to your ML project
cd your-ml-project

# Initialize MLSpec workspace with AI tool integration
mlspec init --tools opencode    # for OpenCode
mlspec init --tools claude      # for Claude Code
mlspec init --tools cursor      # for Cursor

# Interactive mode (auto-detects tools)
mlspec init

AI Agent Commands

After initialization, your AI agent can use these slash commands:

| Command | Description | |---------|-------------| | /mlspec-explore | Explore ML experiment ideas and workspace | | /mlspec-propose | Create experiment from idea | | /mlspec-run | Run or record evidence for a stage | | /mlspec-resolve | Resolve experiment (accept/reject/retry/hold/inconclusive) | | /mlspec-next | Read-only router for next action |

CLI Commands

mlspec init                          # Initialize workspace
mlspec update                       # Refresh skills for tools

# Recipe commands
mlspec new recipe <id> [--tag]      # Create baseline recipe
mlspec tag recipe <id> <tag>        # Add tag
mlspec untag recipe <id> <tag>       # Remove tag
mlspec list recipes [--tag]         # List recipes
mlspec show recipe <id>             # Show recipe details
mlspec diff <recipe-a> <recipe-b>   # Compare recipes

# Experiment commands
mlspec new experiment <id> --from <base> --proposes <proposed>  # Create experiment
mlspec set-status <exp> <status>   # Set status (draft/running/resolved)

# Evidence commands
mlspec add-evidence <exp> --stage <stage>   # Add evidence (smoke/validation/final)
mlspec show evidence <exp>             # Show evidence summary

# Resolution commands
mlspec accept <exp> --as <recipe> [--tag]   # Accept, create recipe
mlspec reject <exp> --reason <reason>       # Reject
mlspec retry <exp> --plan <plan>            # Retry with modifications
mlspec hold <exp> --reason <reason>         # Hold for later
mlspec inconclusive <exp> --reason <reason>  # Inconclusive

# Graph commands
mlspec graph [--format text|mermaid|dot]   # Show recipe-experiment graph
mlspec lineage <recipe-id>                  # Show recipe ancestry
mlspec next                                 # Read-only router

# Status and validation
mlspec status                               # Show workspace status
mlspec validate                             # Validate workspace

Workflow

1. Explore
   /mlspec-explore
   → Understand workspace, identify opportunities

2. Propose
   /mlspec-propose <id> --from <base> --proposes <proposed>
   → Define hypothesis, controlled variables, success criteria

3. Run
   /mlspec-run <experiment> <stage>
   → Record evidence at smoke/validation/final stages

4. Resolve
   /mlspec-resolve <experiment>
   → Accept/reject/retry/hold based on evidence

5. Next
   /mlspec-next
   → Get recommended next action

Evidence Stages

| Stage | Purpose | |-------|---------| | smoke | Cheap signal check — does it run? Is there signal? | | validation | Trusted local evaluation — does it beat base? | | final | External/production result |

Workspace Structure

mlspec/
├── recipes/              # Recipe graph (replaces baselines/candidates)
│   └── <recipe-id>/
│       ├── recipe.yaml
│       └── summary.md
├── experiments/         # Active experiments
│   └── <experiment>/
│       ├── experiment.yaml
│       ├── hypothesis.md
│       ├── evidence/
│       │   ├── smoke.md
│       │   ├── validation.md
│       │   └── final.md
│       └── resolution.md
└── findings/           # Key learnings

Requirements

  • Node.js 20.19.0+
  • AI coding tool (Claude Code, OpenCode, Cursor, Windsurf, etc.)

License

MIT License - Copyright (c) 2024 Kopamed

Links