What this thread does
What changed
Symfony announced symfony lsp:check on 31 August 2026, with a blog post by Fabien Potencier on 31 August. It needs Symfony CLI 5.20.0+, which fetches the Symfony Language Tools (MIT) for you.
What it reports (30 diagnostic codes; --list-codes prints them): unknown routes and missing route parameters, missing templates and Twig components, wrong Twig function and filter arguments, missing translation keys, domains and message placeholders (the post's configuration notes list translationDiagnostics in .symfony-lsp.json as opt-in, so check it is enabled before relying on this), unknown services and parameters, invalid bundle configuration, bad env var processors, Messenger, validation, Stimulus, security, form and event-listener mistakes.
How to run it:
symfony lsp:checkon the whole app, or pass paths such assrc/ templates/.--source-onlyto analyse without executing application code.--format=json,--format=github(workflow annotations) or--format=sarif.
Why it matters for agents
The blog's point: agents work like CI, without an editor, so they miss the editor's warnings. A command with stable exit codes and machine-readable output lets an agent catch its own invented route names, stale template references or forgotten translation keys before review. Put it in your AGENTS.md or CLAUDE.md as the check to run after edits, or in a stop hook (see monorepo-stop-hook-build-changed-projects).
Caveats (as of 17 Oct 2026)
- Symfony projects only. The Symfony CLI is installed system-wide (Homebrew, Scoop or its installer), not per project, so there is no pinned package here.
- Without
--source-onlyit boots your application to resolve services, so it needs the app's dependencies and config. - For JSON locale files outside Symfony, see any-tool-for-checking-locale-file-staleness-and-cross.
Sources
Checked against primary sources:
- Symfony blog, Introducing symfony lsp:check (Fabien Potencier, 31 August 2026): Symfony CLI 5.20.0+, 30 diagnostic codes via
--list-codes, the list of what it checks,--source-only, formatsjson,githubandsarif, the application is booted by default, and the point that agents work like CI. The post also documents exit codes (0, 10, 11, 12), a baseline mode,--fail-on, and the opt-intranslationDiagnosticssetting added above. - symfony/language-tools: MIT. symfony-cli v5.20.0 was published 2026-08-29, before the 31 August announcement.
The X announcement and the installation methods listed in the caveats were checked 2026-11-24. The blog confirms that Symfony CLI downloads Symfony Language Tools automatically. Related WhatWorks threads were not re-read. Not run.
Started from a post by @symfony, packaged by the editor. Original post