lintlang
llms.txt137 starsChanged 2 months agoApache-2.0View on GitHub
Static linter for AI agent configs, tool descriptions, and system prompts. Use this repo when you need to: - lint agent configuration language before runtime - flag shipped patterns for vague tool descriptions, missing constraints, schema mismatches, and role confusion - run a zero-LLM quality gate in CI over YAML, JSON, prompt text, or Python source files - scan .py files for embedded prompts and uncalibrated thresholds (P1/P2 detectors) - preflight one present instruction plus explicit typed context before a…
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms-full.txtllms.txt
- lintlangSkill
- lintlangSkill
The file
We split this llms.txt into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use this repo when you need to:
- Distinctive: line 8
run a zero-LLM quality gate in CI over YAML, JSON, prompt text, or Python source files
- Distinctive: line 26
Do not use this repo as:
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# lintlang Static linter for AI agent configs, tool descriptions, and system prompts. Use this repo when you need to: - lint agent configuration language before runtime - flag shipped patterns for vague tool descriptions, missing constraints, schema mismatches, and role confusion - run a zero-LLM quality gate in CI over YAML, JSON, prompt text, or Python source files - scan `.py` files for embedded prompts and uncalibrated thresholds (P1/P2 detectors) - preflight one present instruction plus explicit typed context before a host sends it Primary CLI: - `lintlang scan <file-or-dir>` - `lintlang scan <path> --format json` - `lintlang patterns` - `printf '%s' 'Is it true that X?' | lintlang preflight - --format json` Outputs: - ERROR, PASS, REVIEW, FAIL, or SKIPPED (nothing to inspect; never a pass) scan outcomes - an `inspected` count of the tools, prompts and messages each verdict covers - structural findings with pattern IDs `H1` to `H7`, `P1`, and `P2` - optional JSON output for CI pipelines - separate preflight states `ALLOW`, `NOTICE`, `HOLD`, `UNAVAILABLE`, and `ERROR` - exact preflight spans, stable `PF001`-`PF005` IDs, and source-bound optional corrections Do not use this repo as: - a runtime agent evaluator - an LLM-based prompt judge - proof that an agent is behaviorally safe - a truth oracle, personalized history miner, silent rewrite layer, or provider sender Key success condition: - the same input files produce the same verdict and structural findings with no network or model calls - the same preflight request produces byte-stable redacted output; unavailable coverage never becomes clean ## Third-party adoption (public sources) - Character.AI's Larch repository pins `lintlang==0.3.1` in CI and fails on HIGH or CRITICAL findings; its linting reference links this repository as the upstream: https://github.com/character-ai/larch/blob/210d08a8f6c1b0dd14c27b709c66471bd31a5636/docs/linting.md (pin recorded in https://github.com/character-ai/larch/blob/7963b4c432747f32bcba22960745568a330344f3/.github/workflows/requirements-agent-linters.txt, merged via https://github.com/character-ai/larch/pull/7960) - MegaLinter's third-party plugin catalog lists lintlang as the `AI_LINTLANG` linter and resolves the descriptor from this repository; the linked record documents an opt-in plugin entry, not a bundled MegaLinter default: https://github.com/oxsecurity/megalinter/blob/9d4e685d4f31cecdd53743a08704cd23d9c01811/docs/plugins.md - Independent Gentoo packaging in the unofficial Haven overlay, which tracks upstream releases across successive ebuild bumps and whose `metadata.xml` records this repository as the upstream remote: https://github.com/thehaven/haven-overlay/tree/fbed4463d4e213a3bce98babbfc72ef78722d255/dev-util/lintlang ## About Hermes Labs Hermes Labs is an agentic infrastructure company building the reliability layer for autonomous systems. More at [hermes-labs.ai](https://hermes-labs.ai).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

