A repository template with a preconfigured Claude Code (glmcoder) workflow that supports:
- @glmcoder triggers on issues and PRs
- Inline PR comments
- An identity marker prefix ([glmcoder]) in every comment
Setup (per repository created from this template)
- Install the "Claude Code" GitHub App on the new repository: https://github.com/apps/claude
- Add Actions secret:
- ANTHROPIC_API_KEY: your Anthropic-compatible API key
- (Optional) Add repo variable if your proxy needs headers:
- ANTHROPIC_CUSTOM_HEADERS: JSON string of headers (secrets can be referenced inside via ${{ secrets.NAME }})
Quick setup via script
- Requirements: GitHub CLI (gh) and admin on the repo
- Run: ./scripts/setup-glmcoder.sh
- The script will:
- Offer to open the GitHub App install page
- Prompt for ANTHROPIC_API_KEY (hidden) and save it as an Actions secret
- Optionally set ANTHROPIC_CUSTOM_HEADERS as a repo variable
Usage
- On a PR: comment
@glmcoder Please review this PR ...to trigger a review. - On an issue: comment or include
@glmcoderin the body to trigger analysis. - The workflow name is "Claude Code (glmcoder)", and the bot prefixes comments with
[glmcoder].
Notes
- The workflow is compatible with public and private repositories (secrets are required).
- For PRs from forks without secrets access, capabilities may be reduced (expected GitHub behavior).