gost
CLAUDE.md7.8k starsChanged 19 days agoMITView on GitHub
CLI binary entry point for GOST (GO Simple Tunnel). This module compiles the gost command. Arguments separated by -- spawn multiple worker processes via exec.CommandContext. Each worker runs as a child process with _GOST_ID set. Any worker's exit cancels all others. This is triggered in init() before flag parsing. All components register via init() side-effects in their packages. cmd/gost/register.go triggers them with blank imports. When adding a new built-in handler/listener/dialer/connector, add a blank import here. Tests are in tests/e2e/ —…
Trending
More talk lately.about the whole repository
Who's talking about go-gost/gost
- @golangoss.bsky.social“gost (⭐️ 6838) GO Simple Tunnel - a simple tunnel written in golang #go”Bluesky · May 23, 2026 · 1 likes
- MatsuriDayo/NekoBoxForAndroid“Add native GOST v3 client / outbound support”GitHub · Apr 17, 2026 · 1 reactions
- go-gost/x“Add MASQUE/CONNECT-UDP support (RFC 9298)”GitHub · Dec 28, 2025 · 1 reactions
- NixOS/nixpkgs“gost: 3.1.0 -> 3.2.0”GitHub · Aug 2, 2025 · 1 reactions
- masoudgb/Gost-ip6“مشکل در اجرای اسکریپت و خطای 404”GitHub · Jun 12, 2024 · 1 reactions
The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 52
Talked about on GitHub and Bluesky (52 times).
On GitHub · 50
- Apr 17, 2026Add native GOST v3 client / outbound support — MatsuriDayo/NekoBoxForAndroid1 reaction
- Dec 28, 2025Add MASQUE/CONNECT-UDP support (RFC 9298) — go-gost/x1 reaction · 1 comment
- Aug 2, 2025gost: 3.1.0 -> 3.2.0 — NixOS/nixpkgs1 reaction · 2 comments
- Jun 12, 2024مشکل در اجرای اسکریپت و خطای 404 — masoudgb/Gost-ip61 reaction · 12 comments
- Nov 13, 2026gost: 3.3.2 -> 3.3.3 — NixOS/nixpkgs0 reactions · 3 comments
45 more on GitHub
- Nov 2, 2026gost 3.3.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Nov 1, 2026gost: 3.3.1 -> 3.3.2 — NixOS/nixpkgs0 reactions · 4 comments
- Nov 1, 2026默认主机 CONNECT 走 gost(Python 仅兜底) / Default host CONNECT proxy to gost — fenfenxu/cloudflare-tunnel-proxy0 reactions
- Oct 27, 2026[catalog-candidate] gost-simple-tunnel-self-hosted — ePlus-DEV/free-tier-hub0 reactions · 3 comments
- Oct 27, 2026gost 3.3.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Oct 27, 2026申请gogost/gost白名单 — DaoCloud/public-image-mirror0 reactions · 2 comments
- Oct 25, 2026gost: 3.3.0 → 3.3.1 — NixOS/nixpkgs0 reactions · 2 comments
- Oct 21, 2026gost 3.3.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 21, 2026feat(proxy): native in-process gost-plugin for Shadowsocks (#533) — meow-rs/meow-rs0 reactions
- Sep 15, 2026[Feature Request] Linux Network Namespace (netns) support — LIghtJUNction/sing-box0 reactions
- Sep 4, 2026New version: go-gost.Gost version 3.3.0 — microsoft/winget-pkgs0 reactions · 22 comments
- Aug 30, 2026gost 3.3.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 14, 2026No License for this repo — go-gost/quic-dissector0 reactions
- Aug 13, 2026Add codespell configuration and fix existing typos — harbor-framework/harbor0 reactions · 3 comments
- Jul 19, 2026Unblock gost.run — hagezi/dns-blocklists0 reactions · 2 comments
- May 17, 2026install.sh script — zhboner/realm0 reactions
- Mar 18, 2026Add mmdb support. — go-gost/gost-geo-plugin0 reactions
- Feb 10, 2026Fix SS connector error propagation and SIP002 base64 auth decoding — go-gost/x0 reactions
- Dec 16, 2025feat(gost): add package — brioche-dev/brioche-packages0 reactions · 2 comments
- Nov 25, 2025gost: 3.2.5 -> 3.2.6 — NixOS/nixpkgs0 reactions · 2 comments
- Nov 22, 2025gost 3.2.6 — Homebrew/homebrew-core0 reactions · 1 comment
- Oct 16, 2025gost: 3.2.4 -> 3.2.5 — NixOS/nixpkgs0 reactions
- Oct 11, 2025gost 3.2.5 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 20, 2025fix bypass: prevent panic on invalid glob patterns — go-gost/x0 reactions
- Aug 20, 2025gost@3 3.2.4 — moonfruit/homebrew-tap0 reactions
- Aug 19, 2025gost: 3.2.3 -> 3.2.4 — NixOS/nixpkgs0 reactions
- Aug 11, 2025gost: 3.2.0 -> 3.2.3 — NixOS/nixpkgs0 reactions
- Aug 10, 2025gost@3 3.2.3 — moonfruit/homebrew-tap0 reactions
- Aug 9, 2025gost@3 3.2.2 — moonfruit/homebrew-tap0 reactions
- Aug 5, 2025[AutoUpdate] gost: Update to 3.2.2 — immortalwrt/packages0 reactions
- Jul 29, 2025gost@3 3.2.0 — moonfruit/homebrew-tap0 reactions
- Jul 2, 2025gost: 3.0.0 -> 3.1.0; use finalAttrs; add updateScript; add maintainer moraxyc; add missing ldflags — NixOS/nixpkgs0 reactions · 1 comment
- Jun 27, 2025gost@3 3.1.0 — moonfruit/homebrew-tap0 reactions
- May 21, 2025go-gost/gost: GO语言实现的安全隧道 — awesome-ops/awesome-ops.github.io0 reactions
- Feb 28, 2025项目好像不能用了, — jarvis2f/vortex0 reactions · 2 comments
- Dec 24, 2024fix h3 issue — go-gost/x0 reactions
- Nov 25, 2024Update ss.md — go-gost/docs0 reactions
- Jul 29, 2024مشکل گاست ورژن 3 — masoudgb/Gost-ip60 reactions · 1 comment
- Jun 15, 2024خطای 404 — masoudgb/Gost-ip60 reactions · 1 comment
- Mar 21, 2024基于systemd实现gost开机自启动的方法 — lesnolie/Marverick0 reactions
- Dec 19, 2023Help needed with TCP/Socks proxy — woodlyer/gostExample0 reactions
- Dec 14, 2023آپدیت اسکریپت — Ptechgithub/Gost0 reactions · 3 comments
- Oct 19, 2023gg是否支持go-gost — daeuniverse/gg0 reactions · 2 comments
- Oct 13, 2023配置文件格式在哪里学习? — ginuerzh/gost0 reactions · 2 comments
- Oct 26, 2022Gost on Linux does not pick up application-based split tunneling from VPN — ginuerzh/gost0 reactions
On Bluesky · 2
- May 23, 2026gost (⭐️ 6838) GO Simple Tunnel - a simple tunnel written in golang #go — @golangoss.bsky.social1 likes and repost
- Dec 4, 2023📦 go-gost / gost ⭐ 2,292 (+90) 🗒 Go GO Simple Tunnel - a simple tunnel written in golang — @github-trending.bsky.social1 likes and repost
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 62
All components register via init() side-effects in their packages.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md — gost/
CLI binary entry point for GOST (GO Simple Tunnel). This module compiles the gost command.
Build & Run
cd gost && go build ./cmd/gost/...
# Cross-compile
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" ./cmd/gost/...
# Build all platforms
make all
# Run
./gost -L "http://:8080" -F "socks5://:1080"
./gost -C gost.ymlStructure
| File | Purpose |
cmd/gost/main.go | CLI entry point: flag parsing, multi-worker mode (-- separator), program launch via svc.Run |
cmd/gost/program.go | Service lifecycle (Init/Start/Stop), config loading, API/metrics/profiling servers, SIGHUP reload |
cmd/gost/register.go | Blank imports for all built-in handlers, listeners, dialers, connectors — triggers init() registration |
cmd/gost/version.go | Version resolution: ldflags injection → buildVersionFallback + short VCS commit → module build info → bare buildVersionFallback |
CLI Flags
| Flag | Usage |
-L | Inline service definition (repeatable) |
-F | Inline chain node definition (repeatable) |
-C | Path to config file (YAML/JSON) |
-D / -DD | Debug / trace logging |
-api | API service address (e.g. :8080) |
-metrics | Prometheus metrics address |
-O | Output merged config as yaml or json, then exit |
-V | Print version and exit |
Multi-Worker Mode
Arguments separated by -- spawn multiple worker processes via exec.CommandContext. Each worker runs as a child process with _GOST_ID set. Any worker's exit cancels all others. This is triggered in init() before flag parsing.
Service Lifecycle
Init→ callsparser.Init()with all CLI/config inputsStart→parser.Parse()→loader.Load()→p.run()(starts services, API, metrics, profiling)Stop→ cancels reload context, closes all services- SIGHUP →
reloadConfig()re-parses and re-runs without restarting the process
Key Dependencies
github.com/go-gost/core— interface definitionsgithub.com/go-gost/x— all implementations, config, registrygithub.com/judwhite/go-svc— OS service framework (handles daemon/SIGHUP/SIGTERM)
Registration Pattern
All components register via init() side-effects in their packages. cmd/gost/register.go triggers them with blank imports. When adding a new built-in handler/listener/dialer/connector, add a blank import here.
Tests
Tests are in tests/e2e/ — integration tests using the built binary. No unit tests. Run with go test ./tests/e2e/....
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

