
Invigil
io.github.invigil由 GitHub 账号 invigil 发布v1.7.1更新于 Oct 24, 2026
Linters check your code. Invigil checks whether your repo is legible — to newcomers and AI agents.
概览
Invigil 评估代码仓库对新人和 AI 智能体的可读性,并通过 MCP 向助手提供只读检查与修复预览。
- 可以做什么
- 按静态评分卡评估仓库,并以 llm 或 json 格式返回结果
- 运行单个快速离线检查组(如目录结构、密钥),无需联网
- 预览修复模式将执行的变更计划,由助手用自己的编辑工具实际修改
- 报告文档、配置与智能体就绪度约定,并为每项失败给出建议修复
- 适用场景
- 适合让助手审查仓库的入门引导与智能体就绪约定,或在改动前先了解会提出哪些机械性修复。它补充而非替代代码检查器、扫描器和测试。
- 运行要求
- 以本地 stdio 进程在用户机器上运行(仅桌面端)。需安装该 Python 包的可选 MCP 附加组件并启动服务器命令,README 给出了 uvx 调用方式。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Invigil,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Invigil
Verify the path from installation to first successful use—for people and agents.
[CI] [License] [PyPI] [GitHub Marketplace] [Docker] [OpenSSF Scorecard] [Invigil grade] [AI-ready]
A package can install successfully and still fail its first useful command. Invigil combines repository-quality checks with a Cold-Start Gate that exercises declared operations and reports the evidence needed to diagnose failures.
New in development: verify an exact Python wheel before publication, outside the
source checkout. The existing scorecard, published-artifact checks, and agent tools
remain available. Wheel verification is unreleased; pip install invigil and the
release pins below do not include it yet.
Try the first-use demo (source preview)
On Linux with Python 3.11+ and venv support, use the source-preview branch:
The demo runs offline and checks real wheels. Both install; one omits a required data file and fails its first-use command. Adding that file makes the same check pass. It prints the failure and saves JSON reports in a temporary directory. This is a synthetic example, not a claim about an upstream project's current release.
Demo details · Verify your own wheel · CI workflow template
The preview requires an explicit command and optional expected output. A successful run proves that operation worked in the recorded environment; it is not a general release-safety guarantee. Run unfamiliar artifacts in disposable workers without credentials—a Python venv is not a security sandbox.
invigilate — to watch over an exam and enforce its rules.
How Invigil fits in your stack
Invigil does not replace your existing tools; it covers the product-quality gaps they leave behind.
A clean-install smoke script can detect the same packaging defects. Invigil aims to make that workflow easier to configure and its reports consistent across projects.
Why
The scorecard checks whether the project is legible to newcomers and agents. Every failing static check includes a suggested command or edit. Execution reports retain the failed step and output; they cannot infer every application's root cause.
The seven Gates cover onboarding, errors, artifact verification, supply-chain evidence, audience documentation, contribution and adoption. A grade summarizes implemented repository checks; it does not establish that an artifact was executed successfully. Use the Cold-Start Gate for execution evidence.
Install
Published channels — pick the one that matches where you run it:
Every release ships all of it signed: cosign-signed wheel, sdist, and container image, plus an
SPDX SBOM — verifiable with cosign verify against the GitHub OIDC identity.
Quick Start
These commands use the published scorecard. For wheel verification, use the source preview above.
Run it locally on any repo:
Add it to CI as a report-only gate (posts a scorecard comment + badge, never blocks a PR):
Flip enforce: "true" (or set project.enforce: true in .invigil.yml) when you're ready for
it to block merges below the target gate.
Why the SHAs?
invigil/invigil@v1works and tracks the latest v1.x.y, but Invigil's ownactions-sha-pinnedcheck (G3) fails floating tags — including its own. Pin, and let Dependabot bump the pins; the trailing comment is what it reads.
The action exposes the report and both badges as step outputs — pipe the scorecard into the job summary, publish the badge JSON wherever shields.io can reach it:
How it works
Two layers, matching the doctrine:
- Static Doctrine Scorecard (every PR, seconds) — inspects the repo filesystem and GitHub
metadata: LICENSE, README length,
.env.example, a deep-health endpoint, a global error-id handler, SHA-pinned actions, an enforced lockfile, a coverage gate, a daily published-artifact smoke test, ≥5 good-first-issues, docs index,llms.txt/AGENTS.md, and more. Emits text / JSON / Markdown / a shields.io badge. - Cold-Start Gate (nightly, reusable —
invigil stranger) — on a clean runner, installs and boots configured published artifacts and probes their declared surfaces. The new local-wheel path additionally bounds setup/install/first use with one per-wheel budget and records phase results; legacy paths retain their behavior. Web services get HTTP probes; a CLI image (an artifact with acommand:) is run to completion and must exit 0. One reusable workflow replaces the 60-linesmoke-published.ymlevery repo copy-pastes:
Fix by PR
The optional fix workflow applies mechanical fixes
on a work branch and opens one batched PR. It uses invigil score --fix --pr-mode;
protected-branch safeguards remain in place. Closing its PR without merging is
respected until the work branch is deleted. See the
CLI reference for configuration and limits.
Configuration
Drop a .invigil.yml at the repo root. It's optional for the static scorecard (sensible
defaults apply) and required for the Cold-Start Gate (it declares what to boot and probe). Full
schema in schema/invigil.schema.json; examples in
examples/.
Lightweight & modular
A gate developers bypass is dead weight, so Invigil is built for zero friction:
-
Fast offline groups for pre-commit — each check is tagged
local/network/heavy.invigil check layoutruns the filesystem checks with no network in ~120ms:Heavier, network-bound checks (
scorecard, the Cold-Start Gate) stay in CI.invigil score --offline/--layer local/--group supply-chainslice it any way. -
It bends instead of forking.
profile: strict | progressive | light, per-checkweights,optional(ding without gating),thresholds.fail_on— make it your doctrine. -
Resilient by design. A scorecard.dev timeout is a SKIP excluded from the grade — never a false A-to-C downgrade, never a crashed build.
→ The doctrine and the Gates covers both in full.
When your user is an agent
Legibility now has two audiences. The reader arriving cold at your repo is, more often than
not, an AI agent: it has a context window instead of patience, exit codes instead of
intuition, and it acts only on what the repo states machine-readably. The ai check group
grades that surface — not just presence of llms.txt/AGENTS.md, but whether an agent can
actually act on them:
Two artifacts fall out of it. invigil score --format llm — a deterministic report under
~1 KB, built to be read by an agent: a healthy repo costs it two lines of context. And an
ai-ready badge, a shields.io endpoint you can put in your own README:
In CI the Action emits it for you — steps.<id>.outputs.ai-badge is the path to the same JSON.
MCP server
Agents don't have to shell out — Invigil speaks MCP natively (mcp-name: io.github.invigil/invigil):
Three read-only tools: evaluate_repo (the scorecard, llm or json format),
check_group (one fast offline group), and preview_fixes (the mutation plan --fix
would apply — the agent applies changes with its own edit tools, so nothing here writes).
The doctrine
Absence of complaints is not absence of problems — silence is the loudest negative signal a project gets. That's the Silent User Doctrine, and Invigil is its enforcement: what the Gates mean and how to tune them.
Stability
Invigil is Alpha, and docs/stability.md says exactly what that
buys you: the CLI, exit codes, JSON shape, badge JSON and MCP tools are stable enough to
automate against; individual check verdicts are not, and every report carries a
doctrine_version so you can tell your repo regressed from the ruler moved.
Contributing
Issues and PRs welcome — see CONTRIBUTING.md and good first issues. Invigil grades itself in CI; self-score is currently report-only. See the scoped beginner tasks and benchmark tasks.
License
Apache-2.0 — see LICENSE.
来源:README.md,提交 6641b24
工具
0版本历史
1- v1.7.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分