Skip to main content

polycheck

CI PyPI Python

A polyglot static-analysis pipeline and MCP server that lets deterministic analyzers do the cheap exhaustive pass so your LLM only triages verified findings.

Why

AI coding agents degrade codebases over iterative tasks: SlopCodeBench (arXiv:2603.24755) measured structural erosion rising in 77% of trajectories and verbosity in 75.5% — even while tests stay green. Prompting the agent to write cleaner code does not stop the degradation rate.

Static analyzers catch what prompts miss, and handing an LLM a structured findings list costs a fraction of having it re-read your whole repo.

How It Works

  repo ──▶ 22 deterministic analyzers + scb-check ──▶ polycheck-report.{md,json,sarif}
                                                               │
                                                               ▼
                                          LLM triages findings + baseline / suppress
  1. Deterministic sweep: Runs applicable analyzers across your repo and normalizes every result to one schema (tool, rule, severity, file, line).
  2. Built-in anti-slop metrics: scb-check (zero extra install) measures duplicated AST blocks, slop patterns, and complexity-mass erosion.
  3. Slim MCP + triage loop: Exposes polycheck.run and polycheck.audit_run so the LLM reads compact reports, triages real bugs vs false positives (.polycheck.yml suppress:), and snapshots accepted state (polycheck baseline).
  4. Self-auditing fleet: polycheck verify-tools tests installed analyzers against seeded defects so silently broken tools never give a false bill of health.

What It Is / Best Used For

  • Analyzer fleet: runs 24 bundled analyzers across Python (ruff, mypy, vulture, pip-audit, deptry, tach), JS/TS (eslint, tsc, knip, npm-audit, depcheck, dependency-cruiser, ts-slop), Security/Universal (gitleaks, semgrep, scb-check, SonarQube via sonarless), Shell/CI/Docker (shellcheck, actionlint, zizmor, hadolint), Docs (markdownlint-cli2, lychee), plus coverage.
  • Profiles for every stage: --profile deep for repo onboarding, --profile pr for fast changed-file pre-push gates.
  • Want the full coding harness? vibecode-harness installs polycheck + vibecode-skill together in one command.

Quickstart

Paste this prompt into your coding agent (Claude Code, OpenCode, Kilo Code, Antigravity, etc.):

Inspect https://github.com/Phhofm/polycheck (read README.md and DOCS.md first).

1. Check my machine for `pipx`, `docker`, `sonarless`, and existing agent configs (`~/.claude`, `~/.config/kilo`, `~/.config/opencode`).
2. Explain what is missing — specifically note that Docker + sonarless unlock SonarQube's 30+ language deep analysis (optional, everything else works without Docker), and separate agent-installable packages from human-only commands (Docker, sonarless, system binaries).
3. Summarize the planned installs and config changes, and wait for my confirmation before running anything.
4. Once confirmed, install `polycheck` via `pipx`, run `polycheck init --host all --scope global --yes`, run `polycheck doctor --json .` + `polycheck verify-tools`, and offer to run a scan on my current repo.

Manual Quickstart

pipx install polycheck
polycheck init --host all --scope global --dry-run   # preview host wiring
polycheck init --host all --scope global             # wire Kilo / OpenCode / Claude
polycheck verify-tools                               # smoke-test installed analyzers

Then restart your coding assistant and run /polycheck (or polycheck run . in any repo).

Foundations & References

  • SlopCodeBench (arXiv:2603.24755, scbench.ai) — erosion and verbosity metrics for agent-written code.
  • No AI Slop Manifesto (slopmanifesto.com) — Resolution 12: anything a linter or automated check can catch, let it catch.
  • Code Mode (Cloudflare) — tiny MCP tool surface, file-backed reports, CLI for composition.

Documentation

See DOCS.md for the full 22-tool matrix, scan profiles, .polycheck.yml configuration schema, CLI reference, MCP server & manual JSON setup, sonarless/Docker setup, and extending polycheck.

Metadata

Release files for polycheck 0.3.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polycheck 0.3.27
File Size Uploaded Provenance Actions
polycheck-0.3.27.tar.gz 156.9 kB With provenance Details for polycheck-0.3.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polycheck 0.3.27
File Interpreter ABI Platform Actions
polycheck-0.3.27-py3-none-any.whl Python 3 none any Details for polycheck-0.3.27-py3-none-any.whl

Total release size: 284.7 kB

Release files / polycheck-0.3.27.tar.gz

Download URL polycheck-0.3.27.tar.gz
Size 156.9 kB
Tags Source
SHA-256 checksum
How to use checksums
715c3e3ae5ed39805302ba48d8beec2085821ba2e7d82295aff916995f900d30
BLAKE2b-256 checksum
How to use checksums
529d8dff9c48c286874ec6ecbfe334a0ae2707ffd155a9c1e82147c652e19b9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / polycheck-0.3.27-py3-none-any.whl

Download URL polycheck-0.3.27-py3-none-any.whl
Size 127.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e29ec0694d906134dd0c2b93333d21990653983b29b29316a6d29147fcb3c53c
BLAKE2b-256 checksum
How to use checksums
72bb423210c2d584a8ca17d8d94a0b4496cb5b54b9231a7b89f7dcd28c5a52a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for polycheck 0.3.27

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for polycheck-0.3.27.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.27 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page