pr_01m47d24b0e6n91zwymwxg0vpx/docs/DEMO.md

181 lines8,020 bytesCodeBlame
1# Demo script
2
3A walk through g1t for the submission video. It runs about eight minutes at
4a normal speaking pace and uses `syntaqx/hello`, a small Rust greeter whose
5whole history was written by agents working on issues.
6
7Everything shown is live on g1t.sh. Nothing is mocked.
8
9The judges weigh agent collaboration (half), concurrency and conflicts (a
10quarter) and ease of use (a quarter). Sections 3 to 6 carry the first two;
11sections 2 and 8 the third.
12
13## Before recording
14
15- Sign in as `syntaqx`.
16- Have a terminal open in an empty directory, with Claude Code installed.
17- Open `https://g1t.sh/syntaqx/hello` in one tab and `https://g1t.sh/` in
18 another.
19- Write the three issues for section 3 in a scratch file so they can be
20 pasted (titles below). Agents take one to three minutes each: start them,
21 talk over sections 4 and 5, and come back.
22- Do not deploy the runner while agents work.
23
24## 1. The problem (30 seconds)
25
26On the landing page.
27
28> Git forges were built for people taking turns: one issue, one branch, one
29> pull request, one reviewer. Put fifty agents on a repository and that
30> breaks. They collide, nobody can review it all, and when something lands
31> you cannot tell why it was written. g1t is a forge built for that case. It
32> is ordinary git, with issues and pull requests, and it runs entirely on
33> Cloudflare.
34
35## 2. It is still git, and your CI comes with you (1 minute)
36
37On `syntaqx/hello`, Code tab.
38
39- Show the clone box: HTTPS, and the one line that connects an agent.
40- In the terminal: `git clone https://g1t.sh/syntaqx/hello.git`.
41- Open `.g1t/workflows/ci.yml`. It is a GitHub Actions workflow, unchanged:
42 `actions/checkout@v7`, a Rust toolchain action, `actions/cache@v6`, then
43 formatting, lints, an "Every flag is documented" step, and tests.
44
45> Moving from GitHub is renaming `.github` to `.g1t`. The same workflow
46> syntax, the same actions from the marketplace, the same `push`,
47> `pull_request` and `merge_group` events. Storage is Cloudflare Artifacts;
48> every job runs in its own Cloudflare Container.
49
50- Actions tab: the runs, by event. Open one and show the steps and the log.
51
52## 3. Many issues, an agent on each (1 minute 30 seconds)
53
54Issues tab.
55
56- Create three issues quickly, pasting them in:
57 - **Add a --sparkle flag** that ends the greeting with a sparkle emoji.
58 - **Greet in German** with `--lang de`.
59 - **Explain in the README what happens with no name.**
60- Tick all three and press **Assign to g1t agent**. Say there is nothing
61 else to choose: no number of agents, no model. Each issue gets an agent of
62 its own and g1t routes the work; every session opens by naming the model
63 that ran.
64- Open one. Its draft pull request has appeared. Show the **Session** tab
65 filling in live: the prompt, what the agent was told about the other work
66 in progress, every command it runs.
67
68> Each agent has its own sandbox and its own fork. A fork is copy-on-write,
69> so it costs about what a branch would, and an agent cannot damage what it
70> cannot write to. Each is told what else is in flight, so two agents on
71> the same file know about each other before they collide.
72
73While they run, go on.
74
75## 4. Agents keep CI honest, and fix what it catches (1 minute 30 seconds)
76
77Open issue **#80, CI: fail when a flag is missing from the README**, and its
78pull request **#81**.
79
80- An agent wrote this CI step. Changes tab: the shell step it added to
81 `ci.yml`. It went through review and the merge queue like any change.
82
83Open issue **#84, Add a --reverse flag**, and its pull request **#85**.
84
85- Its checks, `cargo test`, passed. Its first workflow run did not:
86 **Formatting** failed. Open the run and show the step and its log.
87- Session tab: the agent's second session opens with the failed run, the
88 instruction to read it with `get_workflow_run` and `get_job_logs`, and to
89 fix the code rather than the workflow. Show it reading the log, fixing
90 the formatting, and pushing. The second run is green.
91
92> Nobody marks their own homework. Workflows run in a clean sandbox on the
93> exact commit; the agent that wrote the code never touches the result. A
94> failure goes back to the agent with the log, and the pull request cannot
95> merge until it is green.
96
97## 5. Checks, reviews and choosing between pull requests (1 minute)
98
99Open **Say goodbye too** (#4) and its pull request **Add a farewell** (#9).
100
101- This one was pushed as a branch by a person, the way you already work.
102- **Checks failed.** Expand `cargo test` and show the output. Changes tab:
103 the reviewer's comment sits on the faulty line. The agent's pull request
104 for the same issue, #10, passed and was merged; #9 was closed.
105
106Open **Greet in Spanish and French** (#2).
107
108- Two pull requests for one issue, side by side: checks, size of the change,
109 who reviewed. Open one and show **Other work is changing the same files**.
110
111> This is the overlap radar. g1t says so while the work is still going on,
112> not at the end as a merge conflict. Agents see the same thing through the
113> API, which is how the agents in section 3 were told about each other.
114
115Open **A blank name greets nobody** (#1): closed, saying which pull request
116resolved it; the other is marked superseded.
117
118## 6. The merge queue (1 minute 15 seconds)
119
120Back to the pull requests from section 3. Their checks have passed and a g1t
121agent has reviewed them.
122
123- With auto-merge on, they enter the **Merge queue** on their own. Open it.
124
125> Three changes, written at the same time, each green on its own. That
126> proves nothing about all three together. The queue builds main with the
127> first, main with the first and second, and so on, and tests every one of
128> those combinations at once, in parallel sandboxes: the issues' acceptance
129> checks, every check main has promised so far, and the repository's
130> `merge_group` workflows, exactly as GitHub's merge queue sends them.
131
132- As each lands, the issue closes, recording which pull request resolved it.
133- Show #79 and #81 under **Recent**: landed, with the `merge_group` run.
134
135> When a combination fails, that entry is taken out with the reason, the
136> ones behind it are tested again without it, and its agent is sent back
137> to fix it. A conflict with something ahead of it says which.
138
139If one conflicts on camera, so much the better: open its Session and show
140the agent being given both sides and what the pull request is for.
141
142## 7. Bring your own agent (45 seconds)
143
144Terminal.
145
146```sh
147claude mcp add --transport http g1t https://mcp.g1t.sh
148```
149
150- In Claude Code, `/mcp`, choose g1t. The browser opens on g1t's consent
151 page. Approve.
152- Ask: "What issues are open on syntaqx/hello on g1t, and which pull
153 requests overlap? Did the last CI run pass?"
154
155> No token to paste. The same operations are a REST API at api.g1t.sh,
156> including GitHub's own Actions endpoints, and the two are generated from
157> one list, so they cannot drift apart.
158
159## 8. Close (30 seconds)
160
161Back on the Issues tab: the three issues from section 3, closed, each saying
162which pull request resolved it.
163
164> Issues and pull requests, as you know them, and your GitHub Actions as
165> they are. What changes is the number of hands. Every agent isolated in its
166> own fork, told what the others are doing, held to checks and workflows it
167> cannot mark itself, reviewed, and landed through a queue that tests the
168> combinations. g1t is open source, free while it is being built out, and
169> hosted on itself.
170
171Show `https://g1t.sh/syntaqx/g1t`.
172
173## If something goes wrong on camera
174
175| What | Do |
176| --- | --- |
177| An agent's pull request closes itself | Open its Session; the last note says why. Assign the issue again. |
178| A workflow stays queued | Open the run and press **Re-run all jobs**. |
179| Checks stay queued | Press the re-run button on the checks panel. |
180| Nothing enters the queue | Auto-merge waits for checks, workflows and a review; the pull request's sidebar says which is missing. |
181| Merge is refused | Read the message: it is a draft, its checks or workflows have not passed, or it needs a review. |