Skip to content
228 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"),
43 ]),
44 // The account menu's header: name, primary email and invites left.
45 route("settings/menu.json", "routes/settings-menu-json.ts"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains46 // People, apart from workspaces: `u` is a reserved name.
47 route("u/:username", "routes/user.tsx"),
API and MCP server, Rust identity service, registration, site redesign48 route("explore", "routes/explore.tsx", { id: "explore" }),
Prices keep themselves current with what g1t pays49 route("pricing", "routes/pricing.tsx"),
Search across all of g1t, Explore, and a command palette50 route("search", "routes/search.tsx"),
Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all51 // Each person's inbox, and what its panel in the top bar fetches.
52 route("inbox", "routes/inbox.tsx"),
53 route("inbox.json", "routes/inbox-json.ts"),
Search across all of g1t, Explore, and a command palette54 // What the command palette shows as someone types.
55 route("search.json", "routes/search-json.ts"),
Agents as a team: lifecycle, merge queue, billing and a new shell56 route("workspaces/new", "routes/workspace/new.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look57 // Trust pages: reserved names, like the rest above.
58 route("policies", "routes/policies.tsx"),
59 route("policies/:policy", "routes/policy.tsx"),
60 route("security", "routes/security.tsx"),
61 route("support", "routes/support.tsx"),
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas62 // 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 look63 route("status", "routes/status.tsx"),
64 route("status.json", "routes/status-json.ts"),
65 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 SHA256SUMS66 // Releases of the self-hosted runner and the g1t CLI, from R2.
67 route("downloads/:tool/*", "routes/downloads-runner.ts"),
Agents as a team: lifecycle, merge queue, billing and a new shell68 // A workspace's own pages sit under `-`, which no repository can be named.
69 route(":owner", "routes/workspace/layout.tsx", [
70 index("routes/workspace/overview.tsx"),
Merge branch 'worktree-agent-ad7c6d88d93adc817'71 // 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 sidebar72 route("-/projects", "routes/workspace/projects.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell73 route("-/people", "routes/workspace/people.tsx"),
Navigation: the workspace's own page with tabs, pins and recent in the sidebar74 route("-/insights", "routes/workspace/tab-soon.tsx", { id: "routes/workspace/insights" }),
75 // Pinning its projects, for the person signed in.
76 route("-/pins", "routes/workspace/pins.ts"),
77 // Pages that moved: Members is People, and the overview is the workspace.
78 route("-/members", "routes/workspace/moved.ts", { id: "routes/workspace/moved-members" }),
79 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 bar80 // Teams: the list, a new one, and each team's pages.
81 route("-/teams", "routes/workspace/teams.tsx"),
82 route("-/teams/new", "routes/workspace/team-new.tsx"),
83 route("-/teams/:team", "routes/workspace/team/layout.tsx", [
84 index("routes/workspace/team/members.tsx"),
85 route("teams", "routes/workspace/team/teams.tsx"),
86 route("repositories", "routes/workspace/team/repositories.tsx"),
87 route("settings", "routes/workspace/team/settings.tsx"),
88 ]),
Agents as a team: lifecycle, merge queue, billing and a new shell89 route("-/tokens", "routes/workspace/tokens.tsx"),
Settings: fine-grained tokens, workspace token Admin, workspace personal access token rules90 // Its rules for members' personal access tokens, and approving them.
91 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 request92 route("-/usage", "routes/workspace/usage.tsx"),
Merge the AI Gateway: Anthropic's Messages API on a workspace's tokens93 route("-/gateway", "routes/workspace/gateway.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell94 route("-/billing", "routes/workspace/billing.tsx"),
The statement is a month at a time, a line per kind of charge95 route("-/billing/entries", "routes/workspace/statement-entries.ts"),
96 route("-/billing/statement.csv", "routes/workspace/statement-csv.ts"),
Integrations: your own model provider, alerts that open issues, tickets agents read97 route("-/integrations", "routes/workspace/integrations.tsx"),
Webhooks: every event, to your own addresses, signed and retried98 route("-/webhooks", "routes/workspace/webhooks.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs99 route("-/secrets", "routes/workspace/secrets.tsx"),
Fast pages, required checks on the branch, self-hosted runners, honest incidents100 route("-/runners", "routes/workspace/runners.tsx"),
Merge branch 'worktree-agent-a3abfcce648e87dca'101 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 member102 route("-/packages", "routes/workspace/packages.tsx"),
103 route("-/packages/:ecosystem/*", "routes/workspace/package.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell104 route("-/settings", "routes/workspace/settings.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look105 route("-/repositories", "routes/workspace/repositories.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains106 route("-/agents", "routes/workspace/agents.tsx"),
107 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 API108 route("-/context", "routes/workspace/context.tsx"),
109 route("-/security", "routes/workspace/security.tsx"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar110 route("-/security/patterns", "routes/workspace/security-patterns.tsx"),
111 route("-/security/bypass-requests", "routes/workspace/security-bypass.tsx"),
112 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 API113 route("-/audit", "routes/workspace/audit.tsx"),
114 route("-/audit/export", "routes/workspace/audit-export.ts"),
115 route("-/guardrails", "routes/workspace/guardrails.tsx"),
Merge rulesets: branch and tag rules, agent-first, enforced on push and merge116 route("-/rules", "routes/workspace/rules.tsx"),
117 route("-/rules/:id", "routes/workspace/ruleset.tsx"),
A flat project menu with Code first, views as tabs, and Stripe for every owner118 // What the workspace will have across its projects.
119 route("-/soon/:feature", "routes/workspace/soon.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell120 ]),
121 // Why a line is the way it is, fetched by the blame view.
122 route(":owner/:repo/why/:hash", "routes/repo/why.ts"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains123 // A project's agent runs as JSON, and stopping or messaging one.
124 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 bar125 // Its branch names, for changing the branch a pull request merges into.
126 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 API127 // What a project's agent runs did, from the audit log, for the Agent panel.
128 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 look129 // An invitation to a repository, answered by someone who cannot see it yet.
130 route(":owner/:repo/invitations", "routes/repo/invitations.tsx"),
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97131 // The Files page's About as JSON, asked again while it is first worked out.
132 route(":owner/:repo/about.json", "routes/repo/about-json.ts"),
133 // Starring it, from the header's Star button.
134 route(":owner/:repo/star", "routes/repo/star.ts"),
Inbox on the site: reasons, a reason filter, Subscribe, Watch and settings135 // Subscribing to its issues and pull requests, and watching it.
136 route(":owner/:repo/notifications", "routes/repo/notifications.ts"),
Fast pages, required checks on the branch, self-hosted runners, honest incidents137 // A starter CI workflow, opened as a pull request (components/add-ci.tsx).
138 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 look139 // A screenshot of a project's production, for its overview.
140 route(":owner/:repo/production.jpg", "routes/repo/production-screenshot.ts"),
Projects: what a workspace builds and runs, first on every page141 // A project: its overview first, its repository's code under Code. The
142 // 1:1 project of a repository has the repository's name, so every
143 // repository address below keeps working.
Initial g1t: services, event bus, intents and attempts144 route(":owner/:repo", "routes/repo/layout.tsx", [
Projects: what a workspace builds and runs, first on every page145 index("routes/repo/overview.tsx"),
146 route("code", "routes/repo/code.tsx"),
Initial g1t: services, event bus, intents and attempts147 route("tree/:ref/*", "routes/repo/tree.tsx"),
148 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 paths149 route("archive/*", "routes/repo/archive.ts"),
API and MCP server, Rust identity service, registration, site redesign150 route("commits", "routes/repo/commits.tsx"),
Branches and Tags pages, each file's last commit, and the branch menu on files151 route("branches", "routes/repo/branches.tsx"),
152 route("tags", "routes/repo/tags.tsx"),
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97153 route("releases", "routes/repo/releases.tsx"),
154 route("releases/new", "routes/repo/release-new.tsx"),
155 route("releases/tag/*", "routes/repo/release.tsx"),
156 route("contributors", "routes/repo/contributors.tsx"),
157 route("activity", "routes/repo/activity.tsx"),
158 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 request159 route("compare/*", "routes/repo/compare.tsx", { id: "routes/repo/compare-range" }),
160 route("compare", "routes/repo/compare.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell161 route("commit/:hash", "routes/repo/commit.tsx"),
Merge checks: statuses and check runs on every commit162 // A check run reported on a commit: its report, annotations and buttons.
163 route("checks/:id", "routes/repo/check-run.tsx"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar164 route("labels", "routes/repo/labels.tsx"),
165 route("milestones", "routes/repo/milestones.tsx"),
166 route("milestones/:number", "routes/repo/milestone.tsx"),
Issues and pull requests replace intents and attempts167 route("issues", "routes/repo/issues.tsx"),
168 route("issues/new", "routes/repo/issue-new.tsx"),
169 route("issues/:number", "routes/repo/issue.tsx"),
170 route("pulls", "routes/repo/pulls.tsx"),
Pull requests from branches171 route("pulls/new", "routes/repo/pull-new.tsx"),
Issues and pull requests replace intents and attempts172 route("pull/:number", "routes/repo/pull.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell173 route("queue", "routes/repo/queue.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains174 route("agents", "routes/repo/agents.tsx"),
Usage, Billing settings and prepaid AI credit; fixes from the UX audit175 route("usage", "routes/repo/usage.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains176 route("agents/runs/:id", "routes/repo/agents-run.tsx"),
177 route("sessions", "routes/repo/sessions.tsx"),
178 route("sessions/:number", "routes/repo/session.tsx"),
179 route("memory", "routes/repo/memory.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs180 route("actions", "routes/repo/actions.tsx"),
181 route("actions/runs/:id", "routes/repo/actions-run.tsx"),
Actions: workflow_run, workflow.completed, artifacts on the run page, Node 24182 route("actions/runs/:id/artifacts/:name", "routes/repo/actions-artifact.ts"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs183 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)184 route("actions/jobs/:job/log.txt", "routes/repo/actions-job-log-download.ts"),
185 route("actions/runs/:id/logs.zip", "routes/repo/actions-logs-download.ts"),
186 route("actions/workflows/:file/badge.svg", "routes/repo/actions-badge.ts"),
Deployments: a preview for every pull request, production on g1t.page187 route("deployments", "routes/repo/deployments.tsx"),
188 route("deployments/:id", "routes/repo/deployment.tsx"),
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar189 // Security: an overview, then a page for each part. Old links to
190 // `security?tab=…` are sent on by the overview.
191 route("security", "routes/repo/security-overview.tsx"),
192 route("security/secret-scanning", "routes/repo/security-secrets.tsx"),
193 route("security/secret-scanning/patterns", "routes/repo/security-patterns.tsx"),
194 route("security/secret-scanning/:id", "routes/repo/security-secret.tsx"),
195 route("security/code-scanning", "routes/repo/security-code.tsx"),
196 route("security/code-scanning/setup", "routes/repo/security-code-setup.ts"),
197 route("security/code-scanning/:number", "routes/repo/security-code-alert.tsx"),
198 route("security/vulnerabilities", "routes/repo/security.tsx"),
199 route("security/dependency-graph", "routes/repo/security-graph.tsx"),
200 route("security/dependency-graph/sbom.json", "routes/repo/security-sbom.ts"),
201 route("security/dependency-updates", "routes/repo/security-updates.tsx"),
202 route("security/pulls/:number", "routes/repo/security-pull.tsx"),
203 route("security/settings", "routes/repo/security-settings.tsx"),
Agents as a team: lifecycle, merge queue, billing and a new shell204 route("plans", "routes/repo/plans.tsx"),
205 route("plans/:id", "routes/repo/plan.tsx"),
206 route("settings", "routes/repo/settings.tsx"),
Projects: what a workspace builds and runs, first on every page207 route("settings/repository", "routes/repo/settings-repository.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look208 route("settings/access", "routes/repo/settings-access.tsx"),
Merge branch 'worktree-agent-a5a5de74d8863d554' into worktree-agent-a16631325aecf58ca209 route("settings/keys", "routes/repo/settings-deploy-keys.tsx"),
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look210 route("settings/branches", "routes/repo/settings-branches.tsx"),
Merge rulesets: branch and tag rules, agent-first, enforced on push and merge211 route("settings/rules", "routes/repo/settings-rules.tsx"),
212 route("settings/rules/:id", "routes/repo/settings-ruleset.tsx"),
Webhooks: every event, to your own addresses, signed and retried213 route("settings/webhooks", "routes/repo/webhooks.tsx"),
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs214 route("settings/secrets", "routes/repo/secrets.tsx"),
Merge branch 'worktree-agent-a3abfcce648e87dca'215 route("settings/actions", "routes/repo/settings-actions.tsx"),
216 route("settings/environments", "routes/repo/settings-environments.tsx"),
Fast pages, required checks on the branch, self-hosted runners, honest incidents217 route("settings/runners", "routes/repo/settings-runners.tsx"),
Secrets and variables: one list, rows per environment, for workflows and deployments218 route("settings/deployments", "routes/repo/settings-deployments.tsx"),
Agents and memory, checks and conflicts, profiles, slug renames, custom domains219 route("settings/domains", "routes/repo/settings-domains.tsx"),
Project dependencies: addresses, preview stacks, Affects, and agents who know220 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 API221 route("settings/guardrails", "routes/repo/settings-guardrails.tsx"),
222 route("settings/agents", "routes/repo/settings-agents.tsx"),
A menu shaped by how g1t works, Soon pages for every promise, and sudo for sales223 // What the project will have: one page for each Soon in its menu.
224 route("soon/:feature", "routes/repo/soon.tsx"),
Initial g1t: services, event bus, intents and attempts225 ]),
Webhooks: every event, to your own addresses, signed and retried226 // Anything else: a 404 that still knows who is signed in.
227 route("*", "routes/not-found.tsx"),
Initial g1t: services, event bus, intents and attempts228] satisfies RouteConfig;

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