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
25 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.

Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix1/**
2 * The tabs under the header. Each shows its own part of the sidebar: the
Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button.3 * groups named in its `groups`, in the sidebar's order. A page belongs to
4 * the tab holding its group; the home page, in no group, to the first.
5 * The API reference tab takes every group not named here, since the
6 * operations' groups are named after the API's tags.
Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix7 */
Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button.8export type Tab = { label: string; groups: string[] };
Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix9
10export const TABS: Tab[] = [
Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button.11 { label: 'Get started', groups: ['Get started', 'About'] },
12 { label: 'Chat and agents', groups: ['Chat and agents', 'Agents on code'] },
13 { label: 'Code', groups: ['Landing changes', 'Security'] },
14 { label: 'Projects', groups: ['Projects'] },
15 { label: 'Workspaces', groups: ['Workspaces', 'Connect your tools'] },
16 { label: 'Self-hosting', groups: ['Run g1t yourself'] },
17 { label: 'API reference', groups: [] },
Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix18];
19
Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button.20const API = TABS[TABS.length - 1];
21
22/** The tab that holds the sidebar group with this label. */
23export function tabForGroup(label: string): Tab {
24 return TABS.find((tab) => tab.groups.includes(label)) ?? API;
Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix25}

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