How kavinr24/patch works
Patch accepts a repository issue, fetches the target file, asks Groq for a unified diff, applies it in a fork, and opens a GitHub pull request. Users can start that workflow manually through the dashboard or register repositories for polling and automatic triage; the tracker also comments on issues and records processed IDs. The FastAPI routes manage session-scoped tracking and fixes, while the Streamlit UI is an additional interface present in the source. The README documents the product workflow; links to unsampled route behavior are shown only where documented.
Main entry points: tracker.py Auto-tracker · routes.py Dashboard API · fetcher.py File fetcher · analyzer.py Diff generator
Components 14
User interfaces
- FastAPI app
main.py - Dashboard API
web/routes.py - Dashboard page
web/dashboard.html - Web assets
web/assets.py - Streamlit UI
app.py
Workflow orchestration
- Auto-tracker
core/tracker.py
Patch pipeline
- File fetcher
core/fetcher.py - Diff generator
core/analyzer.py - Fork and PR creator
core/pr_creator.py
External services and state
- Tracked repo registry
tracked_repos.json - Credentials config
config.py
Other components
- User
- GitHub API
- Groq LLM
Connections 25
- User → Dashboard API: uses dashboard
README.md - Dashboard API → Web assets: loads page
web/routes.py - Web assets → Dashboard page: reads template
web/assets.py - User → Streamlit UI: runs fixes
app.py - FastAPI app → Dashboard API: mounts routes
main.py - FastAPI app → Auto-tracker: starts poller
main.py - Dashboard API → Auto-tracker: manages tracking
web/routes.py - Dashboard API → File fetcher: runs manual pipeline
README.md - Dashboard API → Diff generator: runs manual pipeline
README.md - Dashboard API → Fork and PR creator: runs manual pipeline
README.md - Streamlit UI → File fetcher: fetches file
app.py - Streamlit UI → Diff generator: requests diff
app.py - Streamlit UI → Fork and PR creator: creates PR
app.py - Auto-tracker → Tracked repo registry: persists registry
core/tracker.py - Auto-tracker → GitHub API: scans issues
core/tracker.py - Auto-tracker → File fetcher: fetches target file
core/tracker.py - Auto-tracker → Diff generator: generates diff
core/tracker.py - Auto-tracker → Fork and PR creator: creates pull request
core/tracker.py - Auto-tracker → GitHub API: comments on issue
core/tracker.py - File fetcher → GitHub API: fetches file
core/fetcher.py - Diff generator → Groq LLM: requests diff
core/analyzer.py - Fork and PR creator → GitHub API: opens pull request
core/pr_creator.py - File fetcher → Credentials config: uses token
core/fetcher.py - Diff generator → Credentials config: uses key
core/analyzer.py - Fork and PR creator → Credentials config: uses token
core/pr_creator.py