docs: update AGENTS.md for improved clarity and detail in commands and architecture

This commit is contained in:
hkfires
2026-04-08 12:33:16 +08:00
parent 12b967118b
commit 343a2fc2f7

View File

@@ -26,7 +26,7 @@ go build -o test-output ./cmd/server && rm test-output # Verify compile (REQUIR
- `cmd/server/` — Server entrypoint - `cmd/server/` — Server entrypoint
- `internal/api/` — Gin HTTP API (routes, middleware, modules) - `internal/api/` — Gin HTTP API (routes, middleware, modules)
- `internal/api/modules/amp/` — Amp integration (Amp-style routes + reverse proxy) - `internal/api/modules/amp/` — Amp integration (Amp-style routes + reverse proxy)
- `internal/thinking/`Thinking/reasoning token processing (`internal/thinking/provider/` for per-provider config) - `internal/thinking/`Main thinking/reasoning pipeline. `ApplyThinking()` (apply.go) parses suffixes (`suffix.go`, suffix overrides body), normalizes config to canonical `ThinkingConfig` (`types.go`), normalizes and validates centrally (`validate.go`/`convert.go`), then applies provider-specific output via `ProviderApplier`. Do not break this "canonical representation → per-provider translation" architecture.
- `internal/runtime/executor/` — Per-provider runtime executors (incl. Codex WebSocket) - `internal/runtime/executor/` — Per-provider runtime executors (incl. Codex WebSocket)
- `internal/translator/` — Provider protocol translators (and shared `common`) - `internal/translator/` — Provider protocol translators (and shared `common`)
- `internal/registry/` — Model registry + remote updater (`StartModelsUpdater`); `--local-model` disables remote updates - `internal/registry/` — Model registry + remote updater (`StartModelsUpdater`); `--local-model` disables remote updates