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.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

Invigil 評估儲存庫對新手與 AI 代理的可讀性,並透過 MCP 向助理提供唯讀檢查與修正預覽。

可以做什麼
  • 依靜態評分卡評估儲存庫,並以 llm 或 json 格式回傳結果
  • 執行單一快速離線檢查群組(例如目錄結構、密鑰),不需連網
  • 預覽修正模式將套用的變更計畫,實際修改由助理以自己的編輯工具完成
  • 回報文件、設定與代理就緒度慣例,並為每項失敗提供建議修正
適用情境
適合讓助理審查儲存庫的入門導引與代理就緒慣例,或在動手前先了解會提出哪些機械性修正。它補充而非取代程式碼檢查工具、掃描器與測試。
執行需求
以本機 stdio 程序在使用者電腦上執行(僅桌面端)。需安裝此 Python 套件的選用 MCP 附加元件並啟動伺服器指令,README 提供 uvx 呼叫方式。未宣告驗證、環境變數或標頭。
安裝前請注意
工具被描述為唯讀:preview_fixes 只回傳計畫、不寫入任何內容,實際變更由助理自身的編輯工具完成。專案標示為 Alpha,個別檢查結論並不穩定,評分可能隨版本變動。README 指出 Python 虛擬環境並非安全沙箱,陌生製品應在無憑證的一次性環境中執行。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Invigil,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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:

bash
git clone --branch feat/wheel-first-use-preview https://github.com/invigil/invigil.gitcd invigilpython3 -m venv .venv.venv/bin/python -m pip install -e ..venv/bin/python examples/first-use-demo/run.py

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.

CapabilityRole
Repository scorecardChecks documentation, configuration and quality conventions; suggests fixes
Published-artifact Cold-Start GateExercises configured package/container operations and HTTP probes
Local-wheel first use (unreleased)Verifies the candidate artifact; records its hash, phases and dependencies
Existing linters, scanners and testsContinue checking code correctness and security alongside Invigil

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:

ChannelWhere it fitsOne-liner
PyPIlocal runs, Python-friendly CIpip install invigil
GitHub ActionGitHub PRsuses: invigil/invigil@v1
Docker (ghcr)GitLab, Jenkins, any non-Python CIdocker run --rm -v "$PWD:/repo" ghcr.io/invigil/invigil score /repo
pre-commitoffline checks on every commithooks invigil-layout, invigil-secrets (below)
MCP serveragents (Claude Code, any MCP client)pip install "invigil[mcp]" → invigil mcp

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:

bash
pip install invigilinvigil score .            # human-readable scorecard + the exact fix for every failureinvigil score . --format markdown   # a PR-comment-ready tableinvigil score . --format json       # machine-readable

Add it to CI as a report-only gate (posts a scorecard comment + badge, never blocks a PR):

yaml
# .github/workflows/quality-gate.ymlname: Quality gateon: [pull_request]permissions: { contents: read, pull-requests: write }jobs:  invigil:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1        # v7.0.1      - uses: invigil/invigil@7f31330715bb7e42f26032ce3e921fcf78d4acea        # v1.7.1        with:          enforce: "false"              # flip to true once the grade is stable

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@v1 works and tracks the latest v1.x.y, but Invigil's own actions-sha-pinned check (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:

yaml
      - uses: invigil/invigil@7f31330715bb7e42f26032ce3e921fcf78d4acea        # v1.7.1        id: invigil        with: { comment: "false" }      - run: cat "${{ steps.invigil.outputs.report }}" >> "$GITHUB_STEP_SUMMARY"      # outputs.badge → grade badge JSON · outputs.ai-badge → ai-ready badge JSON

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 a command:) is run to completion and must exit 0. One reusable workflow replaces the 60-line smoke-published.yml every repo copy-pastes:
yaml
# .github/workflows/stranger-gate.ymlname: Cold-start gateon:  schedule: [{ cron: "0 3 * * *" }]  workflow_dispatch:jobs:  stranger:    uses: invigil/invigil/.github/workflows/stranger-gate.yml@7f31330715bb7e42f26032ce3e921fcf78d4acea  # v1.7.1

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/.

yaml
version: 1project:  name: my-app  language: python  min_gate: G4  enforce: falseartifacts:  - type: pypi    name: "my-app[all]"  - type: ghcr    image: ghcr.io/me/my-app:latest    port: 8000probes:  - { url: "/", expect_status: 200 }  - { url: "/api/things", expect_json_count: { min: 5 } }boot_budget_minutes: 10

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 layout runs the filesystem checks with no network in ~120ms:

    yaml
    # .pre-commit-config.yaml- repo: https://github.com/invigil/invigil  rev: v1        # tracks the latest v1.x.y  hooks: [{ id: invigil-layout }, { id: invigil-secrets }]

    Heavier, network-bound checks (scorecard, the Cold-Start Gate) stay in CI. invigil score --offline / --layer local / --group supply-chain slice it any way.

  • It bends instead of forking. profile: strict | progressive | light, per-check weights, 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:

CheckThe promise to the agent
agents-md-actionableYour AGENTS.md/CLAUDE.md contains runnable fenced commands, not prose
llms-txt-shapellms.txt is spec-shaped and fits a 10 KB context budget
agent-context-freshAgent instructions aren't 90+ days staler than the source they describe
readme-heading-hierarchyThe README chunks cleanly (one H1, real H2 sections)
exit-codes-documentedA CLI's exit codes are enumerated — agents branch on codes, not prose
llms-no-secretsThe machine-readable surface leaks no credentials
agent-scope-visibilityAgent code declares its tool inventory (blast-radius precondition)

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:

bash
invigil score . --format ai-badge --output badges/ai-ready.json   # commit this
markdown
![AI-ready](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/OWNER/REPO/main/badges/ai-ready.json)

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):

bash
pip install "invigil[mcp]"    # optional extra; the core CLI stays zero-depinvigil mcp                   # stdio server
json
// e.g. .mcp.json for Claude Code — any MCP client works{ "mcpServers": { "invigil": { "command": "uvx", "args": ["--from", "invigil[mcp]", "invigil", "mcp"] } } }

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.7.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分