Running Claude Code headless in CI for routine checks
Some checks are too fuzzy for a linter. A GitLab CI job that runs claude -p with read-only tools, a JSON schema for the findings, a budget cap and a clear exit code.
Some checks are too fuzzy for a linter. A GitLab CI job that runs claude -p with read-only tools, a JSON schema for the findings, a budget cap and a clear exit code.
An AI reviewer finds real bugs and a lot of noise. What I give it, what I keep for humans, and a sample review of a small TYPO3 change with its false positives.
One agent context is not enough for a large TYPO3 multi-site upgrade. How I split the work into read-only scouts, workers with disjoint file sets and an adversarial reviewer.
Approving every command is tiring, approving everything is dangerous. A settings.json for a TYPO3 project in DDEV, rules I never add, and how hooks and the sandbox fit in.
Instead of giving an agent a shell, give it three safe tools. A small MCP server in TypeScript that runs composer validate, PHPStan and a frontend smoke check, registered in .mcp.json.
Copied .claude folders drift fast. How I package skills, agents and a guard hook as a Claude Code plugin with a marketplace, versions and a self-test.
Models invent TYPO3 APIs with great confidence. My fix is context, not a better prompt: feed the real changelog entries, demand a citation per change, and reject answers without one.
An agent that answers TYPO3 questions from memory mixes up versions. How I connect Claude Code to an MCP server with version-bound TYPO3 knowledge and limit what it may call.
During my TYPO3 migration the agent could run commands that change the database. A PreToolUse hook makes it take a dump first. The script, the registration and how I test it.
AI-written PHP looks plausible, which is the problem. One Composer script runs lint, PHP-CS-Fixer, PHPStan and PHPUnit, and a Stop hook keeps the agent working while it is red.