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

@substrate-system/roast

Latest version: v0.0.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: nichoth
0 Stars
0 Forks
1 Versions
253 Downloads
Go Repo language

Scan summary

@substrate-system/roast was last scanned on 24 Nov 2026 at version 0.0.1. Risk score 0 of 100. High-severity rules fired.

  • Releases: First and only release on 24 Nov 2026.
  • Findings: 1 rule fired in version 0.0.1 (1 high). The score describes this version only.
  • Downloads: 253 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.1 LATEST 24 Nov 2026 1 rule fired

Rules fired in 0.0.1: 1

Findings

1 High

Findings for v0.0.1. 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.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

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

README

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

Roast

An adversarial, cross-model code reviewer. Install as a project dependency.

A finder model proposes defects in a Git diff, each with a code quote and a concrete fix. An independent verifier model then re-reads the cited code and confirms or refutes every claim before it reaches the report. The two roles can use different providers, endpoints, and wire protocols.

In interactive mode, the models can navigate the local checkout via read-only file, grep, and listing tools.

  • Fork
  • Quick start
    • 1. Install
    • 2. Create the project config
    • 3. Login
    • 4. Review
  • Install the agent skill
  • Configure
    • Project config
    • Credentials
    • Login and logout
    • OpenRouter
    • Command-line overrides
    • Author routes
    • Other settings
    • Network
  • Trust
  • Use
  • Resource limits
  • Exit codes
  • Run records
  • Pre-commit gate
  • Contributing
  • License

Fork

This is a fork of bluesky-social/roast. The fork adds npm ecosystem.

Quick start

Roast runs in a Git repository with a package.json. It needs Node 22.18 or later on macOS or Linux. Windows is not supported.

The agent skill is optional. Install it if you want a coding agent, such as Claude Code, to run reviews for you.

1. Install
npm i -D @substrate-system/roast

npx roast --version prints the installed version, commit, and build date.

2. Create the project config
npx roast init

This writes .roast.json in the current directory and adds /.roast/ to .gitignore. Command init picks each role's provider from its model ID:

  • a bare Claude model ID (claude-opus-5-5) uses Anthropic's Messages API
  • a bare OpenAI model ID (including Codex, gpt-6.1-terra) uses OpenAI's Responses API
  • a slash-form ID, <vendor>/<model> with an optional :<variant> (anthropic/claude-opus-5-5, meta-llama/llama-4:free), uses OpenRouter.

Either model can fill either role. It's recommended to use models from different providers for each roles. For a model no built-in provider serves, edit .roast.json by hand (see Project config). Without the flags, init writes placeholder model IDs, and a review refuses to run until you replace them in .roast.json.

In the terminal, init then offers to log in to each provider that has no credential yet (see Login and logout).

Flag --no-login skips the login process.

init Example

Claude as the finder and Codex as the verifier:

npx roast init --finder-model 'claude-opus-5-5' \
  --verifier-model 'gpt-6.1-terra'

init refuses to overwrite an existing .roast.json.

3. Login

If you skipped the login process during init, log in now:

npx roast login

With no argument, login reads .roast.json and logs in to each built-in provider that has no credentials yet. For Anthropic and OpenAI, it opens the provider's API-keys page. Create a key and paste it into the hidden prompt. For OpenRouter, it opens OpenRouter in your browser and receives a new key when you approve. The key is stored for this project inside .git, so it is never committed, and every later review, including the pre-commit gate, finds it.

Environment variables still work and take precedence over a stored key, which suits CI:

export OPENAI_API_KEY='...'      # platform.openai.com/api-keys
export ANTHROPIC_API_KEY='...'   # console.anthropic.com/settings/keys
export OPENROUTER_API_KEY='...'  # openrouter.ai/settings/keys

To see which models an OpenAI key can use:

curl -s https://api.openai.com/v1/models \
  -H "Authorization: Bearer $OPENAI_API_KEY" | jq -r '.data[].id'
4. Review
npx roast doctor
npx roast review --task 'add retry handling'

npx roast doctor checks the config, credentials, and both endpoints with a small probe.

npx roast review reviews your changes and prints a report.

A review needs an API key for the provider of each role's model, either stored with npx roast login <provider> or set in that provider's variable: ANTHROPIC_API_KEY for Anthropic's endpoint, OPENAI_API_KEY for OpenAI's, and OPENROUTER_API_KEY for OpenRouter's.

With both roles on Anthropic's endpoint, one Anthropic key is enough. Flags --quick and --no-verify skip the verifier, so they need only the finder's key. To give a role its own key, set ROAST_FINDER_API_KEY or ROAST_VERIFIER_API_KEY. If a key is missing, the review exits with an error, naming npx roast login <provider>, before it calls any model. See Credentials for the full lookup order.

The starter config only uses the built-in endpoints and key variables, so it needs no approval. If you change a profile's endpoint or credential variable, see Trust.

Install the agent skill

The agent skill is a SKILL.md file that teaches a coding agent, such as Claude Code, how to use Roast. Agents that support Agent Skills load it from a skills directory. It tells the agent when a change deserves a review, which npx roast review invocations to run, and how to read the exit codes. It also says to check each finding against the cited code before acting on it. And it tells the agent never to approve a project config itself, but to leave the npx roast trust decision to you. The skill ships inside the Roast package, so the installed copy matches the version you run.

npx roast skill install
npx roast skill status

By default this installs the bundled skill into the project, at the Git toplevel: .agents/skills/roast, and also .claude/skills/roast when Claude Code is detected or the project already has a .claude/ directory. Commit those directories to share the skill with your team. --global installs into the user-level directories instead: ~/.agents/skills/roast, $CLAUDE_CONFIG_DIR/skills/roast (default ~/.claude/skills/roast) when Claude Code is detected, and $XDG_CONFIG_HOME/polytoken/skills/roast (default ~/.config/polytoken/skills/roast) when Polytoken is detected. --dir limits either command to one parent skills directory. --force overwrites installed files that differ from the bundled skill.

npx roast skill status reports whether each installed copy matches the installed Roast version.


Configure

Project config

Every setting except credentials lives in .roast.json (JSONC: comments and trailing commas are allowed). Roast looks for it in the working directory and then in each parent directory, stopping at the Git toplevel; the first one found wins, and files are never merged. --config <path> names a different file. When there is no project config, Roast exits with an error telling you to run npx roast init. There are no built-in default models.

{
  "$schema": "./node_modules/@substrate-system/roast/roast.schema.json",
  "version": 1,

  "inference_profiles": {
    "openai": {
      "endpoint": "https://api.openai.com/v1",
      "protocol": "responses",
      "api_key_env": "OPENAI_API_KEY",
      "model": "finder-model"
    },
    "anthropic": {
      "endpoint": "https://api.anthropic.com/v1",
      "protocol": "anthropic",
      "api_key_env": "ANTHROPIC_API_KEY",
      "model": "verifier-model",
      "max_output_tokens": 32768
    }
  },

  "roles": {
    "finder": {"profile": "openai"},
    "verifier": {"profile": "anthropic"}
  }
}

version: 1 is required and unknown fields are rejected. $schema points your editor at the JSON Schema shipped in the package, for completion and validation.

A profile is a complete unit: model, endpoint, protocol, output-token limit (max_output_tokens, default 32,768), and credential variable (api_key_env). Roast never infers a protocol or credential from a model name. Protocols are responses and chat (OpenAI-compatible, default endpoint https://api.openai.com/v1) and anthropic (native Messages, which authenticates with x-api-key, default endpoint https://api.anthropic.com/v1). A profile can point at a hosted provider, a gateway, or a local server that implements its protocol:

"inference_profiles": {
  "gateway": {
    "endpoint": "https://models.example.com/v1",
    "protocol": "chat",
    "api_key_env": "GATEWAY_API_KEY",
    "model": "gateway-model"
  }
}

A config that names an endpoint other than a built-in provider's must be approved once per clone; see Trust.

Credentials

A project config may name a credential variable but never hold a credential; a literal api_key field is rejected. Roast has three built-in providers, each with a built-in endpoint and a standard key variable:

Provider Endpoint Protocols Key variable
openai https://api.openai.com/v1 responses, chat OPENAI_API_KEY
anthropic https://api.anthropic.com/v1 anthropic ANTHROPIC_API_KEY
openrouter https://openrouter.ai/api/v1 chat, responses OPENROUTER_API_KEY

A role's credential is the first of:

  1. ROAST_FINDER_API_KEY or ROAST_VERIFIER_API_KEY;
  2. the variable named by the profile's api_key_env;
  3. the provider's standard key variable;
  4. the provider's key stored for this project by npx roast login;
  5. the provider's key stored for your user by npx roast login --global.

Steps 3 to 5 apply only when the profile uses a built-in provider's endpoint with a protocol that provider accepts there. A provider key in your shell, or a stored key, is never sent to a gateway or any other custom endpoint, and never follows a role that an override moved off its provider's endpoint. A stored key is matched to a role only by that endpoint and protocol, never by anything .roast.json names. A custom endpoint needs api_key_env or a role key (ROAST_FINDER_API_KEY or ROAST_VERIFIER_API_KEY). npx roast doctor reports which source each role used, including a stored key and its scope, and names a provider key it withheld.

Login and logout

npx roast login gets a key for a built-in provider and stores it, so reviews and the pre-commit gate find it without an environment variable.

npx roast login                       # every provider .roast.json needs
npx roast login anthropic             # one provider: anthropic, openai,
                                      # or openrouter
npx roast login openrouter --global   # store for your user, not the project
npx roast login openrouter --no-browser
npx roast logout anthropic            # remove one stored key
npx roast logout --global             # remove every user-scope key

With no argument, login logs in to each built-in provider that the roles in .roast.json use and that has no credential yet; it does nothing when every role already has one. With a provider argument, it always runs and replaces any key stored for that provider in the chosen scope. Login needs an interactive terminal.

  • Anthropic and OpenAI have no browser sign-in that third-party tools may use. Roast opens the provider's API-keys page; you create a key and paste it into a prompt that does not echo. Roast checks the key with one small authenticated request and stores it only if the provider accepts it. A rejected key asks again, up to three tries.
  • OpenRouter uses its browser login for third-party tools. Roast opens OpenRouter, you approve, and OpenRouter returns a new key labeled roast directly to Roast; nothing is copied by hand. With --no-browser (or on Linux without a display), Roast prints the URL instead and asks for the code the page shows.

Roast always prints the URL it opens, so a missing browser does not block login. Login prints only the provider and scope it stored, never the key.

Keys are stored in one of two scopes:

  • Project (the default): .git/roast/credentials.json, in the Git common directory. It is never committed or copied by git clone, and linked worktrees share it. Outside a Git repository, use --global.
  • User (--global): $XDG_CONFIG_HOME/roast/credentials.json, or ~/.config/roast/credentials.json when XDG_CONFIG_HOME is unset.

Both files are written with mode 0600 in a 0700 directory. On Unix, Roast refuses a credentials file that group or others can read and says to chmod 600 it. npx roast doctor reports a credentials file that is too open or does not parse.

npx roast logout [provider] removes the stored key for one provider, or for every provider with no argument, from the project scope, or the user scope with --global. It does not revoke the key at the provider; revoke it on the provider's key page, which logout names.

OpenRouter

OpenRouter serves many vendors' models through one account and one bill. Give init OpenRouter's slash-form model IDs:

npx roast init --finder-model 'anthropic/claude-opus-5-5' \
  --verifier-model 'openai/gpt-6.1-terra'

A bare ID (claude-opus-5-5) goes to that vendor's own API; a slash-form ID (<vendor>/<model>, optionally :<variant>) goes to OpenRouter. When one role is on OpenRouter and the other model is omitted, the placeholder role goes on OpenRouter too. The starter profile looks like this:

"openrouter": {
  "endpoint": "https://openrouter.ai/api/v1",
  "protocol": "chat",
  "api_key_env": "OPENROUTER_API_KEY",
  "model": "anthropic/claude-opus-5-5"
}

Run npx roast login openrouter, or set OPENROUTER_API_KEY. A profile on OpenRouter's endpoint with protocol chat or responses and either no api_key_env or OPENROUTER_API_KEY needs no trust approval, the same as OpenAI and Anthropic. OPENROUTER_API_KEY is read only for OpenRouter's endpoint.

Command-line overrides

npx roast review accepts per-role overrides: --finder-model, --finder-protocol, --finder-base-url, --finder-max-output-tokens, and the same four for the verifier. Flags take precedence over the project config, which takes precedence over built-in defaults. An endpoint override carries the role key or the profile's own credential to the endpoint it names, but a provider key from the shell, or a stored key, only to that provider's built-in endpoint.

Author routes

When the invoking agent passes --author-model, the finder can switch to another profile by exact model name or model family, so a model is not reviewing its own work. Here primary and independent are profiles defined under inference_profiles:

"roles": {
  "finder": {
    "profile": "primary",
    "author_routes": {
      "openai": "independent",
      "exact-author-model": "independent"
    }
  },
  "verifier": {"profile": "independent"}
}

roles.finder.pin: true keeps the configured finder anyway, with a warning.

Other settings

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 @substrate-system/roast

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229