Quick start
GitHub Actions (recommended)
Section titled “GitHub Actions (recommended)”Add this to .github/workflows/qualops.yml:
name: QualOps Review
on: pull_request: branches: [main]
permissions: contents: read pull-requests: write checks: write
jobs: review: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0
- uses: eggai-tech/qualops@stable with: anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} github-token: ${{ secrets.GITHUB_TOKEN }}Then add ANTHROPIC_API_KEY to your repository secrets (Settings → Secrets → Actions). On every PR, QualOps will analyze the diff, post a summary comment, and add inline annotations through the Checks API.
For full setup details — secrets, permissions, troubleshooting — see GitHub Action → Setup.
Local CLI
Section titled “Local CLI”# Install globallynpm install -g @eggai/qualops
# Review changes between two refsqualops --base=main --head=HEAD
# Or target specific filesqualops --files="src/**/*.ts"You’ll need an ANTHROPIC_API_KEY (or OPENAI_API_KEY / AWS credentials, depending on your provider) in the environment. See AI providers for the full list.
Next steps
Section titled “Next steps”- Read the Configuration reference to tune the review pipeline
- Pick between file-by-file and agentic review modes
- Browse example configurations for Angular, Python, and security audits