Skip to content

ci: code review: improvements (use system prompt, give more permissions)#10649

Open
f321x wants to merge 3 commits into
spesmilo:masterfrom
f321x:improve_claude_ci
Open

ci: code review: improvements (use system prompt, give more permissions)#10649
f321x wants to merge 3 commits into
spesmilo:masterfrom
f321x:improve_claude_ci

Conversation

@f321x
Copy link
Copy Markdown
Member

@f321x f321x commented May 14, 2026

Skimming through the headless docs I think these changes could improve the results of the CI:

  • pass --dangerously-skip-permissions so it can actually execute and modify code
  • append the prompt text to the system prompt, this prioritizes it higher and keeps it more available in the context
  • log effort level

f321x added 2 commits May 14, 2026 12:41
With `--dangerously-skip-permissions` claude can also execute
commands. I thought the `-p` flag for headless usage already
did that, but apparently not
(looking at https://code.claude.com/docs/en/headless).

As it runs in the isolated CI container this seems fine and
might make it more powerful (e.g. allowing it to run and
modify unittests to verify behavior).
By appending the prompt to the system prompt it is prioritized over
the actual user prompt (the diff), so it apparently is more persistent
in the context. This e.g. could improve the output if a large diff
is provided as the actual task (system prompt) is treated with higher
priority than the large diff itself.
@f321x f321x force-pushed the improve_claude_ci branch from 70aaec6 to bed95a8 Compare May 14, 2026 10:42
If the model is logged it makes sense to log the effort level as well.
@f321x f321x force-pushed the improve_claude_ci branch from bed95a8 to de7a8bd Compare May 14, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant