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

@agentskit/os-headless

v0.1.0-alpha.0

Published

AgentsKitOS headless runner — first-class bridge between a workspace config and a running agent without any UI.

Downloads

29

Readme

@agentskit/os-headless

Distribution tier: public | Stability: alpha (pre-1.0, API may change)

First-class headless agent runner for AgentsKitOS. Bridge a workspace config and injected adapters to a running agent — no UI required.

Installation

pnpm add @agentskit/os-headless

Quickstart

import { createHeadlessRunner } from '@agentskit/os-headless'
import type { FlowConfig, WorkspaceConfig } from '@agentskit/os-core'

const workspace: WorkspaceConfig = { schemaVersion: 1, id: 'my-ws', name: 'My Workspace', isolation: 'strict', tags: [] }

const myFlow: FlowConfig = {
  id: 'greet',
  name: 'Greet',
  entry: 'step-1',
  nodes: [{ id: 'step-1', kind: 'tool', tool: 'greet' }],
  edges: [],
}

const runner = createHeadlessRunner({
  config: workspace,
  flows: new Map([['greet', myFlow]]),
  adapters: {
    // inject your LLM / tool adapters here
  },
})

const result = await runner.runFlow('greet', { mode: 'dry_run' })
console.log(result.status) // 'skipped' (dry_run stubs all nodes)

await runner.dispose()

API

createHeadlessRunner(opts): HeadlessRunner

Creates a headless runner. Options:

| Field | Type | Required | Description | |---|---|---|---| | config | WorkspaceConfig | Yes | Workspace id and limits. | | flows | Map<string, FlowConfig> \| Record<string, FlowConfig> | No | Flow registry. Required if you call runFlow(flowId: string). | | adapters | AdapterRegistry | Yes | LLM, tool, human, memory adapters from @agentskit/os-runtime. | | lookupAgent | AgentLookup | No | Resolves agent id → AgentConfig. Required for agent nodes in real mode. | | sandbox | SandboxRegistry | No | Reserved for future policy enforcement. | | audit | AuditEmitter | No | Flushed on dispose(). | | observability | (event) => void | No | Called for each node:start / node:end flow event. | | newRunId | () => string | No | Custom run ID generator. |

HeadlessRunner

  • runFlow(flow, opts?) — Run a flow by id or FlowConfig. Returns WorkspaceRunResult.
    • flow: string (looked up from options.flows) or FlowConfig directly.
    • opts.mode: Run mode ('dry_run' default). Live modes use real adapters; stub modes use defaultStubHandlers.
    • opts.signal: AbortSignal for cancellation.
    • opts.checkpoint: Optional checkpoint callback (durable runs).
  • runAgent(agentId, input, opts?) — Run a single agent as a minimal 1-node flow. Returns the agent output or throws on failure.
  • dispose() — Flushes audit batches, releases handles.

runWorkspace(opts) / runFlowHeadless(opts)

Convenience single-call wrapper: creates a runner, runs a flow, disposes.

import { runWorkspace } from '@agentskit/os-headless'

const result = await runWorkspace({
  config: workspace,
  flows: new Map([['greet', myFlow]]),
  adapters: {},
  flowId: 'greet',
  mode: 'dry_run',
})

Run modes

| Mode | Behaviour | |---|---| | real | Live LLM + tools, costs charged, state persisted. | | deterministic | Live LLM (version-pinned), stubbed side effects. | | preview | Live LLM, read-only side effects. | | dry_run | All nodes stubbed — no LLM calls, no cost. | | simulate | All nodes mocked. | | replay | Reads from event log. |

License

MIT