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

@reactive-agents/reactive-intelligence

v0.9.0

Published

Reactive Intelligence layer for Reactive Agents — entropy sensing, adaptive control, and learning

Readme

@reactive-agents/reactive-intelligence

Reactive intelligence layer for the Reactive Agents framework.

Real-time entropy sensing, adaptive control, and local learning that monitors agent reasoning quality and intervenes automatically — triggering early stops, context compression, or strategy switches when the agent is struggling.

Installation

bun add @reactive-agents/reactive-intelligence

Or install everything at once:

bun add reactive-agents

Usage

import { ReactiveAgents } from "reactive-agents";

const agent = await ReactiveAgents.create()
  .withName("smart-agent")
  .withProvider("anthropic")
  .withReasoning()
  .withReactiveIntelligence()
  .build();

const result = await agent.run("Analyze market trends for Q1 2026");

Direct Service Usage

import {
  EntropySensorServiceLive,
  ReactiveControllerServiceLive,
  LearningEngineServiceLive,
  createReactiveIntelligenceLayer,
} from "@reactive-agents/reactive-intelligence";

Architecture

Entropy Sensor

Scores reasoning quality each iteration using 5 entropy sources:

| Source | What It Measures | | --- | --- | | Token entropy | LLM confidence from logprobs | | Structural entropy | Format compliance, hedge words, thought density | | Semantic entropy | Task alignment, novelty, repetition | | Behavioral entropy | Tool reuse, action diversity, loop detection | | Context pressure | Context window utilization and overflow risk |

Reactive Controller

Consumes entropy scores and makes real-time decisions:

  • Early stop — halt when entropy is consistently low (agent is confident)
  • Context compression — trigger compaction when context pressure is high
  • Strategy switch — switch reasoning strategy when the current one is looping

Learning Engine

Improves agent performance over time without additional prompting:

  • Conformal calibration — adjusts entropy thresholds to the specific model
  • Thompson Sampling bandit — learns which strategies work best per task category
  • Skill synthesis — extracts reusable skill fragments from successful runs

Telemetry Client

Opt-in telemetry that reports anonymized run metrics (HMAC-signed, fire-and-forget) to improve the framework.

Key Features

  • 5-source entropy scoring — composite signal with adaptive weights per model
  • Trajectory analysis — classifies entropy trends as converging, flat, diverging, oscillating, or v-recovery
  • Model registry — pre-calibrated baselines for common models (Claude, GPT-4, Gemini, Ollama)
  • EventBus-driven — entropy scores publish as events, no polling required
  • Zero config.withReactiveIntelligence() enables everything with sensible defaults

Documentation

Full documentation at docs.reactiveagents.dev

License

MIT