
Aiglare
io.github.nugehs由 GitHub 账号 nugehs 发布v0.2.3更新于 Oct 24, 2026
Audit AI/LLM features for governance guardrails: confidence, fallback, validation, human-in-loop.
概览
Aiglare 对 JS/TS 仓库做静态审计,找出缺少治理护栏的 AI/LLM 调用面,并向助手提供审计、CI 门禁和提供方列表工具。
- 可以做什么
- 对仓库执行完整的 AI 调用面审计,可按 sink 类型或严重级别过滤,并按需返回带合规违规项的结构化 JSON 报告。获取仓库的 CI 门禁结论,包括是否通过以及阻塞性的红色副作用面数量。列出扫描器可识别的推理提供方与 SDK。结果按 sink(面向用户、有副作用、内部)分类每个 AI 调用面,并对五项护栏维度打分。
- 适用场景
- 适合审查 JS/TS 代码库中会触达用户或触发支付、预订、邮件、数据库写入等不可逆操作、却缺少置信度处理、回退、校验或人工审核的 AI 功能。也适合为 SOC 2、EU AI Act、NIST AI RMF 或 OWASP LLM Top 10 准备合规证据。
- 运行要求
- 通过 npx 从 npm 包 @nugehs/aiglare 以 stdio 在本地运行,需要 Node.js 以及获取该包的网络访问。仅支持桌面 MCP 宿主。未声明认证、环境变量或请求头。可选的 repoctx 索引可提升准确度。
安装
在 SourceWeft 中
- 打开 控制台中的 Aiglare,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
aiglare
Lint your AI features for governance guardrails — where can the model do something you can't undo?
[npm] [CI] [license: MIT] [node]
Live site: nugehs.github.io/aiglare-web
Point it at any JS/TS repo and it finds every place an LLM/AI output reaches a user or triggers a side-effect (payment, booking, email, database write) — then flags which of those have no confidence handling, no fallback, no output validation, and no human-in-the-loop.
Most AI incidents aren't model failures. They're governance failures: the model output flowed straight to a user or an irreversible action with nothing in between. This tool makes those paths visible, and lets you block them in CI.
What it reports
Each AI surface is classified by sink — where the output goes:
user-facing— returned from a route/controller, or rendered in a componentside-effectful— feeds a payment, booking, email, db/file write, or shellinternal— logged or cached only
…and scored on five guardrail dimensions: confidence handling, fallback/uncertain path, output validation, human-in-the-loop (for side-effects), and error isolation.
The CI gate (--ci) fails only on red + side-effectful surfaces — the "AI auto-triggers an irreversible action with no confirmation" case — so it's safe to adopt without drowning a team in warnings.
Compliance reports
Pass --compliance to map every finding to specific regulatory controls, then pick your output format:
Supported frameworks:
Use all to include every framework. Each surface in --json output gains a violations[] array with the framework, control ID, description, and error/warning level.
Multi-repo: pass multiple paths for a single combined report:
Provider-agnostic
Detection is driven by a provider registry covering OpenAI, Anthropic, Google, Cohere, Mistral, Replicate, the Vercel AI SDK, LangChain/LangGraph, Ollama, AWS Bedrock, Cloudflare Workers AI, and Hugging Face — plus raw fetch/axios calls to known inference hosts. Adding a provider is a one-line PR.
Optional: repoctx acceleration
If a repoctx index (.dev-context/index.json) is present, the tool uses it automatically to prioritize likely AI files and sharpen sink classification via repoctx's kind/domain data (e.g. a file repoctx marks as a controller route is correctly treated as user-facing even when the native scanner can't see the call graph). Without it, a built-in TypeScript-compiler scanner does the same job at lower fidelity. Same tool, two fidelity levels — standalone for everyone, richer for repoctx users.
MCP server
aiglare ships a built-in Model Context Protocol server so agents can run audits directly:
It exposes three tools:
Register it with an MCP host (Claude Desktop, Cursor, VS Code, …):
aiglare vs alternatives
These are complementary: aiglare tells you where a guardrail is missing; runtime validators are how you add one.
Run a 1-week pilot
Want to evaluate aiglare on a real codebase before adopting the CI gate? PILOT.md is a step-by-step one-week runbook: install, first audit on a backend and a frontend repo, reading the report, tuning --severity/--sinks, and deciding whether to turn on --ci.
Honest limitations
This is static, advisory analysis — a linter, not a verifier. It produces false positives (a guardrail two call-hops away can be missed) and false negatives (a confidence variable that doesn't actually gate anything reads as present). Treat output as surfaces to review, not violations. The single-file native scanner cannot follow the call graph; the repoctx adapter exists precisely to close that gap.
Options
The MCP tool ai_surface_audit accepts an optional compliance array — each surface in the response includes a violations[] array when set.
License
MIT
Part of the toolchain
aiglare is one of four tools that form a deterministic trust layer for AI-assisted development. Each answers a question people keep handing to an LLM — with static analysis instead.
- repoctx — context: what does this change actually touch?
- tieline — contracts: did the front end and back end quietly stop agreeing?
- bouncer — compliance: could you defend this to Ofcom?
- aiglare (this tool) — governance: where can the model do something you can't undo?
More at segunolumbe.com. static analysis, never the model.
来源:README.md,提交 7fd3ccb
工具
0版本历史
1- v0.2.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分