{"id":126,"date":"2026-11-10T16:00:00","date_gmt":"2026-11-10T15:00:00","guid":{"rendered":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/"},"modified":"2026-10-16T14:00:13","modified_gmt":"2026-10-16T12:00:13","slug":"running-claude-code-headless-in-ci-for-routine-checks","status":"publish","type":"post","link":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/","title":{"rendered":"Running Claude Code headless in CI for routine checks"},"content":{"rendered":"<p>Some rules in a project are easy for a human and impossible for a linter. &#8220;If you change the behaviour of a public method, add a line to <code>CHANGELOG.md<\/code>.&#8221; &#8220;If you add a new extension setting, document it.&#8221; PHPStan does not know what &#8220;behaviour&#8221; means, and a regex on the diff gives either nothing or nonsense.<\/p>\n<p>These are exactly the checks I now hand to Claude Code in headless mode, inside the CI pipeline. Not as a reviewer with opinions, but as a narrow check with a yes\/no answer. This post shows the job, the flags I use, and how I keep the cost and the secrets under control.<\/p>\n<h2>Problems I faced<\/h2>\n<ul>\n<li>A CI job needs a <strong>machine-readable answer<\/strong>. Free text like &#8220;Looks mostly fine, but\u00e2\u20ac\u00a6&#8221; cannot fail a pipeline.<\/li>\n<li>A CI job runs <strong>unattended<\/strong>. Nobody answers permission prompts, so every tool the agent may use must be decided upfront.<\/li>\n<li>A merge request is <strong>untrusted input<\/strong>. It can change files in <code>.claude\/<\/code> too, and I do not want a merge request to bring its own hooks into a job that holds my API key.<\/li>\n<li>An agent that loops is an agent that <strong>spends money<\/strong>.<\/li>\n<\/ul>\n<h2>Solution<\/h2>\n<h3>Step 1: The command<\/h3>\n<p>Headless mode is <code>claude -p<\/code> (or <code>--print<\/code>): one prompt in, one result out, then the process exits. These are the flags I combine for a check, all from the official CLI reference:<\/p>\n<pre><code class=\"language-bash\">git diff \"origin\/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}...HEAD\" \n  | claude --bare -p \"$(cat .ci\/changelog-check.md)\" \n      --tools \"Read\" \n      --permission-mode dontAsk \n      --max-turns 10 \n      --max-budget-usd 0.50 \n      --no-session-persistence \n      --output-format json \n      --json-schema \"$(cat .ci\/findings.schema.json)\" \n  &gt; claude-result.json<\/code><\/pre>\n<p>What each part does:<\/p>\n<ul>\n<li><code>--bare<\/code> skips the auto-discovery of hooks, skills, plugins, MCP servers, auto memory and <code>CLAUDE.md<\/code>. According to the docs, a normal <code>-p<\/code> run executes the hooks from the project&#8217;s <code>.claude\/settings.json<\/code> and connects the servers in <code>.mcp.json<\/code>, even in a folder nobody trusted. In a pipeline that checks other people&#8217;s branches, I want none of that. Bare mode also reads only <code>ANTHROPIC_API_KEY<\/code>, no OAuth login.<\/li>\n<li><code>--tools \"Read\"<\/code> restricts the built-in tools to reading files. The diff comes in through stdin, so the agent needs no shell to get it.<\/li>\n<li><code>--permission-mode dontAsk<\/code> denies everything that would otherwise need a prompt.<\/li>\n<li><code>--max-turns<\/code> and <code>--max-budget-usd<\/code> put a ceiling on the run. The budget is checked against a client-side estimate, so keep some headroom.<\/li>\n<li><code>--no-session-persistence<\/code> does not write the session to disk; there is nothing to resume in CI.<\/li>\n<li><code>--output-format json<\/code> with <code>--json-schema<\/code> puts the validated answer into the <code>structured_output<\/code> field, next to metadata like <code>total_cost_usd<\/code> and <code>session_id<\/code>.<\/li>\n<\/ul>\n<h3>Step 2: The prompt and the schema<\/h3>\n<p>The prompt is a file in the repository, <code>.ci\/changelog-check.md<\/code>:<\/p>\n<pre><code class=\"language-markdown\">You get a git diff on stdin. Check two rules and nothing else:\n\n1. If the diff changes the behaviour of a public method in Classes\/\n   (signature, return value, thrown exceptions, side effects), the diff\n   must also add a line to CHANGELOG.md under \"Unreleased\".\n2. If the diff adds a setting to Configuration\/Sets\/*\/settings.definitions.yaml,\n   the diff must also mention that setting in Documentation\/.\n\nRefactorings without behaviour change, tests and comments need no entry.\nYou may open files with Read to understand a change.\nReport one finding per violated rule and file. If nothing is violated,\nreturn an empty findings list.<\/code><\/pre>\n<p>And the schema, <code>.ci\/findings.schema.json<\/code>:<\/p>\n<pre><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"findings\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"rule\": { \"type\": \"integer\" },\n          \"file\": { \"type\": \"string\" },\n          \"reason\": { \"type\": \"string\" }\n        },\n        \"required\": [\"rule\", \"file\", \"reason\"]\n      }\n    }\n  },\n  \"required\": [\"findings\"]\n}<\/code><\/pre>\n<p>With a schema, I never parse prose. Either there is a <code>findings<\/code> array or the run failed.<\/p>\n<h3>Step 3: The GitLab CI job<\/h3>\n<pre><code class=\"language-yaml\">changelog-check:\n  stage: test\n  image: node:24-alpine3.21\n  rules:\n    - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\n      changes:\n        - Classes\/**\/*\n        - Configuration\/**\/*\n  timeout: 10m\n  before_script:\n    - apk add --no-cache git curl bash jq\n    - curl -fsSL https:\/\/claude.ai\/install.sh | bash\n    - export PATH=\"$HOME\/.local\/bin:$PATH\"\n    - git fetch origin \"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME\"\n  script:\n    - .\/.ci\/run-changelog-check.sh\n  artifacts:\n    when: always\n    paths:\n      - claude-result.json<\/code><\/pre>\n<p>The install lines follow the GitLab example in the Claude Code docs. <code>run-changelog-check.sh<\/code> contains the command from step 1 and then decides the exit code:<\/p>\n<pre><code class=\"language-bash\">#!\/usr\/bin\/env bash\nset -euo pipefail\n\n# ... the claude command from step 1 writes claude-result.json ...\n\necho \"Estimated cost: $(jq -r '.total_cost_usd' claude-result.json) USD\"\n\nif ! jq -e '.structured_output.findings' claude-result.json &gt; \/dev\/null; then\n  echo \"Check did not finish, see claude-result.json\"\n  exit 2\nfi\n\ncount=$(jq '.structured_output.findings | length' claude-result.json)\nif [ \"$count\" -gt 0 ]; then\n  jq -r '.structured_output.findings[] | \"rule (.rule): (.file): (.reason)\"' claude-result.json\n  exit 1\nfi\necho \"No findings.\"<\/code><\/pre>\n<p>Because of <code>set -e<\/code>, a run that hits <code>--max-turns<\/code> (the CLI exits with an error then) or fails to authenticate already stops the job before the <code>jq<\/code> part. The extra check catches a result without structured output. In both cases the job is red with a different message than &#8220;you forgot the changelog&#8221;, which matters: people must be able to tell &#8220;rule violated&#8221; from &#8220;the check broke&#8221;.<\/p>\n<h3>Step 4: Secrets and cost<\/h3>\n<ul>\n<li>Store <code>ANTHROPIC_API_KEY<\/code> as a <strong>masked<\/strong> CI\/CD variable, never in the repository. If you also mark it protected, it is only available on protected branches, so merge request pipelines from feature branches will not get it. Decide that consciously; for public projects with outside contributors I would not run this job on their branches at all.<\/li>\n<li>Use a separate API key for CI, ideally in its own Console workspace with a spend limit, so a misbehaving pipeline cannot eat the budget of your daily work, and so you can revoke it alone.<\/li>\n<li>Print <code>total_cost_usd<\/code> in every job log. After a week you know what a check really costs, and the <code>changes:<\/code> rule keeps the job away from merge requests that only touch documentation.<\/li>\n<li>Keep the tool list minimal. A check that needs only <code>Read<\/code> gets only <code>Read<\/code>.<\/li>\n<\/ul>\n<h2>What I do not use it for<\/h2>\n<p>Anything a deterministic tool can do stays with that tool: coding standards, types, tests, composer validation. The AI job runs <em>after<\/em> those, and only for rules that need some reading comprehension. Also, it never writes. A check that edits code in the pipeline is a different animal, with different permissions, and it ends in a merge request that a human reviews.<\/p>\n<p>If you set something similar up, I would love to hear which fuzzy rules you automated. Drop a comment!<\/p>\n<h2>Further reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/code.claude.com\/docs\/en\/headless\">Run Claude Code programmatically (headless mode)<\/a><\/li>\n<li><a href=\"https:\/\/code.claude.com\/docs\/en\/cli-reference\">Claude Code CLI reference<\/a><\/li>\n<li><a href=\"https:\/\/code.claude.com\/docs\/en\/gitlab-ci-cd\">Claude Code with GitLab CI\/CD<\/a><\/li>\n<li><a href=\"https:\/\/code.claude.com\/docs\/en\/github-actions\">Claude Code GitHub Actions<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":1,"featured_media":127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[34,37,35,45],"class_list":["post-126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-engineering","tag-ai-agents","tag-automation","tag-claude-code","tag-devops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Running Claude Code headless in CI for routine checks<\/title>\n<meta name=\"description\" content=\"Run claude -p in a CI job for fuzzy checks like changelog hygiene: read-only tools, bare mode, JSON schema output, budget limits and failing on findings.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running Claude Code headless in CI for routine checks\" \/>\n<meta property=\"og:description\" content=\"Run claude -p in a CI job for fuzzy checks like changelog hygiene: read-only tools, bare mode, JSON schema output, budget limits and failing on findings.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/\" \/>\n<meta property=\"og:site_name\" content=\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hojaonline7\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-10T15:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/running-claude-code-headless-in-ci-for-routine-checks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:site\" content=\"@hojaonline\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hoja Mustaffa Abdul Latheef\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/\"},\"author\":{\"name\":\"Hoja Mustaffa Abdul Latheef\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"headline\":\"Running Claude Code headless in CI for routine checks\",\"datePublished\":\"2026-11-10T15:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/\"},\"wordCount\":743,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/running-claude-code-headless-in-ci-for-routine-checks.jpg\",\"keywords\":[\"AI agents\",\"Automation\",\"Claude Code\",\"DevOps\"],\"articleSection\":[\"AI engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/\",\"name\":\"Running Claude Code headless in CI for routine checks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/running-claude-code-headless-in-ci-for-routine-checks.jpg\",\"datePublished\":\"2026-11-10T15:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\"},\"description\":\"Run claude -p in a CI job for fuzzy checks like changelog hygiene: read-only tools, bare mode, JSON schema output, budget limits and failing on findings.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/running-claude-code-headless-in-ci-for-routine-checks.jpg\",\"contentUrl\":\"https:\\\/\\\/hoja.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/running-claude-code-headless-in-ci-for-routine-checks.jpg\",\"width\":1200,\"height\":630,\"caption\":\"A fuzzy linter in your pipeline\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/running-claude-code-headless-in-ci-for-routine-checks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Running Claude Code headless in CI for routine checks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/\",\"name\":\"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog\",\"description\":\"Notes from daily work with TYPO3, PHP and AI-assisted engineering\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hoja.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hoja.in\\\/blog\\\/#\\\/schema\\\/person\\\/e6fbd54c2061674d8ea3e7861d858c7b\",\"name\":\"Hoja Mustaffa Abdul Latheef\",\"description\":\"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.\",\"sameAs\":[\"https:\\\/\\\/hoja.in\\\/\"],\"url\":\"https:\\\/\\\/hoja.in\\\/blog\\\/author\\\/hoja\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Running Claude Code headless in CI for routine checks","description":"Run claude -p in a CI job for fuzzy checks like changelog hygiene: read-only tools, bare mode, JSON schema output, budget limits and failing on findings.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/","og_locale":"en_US","og_type":"article","og_title":"Running Claude Code headless in CI for routine checks","og_description":"Run claude -p in a CI job for fuzzy checks like changelog hygiene: read-only tools, bare mode, JSON schema output, budget limits and failing on findings.","og_url":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/","og_site_name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","article_publisher":"https:\/\/www.facebook.com\/hojaonline7","article_published_time":"2026-11-10T15:00:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/running-claude-code-headless-in-ci-for-routine-checks.jpg","type":"image\/jpeg"}],"author":"Hoja Mustaffa Abdul Latheef","twitter_card":"summary_large_image","twitter_creator":"@hojaonline","twitter_site":"@hojaonline","twitter_misc":{"Written by":"Hoja Mustaffa Abdul Latheef","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#article","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/"},"author":{"name":"Hoja Mustaffa Abdul Latheef","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"headline":"Running Claude Code headless in CI for routine checks","datePublished":"2026-11-10T15:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/"},"wordCount":743,"commentCount":0,"image":{"@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/running-claude-code-headless-in-ci-for-routine-checks.jpg","keywords":["AI agents","Automation","Claude Code","DevOps"],"articleSection":["AI engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/","url":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/","name":"Running Claude Code headless in CI for routine checks","isPartOf":{"@id":"https:\/\/hoja.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#primaryimage"},"image":{"@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#primaryimage"},"thumbnailUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/running-claude-code-headless-in-ci-for-routine-checks.jpg","datePublished":"2026-11-10T15:00:00+00:00","author":{"@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b"},"description":"Run claude -p in a CI job for fuzzy checks like changelog hygiene: read-only tools, bare mode, JSON schema output, budget limits and failing on findings.","breadcrumb":{"@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#primaryimage","url":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/running-claude-code-headless-in-ci-for-routine-checks.jpg","contentUrl":"https:\/\/hoja.in\/blog\/wp-content\/uploads\/2026\/10\/running-claude-code-headless-in-ci-for-routine-checks.jpg","width":1200,"height":630,"caption":"A fuzzy linter in your pipeline"},{"@type":"BreadcrumbList","@id":"https:\/\/hoja.in\/blog\/running-claude-code-headless-in-ci-for-routine-checks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hoja.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Running Claude Code headless in CI for routine checks"}]},{"@type":"WebSite","@id":"https:\/\/hoja.in\/blog\/#website","url":"https:\/\/hoja.in\/blog\/","name":"Hoja Mustaffa Abdul Latheef \u00e2\u20ac\u201c Blog","description":"Notes from daily work with TYPO3, PHP and AI-assisted engineering","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hoja.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hoja.in\/blog\/#\/schema\/person\/e6fbd54c2061674d8ea3e7861d858c7b","name":"Hoja Mustaffa Abdul Latheef","description":"Senior TYPO3 Developer at jweiland.net, TYPO3 CMS Certified Developer. I write about TYPO3 upgrades, extension development, PHP and AI-assisted engineering with Claude Code.","sameAs":["https:\/\/hoja.in\/"],"url":"https:\/\/hoja.in\/blog\/author\/hoja\/"}]}},"_links":{"self":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":1,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions\/186"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media\/127"}],"wp:attachment":[{"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoja.in\/blog\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}