AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻译准备中
githug 是 GitHub 的代理网关:每个 AI 编码代理(Claude Code、Codex、Cursor、Copilot、Devin)拥有自己的机器人身份、一个小时的仓库范围令牌和自己的速率限制,并且每次提交…
AI 翻译
githug is an agent gateway for GitHub: each AI coding agent (Claude Code, Codex, Cursor, Copilot, Devin) gets its own bot identity, a one-hour repo-scoped token and its own rate limit, and every commi
开发工具TypeScript · GoGitHub @githug-ai在线运营者未确认
试用过了吗? 点一下就好,无需登录。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证为每个 AI 编码代理在 GitHub 上分配专属名称,并配备一名负责回答的人工。可自行托管(AGPL-3.0)。
AI 翻译
Give every AI coding agent its own name on GitHub, and a human who answers for it. Self-hostable (AGPL-3.0).
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Give every AI coding agent its own name on GitHub, and a human who answers for it.
githug turns one GitHub App into many agent identities. Each agent gets a key; the key
buys 1-hour tokens for one repo; every push is logged and checkable by anyone.查看完整 README ↗githug turns one GitHub App into many agent identities. Each agent gets a key; the key buys 1-hour tokens for one repo; every push is logged and checkable by anyone.
agent key ──▶ POST /v1/token ──▶ 1-hour token, one repo, least privilege
│ │
│ git push as orbit <[email protected]>
│ Accountable: ana · Agent: orbit · Run: loop-42
▼
hug pre-push ──▶ POST /v1/commits ──▶ /v/<owner>/<repo>/<sha>: ✓ verified
Hosted at githug.ai, or run it yourself: one container or your own Cloudflare account.
curl -fsSL https://githug.ai/install | sh # the hug CLI
hug init --repo owner/repo # approve one code on github.com
hug setup # in your clone: git push now acts as the agent
Agent docs: githug.ai/docs. The CLI is githug-ai/hug and the PR check is githug-ai/verify (both Apache-2.0).
docker run -p 8080:8080 -v githug:/data -e GITHUG_ORIGIN=https://githug.example.com ghcr.io/githug-ai/githug
Then open /gateway/setup/github-app to create your instance's GitHub App in one click.
Everything is included: no billing, no limits, single-tenant. Full guide:
docs/SELF_HOSTING.md.
One TypeScript app (Hono), dependency-light, server-rendered pages. It
runs on Cloudflare Workers (D1, KV, R2, rate limits, cron) or on Node with the same code:
src/node/bindings.ts provides those bindings over SQLite and the filesystem.
| Path | What it is |
|---|---|
src/core.ts · src/worker.ts | All routes: API (/v1/*), dashboard (/app), sign-in, verify pages, docs, cron · the Worker entry |
src/gateway-api.ts | Agents, keys, token minting, accounts and orgs, verify, attestations |
src/site.ts · src/instance.ts | Instance config (origin, agent domain, mode) · self-host setup and signup list |
src/app.ts · src/verify.ts · src/docs.ts | Dashboard, verify and docs pages |
src/node/ | Node host for the container: bindings + HTTP server + cron loop |
migrations/ | D1/SQLite schema (applied by wrangler, or by the container on start) |
content/docs/ | Agent quickstarts, served at /docs |
test/ | node:test suite: the real Worker on Node bindings, GitHub faked at fetch |
This repository is the service. githug.ai runs it unchanged, with its own website (landing, blog, reference pages) in front; those aren't part of the open-source core.
npm ci
npm test # node:test, no network
npm run typecheck
npm run cf:migrate:local && npm run cf:dev # Workers runtime (wrangler dev), needs .dev.vars
npm run build:node && GITHUG_DATA=./data PORT=8080 npm run start:node # the container's entry
.dev.vars.example lists the Worker's variables. GitHub App values for local dev come from
the setup page (saved to your local D1) or from .dev.vars.
Issues and PRs welcome: see CONTRIBUTING.md (small CLA on your first PR). Security reports: SECURITY.md, privately please.
AGPL-3.0. Run it, change it, host it; if you offer a modified githug as a service,
publish your changes. The hug CLI and the verify Action are Apache-2.0.