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

Chat and workspace agents: channels, DMs and named agents you talk to1import { Hash, MessagesSquare, PlugZap } from "lucide-react";
2import type { ReactNode } from "react";
3import { useParams } from "react-router";
4
5import { CreateChannelButton, NewMessageButton } from "./actions";
The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after.6import { Card } from "../ui/card";
Chat and workspace agents: channels, DMs and named agents you talk to7
8/** A calm full-height panel for a conversation that cannot be shown. */
9function Panel({ icon, title, children }: { icon: ReactNode; title: string; children: ReactNode }) {
10 return (
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.11 <div className="flex h-(--page-h) items-center justify-center px-6">
Chat and workspace agents: channels, DMs and named agents you talk to12 <div className="max-w-sm text-center">
The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after.13 <Card className="mx-auto flex size-12 items-center justify-center text-muted">{icon}</Card>
Chat and workspace agents: channels, DMs and named agents you talk to14 <h1 className="mt-4 text-base font-semibold">{title}</h1>
15 <div className="mt-1.5 text-sm text-muted">{children}</div>
16 </div>
17 </div>
18 );
19}
20
21/** Chat did not answer: it may be deploying a moment after the site. */
22export function ChatUnavailable({ title = "Chat" }: { title?: string }) {
23 return (
24 <Panel icon={<PlugZap size={20} />} title={`${title} isn't reachable right now`}>
25 Chat didn't answer. It's usually back within a minute; reload to try again. Nothing you sent is lost.
26 </Panel>
27 );
28}
29
30/** A workspace with no conversations yet. */
31export function NoChannels() {
32 const { owner = "" } = useParams();
33 return (
34 <Panel icon={<MessagesSquare size={20} />} title="Start the first conversation">
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.35 <p>Channels keep a topic in one place. Direct messages are for one person or a few.</p>
Chat and workspace agents: channels, DMs and named agents you talk to36 <div className="mt-5 flex justify-center gap-2">
37 <CreateChannelButton slug={owner.toLowerCase()} variant="button" />
38 <NewMessageButton slug={owner.toLowerCase()} variant="button" />
39 </div>
40 </Panel>
41 );
42}
43
44/** A channel's name with its mark, as the header and the sidebar show it. */
45export function ChannelGlyph({ className }: { className?: string }) {
46 return <Hash size={16} className={className} />;
47}