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

Initial g1t: services, event bus, intents and attempts1import { type RouteConfig, index, route } from "@react-router/dev/routes";
2
3export default [
4 index("routes/home.tsx"),
5 route("login", "routes/login.tsx"),
Merge main (membership, two-factor, GitHub repo roles) into tokens6 // The second step of signing in, for an account with two-factor authentication.
7 route("login/two-factor", "routes/login-two-factor.tsx"),
API and MCP server, Rust identity service, registration, site redesign8 route("register", "routes/register.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look9 // An invite link: who sent it, then sign-up or joining. `invite` is reserved.
10 route("invite/:code", "routes/invite.tsx"),
Initial g1t: services, event bus, intents and attempts11 route("logout", "routes/logout.tsx"),
Email verification, password reset, and Git for AI scale positioning12 route("verify", "routes/verify.tsx"),
Merge email confirmation gate: a code and a link, nothing until confirmed (identity 0036)13 // Where an account confirms its email address, with the code from the
14 // email; every other page sends it here until it has (lib/confirm-gate.ts).
15 route("confirm-email", "routes/confirm-email.tsx"),
Email verification, password reset, and Git for AI scale positioning16 route("forgot", "routes/forgot.tsx"),
17 route("reset", "routes/reset.tsx"),
Device sign-in replaces registering and minting tokens over the API18 route("device", "routes/device.tsx"),
OAuth 2.1 sign-in for MCP clients and other applications19 route("oauth/authorize", "routes/oauth-authorize.tsx"),
Initial g1t: services, event bus, intents and attempts20 route("new", "routes/new.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look21 // GitHub: signing in with it, and bringing repositories across through
22 // g1t's GitHub App. `auth` and `integrations` are reserved names.
23 route("new/github", "routes/new-github.tsx"),
24 route("auth/github", "routes/auth-github.ts"),
25 route("auth/github/callback", "routes/auth-github-callback.tsx"),
26 route("auth/github/username", "routes/auth-github-username.tsx"),
27 route("integrations/github/install", "routes/github-install.ts"),
28 route("integrations/github/setup", "routes/github-setup.tsx"),
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas29 // Your own settings: one page each, so links can name the one they mean.
30 // `/settings` goes to the first; an old link's `#anchor` to its page.
31 route("settings", "routes/settings/layout.tsx", [
32 index("routes/settings/index.tsx"),
33 route("profile", "routes/settings/profile.tsx"),
34 route("emails", "routes/settings/emails.tsx"),
Inbox on the site: reasons, a reason filter, Subscribe, Watch and settings35 route("notifications", "routes/settings/notifications.tsx"),
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas36 route("invites", "routes/settings/invites.tsx"),
37 route("keys", "routes/settings/keys.tsx"),
38 route("tokens", "routes/settings/tokens.tsx"),
39 route("github", "routes/settings/github.tsx"),
40 route("applications", "routes/settings/applications.tsx"),
Merge main (membership, two-factor, GitHub repo roles) into tokens41 route("two-factor", "routes/settings/two-factor.tsx"),
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas42 route("security-log", "routes/settings/security-log.tsx"),
Merge account deletion: soft delete for 30 days, staff restore and purge, ghost for what remains (identity 0037)43 route("account", "routes/settings/account.tsx"),
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas44 ]),
45 // The account menu's header: name, primary email and invites left.
46 route("settings/menu.json", "routes/settings-menu-json.ts"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains47 // People, apart from workspaces: `u` is a reserved name.
48 route("u/:username", "routes/user.tsx"),
Merge commit authors and hovercards: commits show their accounts, every name opens a card (repos 0016)49 // The card that opens over a person's name or avatar (lib/hovercard.ts).
50 // `-` is no workspace's name, so nothing else is ever found here.
51 route("-/hovercard/user/:username", "routes/hovercard-user.ts"),
API and MCP server, Rust identity service, registration, site redesign52 route("explore", "routes/explore.tsx", { id: "explore" }),
Prices keep themselves current with what g1t pays53 route("pricing", "routes/pricing.tsx"),
Search across all of g1t, Explore, and a command palette54 route("search", "routes/search.tsx"),
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all55 // Each person's inbox, and what its panel in the top bar fetches.
56 route("inbox", "routes/inbox.tsx"),
57 route("inbox.json", "routes/inbox-json.ts"),
Search across all of g1t, Explore, and a command palette58 // What the command palette shows as someone types.
59 route("search.json", "routes/search-json.ts"),
Agents as a team: lifecycle, merge queue, billing and a new shell60 route("workspaces/new", "routes/workspace/new.tsx"),
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)61 // Workspace invitations waiting for the person's answer. `invitations` is reserved.
62 route("invitations", "routes/invitations.tsx"),
63 // People to invite, as the People page's invite form searches them.
64 route("-/people.json", "routes/people-json.ts"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look65 // Trust pages: reserved names, like the rest above.
66 route("policies", "routes/policies.tsx"),
67 route("policies/:policy", "routes/policy.tsx"),
68 route("security", "routes/security.tsx"),
69 route("support", "routes/support.tsx"),
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas70 // Status moved to status.g1t.sh (apps/status); old links go there.
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look71 route("status", "routes/status.tsx"),
72 route("status.json", "routes/status-json.ts"),
73 route(".well-known/security.txt", "routes/security-txt.ts"),
The g1t CLI 0.1.0 is downloadable: g1t.sh/downloads/cli/latest/, five platforms with SHA256SUMS74 // Releases of the self-hosted runner and the g1t CLI, from R2.
75 route("downloads/:tool/*", "routes/downloads-runner.ts"),
Agents as a team: lifecycle, merge queue, billing and a new shell76 // A workspace's own pages sit under `-`, which no repository can be named.
77 route(":owner", "routes/workspace/layout.tsx", [
78 index("routes/workspace/overview.tsx"),
Merge branch 'worktree-agent-ad7c6d88d93adc817'79 // Its pages, each in the sidebar: Overview (above), Projects, People, Insights; Teams and Packages below.
Navigation: the workspace's own page with tabs, pins and recent in the sidebar80 route("-/projects", "routes/workspace/projects.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell81 route("-/people", "routes/workspace/people.tsx"),
Navigation: the workspace's own page with tabs, pins and recent in the sidebar82 route("-/insights", "routes/workspace/tab-soon.tsx", { id: "routes/workspace/insights" }),
83 // Pinning its projects, for the person signed in.
84 route("-/pins", "routes/workspace/pins.ts"),
85 // Pages that moved: Members is People, and the overview is the workspace.
86 route("-/members", "routes/workspace/moved.ts", { id: "routes/workspace/moved-members" }),
87 route("-/overview", "routes/workspace/moved.ts", { id: "routes/workspace/moved-overview" }),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar88 // Teams: the list, a new one, and each team's pages.
89 route("-/teams", "routes/workspace/teams.tsx"),
90 route("-/teams/new", "routes/workspace/team-new.tsx"),
91 route("-/teams/:team", "routes/workspace/team/layout.tsx", [
92 index("routes/workspace/team/members.tsx"),
93 route("teams", "routes/workspace/team/teams.tsx"),
94 route("repositories", "routes/workspace/team/repositories.tsx"),
95 route("settings", "routes/workspace/team/settings.tsx"),
96 ]),
Agents as a team: lifecycle, merge queue, billing and a new shell97 route("-/tokens", "routes/workspace/tokens.tsx"),
Settings: fine-grained tokens, workspace token Admin, workspace personal access token rules98 // Its rules for members' personal access tokens, and approving them.
99 route("-/personal-access-tokens", "routes/workspace/personal-access-tokens.tsx"),
Usage, like a hosting provider's: what agents cost, per day, task, repository and pull request100 route("-/usage", "routes/workspace/usage.tsx"),
Merge the AI Gateway: Anthropic's Messages API on a workspace's tokens101 route("-/gateway", "routes/workspace/gateway.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell102 route("-/billing", "routes/workspace/billing.tsx"),
The statement is a month at a time, a line per kind of charge103 route("-/billing/entries", "routes/workspace/statement-entries.ts"),
104 route("-/billing/statement.csv", "routes/workspace/statement-csv.ts"),
Integrations: your own model provider, alerts that open issues, tickets agents read105 route("-/integrations", "routes/workspace/integrations.tsx"),
Webhooks: every event, to your own addresses, signed and retried106 route("-/webhooks", "routes/workspace/webhooks.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs107 route("-/secrets", "routes/workspace/secrets.tsx"),
Fast pages, required checks on the branch, self-hosted runners, honest incidents108 route("-/runners", "routes/workspace/runners.tsx"),
Merge branch 'worktree-agent-a3abfcce648e87dca'109 route("-/actions", "routes/workspace/actions-settings.tsx"),
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member110 route("-/packages", "routes/workspace/packages.tsx"),
111 route("-/packages/:ecosystem/*", "routes/workspace/package.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell112 route("-/settings", "routes/workspace/settings.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look113 route("-/repositories", "routes/workspace/repositories.tsx"),
Chat and workspace agents: channels, DMs and named agents you talk to114 // Agents mode: the fleet's runs first, then each of the workspace's own
115 // agents (docs/WORKSPACE.md). `new` is no agent's handle.
116 route("-/agents", "routes/workspace/agents/layout.tsx", [
117 index("routes/workspace/agents.tsx"),
118 route("new", "routes/workspace/agents/new.tsx"),
119 route(":handle", "routes/workspace/agents/agent.tsx", [
120 index("routes/workspace/agents/desk.tsx"),
121 route("profile", "routes/workspace/agents/profile.tsx"),
122 route("spend", "routes/workspace/agents/spend.tsx"),
123 route("activity", "routes/workspace/agents/activity.tsx"),
124 ]),
125 ]),
126 // Chat mode: channels by name, direct messages by id, and what the page
127 // calls as it runs: the live socket and the JSON for sending and reading.
128 route("-/chat/live", "routes/workspace/chat/live.ts"),
129 route("-/chat/api", "routes/workspace/chat/api.ts"),
130 route("-/chat", "routes/workspace/chat/layout.tsx", [
131 index("routes/workspace/chat/index.tsx"),
132 route("browse", "routes/workspace/chat/browse.tsx"),
133 route("dm/:id", "routes/workspace/chat/channel.tsx", { id: "routes/workspace/chat/dm" }),
134 route(":channel", "routes/workspace/chat/channel.tsx"),
135 ]),
136 // Docs mode, coming; Home for a member without Code; and what Code's
137 // pages say to them (docs/WORKSPACE.md, "Members without Code").
138 route("-/docs", "routes/workspace/docs.tsx"),
139 route("-/home", "routes/workspace/home.tsx"),
140 route("-/code-access", "routes/workspace/code-access.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains141 route("-/memory", "routes/workspace/memory.tsx"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API142 route("-/context", "routes/workspace/context.tsx"),
143 route("-/security", "routes/workspace/security.tsx"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar144 route("-/security/patterns", "routes/workspace/security-patterns.tsx"),
145 route("-/security/bypass-requests", "routes/workspace/security-bypass.tsx"),
146 route("-/security/settings", "routes/workspace/security-settings.tsx"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API147 route("-/audit", "routes/workspace/audit.tsx"),
148 route("-/audit/export", "routes/workspace/audit-export.ts"),
149 route("-/guardrails", "routes/workspace/guardrails.tsx"),
Merge rulesets: branch and tag rules, agent-first, enforced on push and merge150 route("-/rules", "routes/workspace/rules.tsx"),
151 route("-/rules/:id", "routes/workspace/ruleset.tsx"),
A flat project menu with Code first, views as tabs, and Stripe for every owner152 // What the workspace will have across its projects.
153 route("-/soon/:feature", "routes/workspace/soon.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell154 ]),
155 // Why a line is the way it is, fetched by the blame view.
156 route(":owner/:repo/why/:hash", "routes/repo/why.ts"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains157 // A project's agent runs as JSON, and stopping or messaging one.
158 route(":owner/:repo/agents.json", "routes/repo/agents-live.ts"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar159 // Its branch names, for changing the branch a pull request merges into.
160 route(":owner/:repo/branches.json", "routes/repo/branch-names.ts"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API161 // What a project's agent runs did, from the audit log, for the Agent panel.
162 route(":owner/:repo/audit.json", "routes/repo/audit-live.ts"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look163 // An invitation to a repository, answered by someone who cannot see it yet.
164 route(":owner/:repo/invitations", "routes/repo/invitations.tsx"),
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97165 // The Files page's About as JSON, asked again while it is first worked out.
166 route(":owner/:repo/about.json", "routes/repo/about-json.ts"),
167 // Starring it, from the header's Star button.
168 route(":owner/:repo/star", "routes/repo/star.ts"),
Inbox on the site: reasons, a reason filter, Subscribe, Watch and settings169 // Subscribing to its issues and pull requests, and watching it.
170 route(":owner/:repo/notifications", "routes/repo/notifications.ts"),
Fast pages, required checks on the branch, self-hosted runners, honest incidents171 // A starter CI workflow, opened as a pull request (components/add-ci.tsx).
172 route(":owner/:repo/add-ci", "routes/repo/add-ci.ts"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look173 // A screenshot of a project's production, for its overview.
174 route(":owner/:repo/production.jpg", "routes/repo/production-screenshot.ts"),
Merge g1tusercontent.com: registry answers run nothing in a browser, the site's pages run only their own scripts, repository files and avatars on their own origin, raw files rate limited per address175 // A file as it is, sent on to the usercontent origin (lib/usercontent.ts).
176 route(":owner/:repo/raw/:ref/*", "routes/repo/raw.ts"),
Projects: what a workspace builds and runs, first on every page177 // A project: its overview first, its repository's code under Code. The
178 // 1:1 project of a repository has the repository's name, so every
179 // repository address below keeps working.
Initial g1t: services, event bus, intents and attempts180 route(":owner/:repo", "routes/repo/layout.tsx", [
Projects: what a workspace builds and runs, first on every page181 index("routes/repo/overview.tsx"),
182 route("code", "routes/repo/code.tsx"),
Initial g1t: services, event bus, intents and attempts183 route("tree/:ref/*", "routes/repo/tree.tsx"),
184 route("blob/:ref/*", "routes/repo/blob.tsx"),
Download ZIP from the Code button; a slimmer lifecycle panel; agent steps say what was done, not sandbox paths185 route("archive/*", "routes/repo/archive.ts"),
API and MCP server, Rust identity service, registration, site redesign186 route("commits", "routes/repo/commits.tsx"),
Branches and Tags pages, each file's last commit, and the branch menu on files187 route("branches", "routes/repo/branches.tsx"),
188 route("tags", "routes/repo/tags.tsx"),
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97189 route("releases", "routes/repo/releases.tsx"),
190 route("releases/new", "routes/repo/release-new.tsx"),
191 route("releases/tag/*", "routes/repo/release.tsx"),
192 route("contributors", "routes/repo/contributors.tsx"),
193 route("activity", "routes/repo/activity.tsx"),
194 route("stargazers", "routes/repo/stargazers.tsx"),
Compare: any two branches, the commits one has that the other does not, and the diff, with Open a pull request195 route("compare/*", "routes/repo/compare.tsx", { id: "routes/repo/compare-range" }),
196 route("compare", "routes/repo/compare.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell197 route("commit/:hash", "routes/repo/commit.tsx"),
Merge checks: statuses and check runs on every commit198 // A check run reported on a commit: its report, annotations and buttons.
199 route("checks/:id", "routes/repo/check-run.tsx"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar200 route("labels", "routes/repo/labels.tsx"),
201 route("milestones", "routes/repo/milestones.tsx"),
202 route("milestones/:number", "routes/repo/milestone.tsx"),
Issues and pull requests replace intents and attempts203 route("issues", "routes/repo/issues.tsx"),
204 route("issues/new", "routes/repo/issue-new.tsx"),
205 route("issues/:number", "routes/repo/issue.tsx"),
206 route("pulls", "routes/repo/pulls.tsx"),
Pull requests from branches207 route("pulls/new", "routes/repo/pull-new.tsx"),
Issues and pull requests replace intents and attempts208 route("pull/:number", "routes/repo/pull.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell209 route("queue", "routes/repo/queue.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains210 route("agents", "routes/repo/agents.tsx"),
Usage, Billing settings and prepaid AI credit; fixes from the UX audit211 route("usage", "routes/repo/usage.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains212 route("agents/runs/:id", "routes/repo/agents-run.tsx"),
213 route("sessions", "routes/repo/sessions.tsx"),
214 route("sessions/:number", "routes/repo/session.tsx"),
215 route("memory", "routes/repo/memory.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs216 route("actions", "routes/repo/actions.tsx"),
217 route("actions/runs/:id", "routes/repo/actions-run.tsx"),
Actions: workflow_run, workflow.completed, artifacts on the run page, Node 24218 route("actions/runs/:id/artifacts/:name", "routes/repo/actions-artifact.ts"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs219 route("actions/jobs/:job/log", "routes/repo/actions-log.ts"),
Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)220 route("actions/jobs/:job/log.txt", "routes/repo/actions-job-log-download.ts"),
221 route("actions/runs/:id/logs.zip", "routes/repo/actions-logs-download.ts"),
222 route("actions/workflows/:file/badge.svg", "routes/repo/actions-badge.ts"),
Deployments: a preview for every pull request, production on g1t.page223 route("deployments", "routes/repo/deployments.tsx"),
224 route("deployments/:id", "routes/repo/deployment.tsx"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar225 // Security: an overview, then a page for each part. Old links to
226 // `security?tab=…` are sent on by the overview.
227 route("security", "routes/repo/security-overview.tsx"),
228 route("security/secret-scanning", "routes/repo/security-secrets.tsx"),
229 route("security/secret-scanning/patterns", "routes/repo/security-patterns.tsx"),
230 route("security/secret-scanning/:id", "routes/repo/security-secret.tsx"),
231 route("security/code-scanning", "routes/repo/security-code.tsx"),
232 route("security/code-scanning/setup", "routes/repo/security-code-setup.ts"),
233 route("security/code-scanning/:number", "routes/repo/security-code-alert.tsx"),
234 route("security/vulnerabilities", "routes/repo/security.tsx"),
235 route("security/dependency-graph", "routes/repo/security-graph.tsx"),
236 route("security/dependency-graph/sbom.json", "routes/repo/security-sbom.ts"),
237 route("security/dependency-updates", "routes/repo/security-updates.tsx"),
238 route("security/pulls/:number", "routes/repo/security-pull.tsx"),
239 route("security/settings", "routes/repo/security-settings.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell240 route("plans", "routes/repo/plans.tsx"),
241 route("plans/:id", "routes/repo/plan.tsx"),
242 route("settings", "routes/repo/settings.tsx"),
Projects: what a workspace builds and runs, first on every page243 route("settings/repository", "routes/repo/settings-repository.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look244 route("settings/access", "routes/repo/settings-access.tsx"),
Merge branch 'worktree-agent-a5a5de74d8863d554' into worktree-agent-a16631325aecf58ca245 route("settings/keys", "routes/repo/settings-deploy-keys.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look246 route("settings/branches", "routes/repo/settings-branches.tsx"),
Merge rulesets: branch and tag rules, agent-first, enforced on push and merge247 route("settings/rules", "routes/repo/settings-rules.tsx"),
248 route("settings/rules/:id", "routes/repo/settings-ruleset.tsx"),
Webhooks: every event, to your own addresses, signed and retried249 route("settings/webhooks", "routes/repo/webhooks.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs250 route("settings/secrets", "routes/repo/secrets.tsx"),
Merge branch 'worktree-agent-a3abfcce648e87dca'251 route("settings/actions", "routes/repo/settings-actions.tsx"),
252 route("settings/environments", "routes/repo/settings-environments.tsx"),
Fast pages, required checks on the branch, self-hosted runners, honest incidents253 route("settings/runners", "routes/repo/settings-runners.tsx"),
Secrets and variables: one list, rows per environment, for workflows and deployments254 route("settings/deployments", "routes/repo/settings-deployments.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains255 route("settings/domains", "routes/repo/settings-domains.tsx"),
Project dependencies: addresses, preview stacks, Affects, and agents who know256 route("settings/dependencies", "routes/repo/settings-dependencies.tsx"),
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API257 route("settings/guardrails", "routes/repo/settings-guardrails.tsx"),
258 route("settings/agents", "routes/repo/settings-agents.tsx"),
A menu shaped by how g1t works, Soon pages for every promise, and sudo for sales259 // What the project will have: one page for each Soon in its menu.
260 route("soon/:feature", "routes/repo/soon.tsx"),
Initial g1t: services, event bus, intents and attempts261 ]),
Webhooks: every event, to your own addresses, signed and retried262 // Anything else: a 404 that still knows who is signed in.
263 route("*", "routes/not-found.tsx"),
Initial g1t: services, event bus, intents and attempts264] satisfies RouteConfig;

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