## Lesson — Rule engines that use concrete source code patterns,

**Tags:** llm, ast-grep, dx

Rule engines that use concrete source code patterns, like `ast-grep`, are significantly easier for LLMs to generate accurately than abstract syntax trees or regex. This structural similarity reduces the hallucination rate when AI agents are tasked with creating custom linting or transformation rules.
