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

Project settings say who created the project, by name1// A service that is turned off on this installation.
2//
3// Self-hosted phase 1 runs the core forge only. The site and the services
The agents, models and context services are deleted. Nothing calls them any more: workspace agents, the hosted model proxy at models.g1t.sh with its AI Gateway, and the context hub with its search index are gone with the features they served. The deploy stack no longer builds or deploys them, so it no longer needs CONNECTORS_KEY, AI_GATEWAY_TOKEN, ANTHROPIC_API_KEY or WORKERS_AI_TOKEN, and a self-hosted install no longer generates CONNECTORS_KEY or stubs them out. Their databases, queues, index, gateway and domain stay in Cloudflare until they are deleted by hand after this is deployed.4// still hold bindings to the cloud runner and the deployments' builders;
5// this Worker stands in for each of them, so a page that asks whether the
6// runner is on here is told no instead of failing.
Project settings say who created the project, by name7//
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.8// - As the runner, for the methods the site once called on it: it is
The agents, models and context services are deleted. Nothing calls them any more: workspace agents, the hosted model proxy at models.g1t.sh with its AI Gateway, and the context hub with its search index are gone with the features they served. The deploy stack no longer builds or deploys them, so it no longer needs CONNECTORS_KEY, AI_GATEWAY_TOKEN, ANTHROPIC_API_KEY or WORKERS_AI_TOKEN, and a self-hosted install no longer generates CONNECTORS_KEY or stubs them out. Their databases, queues, index, gateway and domain stay in Cloudflare until they are deleted by hand after this is deployed.9// not enabled, and starting anything fails with a message that says why.
Project settings say who created the project, by name10// - For the JSON protocol the Rust services speak (`POST /rpc/<method>`):
11// every method answers with a failed Result.
12//
The agents, models and context services are deleted. Nothing calls them any more: workspace agents, the hosted model proxy at models.g1t.sh with its AI Gateway, and the context hub with its search index are gone with the features they served. The deploy stack no longer builds or deploys them, so it no longer needs CONNECTORS_KEY, AI_GATEWAY_TOKEN, ANTHROPIC_API_KEY or WORKERS_AI_TOKEN, and a self-hosted install no longer generates CONNECTORS_KEY or stubs them out. Their databases, queues, index, gateway and domain stay in Cloudflare until they are deleted by hand after this is deployed.13// OFF_NAME names the feature in those messages, such as "Cloud runners".
Project settings say who created the project, by name14
15import { WorkerEntrypoint } from "cloudflare:workers";
16
17function off(env) {
18 const name = env.OFF_NAME ?? "This feature";
19 return {
20 ok: false,
21 error: { code: "forbidden", message: `${name} are off on this installation of g1t.` },
22 };
23}
24
25export default class Off extends WorkerEntrypoint {
26 // ── The runner's methods, as the site calls them ──
27 async enabled() {
28 return false;
29 }
30 async modelAccess() {
31 return { own: null, hosted: false, trial: null };
32 }
33 async instructions() {
34 return off(this.env);
35 }
36 async run() {
37 return off(this.env);
38 }
39 async plan() {
40 return off(this.env);
41 }
42 async applyPlan() {
43 return off(this.env);
44 }
45 async update() {
46 return off(this.env);
47 }
48 async review() {
49 return off(this.env);
50 }
51 async recheck() {
52 return off(this.env);
53 }
54 async stopRun() {
55 return off(this.env);
56 }
57
58 // ── The JSON protocol ──
59 async fetch(request) {
60 const { pathname } = new URL(request.url);
61 if (request.method === "POST" && pathname.startsWith("/rpc/")) {
62 return Response.json(off(this.env));
63 }
64 return new Response("Off on this installation.", { status: 404 });
65 }
66
67 // Events and schedules for a service that is off are dropped.
68 async queue(batch) {
69 batch.ackAll();
70 }
71 async scheduled() {}
72}

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