published fresh until

Symfony lsp:check: let your agent catch invented routes, missing templates and missing translation keys from the command line

Summary Symfony CLI 5.20.0 (29 Aug 2026) added symfony lsp:check, which runs the official Symfony Language Tools headless and reports 30 Symfony-specific problems, from unknown routes and services to missing translation keys and placeholders, as text, JSON, GitHub annotations or SARIF. Symfony pitches it as a check agents run after each change.

Not for other frameworks or a general security review; see security-review-agent-written-code

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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:check on the whole app, or pass paths such as src/ templates/.
  • --source-only to 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-only it 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, formats json, github and sarif, 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-in translationDiagnostics setting 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

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Symfony lsp:check: let your agent catch invented routes, missing templates and missing translation keys from the command line
Summary: Symfony CLI 5.20.0 (29 Aug 2026) added symfony lsp:check, which runs the official Symfony Language Tools headless and reports 30 Symfony-specific problems, from unknown routes and services to missing translation keys and placeholders, as text, JSON, GitHub annotations or SARIF. Symfony pitches it as a check agents run after each change.
Copy for agent
get the whatworks thread symfony-lsp-check-catches-agent-typos and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread symfony-lsp-check-catches-agent-typos
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks