Skip to content
xCaptaiN09Public

About

🦊 Private AI code review & issue triage GitHub Action β€” powered by a local Ollama model. No API keys, no cloud.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

Β 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

gitfox β€” AI code review & issue triage for GitHub, powered by a local Ollama model

🦊 Gitfox

Release License Tests GitHub Marketplace

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

▢️ Watch the 18-second overview β€” your code never leaves the runner Β· Open full video

Features

  • 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 β€” no scan-all flag needed; safety-capped by max-scan-items
  • Deduplication β€” invisible comment markers ensure gitfox replies to each PR/issue only once
  • Team rules β€” a .gitfox/rules.md file 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: true and 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

Quick start

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@v1

No configuration, accounts, or API keys are required.

Tip: the concurrency block queues gitfox runs for the same PR/issue so parallel events (a /gitfox command plus a new push, for example) never double-review.

Commands

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.

First launch on an existing repository

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).

Inputs

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

Team rules

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.

Posting as a bot (gitfox[bot])

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:

  1. 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.png goes
    • Uncheck webhook (not needed)
    • Permissions: Pull requests: Read & write, Issues: Read & write, Contents: Read-only
  2. After creating, scroll down β†’ Generate a private key (downloads a .pem file)
  3. Install the app on the repositories gitfox should work in (Install App β†’ select repos)
  4. In each repo using gitfox, add two secrets:
    • GITFOX_APP_ID β€” the App ID number shown on the app's settings page
    • GITFOX_APP_PRIVATE_KEY β€” the full contents of the downloaded .pem file
  5. 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.

Model choice

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.

Privacy

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.

License

MIT

Releases / Changelog

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

About

🦊 Private AI code review & issue triage GitHub Action β€” powered by a local Ollama model. No API keys, no cloud.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages