> For the complete documentation index, see [llms.txt](https://docs.seedex.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seedex.net/ru/developer-guide/seedex-agent.md).

# seedex-agent

Эта страница описывает, как устроен репозиторий seedex-agent и как его собирать и линтить.

## Требования

* Go 1.22 для сборки API link.
* shfmt 3.13 и shellcheck 0.11 для линта.
* Сервер на Ubuntu 24.04, чтобы установить сборку.

## Структура проекта

* `sdx`: команда: диспетчер, статус, help и firewall.
* `lib/common.sh`: общие помощники: фаервол, systemd и логирование.
* `lib/vpn.sh`, `lib/proxy.sh` и `lib/link.sh`: по библиотеке на сервис.
* `link/main.go`: API link: `GET /v1/configs` и `POST /v1/run`.
* `install.sh`: скрипт, который запускают пользователи. Он скачивает релиз, если запущен не из клона.
* `version`: версия.

## Сборка

Выполните команду:

```sh
make build
```

Команда собирает `seedex-link` для amd64 и arm64 в `build/` вместе с тарболом релиза и `checksums.txt`.

Чтобы установить сборку на сервер, скопируйте `sdx`, `version`, `lib`, `install.sh` и `build` на сервер и выполните там `bash install.sh files`. Режим `files` обновляет скрипты и бинарник существующей установки.

## Линт

`make lint` прогоняет shfmt и shellcheck по shell-файлам, а `gofmt` и `go vet` — по коду на Go.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.seedex.net/ru/developer-guide/seedex-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
