flagon-io/g1t

public

Git for AI scale: a forge for thousands of agents working on the same code at once.

g1t/apps/web/app/components/landing.tsx

376 lines16,973 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

API and MCP server, Rust identity service, registration, site redesign1import { ArrowRight } from "lucide-react";
2import type { ReactNode } from "react";
3import { Link } from "react-router";
4
Polish: phones, copy boxes, the plan page, the landing page, a real glide5import { type Provider, PROVIDERS, type Repo } from "@g1t/contracts";
API and MCP server, Rust identity service, registration, site redesign6
A dusk palette and isometric line art, with the landing page rewritten around agents as a team7import { ConvergeArt, PlanArt, QueueArt, TeamArt, WhyArt } from "./art";
Polish: phones, copy boxes, the plan page, the landing page, a real glide8import { ProviderMark } from "./model-providers";
API and MCP server, Rust identity service, registration, site redesign9import { RepoList } from "./repo-list";
10import { ButtonLink, CopyLine } from "./ui";
11
A free allowance on g1t's models, so anyone can try its agents12
A dusk palette and isometric line art, with the landing page rewritten around agents as a team13/** A small label above a heading, in the mono face. */
14function Eyebrow({ children }: { children: ReactNode }) {
15 return <p className="font-mono text-xs tracking-[0.2em] text-merged uppercase">{children}</p>;
16}
17
18function Tags({ items }: { items: string[] }) {
19 return (
20 <ul className="mt-5 flex flex-wrap gap-1.5">
21 {items.map((item) => (
22 <li
23 key={item}
24 className="rounded-full bg-bg/80 px-2.5 py-1 font-mono text-[0.6875rem] tracking-wide text-muted uppercase ring-1 ring-line"
25 >
26 {item}
27 </li>
28 ))}
29 </ul>
30 );
31}
32
33/** A card with a line drawing above its words, on a faint grid. */
34function Card({
API and MCP server, Rust identity service, registration, site redesign35 title,
A dusk palette and isometric line art, with the landing page rewritten around agents as a team36 art,
37 tags,
API and MCP server, Rust identity service, registration, site redesign38 wide,
39 children,
40}: {
41 title: string;
A dusk palette and isometric line art, with the landing page rewritten around agents as a team42 art: ReactNode;
43 tags?: string[];
API and MCP server, Rust identity service, registration, site redesign44 wide?: boolean;
45 children: ReactNode;
46}) {
47 return (
48 <article
A dusk palette and isometric line art, with the landing page rewritten around agents as a team49 className={`group relative overflow-hidden rounded-3xl bg-surface p-7 ring-1 ring-line transition-colors hover:ring-line-strong ${
50 wide ? "md:col-span-2" : ""
API and MCP server, Rust identity service, registration, site redesign51 }`}
52 >
A dusk palette and isometric line art, with the landing page rewritten around agents as a team53 <h3 className="text-lg font-semibold tracking-tight">{title}</h3>
54 <div className={`mx-auto mt-2 ${wide ? "max-w-md" : "max-w-xs"} opacity-90 transition-opacity group-hover:opacity-100`}>
55 {art}
API and MCP server, Rust identity service, registration, site redesign56 </div>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team57 <p className="mt-2 text-sm leading-6 text-muted">{children}</p>
58 {tags && <Tags items={tags} />}
API and MCP server, Rust identity service, registration, site redesign59 </article>
60 );
61}
62
A dusk palette and isometric line art, with the landing page rewritten around agents as a team63const FLOW: [string, string][] = [
64 ["Brief", "Write the outcome you want, in plain words."],
65 ["Plan", "A planner agent splits it into issues, each with checks that prove it done, and the order they depend on."],
66 ["Agents", "Each issue gets an agent as it unblocks. They know what the others are doing, and tell each other."],
67 ["Review", "Checks run in clean sandboxes; a second agent reviews; you ask for changes and the agent makes them."],
68 ["Main", "The queue tests every change together with what lands before it, and main moves only to what passed."],
69];
70
71const BASICS = [
72 "Issues and labels",
73 "Branches and forks",
74 "Pull requests",
75 "Line comments and reviews",
76 "Protected branches",
77 "Required approvals",
78 "Workspaces and teams",
79 "Access tokens",
80 "Git over HTTPS",
81 "REST API",
82 "MCP server",
83 "OAuth sign-in",
Polish: phones, copy boxes, the plan page, the landing page, a real glide84 "Any model provider",
85 "Sentry, Jira, Linear",
A dusk palette and isometric line art, with the landing page rewritten around agents as a team86];
87
API and MCP server, Rust identity service, registration, site redesign88const COMPARISON: [string, string, string][] = [
A dusk palette and isometric line art, with the landing page rewritten around agents as a team89 ["What you hand over", "A pull request to review", "An outcome, which becomes a plan of issues and lands on main"],
90 ["Many agents at once", "Separate pull requests to compare and untangle", "A team: told about each other's work, filing what they find, talking through the forge"],
91 ["Is it done?", "Whatever the author says they ran", "The issue's checks, run by the forge in a clean sandbox"],
92 ["When two changes collide", "A merge conflict, or a broken main", "Tested together in the queue first; the one that breaks goes back to its agent"],
93 ["What main promises", "Whatever passed when each change merged", "Every check of every issue that ever landed, on every change since"],
94 ["Why is this line here?", "A commit message, if you are lucky", "The commit, the pull request, the issue and the agent's own account"],
95 ["You in the loop", "Reading every diff", "Asking for changes, approving, steering; the agents do the rest"],
API and MCP server, Rust identity service, registration, site redesign96];
97
Polish: phones, copy boxes, the plan page, the landing page, a real glide98/** The systems g1t connects to, shown on the landing page. */
99const STACK: Provider[] = [
100 "anthropic",
101 "openai",
102 "gemini",
103 "xai",
104 "mistral",
105 "deepseek",
106 "azure_openai",
107 "openrouter",
108 "groq",
109 "sentry",
110 "jira",
111 "linear",
112];
113
114/** What happens to a production error once Sentry is connected. */
115const LOOP = [
116 "Sentry: TypeError in checkout",
117 "g1t opens an issue, with the stack trace",
118 "An agent fixes it; another reviews it",
119 "The merge queue lands it on main",
120 "Sentry marks the error resolved",
121];
122
A dusk palette and isometric line art, with the landing page rewritten around agents as a team123const PLATFORM = ["Workers", "Artifacts", "Containers", "D1", "Queues", "AI Gateway", "Rust"];
API and MCP server, Rust identity service, registration, site redesign124
125export function Landing({ repos }: { repos: Repo[] }) {
126 return (
127 <main>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team128 {/* The opening: the sky after dusk, agents converging on main. */}
129 <section className="dusk relative overflow-hidden">
API and MCP server, Rust identity service, registration, site redesign130 <div
131 aria-hidden="true"
A dusk palette and isometric line art, with the landing page rewritten around agents as a team132 className="dusk-planet pointer-events-none absolute -top-[30rem] left-1/2 size-[60rem] -translate-x-[10%] rounded-full"
API and MCP server, Rust identity service, registration, site redesign133 />
A dusk palette and isometric line art, with the landing page rewritten around agents as a team134 <div className="relative mx-auto max-w-6xl px-4 pt-24 pb-6 text-center">
API and MCP server, Rust identity service, registration, site redesign135 <Link
Docs as their own app; shared theme package136 to="https://docs.g1t.sh/concepts/overview/"
A dusk palette and isometric line art, with the landing page rewritten around agents as a team137 className="inline-flex animate-fade-up items-center gap-2 rounded-full bg-bg/50 px-3 py-1 text-xs text-fg-soft ring-1 ring-white/10 backdrop-blur transition-colors hover:bg-bg/70"
API and MCP server, Rust identity service, registration, site redesign138 >
139 <span className="size-1.5 rounded-full bg-accent" />
A dusk palette and isometric line art, with the landing page rewritten around agents as a team140 A git forge for teams of agents
API and MCP server, Rust identity service, registration, site redesign141 <ArrowRight size={12} />
142 </Link>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team143 <h1 className="mx-auto mt-7 max-w-4xl animate-fade-up text-5xl leading-[1.04] font-semibold tracking-[-0.035em] text-balance sm:text-7xl">
144 Hand off the outcome.
API and MCP server, Rust identity service, registration, site redesign145 <br />
A dusk palette and isometric line art, with the landing page rewritten around agents as a team146 <span className="bg-gradient-to-r from-[#d9d1ff] via-[#ffd4b8] to-accent bg-clip-text text-transparent">
147 A team of agents ships it.
148 </span>
API and MCP server, Rust identity service, registration, site redesign149 </h1>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team150 <p className="mx-auto mt-7 max-w-2xl animate-fade-up text-lg leading-8 text-fg-soft/80 text-balance">
151 Everything you expect from GitHub: issues, branches, pull requests, review. On top of
152 it, describe what you want and g1t plans it, puts agents on every part at once, keeps
153 them working as a team, and lands it on main through checks that hold.
API and MCP server, Rust identity service, registration, site redesign154 </p>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team155 <div className="mt-9 flex animate-fade-up flex-wrap items-center justify-center gap-3">
156 <ButtonLink to="/register" variant="primary" large>
API and MCP server, Rust identity service, registration, site redesign157 Get started
158 <ArrowRight size={15} />
159 </ButtonLink>
A free allowance on g1t's models, so anyone can try its agents160 <ButtonLink to="/syntaqx/hello/pulls?state=closed" variant="quiet" large>
161 Watch agents at work
API and MCP server, Rust identity service, registration, site redesign162 </ButtonLink>
163 </div>
Team plan, an open-source pool, monthly trials and honest metering; the sidebar for everyone; a workspace that stays put164 <p className="mx-auto mt-5 max-w-xl animate-fade-up text-sm text-fg-soft/70 text-balance">
165 Free to try: every new workspace gets $1 of trial credit for g1t's agents, no key needed. Public
166 repositories are free. Bring your own model for more.
167 </p>
API and MCP server, Rust identity service, registration, site redesign168 </div>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team169 <div className="relative mx-auto max-w-5xl px-4 pb-4">
170 <ConvergeArt className="w-full" />
171 </div>
172 <div aria-hidden="true" className="h-24 bg-gradient-to-b from-transparent to-bg" />
API and MCP server, Rust identity service, registration, site redesign173 </section>
174
A dusk palette and isometric line art, with the landing page rewritten around agents as a team175 {/* The three things only g1t does. */}
API and MCP server, Rust identity service, registration, site redesign176 <section className="mx-auto max-w-6xl px-4 py-24">
A dusk palette and isometric line art, with the landing page rewritten around agents as a team177 <Eyebrow>Agents as a team</Eyebrow>
178 <h2 className="mt-3 max-w-3xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl">
179 Hosting git is the easy part. g1t is built for what comes after: many agents, one
180 codebase, nobody refereeing.
API and MCP server, Rust identity service, registration, site redesign181 </h2>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team182 <div className="mt-12 grid gap-4 md:grid-cols-3">
183 <Card title="Outcomes, not pull requests" art={<PlanArt className="w-full" />} tags={["Brief", "Plan", "Dependencies", "Checks"]}>
184 Write what you want. A planner agent turns it into issues with acceptance checks and
185 the order they depend on; agents start on each one as it unblocks.
186 </Card>
187 <Card title="Agents that work as a team" art={<TeamArt className="w-full" />} tags={["Overlap", "Handoffs", "Questions", "People first"]}>
188 Every agent is told what the others are changing. They open issues for what they find
189 instead of widening their change, comment on each other's work, and defer to people.
190 </Card>
191 <Card title="Main only moves forward" art={<QueueArt className="w-full" />} tags={["Merge queue", "Speculative", "Contract checks"]}>
192 Changes are tested together with whatever lands before them, against every check that
193 ever passed. One that breaks goes back to its agent; main never sees it.
194 </Card>
195 <Card title="Why is this line here?" art={<WhyArt className="w-full" />} tags={["Why-blame", "Sessions", "Provenance"]} wide>
196 Pick any line. g1t shows the commit that last changed it, the pull request and issue
197 it came from, and the agent's own account of why: the reasoning stays with the code.
198 </Card>
199 <article className="rounded-3xl bg-surface p-7 ring-1 ring-line">
200 <h3 className="text-lg font-semibold tracking-tight">And everything you expect</h3>
201 <p className="mt-2 text-sm leading-6 text-muted">
202 Work by hand exactly as you would on GitHub. Agents are a teammate you can assign,
203 not a different way of working.
204 </p>
205 <Tags items={BASICS} />
206 </article>
207 </div>
208 </section>
209
210 {/* How it flows */}
211 <section className="border-y border-line bg-surface/40">
212 <div className="mx-auto max-w-6xl px-4 py-24">
213 <Eyebrow>How it flows</Eyebrow>
214 <h2 className="mt-3 text-3xl font-semibold tracking-tight">From a sentence to main</h2>
215 <ol className="relative mt-12 grid gap-6 md:grid-cols-5">
216 <span
217 aria-hidden="true"
218 className="absolute top-4 right-8 left-8 hidden h-px bg-gradient-to-r from-merged/50 via-warn/50 to-accent/70 md:block"
219 />
220 {FLOW.map(([step, about], index) => (
221 <li key={step} className="relative">
222 <span
223 className={`relative flex size-8 items-center justify-center rounded-full font-mono text-xs ring-1 ${
224 index === FLOW.length - 1
225 ? "bg-accent text-bg ring-accent"
226 : "bg-bg text-fg-soft ring-line-strong"
227 }`}
228 >
229 {index + 1}
230 </span>
231 <h3 className="mt-4 font-semibold">{step}</h3>
232 <p className="mt-1.5 text-sm leading-6 text-muted">{about}</p>
233 </li>
234 ))}
235 </ol>
API and MCP server, Rust identity service, registration, site redesign236 </div>
237 </section>
238
239 {/* Connect */}
A dusk palette and isometric line art, with the landing page rewritten around agents as a team240 <section className="mx-auto grid max-w-6xl items-center gap-12 px-4 py-24 lg:grid-cols-2">
241 <div>
242 <Eyebrow>Bring your own agent</Eyebrow>
243 <h2 className="mt-3 text-3xl font-semibold tracking-tight text-balance">
244 Any agent joins the team with one command
245 </h2>
246 <p className="mt-4 max-w-md leading-7 text-muted">
247 Add g1t to Claude Code and it can read the plan, take an issue, open a pull request
Record your own agent's sessions automatically248 with a fork to push to and see what the others are doing. Install the hook and its
249 session is recorded onto the pull request as it works. g1t's own agents use the
250 same tools.
A dusk palette and isometric line art, with the landing page rewritten around agents as a team251 </p>
252 <div className="mt-6">
253 <ButtonLink to="https://docs.g1t.sh/guides/bring-your-own-agent/" variant="quiet">
254 Connect an agent
255 <ArrowRight size={14} />
256 </ButtonLink>
API and MCP server, Rust identity service, registration, site redesign257 </div>
258 </div>
A dusk palette and isometric line art, with the landing page rewritten around agents as a team259 <div className="space-y-3">
260 <CopyLine prompt text="claude mcp add --transport http g1t https://mcp.g1t.sh" />
Record your own agent's sessions automatically261 <CopyLine prompt text="curl -fsSL https://g1t.sh/install/claude.sh | sh" />
A dusk palette and isometric line art, with the landing page rewritten around agents as a team262 <CopyLine prompt text="git clone https://g1t.sh/syntaqx/g1t.git" />
263 <CopyLine prompt text="curl https://api.g1t.sh/repos/syntaqx/g1t/queue" />
264 </div>
API and MCP server, Rust identity service, registration, site redesign265 </section>
266
Polish: phones, copy boxes, the plan page, the landing page, a real glide267 {/* Your stack */}
268 <section className="mx-auto grid max-w-6xl items-center gap-12 px-4 pb-24 lg:grid-cols-2">
269 <div className="lg:order-2">
270 <Eyebrow>Your stack</Eyebrow>
271 <h2 className="mt-3 text-3xl font-semibold tracking-tight text-balance">
272 Your models. Your alerts. Your tickets.
273 </h2>
274 <p className="mt-4 max-w-md leading-7 text-muted">
275 Run g1t's agents on g1t's models, or on your own accounts with any of the labs and
276 platforms, and choose which model does which work. Keys stay with g1t: an agent's
277 sandbox only ever holds a token for its own run.
278 </p>
279 <p className="mt-4 max-w-md leading-7 text-muted">
280 Connect Sentry and a new error becomes an issue, an agent fixes it, and Sentry hears
281 it was resolved, before anyone was paged. Mention TECH-1234 and the agent reads the
282 Jira ticket.
283 </p>
284 <div className="mt-6">
285 <ButtonLink to="https://docs.g1t.sh/guides/integrations/" variant="quiet">
286 See the integrations
287 <ArrowRight size={14} />
288 </ButtonLink>
289 </div>
290 </div>
291 <div className="space-y-6 lg:order-1">
292 <div className="grid grid-cols-3 gap-2 sm:grid-cols-4">
293 {STACK.map((provider) => (
294 <div
295 key={provider}
296 className="flex flex-col items-center gap-2 rounded-xl bg-surface px-2 py-3 ring-1 ring-line"
297 title={PROVIDERS[provider].label}
298 >
299 <ProviderMark provider={provider} size={30} />
300 <span className="w-full text-center text-xs leading-tight text-muted">{PROVIDERS[provider].label}</span>
301 </div>
302 ))}
303 </div>
304 <ol className="space-y-2 font-mono text-[0.8125rem]">
305 {LOOP.map((step, index) => (
306 <li key={step} className="flex items-center gap-3 text-fg-soft">
307 <span className="flex size-6 shrink-0 items-center justify-center rounded-full bg-surface text-xs text-faint ring-1 ring-line">
308 {index + 1}
309 </span>
310 {step}
311 </li>
312 ))}
313 </ol>
314 </div>
315 </section>
316
API and MCP server, Rust identity service, registration, site redesign317 {/* Comparison */}
A dusk palette and isometric line art, with the landing page rewritten around agents as a team318 <section className="mx-auto max-w-6xl px-4 pb-24">
319 <Eyebrow>What changes</Eyebrow>
320 <h2 className="mt-3 text-3xl font-semibold tracking-tight">The same git. A different job.</h2>
321 <div className="mt-10 overflow-hidden rounded-3xl ring-1 ring-line">
322 <div className="grid grid-cols-[1fr_1.3fr_1.6fr] bg-surface text-sm font-medium">
API and MCP server, Rust identity service, registration, site redesign323 <div className="px-5 py-3" />
324 <div className="px-5 py-3 text-muted">A forge built for people</div>
325 <div className="px-5 py-3 text-accent">g1t</div>
326 </div>
327 {COMPARISON.map(([topic, before, after]) => (
A dusk palette and isometric line art, with the landing page rewritten around agents as a team328 <div key={topic} className="grid grid-cols-[1fr_1.3fr_1.6fr] border-t border-line text-sm">
API and MCP server, Rust identity service, registration, site redesign329 <div className="px-5 py-4 font-medium">{topic}</div>
330 <div className="px-5 py-4 text-muted">{before}</div>
331 <div className="px-5 py-4">{after}</div>
332 </div>
333 ))}
334 </div>
335 </section>
336
A dusk palette and isometric line art, with the landing page rewritten around agents as a team337 {/* Open source */}
API and MCP server, Rust identity service, registration, site redesign338 <section className="mx-auto max-w-6xl px-4 pb-8">
A dusk palette and isometric line art, with the landing page rewritten around agents as a team339 <div className="dusk relative overflow-hidden rounded-3xl p-10 text-center ring-1 ring-line">
340 <h2 className="text-2xl font-semibold tracking-tight">Open source, and built on itself</h2>
341 <p className="mx-auto mt-3 max-w-xl text-fg-soft/80">
342 g1t's own source lives on g1t, and its changes land through its own queue. It runs
343 entirely on Cloudflare's developer platform.
API and MCP server, Rust identity service, registration, site redesign344 </p>
345 <ul className="mt-6 flex flex-wrap justify-center gap-2">
346 {PLATFORM.map((name) => (
A dusk palette and isometric line art, with the landing page rewritten around agents as a team347 <li key={name} className="rounded-full bg-bg/60 px-3 py-1 font-mono text-xs text-fg-soft ring-1 ring-white/10">
API and MCP server, Rust identity service, registration, site redesign348 {name}
349 </li>
350 ))}
351 </ul>
352 <div className="mt-8 flex flex-wrap justify-center gap-3">
353 <ButtonLink to="/syntaqx/g1t" variant="primary" large>
354 Browse the source
355 </ButtonLink>
356 <ButtonLink to="/register" variant="quiet" large>
357 Create an account
358 </ButtonLink>
359 </div>
360 </div>
361
362 {repos.length > 0 && (
363 <div className="mt-20">
364 <div className="flex items-baseline justify-between">
A dusk palette and isometric line art, with the landing page rewritten around agents as a team365 <h2 className="text-sm font-medium text-muted">Public repositories</h2>
API and MCP server, Rust identity service, registration, site redesign366 <Link to="/explore" className="text-sm text-muted hover:text-fg">
367 Explore all
368 </Link>
369 </div>
370 <RepoList repos={repos.slice(0, 6)} />
371 </div>
372 )}
373 </section>
374 </main>
375 );
376}