# AGENTS.md

Sub2API 一站式开源中转服务，让 Claude、Openai 、Gemini、Grok订阅统一接入，支持拼车共享，更高效分摊成本，原生工具无缝使用。

## Setup

```
# TODO: the install command. No lockfile was found, so this could not be inferred.
```

## Commands

```
make build            # produce a build
make build-backend
make build-frontend
make test             # run the test suite, must pass before any commit
make test-backend
make test-frontend
```

## Layout

- `backend/`  2483 source files
- `frontend/` 760 source files
- `deploy/`   12 source files
- `skills/`   1 source file
- `tools/`    1 source file

## Conventions

- Tests live alongside the code they cover, following `backend/cmd/cleanup-ingress-reject-logs/main_test.go`.
- CI defines what passing means. See `.github/workflows/backend-ci.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `backend/ent/mutation.go` is 1802KB. It will not fit comfortably in context, so read it in parts.
- No lockfile is committed, so an install here may not match what CI produced.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
