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

@knolo/agents

v0.4.0

Published

Knolo Spawn envelopes for parent agents, plus typed graph builders and explicit TypeScript/WASM adapters.

Readme

@knolo/agents

@knolo/agents issues Knolo Spawn envelopes for parent agents, and provides typed graph builders and explicit TypeScript/WASM execution adapters. A spawn does not call a model. The parent runs the brief and closes the receipt.

Install

pnpm add @knolo/agents

@knolo/core ^5.5.0 is an optional peer integration for applications that inject Cortex, ClaimGraph, or Knowledge Image capabilities; this package does not bundle, encode VQF, or implement that storage layer.

Spawn

import { closeSpawn, issueSpawn } from "@knolo/agents";

const issued = await issueSpawn({
  parent: { version: 1, id: "parent", level: "L1" },
  task: {
    objective: "Investigate these transactions for potential fraud.",
    successCriteria: ["identify suspicious transactions"],
    prohibitedActions: ["wire_transfer"],
    budget: { maxSteps: 4 },
  },
  authority: { capabilities: ["ledger.read"], tools: [], namespaces: [], maxSteps: 8, maxCostMicros: 1000 },
  pack: { capabilities: ["ledger.read"], tools: [], namespaces: [], maxSteps: 8, maxCostMicros: 1000 },
});

const receipt = await closeSpawn(issued.envelope, "identify suspicious transactions", { toolCalls: [] });

The issued authority is the intersection of authority and pack. A wider projection throws. See docs/spawn.md.

Usage

Graph builders remain available for a deterministic worker.

import { Agent, defineAgent, entry, node, stateSchema, terminal, transition } from "@knolo/agents";

const state = stateSchema("counter-state", { count: "Number" });
const increment = node("increment", {
  writes: ["count"],
  run: ({ state }) => ({ outcome: { type: "continue", patch: { count: state.count + 1 } } }),
});
const done = terminal("done", {
  run: ({ state }) => ({ outcome: { type: "terminate", result: state.count } }),
});

const definition = defineAgent({
  id: "counter",
  state,
  nodes: [increment, done],
  transitions: [transition("increment", "continue", "done")],
  entry: entry("increment"),
});

const report = await Agent.load({ definition, engine: "typescript" }).run({ count: 0 });
console.log(report.status); // { type: "terminated", result: 1 }

Select engine: "typescript" for the portable deterministic subset. Select engine: "wasm" only when supplying an explicit WasmProtocolAdapter; the package never silently falls back to another engine. Tool calls, retrieval, and durable effects remain host-bound or Rust/WASM integrations.

The package also exports pack references, replay validation, checkpoint/HITL contracts, Cortex and ClaimGraph injection interfaces, multi-agent authority helpers, and an ICP canister client (IcpAgentRuntimeClient + candid-aligned DTOs). The ICP client does not hard-depend on @dfinity/agent; pass an actor built from your dfx declarations for live calls. See examples/icp-agent-canister/ and architecture documentation.

Development

pnpm install --frozen-lockfile
pnpm --filter @knolo/agents check
pnpm --filter @knolo/agents test

Status and license

This is the 0.4.0 release of the TypeScript surface; APIs may evolve before 1.0. The optional @knolo/core peer is ^5.5.0. The package is licensed under Apache License 2.0. See LICENSE.