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

Workspace names and icons, and a component kit for every control1// @ts-check
2import starlight from '@astrojs/starlight';
3import { defineConfig } from 'astro/config';
4
5import { generateApiReference } from './scripts/api-reference.mjs';
6
7// A page per REST operation, written from the OpenAPI document.
8const apiGroups = generateApiReference();
9
10export default defineConfig({
11 site: 'https://docs.g1t.sh',
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent12 // Pages that moved, so links already shared still arrive.
13 redirects: {
14 '/guides/g1t-agents/': '/guides/working-with-g1t/',
g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them.15 '/guides/inbox/': '/guides/notifications/',
Merge branch 'customize' into main: Customize replaces the Marketplace, the Artifacts trash and spaces changes, the Security-free cleanup, with the desktop app's own title bar kept in the shell.16 '/guides/marketplace/': '/guides/customize/',
The front page is Home: where you're needed comes first, however long ago it started, with what's at stake and how long it has waited; then what happened since you were last here, in words, with the agent work that settled, what landed, what deployed, what was decided and what was spent, switchable to the last 24 hours or 7 days; then what's running now. Your last visit is kept with your account, so it's the same on every device; Today's old address leads here. The home guide says how.17 '/guides/today/': '/guides/home/',
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent18 },
Workspace names and icons, and a component kit for every control19 integrations: [
20 starlight({
21 title: 'g1t docs',
Chat and workspace agents: channels, DMs and named agents you talk to22 description: 'Guides and reference for g1t, the workspace where a team and its agents talk, work and ship.',
Workspace names and icons, and a component kit for every control23 components: {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look24 Footer: './src/components/Footer.astro',
25 Head: './src/components/Head.astro',
Workspace names and icons, and a component kit for every control26 Header: './src/components/Header.astro',
27 PageTitle: './src/components/PageTitle.astro',
28 SiteTitle: './src/components/SiteTitle.astro',
29 SocialIcons: './src/components/SocialIcons.astro',
30 },
31 // Each tab under the header shows its own part of the sidebar.
32 routeMiddleware: './src/route-data.ts',
33 expressiveCode: {
docs.g1t.sh and status.g1t.sh follow your system's light or dark setting, and each has an Auto, Light and Dark switch that this browser remembers: the docs' in the header (at the foot of the menu on a phone), with code, search, the API reference and its explorer in both themes; the status page's in its header, chosen before anything is drawn; the workspaces guide says where.34 // Dark first, as the base; the light one where the page is light.
35 // Starlight switches between them by <html data-theme>.
36 themes: ['github-dark-default', 'github-light-default'],
37 useDarkModeMediaQuery: false,
Workspace names and icons, and a component kit for every control38 // Plain panels with a copy button, without window chrome.
39 defaultProps: { frame: 'none' },
40 styleOverrides: {
41 borderRadius: '0.75rem',
42 borderColor: 'var(--g1t-line)',
43 codeBackground: 'var(--g1t-surface)',
44 codeFontSize: '0.8125rem',
45 frames: {
46 editorBackground: 'var(--g1t-surface)',
47 terminalBackground: 'var(--g1t-surface)',
48 terminalTitlebarBackground: 'var(--g1t-raised)',
49 terminalTitlebarBorderBottomColor: 'var(--g1t-line)',
50 editorTabBarBackground: 'var(--g1t-raised)',
51 shadowColor: 'transparent',
52 },
53 },
54 },
55 logo: { src: '@g1t/theme/mark.svg', alt: '' },
56 favicon: '/favicon.svg',
docs.g1t.sh and status.g1t.sh follow your system's light or dark setting, and each has an Auto, Light and Dark switch that this browser remembers: the docs' in the header (at the foot of the menu on a phone), with code, search, the API reference and its explorer in both themes; the status page's in its header, chosen before anything is drawn; the workspaces guide says where.57 customCss: [
58 '@g1t/theme/fonts.css',
59 '@g1t/theme/tokens.css',
60 './src/styles/light.css',
61 './src/styles/g1t.css',
62 ],
Workspace names and icons, and a component kit for every control63 editLink: {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look64 baseUrl: 'https://g1t.sh/flagon-io/g1t/blob/main/apps/docs/',
Workspace names and icons, and a component kit for every control65 },
66 lastUpdated: true,
67 head: [
68 { tag: 'link', attrs: { rel: 'icon', href: '/favicon.ico', sizes: '32x32' } },
69 { tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/icon-192.png' } },
Agents mode: an overview of every agent's work and spend, and each agent's sessions, memory, routines, spend, activity and versions70 { tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '512x512', href: '/icon-512.png' } },
71 { tag: 'link', attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' } },
72 { tag: 'link', attrs: { rel: 'manifest', href: '/site.webmanifest' } },
docs.g1t.sh and status.g1t.sh follow your system's light or dark setting, and each has an Auto, Light and Dark switch that this browser remembers: the docs' in the header (at the foot of the menu on a phone), with code, search, the API reference and its explorer in both themes; the status page's in its header, chosen before anything is drawn; the workspaces guide says where.73 // The browser's own bars, in the page's colour for the system's setting.
74 { tag: 'meta', attrs: { name: 'theme-color', content: '#0f0f11', media: '(prefers-color-scheme: dark)' } },
75 { tag: 'meta', attrs: { name: 'theme-color', content: '#fbfbfa', media: '(prefers-color-scheme: light)' } },
Workspace names and icons, and a component kit for every control76 ],
77 sidebar: [
78 {
79 label: 'Get started',
80 items: [
81 { label: 'Quickstart', slug: 'quickstart' },
82 { label: 'How g1t works', slug: 'concepts/overview' },
The front page is Home: where you're needed comes first, however long ago it started, with what's at stake and how long it has waited; then what happened since you were last here, in words, with the agent work that settled, what landed, what deployed, what was decided and what was spent, switchable to the last 24 hours or 7 days; then what's running now. Your last visit is kept with your account, so it's the same on every device; Today's old address leads here. The home guide says how.83 { label: 'Home', slug: 'guides/home' },
g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them.84 { label: 'Notifications', slug: 'guides/notifications' },
preparing for cloud work85 { label: 'The desktop app', slug: 'guides/desktop' },
The phone app: Chat in full with phone notifications, plus Code and Customize (#4)86 { label: 'The phone app', slug: 'guides/mobile' },
Search across all of g1t, Explore, and a command palette87 { label: 'Search and Explore', slug: 'guides/search' },
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas88 { label: 'Status and incidents', slug: 'guides/status' },
Workspace names and icons, and a component kit for every control89 ],
90 },
91 {
Chat and workspace agents: channels, DMs and named agents you talk to92 label: 'Chat and agents',
93 items: [
94 { label: 'Chat', slug: 'guides/chat' },
95 { label: 'Agents', slug: 'guides/agents' },
Agents mode: an overview of every agent's work and spend, and each agent's sessions, memory, routines, spend, activity and versions96 { label: 'Sessions', slug: 'guides/agent-sessions' },
Every agent starts with g1t's foundational skills, playbooks for documents, research, data, code, communication, and files and media, each using only tools the agent already has and saying plainly what isn't possible yet: agents make PDFs, Word documents, spreadsheets, CSV and Markdown files with make_file, kept with a doc in Artifacts and served from g1tusercontent.com; an agent's Skills tab shows what each skill can do and with which tools, and owners turn a skill off per agent; the agent skills guide says how.97 { label: 'Skills', slug: 'guides/agent-skills' },
Each agent has an Abilities tab: g1t's built-ins, always on within the asker's access; its computer, coming; each connected integration's actions one row each, read, import, comment or resolve, with a level for each, alone, alone when the person asked for it, ask first or never, and whose connection it runs on; and MCP servers an owner adds. Reading is alone, writing inside g1t follows today's choices, anything that leaves g1t asks first, and production deploys can't go above ask. The agents service enforces every level: ask first posts a card to allow or deny and parks a session until it's answered, a refusal names its rule in the transcript and the audit log, and a missing ability posts a request to owners. The agent abilities guide says how.98 { label: 'Abilities', slug: 'guides/agent-abilities' },
Agents mode: an overview of every agent's work and spend, and each agent's sessions, memory, routines, spend, activity and versions99 { label: 'Agent memory', slug: 'guides/agent-memory' },
100 { label: 'Routines', slug: 'guides/agent-routines' },
The Spend page says what a workspace spent, where it went and the budgets that hold it, in Workspace under Money: spent at price, agents' spend and the spend limit; by day; by agent, person, channel, model, kind of work and product; budgets from the workspace down to each person, agent and task, with what happens at 100%; the costliest tasks, each with a receipt of every session at the provider's price and what was charged; and how it's priced. Everyone sees what agents spent for them, and owners and billing managers the whole workspace; each person can have a monthly budget agents keep to, and the spend pill in the top bar shows your month or the workspace's against its limit. The spend guide says how.101 { label: 'Spend', slug: 'guides/spend' },
Agents mode: an overview of every agent's work and spend, and each agent's sessions, memory, routines, spend, activity and versions102 { label: 'Agent budgets and spend', slug: 'guides/agent-budgets' },
Chat and workspace agents: channels, DMs and named agents you talk to103 { label: 'What agents can do for whom', slug: 'guides/agent-access' },
The Artifacts guide explains home, the sidebar, sharing and access requests, Private, spaces with Editors can share, docs, agents and writing a thread up, links in chat, history, templates, the trash and export, in place of the Docs guide, whose links now go to it.104 { label: 'Artifacts', slug: 'guides/artifacts' },
Chat and workspace agents: channels, DMs and named agents you talk to105 { label: 'Agents in your chat app', slug: 'guides/chat-app', badge: { text: 'Soon', variant: 'default' } },
106 ],
107 },
108 {
Workspace names and icons, and a component kit for every control109 label: 'Projects',
110 items: [
111 { label: 'Projects', slug: 'guides/projects' },
112 { label: 'Deployments', slug: 'guides/deployments' },
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97113 { label: 'Deployments API', slug: 'guides/deployments-api' },
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member114 { label: 'Packages', slug: 'guides/packages' },
115 { label: 'Container images', slug: 'guides/containers' },
npm on g1t.sh: publish and install @<workspace>/<name> with the npm CLI and a g1t token116 { label: 'npm', slug: 'guides/npm' },
Cargo on g1t.sh: a sparse registry per workspace, cargo publish/add/yank/search with a g1t token; npm rows show their version117 { label: 'Cargo', slug: 'guides/cargo' },
Composer from the workspace's own repositories, and go get from g1t.sh118 { label: 'Composer', slug: 'guides/composer' },
Merge branch 'worktree-agent-a6a121745e81f639f'119 { label: 'Maven', slug: 'guides/maven' },
120 { label: 'NuGet', slug: 'guides/nuget' },
121 { label: 'RubyGems', slug: 'guides/rubygems' },
Composer from the workspace's own repositories, and go get from g1t.sh122 { label: 'Go modules', slug: 'guides/go' },
Workspace names and icons, and a component kit for every control123 { label: 'Secrets and variables', slug: 'guides/secrets-and-variables' },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar124 ],
125 },
126 {
127 label: 'Security',
128 items: [
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API129 { label: 'Security', slug: 'guides/security' },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar130 { label: 'Dependency updates', slug: 'guides/dependency-updates' },
131 { label: 'Secret protection', slug: 'guides/security/secret-protection' },
132 { label: 'Code scanning', slug: 'guides/security/code-scanning' },
133 { label: 'Supply chain', slug: 'guides/security/supply-chain' },
134 { label: 'Security overview', slug: 'guides/security/security-overview' },
135 { label: "What's free and what's paid", slug: 'guides/security/pricing' },
Workspace names and icons, and a component kit for every control136 ],
137 },
138 {
Chat and workspace agents: channels, DMs and named agents you talk to139 label: 'Agents on code',
Workspace names and icons, and a component kit for every control140 items: [
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent141 { label: "g1t's agent", slug: 'guides/working-with-g1t' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API142 { label: 'Guardrails', slug: 'guides/guardrails' },
Workspace names and icons, and a component kit for every control143 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
144 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
Agents and memory, checks and conflicts, profiles, slug renames, custom domains145 { label: 'Agents, sessions and memory', slug: 'guides/agents-and-memory' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API146 { label: 'Context hub', slug: 'guides/context-hub' },
Workspace names and icons, and a component kit for every control147 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
148 ],
149 },
150 {
151 label: 'Connect your tools',
152 items: [
Merge branch 'customize' into main: Customize replaces the Marketplace, the Artifacts trash and spaces changes, the Security-free cleanup, with the desktop app's own title bar kept in the shell.153 { label: 'Customize', slug: 'guides/customize' },
Workspace names and icons, and a component kit for every control154 { label: 'Integrations', slug: 'guides/integrations' },
155 { label: 'Model providers', slug: 'guides/models' },
Merge the AI Gateway: Anthropic's Messages API on a workspace's tokens156 { label: 'AI Gateway', slug: 'guides/ai-gateway' },
Workspace names and icons, and a component kit for every control157 { label: 'Webhooks', slug: 'guides/webhooks' },
158 { label: 'GitHub Actions', slug: 'guides/actions' },
Fast pages, required checks on the branch, self-hosted runners, honest incidents159 { label: 'Self-hosted runners', slug: 'guides/self-hosted-runners' },
Workspace names and icons, and a component kit for every control160 ],
161 },
162 {
163 label: 'Landing changes',
164 items: [
Agents and memory, checks and conflicts, profiles, slug renames, custom domains165 { label: 'Pull requests and checks', slug: 'guides/pull-requests' },
Merge checks: statuses and check runs on every commit166 { label: 'Checks', slug: 'guides/checks' },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar167 { label: 'Pull requests into other branches', slug: 'guides/base-branches' },
168 { label: 'Labels', slug: 'guides/labels' },
169 { label: 'Milestones', slug: 'guides/milestones' },
Workspace names and icons, and a component kit for every control170 { label: 'The merge queue', slug: 'guides/merge-queue' },
Merge rulesets: branch and tag rules, agent-first, enforced on push and merge171 { label: 'Rules', slug: 'guides/rules' },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar172 { label: 'CODEOWNERS', slug: 'guides/codeowners' },
Workspace names and icons, and a component kit for every control173 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
174 { label: 'Forks and branches', slug: 'concepts/forks' },
175 ],
176 },
177 {
178 label: 'Workspaces',
179 items: [
180 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look181 { label: 'GitHub', slug: 'guides/github' },
Merge branch 'mirroring' into artifacts-mode182 { label: 'Mirroring', slug: 'guides/mirroring' },
Workspace names and icons, and a component kit for every control183 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look184 { label: 'Access and roles', slug: 'guides/access-and-roles' },
Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now.185 { label: 'Permissions', slug: 'guides/permissions' },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar186 { label: 'Teams', slug: 'guides/teams' },
People and teams are front and centre: one directory of people and agents with presence, local time, titles, teams and what each owns; profiles with manager and reports and the agents they work with; an org chart with each team's agents beside the person who leads it; and teams of any mix, with a lead, a channel, a budget agents keep to and the agents on them. Every agent is told its teams each turn (who leads, who owns what, who's around and who to page), and the team page shows exactly what. Member management is Members and invites; the people and teams guide says how.187 { label: 'People and teams', slug: 'guides/people-and-teams' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look188 { label: 'Managing a repository', slug: 'guides/managing-repositories' },
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97189 { label: 'Releases', slug: 'guides/releases' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look190 { label: 'Transferring a repository', slug: 'guides/transferring-repositories' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API191 { label: 'Audit log', slug: 'guides/audit-log' },
Workspace names and icons, and a component kit for every control192 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
193 { label: 'Git', slug: 'guides/git' },
194 ],
195 },
196 {
The docs folder is gone, and what it held lives where people read it: how a self-hosted g1t runs and how to deploy g1t to Cloudflare are pages on docs.g1t.sh under Run g1t yourself, and speed, rate limits and operating g1t.sh are sections of CONTRIBUTING.md; code that cited a file in docs/ now points to the page or section that covers it, or says what it means itself, and applied migrations and the runner images are left as they were.197 label: 'Run g1t yourself',
198 items: [
199 { label: 'With Docker Compose', slug: 'guides/self-hosting' },
200 { label: 'How a self-hosted g1t runs', slug: 'guides/self-hosting-architecture' },
201 { label: 'Deploy to Cloudflare', slug: 'guides/deploy-to-cloudflare' },
202 ],
203 },
204 {
Workspace names and icons, and a component kit for every control205 label: 'Reference',
206 items: [
207 { label: 'API overview', slug: 'reference/api' },
208 { label: 'MCP tools', slug: 'reference/mcp' },
Merge branch 'worktree-agent-a8752162fea25f63f' into spend-guardrails209 { label: 'Rate limits', slug: 'reference/rate-limits' },
Workspace names and icons, and a component kit for every control210 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
211 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
212 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
213 ],
214 },
Fast pages, required checks on the branch, self-hosted runners, honest incidents215 {
216 label: 'About',
What g1t can't do yet, and an open letter to Cloudflare217 items: [
218 { label: "What g1t can't do yet", slug: 'about/limitations' },
219 { label: 'An open letter to Cloudflare', slug: 'about/open-letter-to-cloudflare' },
220 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents221 },
Workspace names and icons, and a component kit for every control222 ...apiGroups,
223 ],
224 }),
225 ],
226});

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