7745a0befbe877a44d9e2fa39fb2870a51e72e5f
- Replace --dangerously-skip-permissions with official headless mode flags - Use -p (--print) for non-interactive mode - Add --output-format json for structured responses - Use --permission-mode acceptEdits for automation - Parse JSON response and extract metadata (cost, duration, session_id) - Handle both successful and error responses properly - Reference: https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-headless
Pullfrog
A simple GitHub Action that prints a customizable message to the console.
Languages
TypeScript
97.9%
Shell
0.7%
Dockerfile
0.7%
JavaScript
0.7%