Four independent static-analysis tools launched in the first half of 2026. Each takes a different angle on the same problem: prompts are source code, and nobody is running a linter on them.

The tools are lintlang, promptlint, scaffold-lint, and promptinel. A blog post by Tian Pan on April 28 gave the movement its thesis statement: "Prompt Linting Is the Missing Layer Between Eval and Production." The Reddit r/LLMDevs community confirmed the demand. The ESLint-for-prompts analogy is no longer aspirational. It is consolidating across at least four independent implementations.

We covered PromptQC in April. That tool brought the linter concept to system prompts specifically. This article covers the broader category consolidation and the four new tools that prove prompt linting is becoming its own discipline.

The Problem These Tools Share

Production system prompts routinely run to hundreds of lines. They define personas, output formats, tool usage instructions, safety guardrails, context formatting rules, example pairs, and conditional logic embedded in natural language. They are programs written in English.

But nobody lints them.

The standard pre-deployment workflow for a prompt change is: review it in a PR, eyeball it, maybe test it manually against a few inputs, then merge. A CSS change gets more pre-deployment scrutiny than the instruction set controlling how a model behaves for every single user.

This gap shows up in production incidents. A prompt edit removes a safety clause as part of a "preamble cleanup." Every eval passes. Two weeks later, a customer-facing assistant produces a response that should have been refused. The post-mortem traces the regression to a single deletion that nobody flagged because the eval suite had no opinion on whether the safety clause was present. It only had opinions on whether the model behaved well in the cases the suite remembered to test.

Evals measure what the model produces. They do not measure what the prompt is. Prompts have a structural layer that exists independently of behavior. Sections that must be present. References that must resolve. Variables that must interpolate. Length budgets that must hold. Deprecated identifiers that must not appear. When that structural layer breaks, behavior stays green for a while. Then the right edge case surfaces the failure as an incident.

The fix is not a better eval. The fix is a layer that runs before eval, in milliseconds, on every prompt change.

lintlang: Zero-LLM CI Gating for Agent Configs

GitHub: hermes-labs-ai/lintlang (26 stars)

Language: Python

License: Apache 2.0

Install: pip install lintlang

lintlang is a static linter for AI agent configs, tool descriptions, and system prompts. Its defining feature is zero LLM calls per scan. It runs entirely on regex and structural heuristics. Same input, same output, every run. It costs nothing and runs in about 2 milliseconds per file.

The tool identifies seven structural failure patterns (H1 through H7) derived from audits of eight major AI frameworks and 12 filed PRs:

Pattern Name What Users Report Severity
H1 Tool Description Ambiguity "Agent picks wrong tool" CRITICAL-MEDIUM
H2 Missing Constraint Scaffolding "Agent loops infinitely" CRITICAL-HIGH
H3 Schema-Intent Mismatch "Structured output broken" CRITICAL-LOW
H4 Context Boundary Erosion "Agent leaks state across tasks" HIGH-MEDIUM
H5 Implicit Instruction Failure "Model doesn't follow instructions" MEDIUM-LOW
H6 Template Format Contract Violation "Agent broke after prompt change" MEDIUM-INFO
H7 Role Confusion "Chat history is messed up" CRITICAL-MEDIUM

Each finding includes a severity, a location, and a concrete fix suggestion. No vague "improve your prompt." Specific rewrites you can apply immediately.

lintlang gives a verdict, not a score. Three outcomes: PASS (ship it), REVIEW (has blind spots), FAIL (will break in production). This binary framing is deliberate. It makes the tool usable in CI pipelines where you need a clear go/no-go signal.

The tool validates against 28 comparison files and runs 154 tests including a CI-mechanical doc-consistency gate. It parses JSON, YAML, plain text, and .prompt files. Markdown front-matter works. Arbitrary nested templates may not.

CI integration:

name: Prompt Lint
on: [pull_request]
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pip install lintlang
      - run: lintlang scan config.yaml --fail-on fail

The --fail-on fail flag returns a non-zero exit code for CRITICAL or HIGH findings. The --fail-on review flag also fails on MEDIUM. JSON output is available for programmatic use.

lintlang comes from Hermes Labs, which builds AI audit infrastructure for enterprise compliance. The same team produces scaffold-lint and rule-audit. All three tools analyze different axes of the same prompt with zero-overlap findings.

promptlint: 35 Rules, Auto-Fix, and a Suite Behind It

GitHub: scottconverse/promptlint

Language: Python

License: MIT

Install: pip install promptlint-ai

promptlint is the broadest of the four tools in terms of rule coverage. It ships with 35 built-in rules across 9 categories:

Category Rules Examples
Token Budget PL001-003 Token limits, stop-word density
System Prompt PL010-014 Missing system message, injection vectors, conflicts
Formatting PL020-024 Trailing whitespace, line length, repetition
Variables PL030-033 Undefined/unused vars, missing defaults
Pipeline PL040-043 Missing handoffs, context growth, orphan references
Hallucination PL050-054 Asks for URLs/citations, fabrication-prone tasks
Security PL060-063 PII, API keys, injection vectors
Smells PL070-074 Buried instructions, competing instructions, wall of text
Gates PL080-084 Missing enforcement, no fallback, no output schema

The breadth is notable. Where lintlang focuses on agent-specific structural failures and scaffold-lint targets prompt bloat, promptlint covers the full range from token waste to security to hallucination risk to pipeline integrity.

It also has auto-fix. The --fix flag applies safe rewrites for formatting issues. CI mode outputs GitHub Actions annotations. Configuration lives in .promptlint.yaml. A plugin system lets teams write custom rules in Python.

promptlint is part of a seven-tool suite called prompttools. The other six tools cover formatting (promptfmt), testing (prompttest), cost estimation (promptcost), semantic diffing (promptdiff), and version control (promptvault). This suite approach mirrors what ESLint did for JavaScript: start with linting, expand into a full developer toolchain.

The README explicitly claims the ESLint-for-prompts mantle: "The ESLint for prompts."

scaffold-lint: Catching Bloat and Technique Conflicts

GitHub: hermes-labs-ai/scaffold-lint

Language: Python

License: MIT

Install: pip install scaffold-lint

scaffold-lint solves a specific problem that the other tools do not address: prompt bloat and technique incompatibility. It targets the scaffolding layer of prompts, the structural instructions that tell the model how to reason rather than what to do.

The problem is real. Every review cycle adds "just one more" scaffold. The prompt hits 1,500 tokens. You mixed evidential ("cite your sources") with step-by-step with strict format constraints. All three fight each other. Small models collapse under the weight. You wrote metaphorical scaffolding ("think like a senior engineer") that works on Claude Opus and silently fails on a 2B local model.

scaffold-lint has 7 rules:

Rule Level What It Catches
TASKDESCMISSING ERROR No clear task description. All scaffolding, no instruction.
SCAFFOLDTOOLONG WARN Scaffold exceeds ~500 tokens. Diminishing returns past that.
SCAFFOLD_STACKING WARN Multiple scaffold techniques mixed. They are subadditive. Pick one.
SCAFFOLD_OVERREACH WARN Heavy scaffolding with weak task description. Fix the task first.
ABSTRACTNOSIZE_CHECK WARN Metaphorical scaffolding without model-size context. Breaks on local models.
CONFIDENCENOCALIBRATION WARN Confidence language without calibration direction. Specify FP/FN bias first.
CONTRASTIVE_DETECTED INFO Contrastive NOT patterns detected. Only helps on FP-heavy models.

The SCAFFOLD_STACKING rule is the most interesting. Research on scaffolding techniques shows they are subadditive. Mixing chain-of-thought with evidential with format constraints does not compound. It conflicts. The rule tells you to pick one.

The TASKDESCMISSING rule catches a common failure mode: the prompt is all scaffolding and no actual instruction. The model gets told how to think but not what to do.

scaffold-lint is stdlib-only. Zero runtime dependencies. It works as a companion to lintlang and rule-audit from the same team. The three tools analyze different axes of the same prompt with zero-overlap findings.

pip install scaffold-lint
scaffold-lint lint system_prompt.md

promptinel: Security-First, Go-Based, Prompts as Executable Artifacts

GitHub: CunningFatalist/promptinel (10 stars)

Language: Go

License: MIT (implied)

Install: go install github.com/CunningFatalist/promptinel@latest

promptinel takes a fundamentally different stance from the other three tools. It treats prompts as executable artifacts, not text to be quality-checked. Its focus is security, not quality.

The distinction matters. The other three linting tools check for structural problems that hurt output quality or waste tokens. promptinel checks for instructions that could trigger unintended external actions. Data exfiltration. Tool misuse. Credential access. Environment manipulation. These are not quality issues. They are security issues.

The tool ships a built-in rule set covering:

  • Prompt override and role spoofing patterns
  • Download-and-execute chains
  • Template execution and network fetch behavior
  • Secret exfiltration intent
  • Invisible Unicode and obfuscation tricks
  • Local sensitive file references

Being written in Go gives promptinel two advantages. It compiles to a single binary with no runtime dependencies. It integrates natively with Go-based CI systems and security pipelines. It also outputs SARIF format, which plugs directly into GitHub Advanced Security and similar platforms.

The trust model is interesting. promptinel lets you declare trust levels for different content sources:

trust:
  local-files: trusted
  remote-includes: untrusted
  user-input-placeholders: tainted

This is a supply-chain security model applied to prompts. Local files are trusted. Remote includes are untrusted. User input is tainted. The linter applies different rule sets based on the trust level of the content source.

promptinel also includes a sanitize mode that applies deterministic cleanup steps like removing invisible characters. And it supports baselining, so teams can adopt the tool in CI without fixing all historical findings at once.

The web demo at promptiscan.vercel.app lets you try scanning prompts without installing anything.

How They Compare

All four tools share a core philosophy: prompts are engineering artifacts that deserve the same pre-deployment scrutiny as code. They diverge in scope, approach, and target user.

Tool Focus Language LLM Calls Rules Auto-Fix Security
lintlang Agent configs, tool descriptions Python Zero 7 (H1-H7) No No
promptlint Full prompt lifecycle Python Not specified 35 Yes Yes
scaffold-lint Prompt bloat and technique conflicts Python Zero 7 No No
promptinel Prompt security Go Zero Built-in + custom Sanitize mode Primary focus

Scope. lintlang and scaffold-lint are narrow and deep. lintlang targets agent configs specifically. scaffold-lint targets the scaffolding layer specifically. promptlint covers the widest surface area. promptinel targets a different surface entirely: security rather than quality.

Determinism. lintlang, scaffold-lint, and promptinel are all fully deterministic. Same input, same output, every run. promptlint is also deterministic for its pattern-based rules. This matters for CI. You cannot gate a deployment on a check that gives different results on Tuesday than it did on Monday.

Language. Three of the four are Python, which means pip install and immediate integration into the Python-heavy AI/ML toolchain. promptinel's Go implementation gives it a single-binary deployment story and native integration with security platforms via SARIF output.

Complementarity. These tools are not competitors. They are complementary. lintlang catches agent-specific structural failures. scaffold-lint catches bloat and technique conflicts. promptlint covers the full quality surface. promptinel covers the security surface. Running all four on the same prompt would produce non-overlapping findings. This is a sign of a maturing category. The analogy is not just ESLint. It is the full JavaScript tooling ecosystem: ESLint for quality, Prettier for formatting, Semgrep for security, TypeScript for type checking. Each layer catches what the others miss.

Why Now

Three forces are driving category consolidation.

Prompts got big. Production system prompts routinely exceed 2,000 tokens. At that scale, contradictions creep in. Instructions repeat. Security boundaries blur. Token budgets get exceeded. But unlike code, there are no CI gates. Teams deploy prompts that would never pass a basic review. The tools exist because the pain exists.

Agent architectures made it worse. Agent configs add tool descriptions, role hierarchies, termination conditions, and context boundaries on top of system prompts. The failure modes multiply. An agent picking the wrong tool because two tool descriptions sound similar is a structural bug, not a semantic one. lintlang's H1 rule catches exactly this.

The eval-only approach failed. Tian Pan's April 28 blog post articulates this clearly. Evals measure what the model produces. They do not measure what the prompt is. The safety clause that got deleted in a "preamble cleanup" passed every eval. The variable that renders as a literal string because the input schema was never checked passes every eval. The deprecated tool reference that the prompt still describes passes every eval. Evals test semantics on a syntax tree they never compiled. The linter is the compiler.

The grassroots demand is visible. The r/LLMDevs post about PromptQC got immediate traction. Multiple independent developers built linting tools in the same quarter without coordinating. Tian Pan wrote two separate blog posts on the topic in April alone (April 15 and April 28). Hermes Labs built three complementary tools and open-sourced all of them.

When four independent teams build the same type of tool in the same quarter, the category exists whether anyone names it or not.

The Custom-Rule Layer

The most valuable part of a linter is not the built-in rules. It is the custom-rule layer that encodes organizational knowledge.

Each post-mortem produces a rule. The safety clause regression becomes a rule that the safety section must contain a specific anchor phrase. The variable rendering failure becomes a rule that variable names must validate against a registry. The token budget creep becomes a rule that the diff in compiled token count gets reported on every PR.

The org that does this well treats the linter rule file as a first-class artifact in code review. New rules are proposed in PRs, reviewed for false-positive risk, and merged with the same rigor as a new test. The rule set grows monotonically. A rule once added does not get removed unless the underlying constraint changes. Six months in, the linter rule file is one of the most valuable documents in the repo: a continuously updated record of every structural failure mode the team knows about.

This is the structural memory of the team. The eval suite is the behavioral memory. Both decay if not maintained. But the linter is far cheaper to maintain because the rules are deterministic. Once written, they keep working until the underlying schema changes.

What the ESLint Analogy Gets Right and Wrong

The ESLint-for-prompts analogy is accurate in one crucial way: both are static-analysis tools that run before deployment and catch structural problems that behavioral tests miss.

The analogy breaks in two places.

Prompts are not code. Code has a formal grammar. Prompts are mostly free text with templated holes. The syntax tree that a prompt linter parses is softer than what ESLint works with. This means the rules are more heuristic and the false-positive rate is higher. lintlang handles this by giving a verdict (PASS/REVIEW/FAIL) rather than a binary pass/fail, acknowledging that MEDIUM findings need human judgment.

The ecosystem is younger. ESLint has 20,000+ community rules. Prompt linting has a few dozen built-in rules across four tools. The custom-rule layer is where the ecosystem will grow. Every team that adopts one of these tools will write rules specific to their domain. Over time, the best of those rules will get upstreamed. This is how ESLint grew. The same pattern will repeat here.

Getting Started

If you are running system prompts in production without linting them, you are shipping unreviewed code. Here is how to start:

For agent configs and tool descriptions: lintlang. It catches the structural failures specific to agent architectures: vague tool descriptions, missing termination conditions, schema mismatches.

pip install lintlang
lintlang scan agent_config.yaml --fail-on fail

For prompt bloat and technique conflicts: scaffold-lint. It tells you when your scaffolding is working against itself.

pip install scaffold-lint
scaffold-lint lint system_prompt.md

For full-spectrum quality checks: promptlint. The broadest rule coverage, auto-fix, and CI integration.

pip install promptlint-ai
promptlint check ./prompts/

For security scanning: promptinel. Catches injection patterns, exfiltration risks, and Unicode obfuscation. The only tool written in Go.

go install github.com/CunningFatalist/promptinel@latest
promptinel scan prompts/

For a combined pipeline: Run lintlang + scaffold-lint + promptlint for quality. Add promptinel for security. The findings will not overlap.

Where This Goes

The category will grow in three directions.

More rules, more coverage. The current tools cover structural and security checks. Expect coverage to expand into semantic territory: detecting contradictions between instructions, identifying instructions that models consistently fail to follow, flagging prompt sections that have no measurable effect on output quality.

CI/CD integration as the default. Every tool in this article supports JSON output and exit codes for CI pipelines. The next step is first-class GitHub Actions, GitLab CI templates, and pre-commit hooks that make adding a lint step as easy as adding ESLint was for JavaScript projects.

Custom-rule ecosystems. As teams adopt these tools and write domain-specific rules, the best of those rules will get shared. lintlang and promptlint both support custom rule plugins. The ecosystem effect that made ESLint dominant will play out here too.

The thesis is simple. Prompts are programs. Programs get linted before they ship. The tools now exist to do it. The only question is how long teams will keep deploying unlinted prompts to production.


Citations

  1. lintlang GitHub Repository: https://github.com/hermes-labs-ai/lintlang
  2. lintlang PyPI: https://pypi.org/project/lintlang/
  3. scaffold-lint GitHub Repository: https://github.com/hermes-labs-ai/scaffold-lint
  4. scaffold-lint PyPI: https://pypi.org/project/scaffold-lint/
  5. promptlint GitHub Repository: https://github.com/scottconverse/promptlint
  6. promptlint-ai PyPI: https://pypi.org/project/promptlint-ai/
  7. promptinel GitHub Repository: https://github.com/CunningFatalist/promptinel
  8. Tian Pan, "Prompt Linting Is the Missing Layer Between Eval and Production," April 28, 2026: https://tianpan.co/blog/2026-04-28-prompt-linting-structural-checks-ci-eval-gap
  9. Tian Pan, "Prompt Linting: The Pre-Deployment Gate Your AI System Is Missing," April 15, 2026: https://tianpan.co/blog/2026-04-15-prompt-linting-pre-deployment-gate
  10. Reddit r/LLMDevs, "Built a static analysis tool for LLM system prompts": https://www.reddit.com/r/LLMDevs/comments/1ruer8m/
  11. Hermes Labs (lintlang, scaffold-lint, rule-audit): https://hermes-labs.ai
  12. PromptQC (prior coverage): 2026-04-14-promptqc.md

Suggested Title

"Four Prompt Linters Walked Into CI: The Category That Concreted Around Static Analysis"


Word Count

2,470 words (body text)


Fact-Check Notes

  • lintlang: 26 GitHub stars confirmed from search results. v0.2.1 confirmed. 7 detectors (H1-H7) confirmed from README. Zero LLM calls confirmed.
  • promptlint: 0 GitHub stars on the scottconverse/promptlint repo. The PyPI package is "promptlint-ai" (v0.3.0). There is also a separate "promptlint" PyPI package (v0.1.1) by different authors. The 34 rules figure from the task brief should be verified against the current README which now lists 35 rules. I used 35 in the article based on the README.
  • scaffold-lint: 0 GitHub stars. 7 rules confirmed from README. stdlib-only confirmed. Made by Hermes Labs (same team as lintlang).
  • promptinel: 10 GitHub stars confirmed. Written in Go confirmed. Security-focused confirmed. SARIF output confirmed.
  • Tian Pan blog posts: Two posts confirmed (April 15 and April 28). Both accessed and cited.
  • Reddit r/LLMDevs post: Confirmed as the PromptQC announcement post. The community demand signal is real.
  • The ESLint analogy appears explicitly in promptlint's README tagline and is discussed in Tian Pan's April 15 post.