@vionwilliams/agent-os 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +60 -0
- package/README.md +321 -0
- package/dist/cli.js +549637 -0
- package/package.json +140 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Agent-OS License
|
|
2
|
+
================
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 VION WILLIAMS
|
|
5
|
+
|
|
6
|
+
This repository contains two categories of source code with different
|
|
7
|
+
licensing provenance. See the NOTICE section at the bottom of this file
|
|
8
|
+
for the fork-heritage disclosure.
|
|
9
|
+
|
|
10
|
+
--------------------------------------------------------------------------
|
|
11
|
+
MIT License — applies to all original Agent-OS contributions
|
|
12
|
+
--------------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
15
|
+
copy of this software and associated documentation files (the "Software"),
|
|
16
|
+
to deal in the Software without restriction, including without limitation
|
|
17
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
18
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
19
|
+
Software is furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included
|
|
22
|
+
in all copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
27
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
29
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
30
|
+
DEALINGS IN THE SOFTWARE.
|
|
31
|
+
|
|
32
|
+
--------------------------------------------------------------------------
|
|
33
|
+
NOTICE — Upstream Fork Heritage
|
|
34
|
+
--------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
Agent-OS began as a fork of Anthropic's Claude Code CLI. Substantial
|
|
37
|
+
portions of the execution-layer infrastructure (tool protocols, REPL
|
|
38
|
+
surface, MCP integration, permission system, telemetry scaffolding, etc.)
|
|
39
|
+
are derived from upstream Claude Code source.
|
|
40
|
+
|
|
41
|
+
The Agent-OS additions — including but not limited to:
|
|
42
|
+
|
|
43
|
+
* Multi-Model Router and Cost Intelligence subsystem
|
|
44
|
+
* Knowledge Forge (FCA-based knowledge compilation engine)
|
|
45
|
+
* Super-Coordination layer (production lines, task board,
|
|
46
|
+
knowledge sync, Auto-OS evolution)
|
|
47
|
+
* BYOK hardening and the removal of subscription / OAuth paths
|
|
48
|
+
|
|
49
|
+
are original works authored for Agent-OS and are licensed under the
|
|
50
|
+
MIT terms above.
|
|
51
|
+
|
|
52
|
+
Portions of this codebase derived from Anthropic's Claude Code remain
|
|
53
|
+
subject to the license terms under which Anthropic distributes that
|
|
54
|
+
software. Users intending to redistribute Agent-OS — particularly in
|
|
55
|
+
commercial contexts — should review Anthropic's upstream license and
|
|
56
|
+
consult legal counsel before doing so.
|
|
57
|
+
|
|
58
|
+
"Claude", "Claude Code", and "Anthropic" are trademarks of Anthropic, PBC.
|
|
59
|
+
Their use in this repository is limited to factual attribution of the
|
|
60
|
+
fork heritage and does not imply endorsement.
|
package/README.md
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
# Agent-OS
|
|
2
|
+
|
|
3
|
+
> BYOK fork of Claude Code · Bring Your Own Provider · 自托管 AI 工程师工作站
|
|
4
|
+
|
|
5
|
+
**Status**: `1.0.0-alpha.5` · Functional alpha · npm 发布链路已就绪(dry-run 通过)· 单人学习项目 fork
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 这是什么
|
|
10
|
+
|
|
11
|
+
Agent-OS 是 Anthropic Claude Code 的一个 fork,目标是**移除 vendor lock-in**,让 Claude Code 这套已经成熟的 agent 编排能力可以接入任意 OpenAI-compatible provider,并彻底拆除托管端后台依赖(OAuth / 订阅 / 遥测回传)。
|
|
12
|
+
|
|
13
|
+
**和原版 Claude Code 的核心差异**:
|
|
14
|
+
|
|
15
|
+
| 维度 | Claude Code | Agent-OS |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| Auth | OAuth + Anthropic Pro/Team 订阅 | **BYOK only**(自带 key) |
|
|
18
|
+
| Provider | Anthropic only | **多 provider 路由**(详见下) |
|
|
19
|
+
| 遥测 | OpenTelemetry → BigQuery | **完全移除**(alpha.3 堵 BigQuery,alpha.4 下线 OTEL 管道) |
|
|
20
|
+
| User-Agent | `claude-code/<v>` | `agent-os/<v>` |
|
|
21
|
+
| 分发 | npm `@anthropic-ai/claude-code` | GitHub Releases 二进制 + from-source + npm alpha 通道(待首发) |
|
|
22
|
+
| 托管特性 | Remote Control / Scheduled Agents / Teleport | 在 BYOK 模式下不可用 |
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 快速开始
|
|
27
|
+
|
|
28
|
+
### 1. 二进制安装(推荐)
|
|
29
|
+
|
|
30
|
+
> 适合最终用户: 不需要 Bun,下载即可运行。
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# 安装最新版(macOS/Linux)
|
|
34
|
+
curl -fsSL https://raw.githubusercontent.com/VIONWILLIAMS/agent-os/main/scripts/install.sh | bash
|
|
35
|
+
|
|
36
|
+
# 或指定版本
|
|
37
|
+
curl -fsSL https://raw.githubusercontent.com/VIONWILLIAMS/agent-os/main/scripts/install.sh | \
|
|
38
|
+
bash -s -- --version v1.0.0-alpha.5
|
|
39
|
+
|
|
40
|
+
agent-os --version
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
手动下载也可用:[Releases](https://github.com/VIONWILLIAMS/agent-os/releases) 里按平台选择:
|
|
44
|
+
- `agent-os-darwin-arm64`
|
|
45
|
+
- `agent-os-darwin-x64`
|
|
46
|
+
- `agent-os-linux-x64`
|
|
47
|
+
- `agent-os-windows-x64.exe`
|
|
48
|
+
|
|
49
|
+
### 2. 从源码安装(开发者)
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
git clone https://github.com/VIONWILLIAMS/agent-os.git
|
|
53
|
+
cd agent-os
|
|
54
|
+
bun install
|
|
55
|
+
bash scripts/build.sh
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
前置:[Bun](https://bun.sh) `>= 1.3.0`。构建产物是单文件 `dist/cli.js`(约 18 MB · 自带 shebang · 可直接执行)。
|
|
59
|
+
|
|
60
|
+
### 3. 配置 BYOK provider
|
|
61
|
+
|
|
62
|
+
选任意一条路径填 `.env` 或 export 到 shell 环境(`.env.example` 给了模板):
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Path A · 自定义 endpoint(推荐 · BYOK 本义)
|
|
66
|
+
# 任何 OpenAI Chat Completions 兼容的 endpoint 都能接入
|
|
67
|
+
export ANTHROPIC_BASE_URL="https://your-gateway.example.com/v1"
|
|
68
|
+
export ANTHROPIC_API_KEY="your-key"
|
|
69
|
+
|
|
70
|
+
# Path B · Anthropic 官方
|
|
71
|
+
export ANTHROPIC_API_KEY="sk-ant-..."
|
|
72
|
+
|
|
73
|
+
# Path C · DeepSeek(router 模式)
|
|
74
|
+
export MODEL_PROVIDER="deepseek"
|
|
75
|
+
export MODEL_BASE_URL="https://api.deepseek.com/v1"
|
|
76
|
+
export DEEPSEEK_API_KEY="sk-..."
|
|
77
|
+
export MODEL_NAME="deepseek-chat"
|
|
78
|
+
|
|
79
|
+
# Path D · Qwen / 通义千问(router 模式)
|
|
80
|
+
export MODEL_PROVIDER="qwen"
|
|
81
|
+
export MODEL_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
|
|
82
|
+
export QWEN_API_KEY="sk-..."
|
|
83
|
+
export MODEL_NAME="qwen-plus"
|
|
84
|
+
|
|
85
|
+
# Path E · Moonshot / 月之暗面(router 模式)
|
|
86
|
+
export MODEL_PROVIDER="moonshot"
|
|
87
|
+
export MODEL_BASE_URL="https://api.moonshot.cn/v1"
|
|
88
|
+
export MOONSHOT_API_KEY="sk-..."
|
|
89
|
+
export MODEL_NAME="moonshot-v1-32k"
|
|
90
|
+
|
|
91
|
+
# Path F · GLM / 智谱(router 模式)
|
|
92
|
+
export MODEL_PROVIDER="glm"
|
|
93
|
+
export MODEL_BASE_URL="https://open.bigmodel.cn/api/paas/v4"
|
|
94
|
+
export GLM_API_KEY="your-key"
|
|
95
|
+
export MODEL_NAME="glm-4-flash"
|
|
96
|
+
|
|
97
|
+
# Path G · Ollama 本地(router 模式 · 自动识别 localhost:11434)
|
|
98
|
+
export MODEL_PROVIDER="ollama"
|
|
99
|
+
export MODEL_BASE_URL="http://localhost:11434/v1"
|
|
100
|
+
export MODEL_NAME="qwen2.5-coder:32b"
|
|
101
|
+
|
|
102
|
+
# Path H · AWS Bedrock(BYO AWS)
|
|
103
|
+
export CLAUDE_CODE_USE_BEDROCK=1
|
|
104
|
+
export AWS_ACCESS_KEY_ID="..."
|
|
105
|
+
export AWS_SECRET_ACCESS_KEY="..."
|
|
106
|
+
export AWS_REGION="us-west-2"
|
|
107
|
+
|
|
108
|
+
# Path I · Google Vertex AI(BYO GCP)
|
|
109
|
+
export CLAUDE_CODE_USE_VERTEX=1
|
|
110
|
+
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/sa.json"
|
|
111
|
+
export CLOUD_ML_REGION="us-east5"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### 4. 运行
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# 直接执行(有 shebang)
|
|
118
|
+
./dist/cli.js --version # → 1.0.0-alpha.5 (Agent-OS)
|
|
119
|
+
./dist/cli.js # 交互模式(REPL)
|
|
120
|
+
./dist/cli.js -p "hi" # 一次性 print 模式
|
|
121
|
+
|
|
122
|
+
# 或通过 bun(源码模式)
|
|
123
|
+
bun dist/cli.js --version
|
|
124
|
+
|
|
125
|
+
# 或全局链接(源码模式可选)
|
|
126
|
+
bun link # 注册到 PATH
|
|
127
|
+
agent-os --version # 全局可用
|
|
128
|
+
bun unlink # 清理
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 支持的 Provider
|
|
134
|
+
|
|
135
|
+
下表是 `src/services/api/router/keyDetector.ts` 中 `KNOWN_PROVIDERS` 的实际清单。Router 层支持这些 provider 的自动识别、base URL 预设和默认模型选择:
|
|
136
|
+
|
|
137
|
+
| Provider | 类型 | Base URL | 默认 model | 备注 |
|
|
138
|
+
|---|---|---|---|---|
|
|
139
|
+
| **Anthropic** | `anthropic` | `https://api.anthropic.com` | `claude-sonnet-4-6` | 官方直连 · 最佳 tool use 质量 · 识别 `sk-ant-` 前缀 |
|
|
140
|
+
| **DeepSeek** | `openai-compatible` | `https://api.deepseek.com/v1` | `deepseek-chat` | 识别 32-hex `sk-` 前缀 · 低成本 |
|
|
141
|
+
| **Qwen / 通义千问** | `openai-compatible` | `https://dashscope.aliyuncs.com/compatible-mode/v1` | `qwen-plus` | 阿里 DashScope 兼容模式 |
|
|
142
|
+
| **Moonshot / 月之暗面** | `openai-compatible` | `https://api.moonshot.cn/v1` | `moonshot-v1-8k` | 128k context 家族 |
|
|
143
|
+
| **GLM / 智谱** | `openai-compatible` | `https://open.bigmodel.cn/api/paas/v4` | `glm-4-flash` | 识别 `glm-` 前缀 |
|
|
144
|
+
| **MiniMax** | `openai-compatible` | `https://api.minimax.chat/v1` | `MiniMax-M2.7-HighSpeed` | 识别 `sk-cp-` 前缀 |
|
|
145
|
+
| **Ollama** | `ollama` | `http://localhost:11434/v1` | (由 `MODEL_NAME` 指定) | 本地模型 · base URL 含 `localhost:11434` 自动识别 |
|
|
146
|
+
|
|
147
|
+
> **不在表内** 的任何 OpenAI Chat Completions 兼容 endpoint 也可以接入:用 `MODEL_PROVIDER` + `MODEL_BASE_URL` + provider 专属 `<NAME>_API_KEY` 或通用 `MODEL_API_KEY` 三个 env var 注入即可。
|
|
148
|
+
|
|
149
|
+
Router 的三种 provider 实现分别在 `src/services/api/router/providers/`:
|
|
150
|
+
- `anthropic.ts` — Anthropic SDK 原生流式
|
|
151
|
+
- `openai-compat.ts` — OpenAI Chat Completions 协议(绝大多数 provider)
|
|
152
|
+
- (Ollama 复用 `openai-compat` · 由 base URL 自动降级)
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## BYOK 配置层级
|
|
157
|
+
|
|
158
|
+
Router 配置按四层优先级解析,先命中者生效。来源:`src/services/api/router/config.ts:loadRouterConfig()`。
|
|
159
|
+
|
|
160
|
+
### Layer 1 · `MODEL_ROUTER` 环境变量快捷格式
|
|
161
|
+
|
|
162
|
+
最小例子 · 单行指定 provider/key/endpoint:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
export MODEL_ROUTER="minimax:sk-cp-xxx@https://api.minimax.chat/v1"
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
格式:`<provider>:<apiKey>@<baseUrl>`。解析器是 `parseEnvShorthand()`。
|
|
169
|
+
|
|
170
|
+
### Layer 2 · 单独 env vars
|
|
171
|
+
|
|
172
|
+
按 `loadFromEnvVars()` 构造 provider:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
export MODEL_PROVIDER="deepseek"
|
|
176
|
+
export MODEL_BASE_URL="https://api.deepseek.com/v1"
|
|
177
|
+
export DEEPSEEK_API_KEY="sk-..." # 或通用 MODEL_API_KEY
|
|
178
|
+
export MODEL_NAME="deepseek-chat" # 可选
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
同时设置 `ANTHROPIC_API_KEY` 或 base URL 包含 `anthropic.com` 时,自动切换到 `type: 'anthropic'`;base URL 含 `localhost:11434` 时自动切到 `type: 'ollama'`。
|
|
182
|
+
|
|
183
|
+
### Layer 3 · 项目级 `./model-router.json`
|
|
184
|
+
|
|
185
|
+
最小例子,放在 cwd 下:
|
|
186
|
+
|
|
187
|
+
```json
|
|
188
|
+
{
|
|
189
|
+
"default": "deepseek/deepseek-chat",
|
|
190
|
+
"providers": {
|
|
191
|
+
"deepseek": {
|
|
192
|
+
"type": "openai-compatible",
|
|
193
|
+
"baseUrl": "https://api.deepseek.com/v1",
|
|
194
|
+
"apiKey": "sk-...",
|
|
195
|
+
"models": ["deepseek-chat", "deepseek-coder"]
|
|
196
|
+
},
|
|
197
|
+
"anthropic": {
|
|
198
|
+
"type": "anthropic",
|
|
199
|
+
"baseUrl": "https://api.anthropic.com",
|
|
200
|
+
"apiKey": "sk-ant-..."
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"routes": [
|
|
204
|
+
{ "when": "high_complexity", "use": "anthropic/claude-sonnet-4-6" },
|
|
205
|
+
{ "when": "default", "use": "deepseek/deepseek-chat" }
|
|
206
|
+
],
|
|
207
|
+
"fallback": {
|
|
208
|
+
"deepseek": "anthropic/claude-sonnet-4-6"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Layer 4 · 用户级 `~/.claude/model-router.json`
|
|
214
|
+
|
|
215
|
+
同样的 JSON 格式,放在 `$HOME/.claude/model-router.json`。
|
|
216
|
+
|
|
217
|
+
> ⚠️ **BYOK 守护**:当 `ANTHROPIC_API_KEY` 或 `ANTHROPIC_BASE_URL` 已设置时,这层**完全不被读取**。这是为了避免一台机器上遗留的 router 配置静默压过 `.env` 里显式配的 Anthropic 凭据。Layer 1-3 是显式 opt-in,不受此守护影响。
|
|
218
|
+
|
|
219
|
+
未命中任何一层时,router 返回 `null`,走原生 Anthropic SDK 路径(即 `ANTHROPIC_API_KEY` / `ANTHROPIC_BASE_URL` 直连)。
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## 启动校验
|
|
224
|
+
|
|
225
|
+
Agent-OS 启动时会调用 `assertProviderConfigured()`(`src/utils/assertProvider.ts`),以下条件**任意一条成立**即放行:
|
|
226
|
+
|
|
227
|
+
| 放行条件 | 含义 |
|
|
228
|
+
|---|---|
|
|
229
|
+
| `ANTHROPIC_API_KEY` 非空 | BYOK 基础路径 |
|
|
230
|
+
| `ANTHROPIC_BASE_URL` 非空 | 自定义 endpoint(含自建网关) |
|
|
231
|
+
| `CLAUDE_CODE_USE_BEDROCK=1` | AWS Bedrock(BYO AWS 凭据) |
|
|
232
|
+
| `CLAUDE_CODE_USE_VERTEX=1` | Google Vertex AI(BYO GCP 凭据) |
|
|
233
|
+
| `MODEL_ROUTER` 非空 | Router 快捷格式 |
|
|
234
|
+
| `MODEL_PROVIDER` 非空 | Router 单 env 格式 |
|
|
235
|
+
| `MODEL_BASE_URL` 非空 | Router 通用 endpoint |
|
|
236
|
+
| `./model-router.json` 存在 | 项目级 router 配置 |
|
|
237
|
+
|
|
238
|
+
全都没有 → stderr 打印清晰指引(指向 `.env.example` 和本 README) → `exit(1)`。
|
|
239
|
+
|
|
240
|
+
> 注意:用户级 `~/.claude/model-router.json` **单独存在** 不算 opt-in。启动校验不把它计入放行条件,避免一台机器上的旧 router 配置在你以为走 BYOK 时静默接管。
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 从 Claude Code 继承的能力
|
|
245
|
+
|
|
246
|
+
Agent-OS 继承了 Claude Code 已经成熟的 agent 编排能力:
|
|
247
|
+
|
|
248
|
+
- **Agent Loop**:tool use · sub-agent 调度 · planning · compact
|
|
249
|
+
- **File Tools**:Read / Edit / Write / Glob / Grep / NotebookEdit
|
|
250
|
+
- **Shell Tools**:Bash(含权限沙箱)· Background 任务 · stream-json 输出
|
|
251
|
+
- **Web Tools**:WebFetch · WebSearch
|
|
252
|
+
- **Planning**:ExitPlanMode 等 task 工具 · TaskCreate/Update 追踪
|
|
253
|
+
- **MCP**:完整的 Model Context Protocol client · stdio/http/sse transport
|
|
254
|
+
- **Plugin / Skill**:插件加载 · skill 自动发现 · slash command
|
|
255
|
+
- **权限管控**:allow/deny rules · 命令 allowlist · 权限 prompt
|
|
256
|
+
|
|
257
|
+
具体工具清单以 `./dist/cli.js --help` 为准。
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Roadmap
|
|
262
|
+
|
|
263
|
+
- [x] `alpha.1` — BYOK first public alpha · 品牌重写 · 发布元信息
|
|
264
|
+
- [x] `alpha.2` — BYOK 守护硬化(endpoint 优先 + 启动校验 + 静默兜底删除)
|
|
265
|
+
- [x] `alpha.3` — Phase 2.1 hotfix(身份合成修正 + BigQuery 遥测堵塞)
|
|
266
|
+
- [x] `alpha.4` — Telemetry purge(OTEL 下线 · −400 KB bundle · 启动 −150~300 ms)+ User-Agent rebrand + build 脚本修复
|
|
267
|
+
- [ ] `alpha.5` — 配置路径解耦(`~/.claude/` → `~/.agent-os/`)
|
|
268
|
+
- [ ] `alpha.6+` — 内部 prompts / help 残留品牌清洗 · 151 处 `ClaudeCode*` 标识符重命名
|
|
269
|
+
- [ ] `beta.1` — Knowledge Forge + 超协体集成完整化
|
|
270
|
+
- [ ] `beta.2` — License 终审 + npm publish 决策
|
|
271
|
+
|
|
272
|
+
完整变更记录见 [CHANGELOG.md](./CHANGELOG.md)。
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## 已知限制
|
|
277
|
+
|
|
278
|
+
- **Tool use 能力差异**:agent loop 的工具编排是按 Claude Sonnet / Opus 设计的;DeepSeek / Qwen / GLM 等做基础对话和简单 tool 没问题,复杂 sub-agent 编排与 planning 可能降级。生产使用建议 Anthropic 直连或 `high_complexity` 路由到 Claude 家族。
|
|
279
|
+
- **品牌残留**:内部 prompts / help text 仍有部分 "Claude Code" 字串(UX 层,不影响功能);151 处内部 `ClaudeCode*` PascalCase/camelCase 标识符延后到 alpha.6+ 一次性重命名。
|
|
280
|
+
- **配置路径**:仍依赖 `~/.claude/`(settings / router / plugins)· `alpha.5` 迁移到 `~/.agent-os/`。
|
|
281
|
+
- **TypeScript baseline**:≥100 个 pre-existing errors(legacy 债,不影响 `bun build` 产物;`tsc --noEmit` 尚未 clean)。
|
|
282
|
+
- **Anthropic 托管特性在 BYOK 模式不可用**:Remote Control(`/remote-control`)、Scheduled Remote Agents(`/schedule`)、Teleport、Passes、Extra-Usage 等依赖 `claude.ai/code` 后台的命令在本分发版中无法工作 —— 相关模块已 stub 或删除。
|
|
283
|
+
- **npm 未正式首发**:已完成 `npm publish --dry-run --tag alpha` 验证;执行正式发布前需要 npm 账号登录(`npm whoami` 可用)并完成 release 审批。
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## 卸载 / 回到 Claude Code
|
|
288
|
+
|
|
289
|
+
Agent-OS 不接管系统 PATH,不写系统目录,不注册开机启动项。所有产物都在项目目录内。
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
# 二进制安装用户
|
|
293
|
+
curl -fsSL https://raw.githubusercontent.com/VIONWILLIAMS/agent-os/main/scripts/uninstall.sh | bash
|
|
294
|
+
|
|
295
|
+
# 源码安装用户: 清理 bun link(如果链接过)
|
|
296
|
+
cd ~/Projects/agent-os && bun unlink
|
|
297
|
+
|
|
298
|
+
# 删除项目即卸载
|
|
299
|
+
rm -rf ~/Projects/agent-os
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
`~/.claude/` 下的 settings / plugins / session 历史是 Claude Code 上游格式,Agent-OS 共用同一路径(alpha.5 之前);删除项目目录不会影响原版 Claude Code 的 `~/.claude/` 数据。
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## License & 致谢
|
|
307
|
+
|
|
308
|
+
MIT License · 详见 [LICENSE](./LICENSE)。Agent-OS 始于对 Anthropic Claude Code 的 fork,原始 Claude Code 部分仍受上游许可条款约束。
|
|
309
|
+
|
|
310
|
+
This is a personal learning fork. 商业化使用待完整 vendor decoupling + license 终审完成后另行决定。
|
|
311
|
+
|
|
312
|
+
"Claude"、"Claude Code"、"Anthropic" 是 Anthropic, PBC 的商标,本仓库中的使用仅为客观声明 fork 渊源。
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## 链接
|
|
317
|
+
|
|
318
|
+
- Repository: <https://github.com/VIONWILLIAMS/agent-os>
|
|
319
|
+
- Releases: <https://github.com/VIONWILLIAMS/agent-os/releases>
|
|
320
|
+
- Issues: <https://github.com/VIONWILLIAMS/agent-os/issues>
|
|
321
|
+
- Changelog: [CHANGELOG.md](./CHANGELOG.md)
|