# v1.6.0 Release Notes

> v1.5.2 -> v1.6.0

## Summary

Aligns provider handling with the 1.0 router, renaming two provider prefixes and adding Antigravity as a subscription provider across routing, quotas and both interfaces. Usage checks move into the TUI status bar and follow the active model. Script tools gain a format check, and naming limits for tools and skills are relaxed.

<details>
<summary>翻譯</summary>

對齊 1.0 版 provider router，調整兩個 provider 前綴，並將 Antigravity 加入為訂閱型 provider，涵蓋路由、額度與兩套介面。用量查詢移到 TUI 狀態列並跟隨目前模型。script tool 新增格式檢查，工具與技能的命名上限放寬。

</details>

## ⚠️ Breaking Changes

### Provider prefixes renamed for xAI

**Before:**
```json
{ "name": "grok@grok-4.7" }
{ "name": "grok-oauth@grok-4.7" }
```

**After:**
```json
{ "name": "xai@grok-4.7" }
{ "name": "grok@grok-4.7" }
```

**Migration:**
```bash
# Order matters: rename grok@ first, otherwise both providers collapse into one prefix
sed -i '' -e 's/"grok@/"xai@/g' ~/.config/agenvoy/config.json
sed -i '' -e 's/"grok-oauth@/"grok@/g' ~/.config/agenvoy/config.json
```

The keychain entry stays `GROK_API_KEY`; no re-login is needed.

<details>
<summary>翻譯</summary>

xAI 的 provider 前綴改名：API key 由 `grok` 改為 `xai`，Grok Build OAuth 由 `grok-oauth` 改為 `grok`。舊 config 不會自動轉換，且 router 只依前綴選 provider，舊的 `grok@` 會被當成 OAuth 送出；請依上方順序先改 `grok@` 再改 `grok-oauth@`，順序顛倒會讓兩者合成同一個前綴。keychain 名稱仍為 `GROK_API_KEY`，不需重新登入。

</details>

## Changes

### BREAKING

- Rename provider prefixes: xAI API key `grok` → `xai`, Grok Build OAuth `grok-oauth` → `grok` (@pardnchiu) [923b3adb, 7207677d]

<details>
<summary>翻譯</summary>

- provider 前綴改名：xAI API key `grok` → `xai`，Grok Build OAuth `grok-oauth` → `grok`

</details>

### FEAT

- Add Antigravity (`agy`) as a subscription provider (@pardnchiu) [923b3adb]
    - Add it from `/model add` and route it through the same binary path as `claude-code`
    - Rank it with the other subscription providers, ahead of the direct Gemini API for the same model
    - Put it first for requests that need a web search
    - Report its quota for the active model and pin context limits for its models
- Show Antigravity on the WebUI model page with two quota lines, `m:` for its own models and `s:` for third-party models (@pardnchiu) [7207677d]
- Add `validate_tool` to check a script tool's format without running it (@pardnchiu) [0500ecfa]

<details>
<summary>翻譯</summary>

- 新增 Antigravity（`agy`）訂閱型 provider
    - 可從 `/model add` 加入，與 `claude-code` 走相同的 binary 路徑
    - 與其他訂閱型 provider 同級排序，同一模型時優先於 Gemini API 直連
    - 需要網路搜尋的請求優先使用
    - 回報目前模型的額度，並為其模型固定 context 上限
- WebUI 模型頁顯示 Antigravity，額度分兩行：`m:` 為自家模型、`s:` 為第三方模型
- 新增 `validate_tool`，不執行即可檢查 script tool 的格式

</details>

### FIX

- Log script tool scan failures and IPC reply errors instead of dropping them (@pardnchiu) [0500ecfa, 923b3adb]

<details>
<summary>翻譯</summary>

- script tool 掃描失敗與 IPC 回覆錯誤改為記錄 log，不再靜默忽略

</details>

### UPDATE

- Show `/usage` for the active model in the TUI status bar (@pardnchiu) [fb31be9d]
    - Show a spinner while loading
    - Label the result by provider, splitting Antigravity into `agy` and `agy-claude`
    - Open a provider picker when the model is `auto` or has no quota source
- Hide `claude-code` and `agy` models, menus and WebUI cards when their CLI is not in `PATH` (@pardnchiu) [923b3adb, 7207677d]
- Raise the tool and skill name limit to 128 characters and the description limit to 1024 (@pardnchiu) [0500ecfa]
- Rename provider labels to Codex, xAI and Grok Build, and mark Ollama Cloud as pay per token and NVIDIA NIM as free to use (@pardnchiu) [923b3adb, 7207677d]
- Replace the WebUI login and renew buttons on the `claude-code` and `agy` cards with a single add button, and name Google AI Studio in the Gemini key hint (@pardnchiu) [7207677d]

<details>
<summary>翻譯</summary>

- TUI 狀態列顯示目前模型的 `/usage`
    - 載入時顯示 spinner
    - 結果以 provider 標示，Antigravity 分為 `agy` 與 `agy-claude`
    - 模型為 `auto` 或無額度來源時跳出 provider 選單
- `claude-code` 與 `agy` 的 CLI 不在 `PATH` 時，隱藏其模型、選單與 WebUI 卡片
- 工具與技能名稱上限提高到 128 字元，描述上限提高到 1024 字元
- provider 顯示名稱改為 Codex、xAI、Grok Build，Ollama Cloud 標為 pay per token、NVIDIA NIM 標為 free to use
- WebUI 的 `claude-code` 與 `agy` 卡片改為單一 add 按鈕，Gemini 金鑰提示改為 Google AI Studio

</details>

### REMOVE

- Remove `POST /v1/cmd/claude/login` (@pardnchiu) [7207677d]

<details>
<summary>翻譯</summary>

- 移除 `POST /v1/cmd/claude/login`

</details>

### CHORE

- Bump `go-llm-router` to v1.0.0 (@pardnchiu) [923b3adb]

<details>
<summary>翻譯</summary>

- 升級 `go-llm-router` 至 v1.0.0

</details>

## Scope

- `internal/agents/` — BREAKING, FEAT, UPDATE (multiple files)
- `internal/app/` — FEAT, UPDATE (`agentRegistry.go`)
- `internal/session/config/` — BREAKING, FEAT (`tier.go`)
- `internal/runtime/tui/` — BREAKING, FEAT, FIX, UPDATE (multiple files)
- `internal/runtime/routes/` — BREAKING, FEAT, UPDATE, REMOVE (`new.go`, `handler/providers.go`, `handler/providerQuota.go`, `handler/claudeLogin.go`)
- `internal/runtime/toolAdapter/` — FEAT (`validate.go`)
- `internal/tools/` — FEAT, FIX, UPDATE (multiple files)
- `internal/filesystem/skill/` — UPDATE (`check.go`, `validate.go`)
- `internal/utils/` — FEAT (`event.go`, `toolFormat.go`)
- `configs/` — FEAT, UPDATE (`configs.go`, `prompts/`)
- `page/` — FEAT, UPDATE, REMOVE (multiple files)
- `go.mod`, `go.sum` — CHORE

***

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
