Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@wheatley-ai/sdk

Latest version: v0.4.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: sphericalkat
0 Stars
0 Forks
7 Versions
433 Downloads
TypeScript Repo language

Scan summary

@wheatley-ai/sdk was last scanned on 27 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 433 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 27 Nov 2026 No rules fired
0.3.0 27 Nov 2026 No rules fired
0.2.0 26 Nov 2026 No rules fired
0.1.1 25 Nov 2026 Not shown
0.1.0 25 Nov 2026 Not shown

No rules fired in 0.4.0

Findings

Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@wheatley-ai/sdk

Types and helpers for writing Wheatley plugins.

A plugin is an ESM module that Wheatley loads into the daemon. A plugin can give an agent new tools that the model can call. It can also add frontends, which connect the agent to a chat platform. The SDK has no runtime dependencies. Most of it is types.

npm install @wheatley-ai/sdk

A first plugin

This plugin gives the agent one tool that looks up the weather. Tool input can be a Zod 4 schema, or any other library that implements Standard JSON Schema. execute gets the parsed and typed value.

import { definePlugin } from "@wheatley-ai/sdk";
import { z } from "zod";

export default definePlugin({
  apiVersion: 1,
  name: "weather",
  version: "1.0.0",

  setup: ({ log }) => ({
    tools: [
      {
        name: "forecast",
        description: "Get today's forecast for a city",
        inputSchema: z.object({ city: z.string() }),
        execute: async ({ city }, { signal }) => {
          const url = `https://wttr.in/${encodeURIComponent(city)}?format=3`;
          const res = await fetch(url, { signal });
          if (!res.ok) {
            log.warn("forecast request failed", { status: res.status });
            return {
              content: [{ type: "text", text: `No forecast for ${city}` }],
              isError: true,
            };
          }
          return { content: [{ type: "text", text: await res.text() }] };
        },
      },
    ],
  }),
});

Plain JSON Schema works too, if you would rather not add a dependency. In that case execute receives an untyped JSON value:

inputSchema: {
  type: "object",
  properties: { city: { type: "string" } },
  required: ["city"],
},

Loading it

Wheatley loads plugins per agent, from config.yaml. source is either a path or the name of a package installed in ~/.wheatley/extensions.

agents:
  default:
    plugins:
      - source: ./plugins/weather.js # relative to ~/.wheatley
      - source: wheatley-plugin-weather # from ~/.wheatley/extensions/node_modules
        config:
          units: metric

To install a plugin from npm:

npm install --prefix ~/.wheatley/extensions wheatley-plugin-weather

Restart the agent after you change its plugins. You can use /restart in a chat, or the button in the dashboard.

How Wheatley runs a plugin:

  • The model sees the tool as <plugin>:<tool>, so the tool above is weather:forecast. Plugin names match ^[a-z][a-z0-9_-]*$, and tool names match ^[a-z][a-z0-9_]*$.
  • Plugin tools need the user's approval by default. To skip that, add a rule to the agent's permissionPolicy, for example { tool: "weather:*", action: allow }.
  • If setup throws, Wheatley skips the plugin and shows the error in the agent's health. The agent still starts.
  • Wheatley calls setup once for each agent that lists the plugin. Agents do not share plugin state.

Configuration and secrets

Give the plugin a configSchema, and Wheatley validates the config block before it calls setup. Do not put secrets in config. Read them by name with ctx.secrets, which covers secrets.yaml and environment variables.

export default definePlugin({
  apiVersion: 1,
  name: "weather",
  version: "1.0.0",
  configSchema: z.object({ units: z.enum(["metric", "imperial"]) }),

  setup: ({ config, secrets, dataDir }) => {
    const apiKey = secrets.get("WEATHER_API_KEY");
    if (!apiKey) throw new Error("Set WEATHER_API_KEY in secrets.yaml");
    // config.units is "metric" | "imperial"
    // dataDir is a private folder for this plugin and agent
    return { tools: [/* ... */] };
  },
});

setup can also return a dispose function. Wheatley calls it when the agent stops or restarts. Use it to close connections or clear timers.

Frontends

A frontend connects an agent to a chat platform. The built-in Telegram, Slack, and Discord frontends use the same contract.

import { definePlugin, type FrontendBinding } from "@wheatley-ai/sdk";
import { z } from "zod";

export default definePlugin({
  apiVersion: 1,
  name: "matrix",
  version: "1.0.0",

  setup: () => ({
    frontends: [
      {
        type: "matrix",
        configSchema: z.object({ room: z.string() }),
        createBinding: (config, ctx): FrontendBinding => ({
          // Connect, then hand incoming messages to Wheatley:
          //   await sink.send({ chatId, text, senderDisplayName })
          start: async (sink) => {},

          // Replies, approval prompts, and approval results arrive here.
          deliver: async (delivery) => {},

          stop: async () => {},
        }),
      },
    ],
  }),
});

The user then binds the frontend to an agent:

agents:
  default:
    plugins:
      - source: wheatley-plugin-matrix
    frontends:
      - id: home
        type: matrix
        config:
          room: "!abc:example.org"

Rules for a frontend:

  • Decide who may talk to the agent. The daemon trusts every message that a frontend sends to sink. The built-in frontends require an allowedChatIds list for this reason.
  • If deliver fails, throw a DeliveryError. Use kind: "retryable" and Wheatley retries with backoff. Use kind: "permanent", for example for a deleted chat, and Wheatley stops.
  • onEvent is optional. It receives live progress, such as text deltas and tool calls. Use it to show a typing indicator, or to edit a message while the reply streams in.
  • sink.commands lists the built-in chat commands, such as /new and /stop, so you can register them as native platform commands. parseCommandText turns "/model gpt-5" into a command.
  • For a platform that pushes events over HTTP, ctx.registerWebhookRoute mounts a route on Wheatley's webhook server.

Other exports

Export Use
defineTool Define a tool outside setup and keep its input type
chunkMarkdown Split a long Markdown reply into chunks that fit a platform's message limit
isDeliveryError Check for a DeliveryError, including one from another copy of the SDK
BUILTIN_COMMANDS The built-in chat commands, in menu order
API_VERSION The plugin API version this SDK implements, currently 1

Compatibility

API_VERSION is the plugin API version that the SDK implements. Wheatley skips a plugin whose apiVersion it does not support. While Wheatley is on 0.x, a minor release can change the SDK types.

License

ISC

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @wheatley-ai/sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229