Private AI code review & issue triage for GitHub β powered by a local Ollama model.
Your code never leaves the runner. No API keys. No cloud LLM. Free forever.
demo.mp4
- PR review β detects bugs, security issues, and bad practices in pull request diffs, with severity labels:
- π΄ critical Β· π‘ warning Β· π’ suggestion
- Issue triage β auto-labels new issues (
bug,enhancement,question, ...) and posts a helpful comment - Catch-up scan (v1.4) β on first setup (or via manual
workflow_dispatch), gitfox automatically reviews all currently open PRs and issues one by one β noscan-allflag needed; safety-capped bymax-scan-items - Deduplication β invisible comment markers ensure gitfox replies to each PR/issue only once
- Team rules β a
.gitfox/rules.mdfile in your repo defines project-specific standards that gitfox enforces - Suggested fixes β posts ready-to-apply GitHub suggestion blocks where possible, including multi-line ranges
- Prior fix detection β searches closed PRs/issues for related fixes and links them
- Blocking reviews (v1.2) β opt in with
request-changes: trueand critical π΄ findings formally block the merge - Repo context (v1.2) β gitfox reads the repo file tree plus related source files to catch cross-file issues
- Progress reactions (v1.2) β π on the PR/issue while reviewing, π when done
- Incremental re-review (v1.2) β new pushes re-analyze only the commits since the last reviewed SHA
Create .github/workflows/gitfox.yml in your repository:
name: gitfox
on:
pull_request:
types: [opened, synchronize, reopened]
issues:
types: [opened]
issue_comment:
types: [created]
workflow_dispatch:
inputs:
scan_all:
description: 'Catch-up: scan all open PRs and issues'
type: boolean
default: false
jobs:
gitfox:
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
issues: write
pull-requests: write
concurrency:
group: gitfox-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }}
cancel-in-progress: false
steps:
- uses: actions/checkout@v4
- uses: xCaptaiN09/gitfox@v1No configuration, accounts, or API keys are required.
Tip: the
concurrencyblock queues gitfox runs for the same PR/issue so parallel events (a/gitfoxcommand plus a new push, for example) never double-review.
Comment /gitfox or @gitfox on any PR or issue and gitfox will re-run its review or triage. Without a mention, gitfox stays silent on follow-up comments.
Nothing to do β on its first run in a repo (no gitfox replies yet), gitfox automatically
catches up: it reviews every currently open PR and triages every open issue, one by one
(safety-capped by max-scan-items). You can also trigger this any time: Actions β gitfox β
Run workflow β any manual dispatch runs the full catch-up sweep (the scan_all toggle is
accepted for clarity; a bare workflow_dispatch: behaves the same).
| Input | Default | Description |
|---|---|---|
github-token |
${{ github.token }} |
Token used to read PRs/issues and post comments |
app-id |
empty | GitHub App ID β when set with private-key, replies post as your app bot (e.g. gitfox[bot]) with its avatar |
private-key |
empty | GitHub App private key (PEM). Store it as a secret, e.g. private-key: ${{ secrets.GITFOX_APP_KEY }} |
model |
qwen2.5-coder:7b |
Any Ollama model tag |
rules-path |
.gitfox/rules.md |
Path to the team rules file (optional) |
scan-all |
false |
Scan all open PRs/issues (catch-up mode) |
max-scan-items |
10 |
Safety cap for scan runs |
max-comments |
10 |
Maximum findings posted per PR |
post-suggestions |
true |
Include apply-ready suggestion blocks |
inline-comments |
true |
Post findings inline on the exact changed lines |
search-fixed |
true |
Link to closed PRs/issues that may already fix a problem |
request-changes |
false |
Submit REQUEST_CHANGES reviews when critical findings exist (blocks merge) |
repo-context |
true |
Include repo file tree + related files in the review prompt |
progress-reactions |
true |
React π while reviewing and π when done |
incremental-review |
true |
On new pushes, review only changes since the last reviewed commit |
Create .gitfox/rules.md in your repository:
# Our review rules
- All user input must be validated before parsing.
- No `any` types in TypeScript.
- Use parameterized SQL queries only.
- Every public function needs a doc comment.gitfox reads this file on every run and enforces it during review and triage.
By default gitfox comments as the github-actions user. To have replies appear as
gitfox[bot] β with its own name and avatar β create a GitHub App:
- GitHub β Settings β Developer settings β GitHub Apps β New GitHub App
- Name:
gitfox(the[bot]suffix is added automatically) - Homepage:
https://github.com/xCaptaiN09/gitfox - Upload the avatar here β this is where your
.github/assets/avatar.pnggoes - Uncheck webhook (not needed)
- Permissions: Pull requests: Read & write, Issues: Read & write, Contents: Read-only
- Name:
- After creating, scroll down β Generate a private key (downloads a
.pemfile) - Install the app on the repositories gitfox should work in (Install App β select repos)
- In each repo using gitfox, add two secrets:
GITFOX_APP_IDβ the App ID number shown on the app's settings pageGITFOX_APP_PRIVATE_KEYβ the full contents of the downloaded.pemfile
- Use both inputs in the workflow:
- uses: xCaptaiN09/gitfox@v1
with:
app-id: ${{ secrets.GITFOX_APP_ID }}
private-key: ${{ secrets.GITFOX_APP_PRIVATE_KEY }}When app-id + private-key are set, the github-token input is only used as a fallback
and gitfox authenticates as the App installation β comments, reviews and reactions are then
posted by gitfox[bot] with the app's avatar.
The default model is qwen2.5-coder:7b, which balances review quality and runtime on GitHub's free runners. Use qwen2.5-coder:0.5b for faster, lighter runs, or larger models on bigger runners.
gitfox runs the model on the GitHub Actions runner itself via Ollama:
your code -> runner (Ollama) -> review comment -> runner destroyed
No code is sent to OpenAI, Anthropic, or any other cloud service.
| Version | Date | Highlights |
|---|---|---|
| v1.4.3 | 2026-09-07 | Reaction cleanup completed: removes ALL orphan π per item (older versions left ghosts), dedup-skipped items in catch-up sweeps get stale rockets cleared too |
| v1.4.2 | 2026-09-07 | Reaction lifecycle: π is now transient β cleared on both success (only π remains) and failure, so no more stale "in progress" markers; includes v1.4.1's NDJSON streaming fix for the 5-minute review timeout |
| v1.4.1 | 2026-09-07 | Reliability: Ollama calls now stream (NDJSON), eliminating undici's 5-minute header timeout that silently killed long reviews; failed reviews/triage clean up their π reaction instead of leaving a stuck "in progress" marker |
| v1.4.0 | 2026-09-05 | First-setup catch-up: new installs auto-scan all open PRs/issues one by one (also on any manual workflow_dispatch), repo context now powers issue triage too (README + file tree + related files) |
| v1.3.1 | 2026-09-05 | Marketplace-ready metadata: action name gitfox-ai, description under 125 chars (no code changes) |
| v1.3.0 | 2026-09-04 | GitHub App identity: pass app-id + private-key and every reply posts as your app bot (gitfox[bot]) with its avatar β token still works as before |
| v1.2.2 | 2026-09-04 | Action hardening verified in live end-to-end runs: sudo-free Ollama install into the runner temp dir, correct tarball URL (.tar.zst) with zstd extract + installer fallback, no workspace-scoped caches, Node 22, binary+model caching |
| v1.2.1 | 2026-09-04 | Model caching (Ollama binary + model persisted between runs β no more 4.7GB download every run), npm dependency cache, deterministic single Ollama server, 45-min job timeout guard, qwen2.5-coder:7b standardized everywhere |
| v1.2.0 | 2026-09-04 | request-changes mode blocks merges on critical findings, repo-context prompts (file tree + related source files), multi-line suggestions, π/π progress reactions, incremental re-review of only new commits |
| v1.1.2 | 2026-09-04 | Retry once on malformed model output, then skip gracefully β model hiccups no longer fail the workflow. Summary-table counts fixed; dedup now also checks posted reviews, not just comments |
| v1.1.0 | 2026-09-02 | Re-review on every new PR commit, /gitfox comment command, inline review comments on exact lines, summary table with verdict |
| v1.0.0 | 2026-09-02 | First release: PR review, issue triage, catch-up scan, dedup, team rules, suggested fixes |
Users always get the latest stable behavior via
uses: xCaptaiN09/gitfox@v1β the tag is kept up to date with fixes. Full notes: Releases page
