Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
50 linesCodeBlameRaw

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.

Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all1import { Link } from "react-router";
2
3import { cloneUrl, sshUrl, useAddresses } from "../lib/addresses";
4import { AgentSetup } from "./agent-setup";
5import { CopyLine } from "./ui";
6import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs";
7
8/** The ways to get a repository onto a machine or in front of an agent. */
9export function CloneBox({ path }: { path: string }) {
10 const addresses = useAddresses();
11 return (
12 <Tabs defaultValue="https">
13 <TabsList>
14 <TabsTrigger value="https">HTTPS</TabsTrigger>
15 <TabsTrigger value="ssh">SSH</TabsTrigger>
16 <TabsTrigger value="agent">Agent</TabsTrigger>
17 </TabsList>
18 <TabsContent value="https">
19 <CopyLine text={cloneUrl(addresses, path)} />
Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them.20 <p className="mt-2 text-xs text-muted">
21 To push, use your username and an{" "}
22 <Link to="/settings/tokens" className="text-fg underline underline-offset-4">
23 access token
24 </Link>{" "}
25 as the password.
26 </p>
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all27 </TabsContent>
28 <TabsContent value="ssh">
29 <CopyLine text={sshUrl(addresses, path)} disabled />
30 <p className="mt-2 text-xs text-muted">
31 Not on yet: git over SSH is waiting on inbound TCP on Cloudflare, which g1t has applied for. Use HTTPS for
32 now; it clones, fetches and pushes the same. Keys you add under{" "}
33 <Link to="/settings/keys" className="text-fg underline underline-offset-4">
34 SSH keys
35 </Link>{" "}
36 will work as soon as SSH is on.
37 </p>
38 </TabsContent>
39 <TabsContent value="agent">
40 <AgentSetup />
41 <p className="mt-2 text-xs text-muted">
42 Then ask it to work on an issue in <span className="font-mono text-fg">{path}</span>.{" "}
43 <Link to="https://docs.g1t.sh/guides/bring-your-own-agent/" className="text-fg underline underline-offset-4">
44 More
45 </Link>
46 </p>
47 </TabsContent>
48 </Tabs>
49 );
50}

This file's history is long; its oldest lines are credited to the oldest commit read.