@jennie-shawn/starwork 0.1.0-alpha.16 → 0.1.0-alpha.18
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/README.md +52 -22
- package/adapters/README.md +34 -0
- package/adapters/claude-code/profile.json +55 -0
- package/adapters/claude-code/rules.md +13 -0
- package/adapters/claude-code/safety.md +6 -0
- package/adapters/codex/profile.json +55 -0
- package/adapters/codex/rules.md +12 -0
- package/adapters/codex/safety.md +5 -0
- package/adapters/contract.md +64 -0
- package/adapters/cursor/profile.json +60 -0
- package/adapters/cursor/rules.md +7 -0
- package/adapters/cursor/safety.md +5 -0
- package/adapters/trae/profile.json +61 -0
- package/adapters/trae/rules.md +7 -0
- package/adapters/trae/safety.md +6 -0
- package/cli/README.md +24 -10
- package/cli/audit-spec.md +19 -18
- package/cli/doctor-spec.md +7 -7
- package/cli/init-spec.md +14 -19
- package/cli/spawn-spec.md +89 -96
- package/cli/src/cli.js +3256 -502
- package/cli/test/init.test.js +676 -39
- package/core/capabilities/README.md +2 -1
- package/core/capabilities/decisions/capability.md +1 -1
- package/core/capabilities/knowledge/capability.md +72 -0
- package/core/capabilities/knowledge/skills/starworkKnowledgeProject/SKILL.md +57 -0
- package/core/capabilities/knowledge/skills/starworkKnowledgeProject/agents/openai.yaml +6 -0
- package/core/capabilities/knowledge/templates/en/README.md +20 -0
- package/core/capabilities/knowledge/templates/en/index.md +19 -0
- package/core/capabilities/knowledge/templates/en/log.md +16 -0
- package/core/capabilities/knowledge/templates/en/schema.md +60 -0
- package/core/capabilities/knowledge/templates/zh/README.md +20 -0
- package/core/capabilities/knowledge/templates/zh/index.md +19 -0
- package/core/capabilities/knowledge/templates/zh/log.md +16 -0
- package/core/capabilities/knowledge/templates/zh/schema.md +60 -0
- package/core/capabilities/main-repo-sync/capability.md +25 -25
- package/core/capabilities/skill-mount/capability.md +6 -6
- package/core/capabilities/starter-outputs/capability.md +9 -11
- package/core/kits/README.md +8 -1
- package/core/kits/hub/AGENTS.md +5 -5
- package/core/kits/hub/README.md +5 -5
- package/core/kits/hub/identity/README.md +1 -1
- package/core/kits/hub/knowledge/README.md +2 -2
- package/core/kits/hub/projects/README.md +1 -1
- package/core/kits/hub/projects/coordination/README.md +1 -1
- package/core/kits/hub/skills/README.md +1 -1
- package/core/kits/hub/workspace/README.md +2 -2
- package/core/kits/kit-structure-reference.md +46 -23
- package/core/kits/project/AGENTS.md +5 -6
- package/core/kits/project/README.md +11 -9
- package/core/kits/two-kit-architecture-spec.md +79 -51
- package/core/legacy/README.md +16 -0
- package/core/presets/README.md +13 -4
- package/core/presets/hub.yaml +22 -3
- package/core/presets/project.yaml +4 -5
- package/core/profiles/en/paths.json +0 -3
- package/core/profiles/en/profile.md +6 -3
- package/core/profiles/en/templates/AGENTS.md +3 -3
- package/core/profiles/zh/paths.json +0 -3
- package/core/profiles/zh/profile.md +6 -3
- package/core/profiles/zh/templates/AGENTS.md +3 -3
- package/docs/README.md +11 -4
- package/docs/agent-install-guide.md +6 -3
- package/docs/alpha-test-guide.md +132 -11
- package/docs/cli-capabilities.html +68 -36
- package/docs/cli-skill-registry.html +48 -27
- package/docs/hub-management.html +54 -54
- package/docs/index.html +4 -4
- package/docs/m2.10-core-kit-pack-boundary-cleanup-spec.md +567 -0
- package/docs/m2.8-workspace-naming-optimization-spec.md +633 -0
- package/docs/multiagent/01-codex-session-capabilities-and-starwork-implications.md +280 -0
- package/docs/multiagent/02-cursor-session-management-research-instructions.md +204 -0
- package/docs/multiagent/03-trae-session-management-research-instructions.md +205 -0
- package/docs/multiagent/04-claude-code-session-management-research-instructions.md +209 -0
- package/docs/multiagent/05-trae-solo-session-management-research-instructions.md +222 -0
- package/docs/multiagent/claude-code-session-management-research-result.md +201 -0
- package/docs/multiagent/cursor-session-management-research-result.md +101 -0
- package/docs/multiagent/trae-session-management-research-result.md +353 -0
- package/docs/multiagent/trae-solo-session-management-research-result.md +467 -0
- package/docs/product-direction.md +9 -7
- package/docs/product-shape-business-model.html +1 -1
- package/docs/roadmap.html +8 -8
- package/docs/roadmap.md +90 -33
- package/docs/v0.1-plan.md +20 -10
- package/kit-skills/README.md +4 -4
- package/kit-skills/starworkAudit/SKILL.md +38 -9
- package/kit-skills/starworkAudit/references/issue-taxonomy.md +1 -1
- package/kit-skills/starworkAudit/references/repair-blueprint-guide.md +3 -3
- package/kit-skills/starworkAudit/references/response-guide.md +2 -2
- package/kit-skills/starworkSpawn/SKILL.md +9 -8
- package/package.json +1 -1
- package/packs/general/languages/en.json +17 -0
- package/packs/general/languages/zh.json +17 -0
- package/packs/general/pack.json +5 -0
- package/packs/hub-management/languages/zh.json +12 -11
- package/packs/hub-management/rules/zh/overview.md +3 -3
- package/packs/hub-management/rules/zh/workflow.md +2 -2
- package/skills/README.md +10 -3
- package/skills/starworkDoctor/SKILL.md +54 -12
- package/skills/starworkInit/SKILL.md +79 -12
- package/skills/starworkKnowledge/SKILL.md +174 -0
- package/skills/starworkKnowledge/agents/openai.yaml +3 -0
- package/skills/starworkMultiagent/SKILL.md +134 -8
- package/core/kits/project//347/237/245/350/257/206/README.md +0 -7
- package/core/kits/satellite-starter//345/217/202/350/200/203/350/265/204/346/226/231/README.md +0 -5
- package/core/kits/satellite-starter//350/276/223/345/207/272//347/241/256/350/256/244/346/210/220/346/236/234/README.md +0 -5
- package/core/kits/satellite-starter//350/276/223/345/207/272//350/215/211/347/250/277/README.md +0 -5
- /package/core/{kits → legacy/kits}/satellite-starter/.agents/skills/README.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.claude/skills/README.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.core-sync.json +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.internal/README.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.obsidian/README.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.starwork/handoff/archived/.gitkeep +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.starwork/handoff/inbox/.gitkeep +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.starwork/handoff/outbox/.gitkeep +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.starwork/handoff/sent/.gitkeep +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/.starwork/handoff/state.json +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/AGENTS.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/CLAUDE.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/README.md +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/_/347/263/273/347/273/237//344/270/212/344/270/213/346/226/207//345/275/223/345/211/215/351/241/271/347/233/256.md" +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/_/347/263/273/347/273/237//344/270/273/345/272/223/345/220/214/346/255/245/README.md" +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/_/347/263/273/347/273/237//344/273/273/345/212/241//345/275/223/345/211/215/345/267/245/344/275/234.md" +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/_/347/263/273/347/273/237//346/225/231/350/256/255/README.md" +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter/_/347/263/273/347/273/237//350/272/253/344/273/275/README.md" +0 -0
- /package/core/{kits/project → legacy/kits/satellite-starter}//345/217/202/350/200/203/350/265/204/346/226/231/README.md" +0 -0
- /package/core/{kits → legacy/kits}/satellite-starter//347/237/245/350/257/206/README.md" +0 -0
- /package/core/{kits/project → legacy/kits/satellite-starter}//350/276/223/345/207/272//347/241/256/350/256/244/346/210/220/346/236/234/README.md" +0 -0
- /package/core/{kits/project → legacy/kits/satellite-starter}//350/276/223/345/207/272//350/215/211/347/250/277/README.md" +0 -0
- /package/core/{presets → legacy/presets}/satellite-starter.yaml +0 -0
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@ StarWork 是一套面向 AI 的工作台协议和工具集,用来帮助用户
|
|
|
5
5
|
它包含四个核心部分:
|
|
6
6
|
|
|
7
7
|
- **Core**:定义工作台应该长什么样,包括目录结构、角色边界、状态文件和健康检查规则。
|
|
8
|
-
- **CLI**:提供 `init`、`doctor`、`spawn`、`upgrade`、`adapt`、`pack install`、`multiagent` 等命令,用来创建、检查、升级、协作和扩展工作台。
|
|
8
|
+
- **CLI**:提供 `init`、`doctor`、`knowledge`、`spawn`、`upgrade`、`adapt`、`pack install`、`multiagent` 等命令,用来创建、检查、升级、协作和扩展工作台。
|
|
9
9
|
- **Packs**:场景模板包。当前 A 测阶段默认使用通用工作能力。
|
|
10
10
|
- **Skills**:给 Codex 等 AI 工具使用的工作流说明,让 AI 能更可靠地帮用户设计和生成 StarWork 工作台。
|
|
11
11
|
|
|
12
|
-
当前版本处于 A
|
|
12
|
+
当前版本处于 A 测阶段。npm `latest` 为 `@jennie-shawn/starwork@0.1.0-alpha.17`,适合测试安装流程、基础命令、工作台结构、AI Skill 使用体验和 Codex 多会话协作链路。
|
|
13
13
|
|
|
14
14
|
## 安装 CLI
|
|
15
15
|
|
|
@@ -33,7 +33,7 @@ npx @jennie-shawn/starwork --help
|
|
|
33
33
|
StarWork skills 分两类管理:
|
|
34
34
|
|
|
35
35
|
- 系统 Skill 通过 GitHub 仓库和 `skills` CLI 安装到 AI 工具的全局环境。
|
|
36
|
-
-
|
|
36
|
+
- 工作台自带 Skill 跟着工作台走,例如项目中心自带 `starworkSpawn`,项目工作台自带 `neat-freak`。
|
|
37
37
|
|
|
38
38
|
给 Codex 安装全部 StarWork 系统级 Skills:
|
|
39
39
|
|
|
@@ -45,15 +45,18 @@ npx skills add jennie-shawn/StarWork -g -a codex -y
|
|
|
45
45
|
|
|
46
46
|
当前系统级 Skills:
|
|
47
47
|
|
|
48
|
-
- `starworkInit`:帮助 AI
|
|
49
|
-
- `starworkDoctor`:帮助 AI 基于 `starwork doctor --json`
|
|
50
|
-
- `starworkMultiagent`:帮助 AI 把“登记当前会话为常用智能体”“管理多 AI
|
|
48
|
+
- `starworkInit`:帮助 AI 判断是创建项目工作台还是项目中心,选择语言;用户确认创建时,会带着 `starwork init` dry-run、执行并用 `doctor` 验证。
|
|
49
|
+
- `starworkDoctor`:帮助 AI 基于 `starwork doctor --json` 解释目录问题、识别旧模板或类似项目中心的旧工作区;用户明确要求升级时,生成可预览、可确认的升级方案。
|
|
50
|
+
- `starworkMultiagent`:帮助 AI 把“登记当前会话为常用智能体”“管理多 AI 分工”“跨会话指令”“读取其他 lane 状态”等请求转换成 `starwork multiagent` 命令组合。
|
|
51
|
+
- `starworkKnowledge`:帮助 AI 开启和维护项目本地知识库;创建结构时先调用 `starwork knowledge`,整理内容时区分主题页和综合判断。
|
|
52
|
+
|
|
53
|
+
说明:`starworkKnowledge` 是全局入口 Skill。项目开启知识库后,CLI 会把 `starworkKnowledgeProject` 安装到当前项目的 `.agents/skills/` 和 `.claude/skills/`,它不属于全局安装清单。
|
|
51
54
|
|
|
52
55
|
Kit 随附 Skills 不走全局安装命令,它们跟着具体工作台走:
|
|
53
56
|
|
|
54
|
-
- `starworkSpawn
|
|
55
|
-
- `starworkAudit
|
|
56
|
-
- `neat-freak
|
|
57
|
+
- `starworkSpawn`:项目中心自带 Skill,帮助已有项目中心设计 `starwork spawn --blueprint` 工作台定制单。
|
|
58
|
+
- `starworkAudit`:项目中心自带 Skill,帮助项目中心解读 `starwork audit --json`,判断它管理的项目工作台健康状况,并生成保守的 `starwork repair --blueprint` 修复蓝图。
|
|
59
|
+
- `neat-freak`:项目工作台自带 Skill,帮助项目收尾、整理和归档。
|
|
57
60
|
|
|
58
61
|
## 让 Agent 帮你安装
|
|
59
62
|
|
|
@@ -72,7 +75,7 @@ https://raw.githubusercontent.com/jennie-shawn/StarWork/main/docs/agent-install-
|
|
|
72
75
|
|
|
73
76
|
## 快速开始
|
|
74
77
|
|
|
75
|
-
|
|
78
|
+
创建一个项目工作台:
|
|
76
79
|
|
|
77
80
|
```bash
|
|
78
81
|
starwork init \
|
|
@@ -90,18 +93,26 @@ starwork init \
|
|
|
90
93
|
starwork doctor --target ~/Desktop/starwork-a-test
|
|
91
94
|
```
|
|
92
95
|
|
|
93
|
-
|
|
96
|
+
可选:给项目开启知识库:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
starwork knowledge init --target ~/Desktop/starwork-a-test --dry-run
|
|
100
|
+
starwork knowledge init --target ~/Desktop/starwork-a-test --yes
|
|
101
|
+
starwork knowledge status --target ~/Desktop/starwork-a-test --json
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
创建一个项目中心:
|
|
94
105
|
|
|
95
106
|
```bash
|
|
96
107
|
starwork init \
|
|
97
108
|
--type hub \
|
|
98
109
|
--language zh \
|
|
99
|
-
--name "StarWork
|
|
110
|
+
--name "StarWork Project Center A Test" \
|
|
100
111
|
--target ~/Desktop/starwork-hub-a-test \
|
|
101
112
|
--yes
|
|
102
113
|
```
|
|
103
114
|
|
|
104
|
-
|
|
115
|
+
从项目中心创建一个项目工作台:
|
|
105
116
|
|
|
106
117
|
```bash
|
|
107
118
|
starwork spawn \
|
|
@@ -118,7 +129,7 @@ starwork spawn \
|
|
|
118
129
|
starwork doctor --target ~/Desktop/starwork-alpha-project
|
|
119
130
|
```
|
|
120
131
|
|
|
121
|
-
|
|
132
|
+
从项目中心巡检项目:
|
|
122
133
|
|
|
123
134
|
```bash
|
|
124
135
|
starwork audit --hub ~/Desktop/starwork-hub-a-test
|
|
@@ -129,6 +140,7 @@ starwork audit --hub ~/Desktop/starwork-hub-a-test
|
|
|
129
140
|
```text
|
|
130
141
|
starwork init
|
|
131
142
|
starwork doctor
|
|
143
|
+
starwork knowledge
|
|
132
144
|
starwork spawn
|
|
133
145
|
starwork upgrade
|
|
134
146
|
starwork adapt
|
|
@@ -136,15 +148,32 @@ starwork pack install
|
|
|
136
148
|
starwork multiagent
|
|
137
149
|
```
|
|
138
150
|
|
|
151
|
+
## 产品规划资料
|
|
152
|
+
|
|
153
|
+
StarWork 的功能规划、版本 SPEC、讨论沉淀、参考资料和验收材料统一放在:
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
product/planning/
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
其中独立功能按功能点归档:
|
|
160
|
+
|
|
161
|
+
```text
|
|
162
|
+
product/planning/features/<feature>/
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
正式用户文档和 HTML 阅读稿仍放在 `product/docs/`。
|
|
166
|
+
|
|
139
167
|
当前能力:
|
|
140
168
|
|
|
141
|
-
- `init
|
|
142
|
-
- `doctor
|
|
143
|
-
- `
|
|
144
|
-
- `
|
|
169
|
+
- `init`:创建项目工作台或项目中心;交互默认推荐项目工作台。
|
|
170
|
+
- `doctor`:检查工作台是否完整、关键文件是否还在;也会为旧模板和类似项目中心的旧工作区列出目录线索,交给 `starworkDoctor` 判断。
|
|
171
|
+
- `knowledge`:开启、检查和按确认方案整理项目本地知识库;成功开启后安装项目内知识库助手,默认不会移动旧 `知识/` 或 `knowledge/`。
|
|
172
|
+
- `spawn`:从已有项目中心创建并登记项目工作台,支持中文或英文目录镜像。
|
|
173
|
+
- `upgrade`:按 `starworkDoctor` skill 生成的升级蓝图,把历史模板或类似项目中心的旧工作区安全接入 StarWork 工作台。
|
|
145
174
|
- `adapt`:生成 Claude Code、Cursor 等 AI 工具的适配文件。
|
|
146
175
|
- `pack install`:向兼容工作台安装支持的场景能力。
|
|
147
|
-
- `multiagent`:为同一项目建立自定义 AI
|
|
176
|
+
- `multiagent`:为同一项目建立自定义 AI 职责位、绑定会话、登记跨 lane 共享输出,并支持 Codex 多会话读取、launch 和格式化指令发送;未观察到目标 turn 完成时会返回 `started_unverified`,避免把未完成交付误说成已完成。
|
|
148
177
|
|
|
149
178
|
## 仓库结构
|
|
150
179
|
|
|
@@ -158,7 +187,8 @@ starwork multiagent
|
|
|
158
187
|
├── schemas/ # 结构化 schema
|
|
159
188
|
├── adapters/ # AI 工具适配规则
|
|
160
189
|
├── examples/ # 示例
|
|
161
|
-
|
|
190
|
+
├── docs/ # 产品文档和 A 测指南
|
|
191
|
+
└── planning/ # 功能规划、版本 SPEC、讨论、参考和验收
|
|
162
192
|
```
|
|
163
193
|
|
|
164
194
|
## A 测反馈重点
|
|
@@ -168,9 +198,9 @@ starwork multiagent
|
|
|
168
198
|
- CLI 是否能顺利安装和运行。
|
|
169
199
|
- `init` 创建的工作台结构是否容易理解。
|
|
170
200
|
- `doctor` 的检查结果是否能指导修复问题。
|
|
171
|
-
-
|
|
201
|
+
- 项目中心创建和管理项目工作台的流程是否自然。
|
|
172
202
|
- 系统 Skill 是否能被 AI 正确识别和调用。
|
|
173
|
-
-
|
|
203
|
+
- 项目中心自带的 `starworkSpawn`、项目工作台自带的 `neat-freak` 是否能在对应工作台内被正确发现。
|
|
174
204
|
|
|
175
205
|
更完整的测试脚本见 [A 测安装指南](docs/alpha-test-guide.md)。
|
|
176
206
|
|
package/adapters/README.md
CHANGED
|
@@ -3,3 +3,37 @@
|
|
|
3
3
|
这里存放不同 Agent 的适配层,如 Codex、Claude Code、Cursor、Trae 等。
|
|
4
4
|
|
|
5
5
|
适配层不混入 StarWork Core。
|
|
6
|
+
|
|
7
|
+
## 当前定位
|
|
8
|
+
|
|
9
|
+
Adapter 是 StarWork 的全局宿主适配层,不只服务 MultiAgent。
|
|
10
|
+
|
|
11
|
+
它负责把 StarWork 工作台协议翻译成不同 AI 宿主能正确读取、正确行动、正确保存上下文的方式,包括:
|
|
12
|
+
|
|
13
|
+
- 规则入口
|
|
14
|
+
- Skill 识别
|
|
15
|
+
- 会话能力
|
|
16
|
+
- transcript / memory 边界
|
|
17
|
+
- 宿主 CLI / API 探测
|
|
18
|
+
- 私有状态安全边界
|
|
19
|
+
|
|
20
|
+
## v0.1 当前进度
|
|
21
|
+
|
|
22
|
+
Host Adapter v0.1 已先落地底座:
|
|
23
|
+
|
|
24
|
+
- `contract.md`:定义 adapter profile、工作台 adapter state 和宿主安全边界。
|
|
25
|
+
- `codex/`、`claude-code/`、`cursor/`、`trae/`:分别维护 `profile.json`、`rules.md`、`safety.md`。
|
|
26
|
+
- `starwork adapt <host|all> --capabilities`:只读输出宿主能力,不改工作台。
|
|
27
|
+
- `starwork adapt <host|all>`:写入宿主规则入口、Skill 目录和 `.starwork/adapters.json`。
|
|
28
|
+
- `starwork doctor --host <host|all>`:检查宿主入口、Skill 目录、Cursor / Trae frontmatter、Trae disabled config 和不安全能力声明。
|
|
29
|
+
- `starwork init --adapter <host|all>`:初始化完成后继续生成对应宿主入口。
|
|
30
|
+
- `starwork multiagent`:Claude Code 可用 `CLAUDE_CODE_SESSION_ID` 绑定和 `claude --resume` 继续命令;Cursor / Trae 默认走 manual handoff,不伪装后台送达。
|
|
31
|
+
|
|
32
|
+
Cursor / Trae 的深度 probe、Claude Code 真实本机 transcript 路径适配和更完整用户文档仍需继续 A 测打磨。
|
|
33
|
+
|
|
34
|
+
产品规划事实源见:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
product/planning/features/host-adapters/specs/v0.1.md
|
|
38
|
+
product/planning/features/host-adapters/specs/v0.1-implementation.md
|
|
39
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "starwork.adapter.profile.v0.1",
|
|
3
|
+
"host": "claude-code",
|
|
4
|
+
"label": "Claude Code",
|
|
5
|
+
"version": "0.1",
|
|
6
|
+
"rules": {
|
|
7
|
+
"entry_file": "CLAUDE.md",
|
|
8
|
+
"can_generate_entry": "supported",
|
|
9
|
+
"can_update_entry": "partial",
|
|
10
|
+
"supports_project_scope": "supported",
|
|
11
|
+
"supports_nested_rules": "unknown"
|
|
12
|
+
},
|
|
13
|
+
"skills": {
|
|
14
|
+
"system_install": "manual",
|
|
15
|
+
"project_mount": "manual",
|
|
16
|
+
"primary_project_dir": ".claude/skills/",
|
|
17
|
+
"project_mount_dirs": [".claude/skills/", ".agents/skills/"],
|
|
18
|
+
"host_native_dirs": [".claude/skills/"],
|
|
19
|
+
"global_dirs": ["~/.claude/skills/"],
|
|
20
|
+
"conflict_priority": [".claude/skills/", ".agents/skills/"],
|
|
21
|
+
"discovery": "manual",
|
|
22
|
+
"trigger_style": "rules-guided",
|
|
23
|
+
"adapter_rule_required": true
|
|
24
|
+
},
|
|
25
|
+
"sessions": {
|
|
26
|
+
"detect_current": "supported",
|
|
27
|
+
"rename": "partial",
|
|
28
|
+
"list": "partial",
|
|
29
|
+
"read": "supported",
|
|
30
|
+
"continue": "supported",
|
|
31
|
+
"send_message": "manual",
|
|
32
|
+
"create": "partial",
|
|
33
|
+
"pin": "unsupported",
|
|
34
|
+
"archive": "unsupported"
|
|
35
|
+
},
|
|
36
|
+
"memory": {
|
|
37
|
+
"transcript_read": "supported",
|
|
38
|
+
"transcript_write": "unsupported",
|
|
39
|
+
"summary_visible": "unsupported",
|
|
40
|
+
"project_memory": "supported",
|
|
41
|
+
"export": "partial"
|
|
42
|
+
},
|
|
43
|
+
"commands": {
|
|
44
|
+
"cli_available": "partial",
|
|
45
|
+
"api_available": "unsupported",
|
|
46
|
+
"requires_auth": "partial",
|
|
47
|
+
"can_probe": "supported"
|
|
48
|
+
},
|
|
49
|
+
"safety": {
|
|
50
|
+
"private_paths_readonly": ["~/.claude/projects/**", "~/.claude/sessions/**"],
|
|
51
|
+
"never_write_paths": ["~/.claude/projects/**/*.jsonl", "~/.claude.json"],
|
|
52
|
+
"destructive_commands": ["claude project purge"],
|
|
53
|
+
"degradation_required": ["sessions.send_message", "sessions.pin", "sessions.archive"]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Claude Code Adapter Rules
|
|
2
|
+
|
|
3
|
+
Claude Code uses `CLAUDE.md` as its project rule entry.
|
|
4
|
+
|
|
5
|
+
The entry should point Claude Code back to:
|
|
6
|
+
|
|
7
|
+
- `AGENTS.md`
|
|
8
|
+
- `.starwork/workspace.json`
|
|
9
|
+
- `.starwork/skills.json`
|
|
10
|
+
- `.claude/skills/`
|
|
11
|
+
- `.agents/skills/`
|
|
12
|
+
|
|
13
|
+
Claude Code can bind or resume sessions, and transcripts may be read as candidate evidence. It cannot safely receive background messages to another session in StarWork v0.1.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Claude Code Adapter Safety
|
|
2
|
+
|
|
3
|
+
- Never write Claude Code transcript JSONL files.
|
|
4
|
+
- Never write `~/.claude.json`.
|
|
5
|
+
- Never run destructive commands such as `claude project purge`.
|
|
6
|
+
- Treat transcript content as candidate evidence only, not as StarWork formal memory.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "starwork.adapter.profile.v0.1",
|
|
3
|
+
"host": "codex",
|
|
4
|
+
"label": "Codex",
|
|
5
|
+
"version": "0.1",
|
|
6
|
+
"rules": {
|
|
7
|
+
"entry_file": "AGENTS.md",
|
|
8
|
+
"can_generate_entry": "supported",
|
|
9
|
+
"can_update_entry": "partial",
|
|
10
|
+
"supports_project_scope": "supported",
|
|
11
|
+
"supports_nested_rules": "partial"
|
|
12
|
+
},
|
|
13
|
+
"skills": {
|
|
14
|
+
"system_install": "supported",
|
|
15
|
+
"project_mount": "supported",
|
|
16
|
+
"primary_project_dir": ".agents/skills/",
|
|
17
|
+
"project_mount_dirs": [".agents/skills/"],
|
|
18
|
+
"host_native_dirs": [".agents/skills/"],
|
|
19
|
+
"global_dirs": ["~/.agents/skills/"],
|
|
20
|
+
"conflict_priority": [".agents/skills/"],
|
|
21
|
+
"discovery": "partial",
|
|
22
|
+
"trigger_style": "rules-guided",
|
|
23
|
+
"adapter_rule_required": true
|
|
24
|
+
},
|
|
25
|
+
"sessions": {
|
|
26
|
+
"detect_current": "partial",
|
|
27
|
+
"rename": "supported",
|
|
28
|
+
"list": "supported",
|
|
29
|
+
"read": "supported",
|
|
30
|
+
"continue": "supported",
|
|
31
|
+
"send_message": "supported",
|
|
32
|
+
"create": "supported",
|
|
33
|
+
"pin": "partial",
|
|
34
|
+
"archive": "unsupported"
|
|
35
|
+
},
|
|
36
|
+
"memory": {
|
|
37
|
+
"transcript_read": "partial",
|
|
38
|
+
"transcript_write": "unsupported",
|
|
39
|
+
"summary_visible": "partial",
|
|
40
|
+
"project_memory": "supported",
|
|
41
|
+
"export": "partial"
|
|
42
|
+
},
|
|
43
|
+
"commands": {
|
|
44
|
+
"cli_available": "supported",
|
|
45
|
+
"api_available": "partial",
|
|
46
|
+
"requires_auth": "partial",
|
|
47
|
+
"can_probe": "supported"
|
|
48
|
+
},
|
|
49
|
+
"safety": {
|
|
50
|
+
"private_paths_readonly": [],
|
|
51
|
+
"never_write_paths": [],
|
|
52
|
+
"destructive_commands": [],
|
|
53
|
+
"degradation_required": ["sessions.archive"]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Codex Adapter Rules
|
|
2
|
+
|
|
3
|
+
Codex uses `AGENTS.md` as the primary project rule entry.
|
|
4
|
+
|
|
5
|
+
The adapter should ensure Codex can find:
|
|
6
|
+
|
|
7
|
+
- `AGENTS.md`
|
|
8
|
+
- `.starwork/workspace.json`
|
|
9
|
+
- `.starwork/skills.json`
|
|
10
|
+
- `.agents/skills/`
|
|
11
|
+
|
|
12
|
+
Codex can support automatic MultiAgent `launch`, `read`, and `instruct`, but completion must still be verified through StarWork state and target thread reads.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# StarWork Host Adapter Contract
|
|
2
|
+
|
|
3
|
+
Host Adapter is the StarWork layer that translates the workspace protocol for a concrete AI host.
|
|
4
|
+
|
|
5
|
+
It does not redefine Core, Kit, or Pack structure. It records what each host can read, generate, mount, inspect, continue, or only handle manually.
|
|
6
|
+
|
|
7
|
+
## Profile Schema
|
|
8
|
+
|
|
9
|
+
Each built-in host has:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
product/adapters/<host>/profile.json
|
|
13
|
+
product/adapters/<host>/rules.md
|
|
14
|
+
product/adapters/<host>/safety.md
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`profile.json` must use:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"schema": "starwork.adapter.profile.v0.1",
|
|
22
|
+
"host": "cursor",
|
|
23
|
+
"label": "Cursor",
|
|
24
|
+
"version": "0.1",
|
|
25
|
+
"rules": {},
|
|
26
|
+
"skills": {},
|
|
27
|
+
"sessions": {},
|
|
28
|
+
"memory": {},
|
|
29
|
+
"commands": {},
|
|
30
|
+
"safety": {}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Capability Levels
|
|
35
|
+
|
|
36
|
+
Only these values are valid:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
supported | partial | manual | unsupported | unknown
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- `supported`: stable automatic behavior.
|
|
43
|
+
- `partial`: available but incomplete, environment-dependent, or not stable enough to promise.
|
|
44
|
+
- `manual`: StarWork can generate instructions or handoff text, but the user must act.
|
|
45
|
+
- `unsupported`: not supported or not safe to rely on.
|
|
46
|
+
- `unknown`: not researched enough to make a promise.
|
|
47
|
+
|
|
48
|
+
`partial`, `manual`, and `unknown` must never be described as automatic completion.
|
|
49
|
+
|
|
50
|
+
## State
|
|
51
|
+
|
|
52
|
+
Workspace adapter state lives in:
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
.starwork/adapters.json
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`.starwork/workspace.json.adapters` remains a short compatibility summary only.
|
|
59
|
+
|
|
60
|
+
## Safety Rules
|
|
61
|
+
|
|
62
|
+
Adapters must not write host private transcripts, private databases, encrypted stores, or global configuration unless the user explicitly asks for a documented host-level action.
|
|
63
|
+
|
|
64
|
+
Host private history is never a StarWork source of truth.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "starwork.adapter.profile.v0.1",
|
|
3
|
+
"host": "cursor",
|
|
4
|
+
"label": "Cursor",
|
|
5
|
+
"version": "0.1",
|
|
6
|
+
"rules": {
|
|
7
|
+
"entry_file": ".cursor/rules/starwork.mdc",
|
|
8
|
+
"can_generate_entry": "supported",
|
|
9
|
+
"can_update_entry": "partial",
|
|
10
|
+
"supports_project_scope": "supported",
|
|
11
|
+
"supports_nested_rules": "supported"
|
|
12
|
+
},
|
|
13
|
+
"skills": {
|
|
14
|
+
"system_install": "manual",
|
|
15
|
+
"project_mount": "supported",
|
|
16
|
+
"primary_project_dir": ".cursor/skills/",
|
|
17
|
+
"project_mount_dirs": [".cursor/skills/", ".agents/skills/"],
|
|
18
|
+
"host_native_dirs": [".cursor/skills/", ".agents/skills/", ".claude/skills/", ".codex/skills/"],
|
|
19
|
+
"global_dirs": ["~/.cursor/skills/", "~/.agents/skills/", "~/.claude/skills/", "~/.codex/skills/"],
|
|
20
|
+
"conflict_priority": [".cursor/skills/", ".agents/skills/", ".claude/skills/", ".codex/skills/"],
|
|
21
|
+
"discovery": "supported",
|
|
22
|
+
"trigger_style": "native-skill-discovery",
|
|
23
|
+
"adapter_rule_required": true,
|
|
24
|
+
"frontmatter": {
|
|
25
|
+
"required": ["name", "description"],
|
|
26
|
+
"name_pattern": "^[a-z0-9-]+$",
|
|
27
|
+
"name_matches_parent": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sessions": {
|
|
31
|
+
"detect_current": "partial",
|
|
32
|
+
"rename": "partial",
|
|
33
|
+
"list": "partial",
|
|
34
|
+
"read": "partial",
|
|
35
|
+
"continue": "partial",
|
|
36
|
+
"send_message": "partial",
|
|
37
|
+
"create": "partial",
|
|
38
|
+
"pin": "unsupported",
|
|
39
|
+
"archive": "unsupported"
|
|
40
|
+
},
|
|
41
|
+
"memory": {
|
|
42
|
+
"transcript_read": "partial",
|
|
43
|
+
"transcript_write": "unsupported",
|
|
44
|
+
"summary_visible": "unknown",
|
|
45
|
+
"project_memory": "supported",
|
|
46
|
+
"export": "partial"
|
|
47
|
+
},
|
|
48
|
+
"commands": {
|
|
49
|
+
"cli_available": "partial",
|
|
50
|
+
"api_available": "unsupported",
|
|
51
|
+
"requires_auth": "partial",
|
|
52
|
+
"can_probe": "partial"
|
|
53
|
+
},
|
|
54
|
+
"safety": {
|
|
55
|
+
"private_paths_readonly": ["~/Library/Application Support/Cursor/**"],
|
|
56
|
+
"never_write_paths": ["~/Library/Application Support/Cursor/**/*.vscdb", "~/Library/Application Support/Cursor/**/*.sqlite"],
|
|
57
|
+
"destructive_commands": [],
|
|
58
|
+
"degradation_required": ["sessions.pin", "sessions.archive"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Cursor Adapter Rules
|
|
2
|
+
|
|
3
|
+
Cursor uses `.cursor/rules/starwork.mdc` as the StarWork entry.
|
|
4
|
+
|
|
5
|
+
Cursor can discover project Skills from `.cursor/skills/` and `.agents/skills/`, and can also see compatible `.claude/skills/` and `.codex/skills/` directories. StarWork still treats `.starwork/skills.json` as the project Skill fact source.
|
|
6
|
+
|
|
7
|
+
Cursor session automation is partial in v0.1. If automatic delivery is not verified, StarWork must generate a handoff message instead of claiming delivery.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "starwork.adapter.profile.v0.1",
|
|
3
|
+
"host": "trae",
|
|
4
|
+
"label": "Trae",
|
|
5
|
+
"version": "0.1",
|
|
6
|
+
"rules": {
|
|
7
|
+
"entry_file": ".trae/rules/starwork.md",
|
|
8
|
+
"can_generate_entry": "supported",
|
|
9
|
+
"can_update_entry": "partial",
|
|
10
|
+
"supports_project_scope": "supported",
|
|
11
|
+
"supports_nested_rules": "unknown"
|
|
12
|
+
},
|
|
13
|
+
"skills": {
|
|
14
|
+
"system_install": "manual",
|
|
15
|
+
"project_mount": "supported",
|
|
16
|
+
"primary_project_dir": ".trae/skills/",
|
|
17
|
+
"project_mount_dirs": [".trae/skills/", ".agents/skills/"],
|
|
18
|
+
"host_native_dirs": [".trae/skills/", ".agents/skills/"],
|
|
19
|
+
"global_dirs": ["~/.trae-cn/skills", "%userprofile%/.trae-cn/skills"],
|
|
20
|
+
"conflict_priority": [".trae/skills/", ".agents/skills/"],
|
|
21
|
+
"discovery": "supported",
|
|
22
|
+
"trigger_style": "native-skill-discovery",
|
|
23
|
+
"adapter_rule_required": true,
|
|
24
|
+
"frontmatter": {
|
|
25
|
+
"required": ["name", "description"],
|
|
26
|
+
"name_pattern": "^[a-z0-9-]+$",
|
|
27
|
+
"name_matches_parent": true
|
|
28
|
+
},
|
|
29
|
+
"disabled_config": ".trae/skill-config.json"
|
|
30
|
+
},
|
|
31
|
+
"sessions": {
|
|
32
|
+
"detect_current": "partial",
|
|
33
|
+
"rename": "unsupported",
|
|
34
|
+
"list": "partial",
|
|
35
|
+
"read": "unsupported",
|
|
36
|
+
"continue": "manual",
|
|
37
|
+
"send_message": "manual",
|
|
38
|
+
"create": "manual",
|
|
39
|
+
"pin": "unsupported",
|
|
40
|
+
"archive": "unsupported"
|
|
41
|
+
},
|
|
42
|
+
"memory": {
|
|
43
|
+
"transcript_read": "unsupported",
|
|
44
|
+
"transcript_write": "unsupported",
|
|
45
|
+
"summary_visible": "unsupported",
|
|
46
|
+
"project_memory": "supported",
|
|
47
|
+
"export": "unsupported"
|
|
48
|
+
},
|
|
49
|
+
"commands": {
|
|
50
|
+
"cli_available": "partial",
|
|
51
|
+
"api_available": "unsupported",
|
|
52
|
+
"requires_auth": "partial",
|
|
53
|
+
"can_probe": "partial"
|
|
54
|
+
},
|
|
55
|
+
"safety": {
|
|
56
|
+
"private_paths_readonly": ["~/Library/Application Support/Trae/**", "~/Library/Application Support/Trae CN/**"],
|
|
57
|
+
"never_write_paths": ["**/database.db", "**/*.vscdb", "**/*.sqlite"],
|
|
58
|
+
"destructive_commands": [],
|
|
59
|
+
"degradation_required": ["sessions.read", "sessions.send_message", "sessions.create", "sessions.continue", "sessions.pin", "sessions.archive"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Trae Adapter Rules
|
|
2
|
+
|
|
3
|
+
Trae uses `.trae/rules/starwork.md` as the StarWork entry.
|
|
4
|
+
|
|
5
|
+
Trae can discover project Skills from `.trae/skills/` and `.agents/skills/`. When the same Skill exists in both locations, `.trae/skills/` wins. StarWork still treats `.starwork/skills.json` as the project Skill fact source.
|
|
6
|
+
|
|
7
|
+
Trae is a manual-handoff host in v0.1. It should not be described as supporting automatic background cross-session delivery.
|