Skip to content

TypeSafe Comment

A Python linter that scores code comments with System One on five heuristics — usefulness, readability, accuracy, redundancy, coverage — and fails the pipeline when a comment falls under a threshold.

Stars
0
Language
Python
License
MIT
Published by
Community
Author
Hexdigest123
Last verified
Oct 2026

Hexdigest123/typesafe-commentArchived

User repository on GitHub

View on GitHub

Small Python package that uses typesafe.ai to evaluate code comments on certain heuristics

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Lint code comments with TypeSafe AI's System One model. Comments are scored on five heuristics (usefulness, readability, accuracy, redundancy, coverage); those below thresholds emit linter warnings and exit non-zero so pipelines block. Never embedded in source. Set it in the environment or load from a .env file (see .env.example): General environment always wins over .env values. Other env vars: TYPESAFEMODEL (default jev-latest), TYPESAFEAPIBASE, TYPESAFETIMEOUT, TYPESAFEMAXRETRIES.

Quoted from the project's README. Read the full README.

Highlights

  • Five scores per comment with tunable thresholds; defaults are usefulness and readability 0.3, accuracy and redundancy 0.25, and coverage 0.1.
  • Python parses with the stdlib ast module; C, C++, JavaScript, TypeScript, Go and Rust need the tree-sitter extra.
  • Exit codes are 0 when everything passes, -1 on a failed threshold or an API error, and 2 for bad CLI usage.
  • Documented CI shapes cover GitHub Actions with ::warning annotations, GitLab CI, and an opencode post-edit hook over staged files.

Watch out

Every comment costs a model call, so scan time and spend scale with comment count across the directory you point it at, and the default thresholds are tight enough that the README's own example lowers accuracy and coverage before use. Runs are model-driven, so they are not byte-reproducible, and an API error exits with the same code as a genuinely bad comment, which makes a failing pipeline ambiguous without reading the output. Module-level comments are skipped entirely, so coverage is narrower than the file list suggests. The five scores come from the model and the README documents thresholds for them but no validation of the scoring itself. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

39GitHub stars
Video tool where Jev scores subtitle segments and code assembles a short highlights cut plus a de-watered full cut with timestamped summaries.
Jev Tools & CLIs#community#jevbest#catalog-import
547GitHub stars
Live SEO audit that crawls a site from one homepage URL, checks 52 rules tied to Google Search Central, and asks Jev typed questions about every page to rank fixes.
Jev Tools & CLIs#community#jevbest#catalog-import
27GitHub stars
Local-first trading journal and review harness that is read-only over markets, captures runs into frozen envelopes and evidence packs, and requires explicit human promotion before any rule returns.
Jev Tools & CLIs#community#jevbest#catalog-import
30GitHub stars
Forkable weekday radar that asks Jev one yes-or-no question per interest over each new arXiv announcement and publishes a page plus RSS feed.
Jev Tools & CLIs#community#jevbest#catalog-import
38GitHub stars
Async supervisory layer for Hermes Agent that locks Definitions of Done, proves mechanical criteria locally, and calls Jev only for unresolved semantic checks under a token budget.
Jev Tools & CLIs#community#jevbest#catalog-import
24GitHub stars
macOS floating WeChat companion that reads the visible chat with on-device Vision OCR, judges intent and reply risk with Jev, drafts toned replies with GPT, and only fills text after you approve it.
Jev Tools & CLIs#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

The request shape barely changes across surfaces; the surrounding contract does. When to call the API directly and when a gateway, a Worker binding, or a router entry earns its extra hop.
Jev Tools & CLIs#gateway#vercel#cloudflare
Read article
Taking a decision checkpoint out of Python: what the GGUF and browser WebGPU exports preserve, what they change, and the parity evidence the model cards publish.
Jev Tools & CLIs#open-models#local#onnx
Read article
Jev labels a record that already exists. Code moves, flags, or holds it. How the document, mail, and transfer tools keep the action out of the model.
Jev Tools & CLIs#classification#email#security
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai