Help us improve
Share bugs, ideas, or general feedback.
From meta-dev
Patterns for headless Claude execution via claude -p --output-format json. Tool allowlist tiers, env inheritance, model override for Sonnet routing.
npx claudepluginhub ansonphong/meta-dev --plugin meta-devHow this skill is triggered — by the user, by Claude, or both
Slash command
/meta-dev:headless-workerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute structured tasks via `claude -p` in headless mode. Useful for batch processing, CI/CD, and cron-driven automation.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
Execute structured tasks via claude -p in headless mode. Useful for batch processing, CI/CD, and cron-driven automation.
# Single prompt, JSON output
claude -p "analyze this diff: $(git diff)" --output-format json
# With tool access (read-only by default)
claude -p "check test results in /tmp/test-output.log" \
--allowedTools Bash --output-format json
# Model override for Sonnet
claude -p "complex architectural review" --model claude-sonnet-4-6
See references/tool-allowlists.md for tier definitions.
| Tier | Bash | Read, Write, Edit | Git |
|---|---|---|---|
| 1 — read-only | yes (safe commands) | Read only | no |
| 2 — read+write | yes | Read + Write + Edit | no |
| 3 — full | yes | all | yes |
Default: Tier 1.
See references/backend-env.md for routing matrix.
claude -p inherits ANTHROPIC_BASE_URL + ANTHROPIC_AUTH_TOKEN from parentenv -i — it strips inherited vars