Spaces:
Sleeping
Sleeping
| GitLab Context Brain | |
| Here's something genuinely simple that every developer on the planet would want: | |
| An agent that silently learns your project as you work, and surfaces the exact context you need β right when you open an MR, pick up an issue, or start a new task. | |
| What it does, concretely: | |
| When you open a Merge Request, it posts one smart comment containing: | |
| πΊοΈ "What is this change touching?" β plain English summary of which systems, services, and team members own the affected code | |
| π°οΈ "What happened here before?" β last 3 relevant incidents, past MRs, or bugs in these files (pulled from GitLab Issues + GCP Cloud Logging) | |
| π€ "Who should really review this?" β not just CODEOWNERS, but who actually knows this code based on recent commit history | |
| β οΈ "What should I watch out for?" β known flaky tests, past deployment issues, open related issues | |
| When you pick up a GitLab Issue, it posts: | |
| All previous attempts at solving this | |
| Related code files, last touched by whom, when | |
| GCP service logs that are relevant to this issue's domain | |
| That's it. No pipeline fixing. No cost analysis. Just: "Here is everything you need to know to do your job right now." | |
| Why GCP Makes This Genuinely Powerful | |
| This is where GCP becomes the differentiator, not just a checkbox: | |
| Context Source Where It Lives GCP Service | |
| Historical incidents GitLab Issues β | |
| Past deployment failures GitLab pipelines GCP Cloud Logging | |
| Service behavior at runtime β GCP Cloud Monitoring / Error Reporting | |
| Who owns what in production β GCP IAM / Resource Manager | |
| Summarization + reasoning GitLab Duo Gemini API / Vertex AI | |
| Flow | |
| Developer opens MR | |
| β | |
| GitLab Webhook fires β Agent activated | |
| β | |
| Agent collects context in parallel: | |
| βββ GitLab API β changed files, commit history, CODEOWNERS, open related issues | |
| βββ GCP Cloud Logging β past errors/incidents tied to affected services | |
| βββ GCP Error Reporting β recurring failures in production for these code paths | |
| β | |
| Gemini API (Vertex AI) synthesizes all inputs | |
| β | |
| Structured comment posted to MR containing: | |
| βββ πΊοΈ What this change touches (services, modules, blast radius) | |
| βββ π°οΈ What happened here before (past bugs, incidents, relevant MRs) | |
| βββ π€ Who actually knows this code (beyond CODEOWNERS β based on recency + frequency) | |
| βββ β οΈ Watch out for (flaky tests, known fragile paths, open related issues) | |
| Flow | |
| Issue assigned to developer | |
| β | |
| GitLab Webhook fires β Agent activated | |
| β | |
| Agent collects: | |
| βββ GitLab API β past MRs/issues with similar labels or keywords | |
| βββ GitLab API β code files most relevant to issue title/description | |
| βββ GCP Cloud Logging β runtime logs related to issue domain | |
| β | |
| Gemini synthesizes | |
| β | |
| Comment posted to Issue: | |
| βββ π Likely files to look at | |
| βββ π Previous attempts at fixing this (linked MRs/issues) | |
| βββ π€ Best person to ask | |
| βββ π Live production signals related to this issue | |
| | Layer | Tool | | |
| | ------------------------- | ----------------------------------- | | |
| | Trigger | GitLab Webhooks | | |
| | Agent runtime | GitLab Duo Agent Platform | | |
| | Code context | GitLab REST API | | |
| | Production signals | GCP Cloud Logging + Error Reporting | | |
| | Reasoning + summarization | Gemini API via Vertex AI | | |
| | Memory / history | | | |
| | Output | GitLab MR / Issue comment via API | | |