Gitdigest
GitDigest turns any public GitHub repo into a summary where every claim links to the exact file and lines it came from. Pick a purpose (security, due diligence, onboarding, or your own focus), and anything that doesn't match the code gets flagged instead of slipping through.How I built it I started with the problem: most repo summaries are fluent but unverifiable, so I made citations the core feature. I did the planning and testing and used AI coding agents for much of the code. I ran each version on my phone and sent back the exact errors. It's a small stack built to run from Termux: Python with Flask on Vercel, a single HTML front end, GitHub and Google sign-in, and Gemini or Groq as the models. The hard parts were speed (solved with parallel reads, a Quick scan, and cached summaries), slow model responses (now retried with a clear message), and a routing bug that took several rounds to find.
Tech stack
- Google AI Studio (3.5 Flash-Lite)
- Vercel
- Claude (Haiku 5.5)
Links
Prompt steps
Step 1
Build the first working version of GitDigest, then write a deploy guide that I can follow on Vercel. You will do the code and the checks. I will do the account clicks and the git push. Mark every step clearly as "AGENT" or "YOU". GOAL OF THIS STEP: a repo that builds on Vercel and serves the app. Login and model keys come in Step 2, so this step must work without them. When no keys are set, the app must show a clear message, not a broken page. WHAT TO BUILD 1. gitdigest.py: the core. Parse github.com/owner/repo URLs (reject anything else), list files through the GitHub API (public repos only), select up to 25 files (README and manifests first, then entry points, then shallow files), skip lockfiles, binaries, vendor and build folders, and files over 200 KB. Summarize with Gemini or Groq, and write the report with citations in the form path:start-end. Verify each citation against the real line count and mark failures as [unverified: ...]. 2. api/index.py: a Flask app with these routes, each also registered without the /api prefix: GET /api/config, GET /api/me, POST /api/plan, POST /api/summarize, POST /api/report. Summaries are HMAC-signed so the report…Step 2
Step 1 is deployed. Now wire in login and the model keys. You will tell me exactly what to click, and I will report back. Mark every step "AGENT" or "YOU". Never ask me to paste a secret into this chat. PART A: GitHub OAuth app (YOU) 1. Go to GitHub, Settings, Developer settings, OAuth Apps, New OAuth App. 2. Name: GitDigest. Homepage URL: my production URL. Authorization callback URL: <production URL>/api/auth/github/callback 3. Register, then copy the Client ID and generate a client secret. 4. Save both in Vercel as GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET. This is an OAuth App, not a personal access token. PART B: Google OAuth client (YOU) 1. Go to https://console.cloud.google.com/apis/credentials and select or create a project named GitDigest. 2. Set up the OAuth consent screen (external) with the app name GitDigest and my email as the support contact. While the app is in testing, add my own Google account as a test user. 3. Create credentials, then OAuth client ID, type Web application. Add the redirect URI <production URL>/api/auth/google/callback. 4. Save the Client ID and Client secret in Vercel as GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET. PART C:…Step 3
Steps 1 and 2 are done. Now verify everything and close out the project. Be strict: report PASS only with evidence I can see, and FAIL with the exact error otherwise. CHECKLIST (one line each, PASS or FAIL, with evidence) 1. Tests pass locally: python -m unittest test_gitdigest test_api. 2. The repo has no "rewrites" in vercel.json. 3. The latest Vercel deployment is Ready and matches the latest commit. 4. GET /api/config returns login.github and login.google true, and login_ready true. 5. GET /api/me returns {"user": null} when signed out. 6. POST /api/plan without a session returns 401. 7. The GitHub start URL redirects to github.com with a state parameter. 8. A bad state on the callback redirects to #signin?error=github. 9. Sign-in works end to end for GitHub, and for Google if configured. 10. One small public repo analyzes to a result, and at least one citation link opens the correct lines on GitHub. 11. Sign out clears the session and returns to sign-in. 12. Analyzing while signed out is refused. IF ANY CHECK FAILS - Find the cause in the code or in the deploy settings, fix only what is needed, and re-run the check. Do not skip a failing check. - If the cause is in Ve…
3 likes · 4 comments · 6 views
Comments (2)
well done<div><br></div>
Thank you!
This is great Collin, excited to see how Gitdigest comes along. Great as always
I appreciate the comment 🤍