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

optimizespec

v0.1.1

Published

CLI and skills for building repo-local agent self-improvement systems.

Readme

OptimizeSpec

OptimizeSpec helps you make an agent better in a measured way, even if you have never built an eval suite or optimization loop before.

You start with a plain-language goal, such as "make support-triage answers more complete." The OptimizeSpec skills guide your coding agent through turning that goal into eval cases, scoring criteria, a runner that calls your real agent, and an optimization loop.

You do not need to know the full system shape before you start. The skills draft the proposal, identify unknowns, ask for confirmation where needed, and then implement the eval runner, scorer, optimizer, adapter, and evidence ledger once the plan is clear.

What You Get

  • A structured workflow for turning an improvement idea into evals, scoring, and optimization code.
  • Production-equivalent evals against your real agent runtime, tools, skills, MCP servers, environment, and permissions.
  • Traceable optimization results with candidate IDs, per-case rollouts, scores, feedback, and a selected best candidate.

Quick Start

  1. Install the CLI:
bun install -g optimizespec
  1. Then install the skills:
npx skills add terminaluse/optimizespec --skill '*'
  1. Initialize the project metadata once:
optimizespec init

Now create or update your optimization system with the skills:

/optimizespec-new
Create an optimization system to improve the agent in this folder

Continue until all the spec artifacts are generated:

/optimizespec-continue

Implement the spec:

/optimizespec-apply improve-agent-output

The apply skill runs verification as part of implementation. If you correct the implementation afterward, run the verify skill again:

/optimizespec-verify improve-agent-output

How OptimizeSpec Works

OptimizeSpec skills include contracts for building optimization systems for agents. Your coding agent uses those contracts to implement the runner, scorer, optimizer, adapter, evidence ledger, candidate registry, and verification flow for your agent.

The core contracts are runtime-neutral. The skills include a reference system for Python Claude Managed Agents, and contributions for other hosted agent runtimes and languages are welcome.

How the Self-Improvement Works

The generated self-improvement system uses GEPA's Optimize Anything API as the optimization engine. OptimizeSpec defines the eval runner, scorer, candidate surface, ASI feedback, and evidence ledger; GEPA uses those pieces to evaluate candidates, reflect on live failures, propose mutations, and select better candidates.

GEPA is a reflective evolutionary optimizer: it improves text-representable candidates by combining scores, traces, feedback, and Pareto-efficient search. Read How GEPA Works for the underlying optimization loop.

What Spec Artifacts Get Created

OptimizeSpec keeps planning artifacts in one root folder:

optimizespec/changes/<change-name>/
  proposal.md
  design.md
  specs/
  tasks.md

The proposal records where the durable optimization-system code will live:

## Optimization System Location

- Decision: create new folder|use existing folder
- Path: <repo-relative path>
- Import/runtime access plan: <how generated code imports or invokes the real agent modules>

$optimizespec-apply <change-name> writes runner, scorer, optimizer, adapter, and evidence code to that recorded path.

[!NOTE] Choose the path based on your repo's structure. The optimization system should live where it can import or invoke the real agent, tools, skills, MCP servers, environment configuration, and permissions through a narrow adapter, so optimization runs evaluate the same integrations your production agent uses.

What a Run Produces

An optimizer run outputs:

  • optimizer-summary.json records the selected candidate, score summary, per-case live scores, budgets, and artifact paths.
  • candidates.json records every candidate with stable candidate IDs so scores can be traced back to prompts or other candidate surfaces.
  • rollout.json, score.json, and side_info.json capture per-case execution evidence, grader output, feedback, errors, and ASI inputs.

Learn More

Acknowledgements

OptimizeSpec is only possible due to all the great work Lakshya has done on GEPA.

OptimizeSpec's spec-driven development approach is strongly inspired by OpenSpec. We highly recommend it; this repo was built using OpenSpec.

License

MIT