TheGamaj/Node ? reverse-engineered prompt

Reverse engineered prompt

Build me a Go service called Gamaj Node that runs on a server as a native binary and talks to a central Gamaj master over a control port. It should manage Xray on the host, support running more than one node on the same machine with a custom name, and include a simple command line interface with help and install commands.

I want the install script to handle setting everything up on Linux with systemd, and if Go is not installed it should be able to get what it needs and build itself. It should also support the different VPN and access modes mentioned in the docs, including WireGuard, OpenVPN, L2TP, PPTP, remote access, and extra VPN. For WireGuard, make sure it can bring up interfaces, handle peer keys and addresses, and report usage back correctly.

Please include the release build flow, the smoke checks, and the end to end install test. If you need to look up current docs online, do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab