-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsubmit.html
More file actions
142 lines (119 loc) · 6.87 KB
/
Copy pathsubmit.html
File metadata and controls
142 lines (119 loc) · 6.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PR Pilot — Devpost Submission Helper</title>
<style>
body { font-family: -apple-system, sans-serif; max-width: 800px; margin: 40px auto; padding: 20px; color: #333; }
h1 { font-size: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; color: #555; }
.field .value { background: #f6f8fa; padding: 12px; border-radius: 6px; border: 1px solid #d0d7de; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.copy-btn { background: #533afd; color: white; border: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 12px; margin-top: 4px; }
.copy-btn:hover { background: #4434d4; }
.step { background: #f0f6ff; border-left: 4px solid #533afd; padding: 16px; margin: 24px 0; border-radius: 4px; }
.step h3 { margin: 0 0 8px 0; }
</style>
</head>
<body>
<h1>PR Pilot — Devpost Submission</h1>
<p>All fields pre-filled. Open Devpost in another tab, paste these values.</p>
<div class="step">
<h3>Step 1: Register for the hackathon</h3>
<p><a href="https://xprize.devpost.com/register?flow%5Bdata%5D%5Bchallenge_id%5D=29541&flow%5Bname%5D=register_for_challenge" target="_blank">Click here to register</a> → Sign up with GitHub</p>
</div>
<div class="step">
<h3>Step 2: Create submission</h3>
<p>After registering, go to <a href="https://devpost.com/submit-to/29541-build-with-gemini-xprize/manage/submissions" target="_blank">My Submissions</a> → Add New Submission</p>
</div>
<h2>Submission Content</h2>
<div class="field">
<label>Project Name</label>
<div class="value">PR Pilot</div>
</div>
<div class="field">
<label>Elevator Pitch (200 chars max)</label>
<div class="value" id="pitch">PR Pilot gives small dev teams enterprise-grade code review — five AI agents autonomously find bugs, generate fixes, write tests, and decide what to ship. Install the GitHub App and your PRs review themselves.</div>
<button class="copy-btn" onclick="copy('pitch')">Copy</button>
</div>
<div class="field">
<label>What it does</label>
<div class="value" id="what">PR Pilot is an AI-native code quality service. When a developer opens a pull request, five autonomous agents spring into action:
1. Reviewer analyzes every changed file for bugs, security vulnerabilities, performance regressions, and style violations
2. Fixer generates minimal, correct code patches for every issue found
3. Tester detects the project's test framework and writes unit tests for changed code
4. Verifier validates all fixes and tests, confirming no regressions
5. Escalator makes the final call: auto-approve safe changes, request revisions, or escalate to a human
The result: a complete code review with fixes attached, posted directly on the pull request. 90%+ of reviews are handled autonomously — humans only step in for the genuinely hard calls.</div>
<button class="copy-btn" onclick="copy('what')">Copy</button>
</div>
<div class="field">
<label>How we built it (Google Cloud products used)</label>
<div class="value" id="how">Google Cloud products used:
- Gemini API (required) — powers all five agents (Reviewer, Fixer, Tester, Verifier, Escalator) with structured JSON output. Each agent uses Gemini's response_schema feature for typed, validated agent-to-agent communication.
- Cloud Run — hosts the webhook receiver and agent orchestration engine as a serverless service
- Cloud Build — CI/CD pipeline for continuous deployment
- Secret Manager — securely stores GitHub App private keys and API credentials
- Cloud Logging — captures all agent execution traces for audit trail and submission evidence
Architecture:
- FastAPI (Python) webhook receiver deployed on Cloud Run
- 5-agent chain with sequential execution via AgentChain engine
- GitHub App integration via REST API with JWT-based installation tokens
- google-generativeai SDK with gemini-2.5-pro model
- Full audit trail: every agent decision logged with timestamp, input, output, reasoning
- Agent decisions persisted to structured JSON for judge review</div>
<button class="copy-btn" onclick="copy('how')">Copy</button>
</div>
<div class="field">
<label>Why we chose Gemini</label>
<div class="value" id="why">The XPRIZE rules require using at least one Google Cloud product and the Gemini API. But we didn't just bolt Gemini onto an existing idea — we designed a business that fundamentally depends on AI agents making autonomous decisions about code quality.
Gemini's structured output support (response schemas) is critical to our architecture. Each of the five agents outputs typed JSON that flows into the next agent in the chain. Without this, the 5-agent pipeline wouldn't work reliably. The response_schema feature enforces exactly the output format each agent needs.
We use Gemini for all five agents because:
1. Structured output with JSON schemas ensures reliable agent-to-agent communication
2. Large context window handles extensive PR diffs without truncation
3. First-class Python SDK with async support
4. Strong code generation capabilities for the Fixer and Tester agents</div>
<button class="copy-btn" onclick="copy('why')">Copy</button>
</div>
<div class="field">
<label>Category impact: Entrepreneurship & Job Creation</label>
<div class="value" id="impact">Small dev teams (2-10 people) can't afford dedicated code review. They ship with bugs, miss security vulnerabilities, and accumulate technical debt that kills startups.
PR Pilot gives these teams enterprise-grade code quality for $99/month. A 2-person startup gets the same review rigor as a FAANG team. This enables:
- Faster shipping: No bottleneck waiting for code review
- Higher quality: Bugs caught before they reach production
- Lower barrier: Solo developers and tiny teams compete with well-funded companies
- Economic opportunity: More startups survive the early stages, creating more jobs
The service itself creates economic opportunity: small dev teams can build and ship with confidence they couldn't afford before.</div>
<button class="copy-btn" onclick="copy('impact')">Copy</button>
</div>
<div class="field">
<label>GitHub Repo</label>
<div class="value">https://github.com/tcconnally/pr-pilot</div>
</div>
<div class="field">
<label>Hosted / Live Demo</label>
<div class="value">https://tcconnally.github.io/pr-pilot/</div>
</div>
<div class="field">
<label>Demo Video URL</label>
<div class="value">https://tcconnally.github.io/pr-pilot/demo/demo.mp4</div>
</div>
<div class="field">
<label>License</label>
<div class="value">MIT</div>
</div>
<div class="field">
<label>Google Cloud Partner Track</label>
<div class="value">Gemini API</div>
</div>
<script>
function copy(id) {
const el = document.getElementById(id);
navigator.clipboard.writeText(el.textContent);
const btn = event.target;
btn.textContent = 'Copied!';
setTimeout(() => btn.textContent = 'Copy', 1500);
}
</script>
</body>
</html>