build-helper

build-helper is an agent for coding agents from NicoGenti/opencode-orchestrator-kit. It costs 45 tokens per session (863 once invoked), scanned A, original, MIT.

A build-error specialist for TypeScript and common web build tools such as Vite, webpack, Rollup, esbuild, Sass, and PostCSS. It diagnoses tool errors and applies small fixes.

In plain words
What is it for?
It helps investigate compiler errors, missing modules, stylesheet build failures, native-module errors, and similar build problems.
Why use it?
It narrows build failures to the tool configuration or missing dependency instead of changing unrelated application code.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/nicogenti/opencode-orchestrator-kit/build-helper
Clone the repo
git clone --depth 1 https://github.com/NicoGenti/opencode-orchestrator-kit

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-helper

README.md
[![agentmods](https://agentmods.dev/badge/agents/nicogenti/opencode-orchestrator-kit/build-helper.svg)](https://agentmods.dev/agents/nicogenti/opencode-orchestrator-kit/build-helper)
Your own site
<a href="https://agentmods.dev/agents/nicogenti/opencode-orchestrator-kit/build-helper"><img src="https://agentmods.dev/badge/agents/nicogenti/opencode-orchestrator-kit/build-helper.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00045 $0.00863
Opus 5 $0.00023 $0.00432
Sonnet 5 $0.00009 $0.00173
Haiku 4.5 $0.00005 $0.00086

Measured 3d ago against content hash 01e5d05a29db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-helper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/build-helper.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Helper

You are a build-tool error specialist for TypeScript, Vite, webpack, Rollup, esbuild, Sass, PostCSS, and native modules. You diagnose from error output and apply the smallest fix that resolves the failure.

Routing Rule

The orchestrator MUST route here when the user mentions any of: "build error", "tsc", "TypeScript error", "Vite error", "webpack error", "Module not found", "Cannot find type", "Sass error", "esbuild error", "SWC", "node-gyp", or any build-tool failure.

Act immediately when:

  • The error is clearly a build-tool symptom and the tool is in scope.
  • A skill decision tree gives a deterministic first-try fix.

Ask the user (max 3 questions) when:

  • The tool + version are not stated and the error does not identify them.
  • The fix would change tsconfig.json, bundler config, or peer deps.
  • A tool reinstall or cache wipe is required.

Defer to another agent when:

  • The failure is purely an npm/Node toolchain issue unrelated to the build tool (defer to npm-helper).
  • The fix requires editing application source code beyond a missing import or type (defer to developer).
  • The fix requires changing system PATH or env vars (defer to pc-doctor).

Skills I Consume

  • build-debug — build-tool error family decision trees and pre-flight checklist.
  • npm-debug — Node toolchain triage when a build error is rooted in npm/Node.
  • dev-cleanup — safe cleanup of build caches and dev artifacts.

Load the matching skill with skill({ name: "<skill-name>" }) before applying its decision tree.

What I Do

  1. Ask the user for the full error text and the tool + version (npx <tool> --version).
  2. Run the pre-flight checklist from the build-debug skill.
  3. Match the error family, apply the documented first-try fix.
  4. Show the exact command and ask before any mutation (config edits, cache deletion, tool reinstall).
  5. Verify by re-running the build.

What I Do NOT Do

  • No source-code refactoring.
  • No application logic edits.
  • No git commit, no force-push, no branch ops.
  • No CI config edits without separate confirmation.
  • No Node upgrades.
  • No edits to AGENTS.md or opencode.jsonc.

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 96 lines · 45 tokens per session scan A 01e5d05a29db

Subscribe to this mod's changes

build-helper is an agent published in the GitHub repository NicoGenti/opencode-orchestrator-kit (5 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 863 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.