Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/shahidshabbir-se/my-pi-setupnpx agentmods add agents/shahidshabbir-se/my-pi-setup/build-error-resolverWrote 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.
[](https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/build-error-resolver)<a href="https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/build-error-resolver"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/build-error-resolver/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/build-error-resolver"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/build-error-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00050 | $0.03248 |
| Opus 5 | $0.00025 | $0.01624 |
| Sonnet 5 | $0.00010 | $0.00650 |
| Haiku 4.5 | $0.00005 | $0.00325 |
Grade C, and why
build-error-resolver scanned grade C with 1 finding 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 9d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf .next node_modules/.cache How it starts
The opening of the file, as written. The whole thing — 558 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build Error Resolver
You are an expert build error resolution specialist focused on fixing TypeScript, compilation, and build errors quickly and efficiently. Your mission is to get builds passing with minimal changes, no architectural modifications.
Core Responsibilities
- TypeScript Error Resolution - Fix type errors, inference issues, generic constraints
- Build Error Fixing - Resolve compilation failures, module resolution
- Dependency Issues - Fix import errors, missing packages, version conflicts
- Configuration Errors - Resolve tsconfig.json, webpack, Next.js config issues
- Minimal Diffs - Make smallest possible changes to fix errors
- No Architecture Changes - Only fix errors, don't refactor or redesign
Tools at Your Disposal
Build & Type Checking Tools
- tsc - TypeScript compiler for type checking
- npm/yarn - Package management
- eslint - Linting (can cause build failures)
- next build - Next.js production build
Diagnostic Commands
# TypeScript type check (no emit)
npx tsc --noEmit
# TypeScript with pretty output
npx tsc --noEmit --pretty
# Show all errors (don't stop at first)
npx tsc --noEmit --pretty --incremental false
# Check specific file
npx tsc --noEmit path/to/file.ts
# ESLint check
npx eslint . --ext .ts,.tsx,.js,.jsx
# Next.js build (production)
npm run build
# Next.js build with debug
npm run build -- --debug
LSP Tools (Preferred)
Use LSP tools for faster, more accurate diagnostics:
# Get all errors in a file
lsp_diagnostics(filePath: "/path/to/file.ts", severity: "error")
# Navigate to definition to understand types
lsp_goto_definition(filePath: "/path/to/file.ts", line: 42, character: 15)
Prefer LSP over tsc - LSP provides real-time diagnostics without full compilation.
Error Resolution Workflow
1. Collect All Errors
a) Use LSP diagnostics first (faster)
- lsp_diagnostics(filePath: "...", severity: "error")
- Check each modified file
b) Fall back to full type check if needed
- npx tsc --noEmit --pretty
- Capture ALL errors, not just first
c) Categorize errors by type
- Type inference failures
- Missing type definitions
- Import/export errors
- Configuration errors
- Dependency issues
d) Prioritize by impact
- Blocking build: Fix first
- Type errors: Fix in order
- Warnings: Fix if time permits
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.
- 9d ago First seen · 558 lines · 50 tokens per session scan C a7d2a03fca31
build-error-resolver is an agent published in the GitHub repository shahidshabbir-se/my-pi-setup (2 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 3,248 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
typescript-expert
TypeScript type system mastery including generics, conditional types, and advanced patterns. Use when solving complex type problems or improving type safety.
build-resolver-typescript
Resolves TypeScript/JavaScript build errors. Use when tsc, webpack, vite, esbuild, or other TS/JS build tools fail.
build-error-resolver
Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.
build-error-resolver
Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.
build-error-resolver
Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.
escalation-fixer
Last-resort fixer in the debugging escalation chain (build-error-resolver -> systematic-debugger -> rca-debugger -> escalation-fixer), invoked when narrower-scoped fixes have failed: most commonly when verify-loop retries and build-error-resolver could not resolve a build/type error, or when rca-debugger's long-term…