Skip to content
177 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.

Document messaging agents and the usage page1---
Merge branch 'worktree-agent-ab2e39e11a6493412'2// The API explorer, for trying calls from the browser: Scalar's explorer over g1t's OpenAPI
Document messaging agents and the usage page3// document. It is a standalone page because the explorer brings its own
Merge branch 'worktree-agent-ab2e39e11a6493412'4// layout. The reference itself is the Starlight pages under /reference/api/.
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look5import '@g1t/theme/fonts.css';
Document messaging agents and the usage page6import '@g1t/theme/tokens.css';
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look7import sans from '@g1t/theme/fonts/hanken-grotesk-latin.woff2?url';
8
9// The wordmark: G1T in pixel capitals, the 1 in lavender, as in
10// src/components/SiteTitle.astro.
11const G = ['.###.', '#...#', '#....', '#.###', '#...#', '#...#', '.###.'];
12const ONE = ['..#..', '.##..', '#.#..', '..#..', '..#..', '..#..', '#####'];
13const T = ['#####', '..#..', '..#..', '..#..', '..#..', '..#..', '..#..'];
14const pixels = (rows: string[], dx: number, one: boolean) =>
15 rows.flatMap((row, y) => [...row].flatMap((c, x) => (c === '#' ? [{ x: dx + x, y, one }] : [])));
16const word = [...pixels(G, 0, false), ...pixels(ONE, 6, true), ...pixels(T, 10, false)];
Document messaging agents and the usage page17
18const configuration = {
19 theme: 'none',
20 darkMode: true,
21 hideDarkModeToggle: true,
22 hideClientButton: true,
Docs worth reading, and kept that way23 hideModels: true,
Document messaging agents and the usage page24 defaultHttpClient: { targetKey: 'shell', clientKey: 'curl' },
25};
26---
27
28<!doctype html>
29<html lang="en">
30 <head>
31 <meta charset="utf-8" />
32 <meta name="viewport" content="width=device-width, initial-scale=1" />
Merge branch 'worktree-agent-ab2e39e11a6493412'33 <title>API explorer · g1t docs</title>
Document messaging agents and the usage page34 <meta
35 name="description"
36 content="Every g1t API endpoint, with an explorer to call them from the page."
37 />
The fleet: g1t's new mark38 <link rel="icon" href="/favicon.ico" sizes="32x32" />
Document messaging agents and the usage page39 <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers40 <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
41 <link rel="manifest" href="/site.webmanifest" />
Document messaging agents and the usage page42 <link rel="canonical" href="https://docs.g1t.sh/api/reference/" />
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look43 <link rel="preload" href={sans} as="font" type="font/woff2" crossorigin />
Document messaging agents and the usage page44 </head>
45 <body>
46 <header class="bar">
Docs worth reading, and kept that way47 <a class="brand" href="/" aria-label="g1t docs home">
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look48 <svg viewBox="1 1 148 68" role="img" aria-label="g1t">
49 {word.map((p) => (
50 <rect
51 x={p.x * 10 + 1}
52 y={p.y * 10 + 1}
53 width="8"
54 height="8"
Merge branch 'worktree-agent-ad7c6d88d93adc817'55 fill={p.one ? 'var(--g1t-accent)' : 'currentColor'}
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look56 />
57 ))}
Docs worth reading, and kept that way58 </svg>
59 <span class="pill">Docs</span>
60 </a>
61 <nav>
62 <a href="/">Guides</a>
Merge branch 'worktree-agent-ab2e39e11a6493412'63 <a href="/reference/api/">API reference</a>
Docs worth reading, and kept that way64 <a href="/reference/mcp/">MCP tools</a>
65 <a href="https://api.g1t.sh/openapi.json">OpenAPI</a>
66 <a href="https://g1t.sh/register" class="cta">Sign up</a>
67 </nav>
Document messaging agents and the usage page68 </header>
69 <script
70 is:inline
71 id="api-reference"
72 data-url="https://api.g1t.sh/openapi.json"
73 data-configuration={JSON.stringify(configuration)}></script>
74 <script is:inline src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
75 </body>
76</html>
77
78<style is:global>
79 body {
80 margin: 0;
81 background: var(--g1t-bg);
82 }
83
84 /* Scalar's names for the shared g1t tokens. */
85 :root {
Integrations: your own model provider, alerts that open issues, tickets agents read86 /* The g1t header above: Scalar's sticky sidebar starts below it. */
87 --scalar-custom-header-height: 56px;
Document messaging agents and the usage page88 --scalar-font: var(--g1t-font-sans);
89 --scalar-font-code: var(--g1t-font-mono);
90 }
91 .dark-mode {
92 --scalar-background-1: var(--g1t-bg);
93 --scalar-background-2: var(--g1t-surface);
94 --scalar-background-3: var(--g1t-raised);
95 --scalar-border-color: var(--g1t-line);
96 --scalar-color-1: var(--g1t-fg);
97 --scalar-color-2: var(--g1t-muted);
98 --scalar-color-3: var(--g1t-faint);
Docs worth reading, and kept that way99 --scalar-color-accent: #cfc6ff;
Merge branch 'worktree-agent-ad7c6d88d93adc817'100 --scalar-background-accent: color-mix(in srgb, var(--g1t-accent) 12%, transparent);
Document messaging agents and the usage page101 --scalar-button-1: var(--g1t-fg);
102 --scalar-button-1-color: var(--g1t-bg);
103 --scalar-button-1-hover: #ffffff;
Merge branch 'worktree-agent-ad7c6d88d93adc817'104 --scalar-color-green: var(--g1t-success);
Document messaging agents and the usage page105 --scalar-color-blue: var(--g1t-info);
106 --scalar-color-red: var(--g1t-danger);
107 --scalar-color-orange: var(--g1t-warn);
108 --scalar-sidebar-background-1: var(--g1t-bg);
109 --scalar-sidebar-color-1: var(--g1t-fg);
110 --scalar-sidebar-color-2: var(--g1t-muted);
111 --scalar-sidebar-border-color: var(--g1t-line);
112 --scalar-sidebar-item-hover-background: var(--g1t-surface);
113 --scalar-sidebar-item-active-background: var(--g1t-raised);
Docs worth reading, and kept that way114 --scalar-sidebar-color-active: var(--g1t-fg);
Document messaging agents and the usage page115 }
116
117 .bar {
Docs worth reading, and kept that way118 position: sticky;
119 top: 0;
120 z-index: 10;
Document messaging agents and the usage page121 display: flex;
122 align-items: center;
Docs worth reading, and kept that way123 justify-content: space-between;
Document messaging agents and the usage page124 height: 56px;
Docs worth reading, and kept that way125 padding: 0 20px;
126 background: color-mix(in srgb, var(--g1t-bg) 88%, transparent);
127 backdrop-filter: blur(10px);
Document messaging agents and the usage page128 border-bottom: 1px solid var(--g1t-line);
129 font: 14px var(--g1t-font-sans);
130 }
131 .bar a {
132 color: var(--g1t-muted);
133 text-decoration: none;
134 }
Docs worth reading, and kept that way135 .bar .brand {
136 display: inline-flex;
137 align-items: center;
138 gap: 9px;
Document messaging agents and the usage page139 color: var(--g1t-fg);
140 }
Docs worth reading, and kept that way141 .bar .brand svg {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look142 width: auto;
143 height: 20px;
Docs worth reading, and kept that way144 }
145 .bar .pill {
146 border-radius: 999px;
147 padding: 1px 8px;
148 font-size: 11.5px;
149 color: var(--g1t-muted);
150 box-shadow: inset 0 0 0 1px var(--g1t-line-strong);
151 }
152 .bar nav {
153 display: flex;
154 align-items: center;
155 gap: 4px;
156 }
157 .bar nav a {
158 border-radius: 6px;
159 padding: 5px 10px;
160 font-size: 13.5px;
161 }
162 .bar nav a:hover {
163 background: var(--g1t-raised);
Document messaging agents and the usage page164 color: var(--g1t-fg);
165 }
Docs worth reading, and kept that way166 .bar nav a.cta {
167 margin-left: 4px;
168 background: var(--g1t-fg);
169 color: var(--g1t-bg);
170 font-weight: 500;
171 }
172 @media (max-width: 760px) {
173 .bar nav a:not(.cta) {
174 display: none;
175 }
Document messaging agents and the usage page176 }
177</style>

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