pypi lintlang 0.9.0
LintLang v0.9.0 — Descriptions are screened, and path flags are judged in context

49 minutes ago

LintLang v0.9.0 — Descriptions are screened, and path flags are judged in context

A feature release in four parts: the instruction-content detectors now read the descriptions agents actually act on, the referenced-path check judges a path against the project it was written in, a scan can no longer be aborted by one unparseable file, and discovery covers Cursor rules and MCP configurations out of the box.

LintLang is a local, deterministic static linter for AI agent instructions, prompts, and tool definitions.

What's new

Tool and skill descriptions are content-screened

Until now the content detectors (H2/H4/H5) read system prompts only: an MCP tool description that ordered an agent to exfiltrate private files scanned PASS, while the identical text in a system prompt scanned FAIL. Each tool description, tool parameter description, and skill front-matter description is now screened as its own prompt segment, with findings located at tool:<name>.description, tool:<name>.parameters.<path>.description, or skill.description. Tool descriptions can now produce instruction-content findings. Screening is on in the default pattern selection, and it was measured before it was trusted: on 45 real MCP server manifests (1,405 tools), 0.14% of tools received a description finding and none was CRITICAL or HIGH.

Referenced paths are judged against the tracked tree and the document itself

H4.5, the referenced-path check, now resolves a path against the repository's tracked tree when git can list it, so a file a partial checkout never wrote out is no longer reported missing; when the tracked tree cannot be listed, the finding says the path "is not present in this checkout" instead of claiming it does not exist. It also stops reporting a path when the document itself supplies where the path resolves or why it is not a lookup: a named working directory, a sibling skill the sentence attributes the path to, a creation verb that makes the path an output, an example marker or an "or similar" hedge, several locations offered for one file, a parameterised remote the section fetches from, or the same path offered in two casings as alternative spellings of one file. References in none of these classes report exactly as before.

This is the release that moves the number previous notes kept printed: on the 30-case practice exam, H4.5 previously fired 26 times of which 7 were genuine problems (26.9%); it now fires 7 times and 7 of 7 are genuine, with all 7 genuine problems still firing and at least 15 of the 19 wrong flags stopped (19 of 19 stopped on the exam as run).

One unparseable file can no longer abort a scan

A file a directory scan or --discover run sweeps in but cannot parse is now reported as an input error on that file (an ERROR verdict) while the rest of the repository scans normally. Files the user named keep the fatal input-error channel, and a swept-in parse error still fails the run under --fail-on, under --write-baseline, or when no file in the scan could be inspected at all.

Discovery finds Cursor rules and MCP configurations

--discover now recognizes Cursor rule files by their .mdc extension anywhere in the tree, not only under .cursor/rules/ — the largest public rule collection keeps its 257 rules under rules/, and discovery previously found none of them. It also recognizes .mcp.json and mcp.json as instruction inputs, so a directory holding only an MCP configuration no longer reports "matched no eligible input".

Try it

Run without a global installation:

uvx --from lintlang==0.9.0 lintlang scan .

Or install with pip:

python -m pip install -U lintlang==0.9.0
lintlang scan .

No LLM calls during scanning. Findings are advisory by default; CI enforcement is opt-in.

Resources

Don't miss a new lintlang release

NewReleases is sending notifications on new releases.