@yigh/dsh-agent-company 0.0.0-stage → 1.0.1
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 +106 -2
- package/cordis.patch.yml +128 -0
- package/icon.svg +9 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +51 -4
- package/preset-lead/index.js +47 -0
- package/preset-lead/locale/en.json +6 -0
- package/preset-lead/locale/zh.json +6 -0
- package/skill/icon.svg +9 -0
- package/skill/index.js +99 -0
- package/skill/locale/en.json +6 -0
- package/skill/locale/zh.json +6 -0
- package/skill/skills/agent-company/SKILL.md +112 -0
- package/skill/skills/agent-company/assets/company-template/.gitignore.template +9 -0
- package/skill/skills/agent-company/assets/company-template/company/README.template.md +56 -0
- package/skill/skills/agent-company/assets/company-template/company/RULES.md +45 -0
- package/skill/skills/agent-company/assets/company-template/company/TASKS.md +10 -0
- package/skill/skills/agent-company/assets/company-template/company/agents/engineer.md +37 -0
- package/skill/skills/agent-company/assets/company-template/company/agents/manifest.json +10 -0
- package/skill/skills/agent-company/assets/company-template/company/agents/nicknames.json +38 -0
- package/skill/skills/agent-company/assets/company-template/company/agents/project-manager.md +24 -0
- package/skill/skills/agent-company/assets/company-template/company/agents/tester.md +22 -0
- package/skill/skills/agent-company/assets/company-template/company/company.json +10 -0
- package/skill/skills/agent-company/assets/company-template/company/kb/ADR.md +6 -0
- package/skill/skills/agent-company/assets/company-template/company/kb/PITFALLS.md +6 -0
- package/skill/skills/agent-company/assets/company-template/company/scripts/check.py +139 -0
- package/skill/skills/agent-company/assets/company-template/company/scripts/sync_agents.py +320 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Aetheric Enterprise/DESIGN.md +234 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Aetheric Enterprise/code.html +782 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Carbon MES Industrial Command/DESIGN.md +33 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Carbon MES Industrial Command/code.html +559 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/DevOps Packaging Console/DESIGN.md +205 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Fidelity Serif Modern/DESIGN.md +101 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Glacier Orchestration/DESIGN.md +35 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Glacier Orchestration/code.html +650 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Neo-Tokyo Hyper-Compute/DESIGN.md +243 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Neo-Tokyo Hyper-Compute/code.html +914 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Obsidian/DESIGN.md +32 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Obsidian/code.html +908 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/README.md +103 -0
- package/skill/skills/agent-company/assets/company-template/company/styles/Veridian Flow/DESIGN.md +90 -0
- package/skill/skills/agent-company/scripts/init_company.py +303 -0
package/README.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AI 公司(AI company)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
把一个项目变成**极简 AI 原生组织**:菜单里只有一个「AI 组织」入口,用户只给目标,总控自行判断轨道与角色,并委派子代理闭环。
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
用户目标
|
|
7
|
+
↓
|
|
8
|
+
总控(AI 组织预设)——判 L1/L2 轨道、写任务行、委派、验收
|
|
9
|
+
↓
|
|
10
|
+
engineer(L1 自闭环) | project-manager(L2 拆解) | tester(L2 对抗)
|
|
11
|
+
↓
|
|
12
|
+
check.py 全绿 + TASKS.md 标 done
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 安装与移除
|
|
16
|
+
|
|
17
|
+
这是一个 DSH bundle,可安装、可禁用、可移除。
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
# 安装(从 npm registry)
|
|
21
|
+
dsh plugin --profile <profile> add @yigh/dsh-agent-company
|
|
22
|
+
|
|
23
|
+
# 本地开发:从源码目录安装
|
|
24
|
+
dsh plugin --profile <profile> add /path/to/dsh-agent-company
|
|
25
|
+
|
|
26
|
+
# 移除
|
|
27
|
+
dsh plugin --profile <profile> remove @yigh/dsh-agent-company
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- 插件页的开关可禁用/启用;`remove_bundle` 则完全移除
|
|
31
|
+
- 移除后,技能、预设与任务看板开关会一并消失;工作区里已生成的 `company/` 目录是纯文本、未纳入 git,可自行删除
|
|
32
|
+
- 要求 DSH `>=0.2.2-rc.1`(由 `engines.dsh` 声明)
|
|
33
|
+
|
|
34
|
+
## 包含的组件
|
|
35
|
+
|
|
36
|
+
同一个包里的两个插件行(用子路径 specifier 引用):
|
|
37
|
+
|
|
38
|
+
| 组件 | 插件行 specifier | 作用 |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| AI 公司技能 | `@yigh/dsh-agent-company/skill` | 注册内嵌的 `agent-company` 技能(SKILL.md + 初始化脚本 + company 模板),模型可用 `skill` 工具加载 |
|
|
41
|
+
| AI 组织 | `@yigh/dsh-agent-company/preset-lead` | 唯一的会话预设:总控人格 + 三个委派工具 |
|
|
42
|
+
|
|
43
|
+
## 使用方法
|
|
44
|
+
|
|
45
|
+
1. 新建会话时在预设菜单里选 **AI 组织**(只有这一个入口,无需选择角色)。
|
|
46
|
+
2. 第一次进入某个项目时,总控会用 `skill` 工具加载内嵌的 agent-company 技能,按其流程为该交付项目生成内部工作区;生成前它会征询你选哪套角色昵称方案。
|
|
47
|
+
3. 之后直接给目标即可。总控自己判轨道、自己选角色、自己委派子代理;你只在需要定目标、批真实外部花销、里程碑验收时介入。
|
|
48
|
+
|
|
49
|
+
## 目录布局:内部与交付分离
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
<父级>/ 内部工作区根
|
|
53
|
+
├── company/ 内部载体:RULES / TASKS / kb / 角色定义 / 脚本 / 风格库
|
|
54
|
+
├── .gitignore 排除 company/
|
|
55
|
+
└── delivery/ ← 交付项目根(git 仓库)
|
|
56
|
+
├── .claude/agents/ 平台适配器(Claude 项目级子智能体)
|
|
57
|
+
├── .codex/agents/ 平台适配器(Codex 项目级子智能体,TOML)
|
|
58
|
+
├── .zcode/agents/ 平台适配器
|
|
59
|
+
├── .gitignore 排除适配器
|
|
60
|
+
└── backend/ frontend/ … 交付内容(唯一入库的部分)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
初始化时传入**交付项目根**,`company/` 自动生成到它的**父级**。代理在交付项目里工作,载体路径写作 `../company/...`。
|
|
64
|
+
|
|
65
|
+
平台适配器必须落在交付项目根——[Claude](https://code.claude.com/docs/zh-CN/sub-agents.md) 从 cwd 向上遍历查找 `.claude/agents/`,[Codex](https://github.com/qqqys/code-agent/blob/9af76308d81a0321dc9c72cd23cf1c9eaf94af41/docs/capabilities/subagents/agent-project-scope.md) 在项目根查找 `.codex/agents/`。
|
|
66
|
+
|
|
67
|
+
交付项目根记在 `company/company.json` 的 `project_root` 字段,`check.py` 据此定位校验目标。
|
|
68
|
+
|
|
69
|
+
## 角色与双轨路由
|
|
70
|
+
|
|
71
|
+
| 角色 | 何时出现 | 工作方式 |
|
|
72
|
+
|---|---|---|
|
|
73
|
+
| 总控 | 始终 | 判轨道、写任务行、委派、验收;**本人不直接干活** |
|
|
74
|
+
| engineer | L1 默认 | 认领任务 → 改代码 + 补单测 → `check.py` 全绿 → 标 done 并填产出指针 |
|
|
75
|
+
| project-manager | L2 按需 | 拆子任务、裁决文件边界、排前置依赖;结束即退出 |
|
|
76
|
+
| tester | L2 按需 | 高危变更边界对抗、发版前攒批全量回归 |
|
|
77
|
+
|
|
78
|
+
- **L1 快车道**:单点任务 → 直接委派 engineer → 一次闭环。
|
|
79
|
+
- **L2 标准道**:仅跨角色接力 / 长周期易中断 / 核心链路变更(鉴权、数据结构、跨模块契约)触发 → 先 PM 拆边界,再 engineer 执行,高危追加 tester 对抗。
|
|
80
|
+
- **并行拆分**:互不依赖的子任务拆成多行任务,文件范围写进任务行,多个 engineer 同时跑。
|
|
81
|
+
|
|
82
|
+
三个委派工具(`delegate_engineer` / `delegate_pm` / `delegate_tester`)都指向同一个预设,**角色差异由任务描述开头的 `[角色=engineer|pm|tester]` 标记判定**:带标记即该角色(只做该角色的事、绝不再次委派),不带标记即总控。
|
|
83
|
+
|
|
84
|
+
## 四个载体
|
|
85
|
+
|
|
86
|
+
| 载体 | 落点 |
|
|
87
|
+
|---|---|
|
|
88
|
+
| `company/RULES.md` | 唯一全局规则(内部工作区,冷启动只读) |
|
|
89
|
+
| `company/TASKS.md` | 唯一任务表与状态源(内部工作区,跨会话可见) |
|
|
90
|
+
| `company/kb/` | 异常知识库:PITFALLS 避坑三元组 + ADR 不可逆决策(踩坑才记,平时不读) |
|
|
91
|
+
| 代码 + Git | 过程记忆:测试全绿即闭环,过时文档 `git rm` |
|
|
92
|
+
|
|
93
|
+
**边界:`company/` 是内部工作区,不随交付项目提交。** 它位于交付项目的父级目录,交付仓库只留代码、测试、配置与文档。若项目此前把 `company/` 提交入库,执行 `git rm -r --cached company` 移出跟踪。
|
|
94
|
+
|
|
95
|
+
任务看板(Agent Team)仅对组织会话自动开启,与 `company/TASKS.md` 是两回事:看板是当次会话的实时占用视图,`TASKS.md` 才是唯一状态源。
|
|
96
|
+
|
|
97
|
+
## 已知限制
|
|
98
|
+
|
|
99
|
+
- 委派深度上限默认 1:被委派的子代理不能继续往下委派(防止级联开销)。
|
|
100
|
+
- 子代理是 `spawn` 出来的全新 agent,**看不到你的对话**,所以任务描述必须自包含(目标、文件范围、完成判据、角色规则)。
|
|
101
|
+
- 所有成员共享同一个 checkout,没有 worktree 隔离与文件锁;并行任务靠任务行声明文件范围来避免互相覆盖。
|
|
102
|
+
- `agentPreset` 只被 in-process spawn 支持;fork 与外部后端(Codex / Claude Code / ACP)不适用。
|
|
103
|
+
- 技能只在装上本 bundle 后可用;用户目录 `~/.dsh/skills/agent-company` 的同名技能会优先于内嵌版,二者勿同时保留。
|
|
104
|
+
|
|
105
|
+
## 许可
|
|
106
|
+
|
|
107
|
+
MIT
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
- insert:
|
|
2
|
+
# ---------- A 层:内嵌技能 provider ----------
|
|
3
|
+
- id: agent-company-skill
|
|
4
|
+
name: '@yigh/dsh-agent-company/skill'
|
|
5
|
+
|
|
6
|
+
# ---------- B 层:唯一入口 preset ----------
|
|
7
|
+
- id: preset-company-lead
|
|
8
|
+
name: '@yigh/dsh-agent-company/preset-lead'
|
|
9
|
+
config:
|
|
10
|
+
id: company-lead
|
|
11
|
+
name: AI 组织
|
|
12
|
+
description: 极简 AI 原生组织:总控按目标自行判断 L1/L2 轨道与角色,自动委派 engineer / PM / tester 子代理闭环。用户只需给目标,无需选择角色。
|
|
13
|
+
order: 10
|
|
14
|
+
plugins:
|
|
15
|
+
- id: persona
|
|
16
|
+
name: '@deepseek-ai/dsh-persona'
|
|
17
|
+
config:
|
|
18
|
+
prefix: >-
|
|
19
|
+
你是「AI 组织」——一个极简 AI 原生组织,也是用户唯一需要选择的入口。
|
|
20
|
+
你就是总控:按用户目标自行判断轨道与角色,不要问用户"要以哪个身份工作"。
|
|
21
|
+
|
|
22
|
+
【这是智能体组织,不是单兵模式】遇到任何任务,你本人不直接干活,
|
|
23
|
+
你的工作只有判轨道、写任务行、委派、验收。实施/拆解/测试一律委派子代理完成,
|
|
24
|
+
check.py 也由被委派的 engineer 执行;你只汇总结果、审 diff、播报。
|
|
25
|
+
单条 L1 任务也必须委派一个 engineer——绝不自己做代码改动。
|
|
26
|
+
唯一全局规则在 ../company/RULES.md,唯一任务表在 ../company/TASKS.md。
|
|
27
|
+
冷启动只读这两个文件;报错、返工、接手才查 ../company/kb/PITFALLS.md。
|
|
28
|
+
若交付项目的父级还没有 company/,先用 skill 工具加载 agent-company 技能,
|
|
29
|
+
按其初始化流程为该交付项目生成(初始化前征询用户选哪套昵称方案),
|
|
30
|
+
生成后向用户说明冷启动只读 ../company/RULES.md、任务写 ../company/TASKS.md、
|
|
31
|
+
校验用 ../company/scripts/check.py。
|
|
32
|
+
|
|
33
|
+
【两种身份,按任务描述开头判定】
|
|
34
|
+
任务描述以 [角色=engineer] / [角色=pm] / [角色=tester] 开头时,你就是那个角色,
|
|
35
|
+
只做该角色的事、绝不委派、绝不写任务行(只改自己那行状态)。
|
|
36
|
+
任务描述没有 [角色=...] 标记时,你才是总控,按下面的规则调度。
|
|
37
|
+
|
|
38
|
+
【总控职责】
|
|
39
|
+
1. 把用户目标写成任务行(ID / 轨道 / 状态 / 前置 / 目标 / 产出指针)。
|
|
40
|
+
2. 判轨道:L1 单点任务直接委派 engineer;L2(跨角色接力 / 长周期易中断 /
|
|
41
|
+
核心链路变更:鉴权、数据结构、跨模块契约)先委派 PM 拆边界与依赖,
|
|
42
|
+
再委派 engineer 执行,高危变更追加 tester 对抗;并行子任务拆成 Tn-a/Tn-b,
|
|
43
|
+
任务行写明互不重叠的文件范围。
|
|
44
|
+
3. 轮末自查:在途任务都有活跃实例认领;只剩等待时结束回合,子代理完成通知会唤醒你;
|
|
45
|
+
断档当轮续派。合龙时审最终 diff、跑 check.py、给用户播报主干一行 + 可点链接。
|
|
46
|
+
验收时确认交付项目根有 README.md 说明书(简介、技术栈、启动步骤、目录结构、
|
|
47
|
+
API 概览、测试与校验命令六项齐全),缺失则退回补齐,不得判 done。
|
|
48
|
+
4. 定目标、真实外部花销、里程碑验收由人类决策者负责;拿不准用 ask_user_question 问,
|
|
49
|
+
不要指望审批兜底。
|
|
50
|
+
|
|
51
|
+
【三个内部角色 —— 由你判断何时使用,用户不参与选择】
|
|
52
|
+
engineer(默认,L1 自闭环):认领任务(TASKS.md 状态改 doing)→ 改代码 + 补单测 →
|
|
53
|
+
python ../company/scripts/check.py 全绿 → 确保交付项目根有 README.md 说明书
|
|
54
|
+
(简介、技术栈、启动步骤、目录结构、API 概览、测试与校验命令)→ 标 done 并填产出指针。
|
|
55
|
+
不写过程文档、不申请 PM 审查、不做独立测试移交。遇坑记 kb/PITFALLS.md 一行(现象→根因→解法),
|
|
56
|
+
不可逆决策记 kb/ADR.md,小步提交,过时文档 git rm。
|
|
57
|
+
project-manager(L2 按需):把任务拆成可独立归属的子任务写入 TASKS.md,
|
|
58
|
+
并行任务写明互不重叠的文件范围、冲突当场裁决;只排前置不排时间轴、不做工时统计;
|
|
59
|
+
发版前确认高危变更已过 tester;任务断档直接改派。事情结束即退出,不常驻、不巡检 L1。
|
|
60
|
+
tester(L2 按需):只对高危变更(鉴权绕过 / 数据结构迁移 / 跨模块契约)做边界对抗,
|
|
61
|
+
发版前攒批全量回归。构造越界、畸形、并发用例;发现缺陷直接写新任务行
|
|
62
|
+
(轨道 L2、前置 = 当前任务)交 engineer 修;结论只写通过 / 不通过、证据路径、复现命令。
|
|
63
|
+
测试不碰生产数据。
|
|
64
|
+
|
|
65
|
+
【委派】
|
|
66
|
+
用 delegate_engineer / delegate_pm / delegate_tester 拉起子代理。
|
|
67
|
+
子代理看不到本对话,任务描述必须自包含:开头写 [角色=engineer|pm|tester],
|
|
68
|
+
随后写清目标、文件范围、完成判据及该角色的规则摘要。
|
|
69
|
+
被委派的子代理只按该角色干活,不要再往下委派;高危变更完成后必须交 tester 对抗才可 done。
|
|
70
|
+
三个工具都指向同一个预设,角色差异只来自任务描述里的 [角色=...] 标记。
|
|
71
|
+
- id: agent-instructions
|
|
72
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
73
|
+
config:
|
|
74
|
+
maxBytes: 65536
|
|
75
|
+
- id: time-context
|
|
76
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
77
|
+
- id: tool-bash
|
|
78
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
79
|
+
disabled: !!js process.platform === 'win32'
|
|
80
|
+
- id: tool-pwsh
|
|
81
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
82
|
+
disabled: !!js process.platform !== 'win32'
|
|
83
|
+
- id: tool-fs
|
|
84
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
85
|
+
- id: tool-fs-search
|
|
86
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
87
|
+
config:
|
|
88
|
+
sampleOverCapGlobResults: false
|
|
89
|
+
- id: tool-skill
|
|
90
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
91
|
+
- id: tool-ask-user
|
|
92
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
93
|
+
- id: tool-present
|
|
94
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
95
|
+
- id: delegation
|
|
96
|
+
name: cordis:group
|
|
97
|
+
group: true
|
|
98
|
+
isolate:
|
|
99
|
+
workflowEngine: true
|
|
100
|
+
config:
|
|
101
|
+
- id: tool-subagent-control
|
|
102
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
103
|
+
config:
|
|
104
|
+
interrupt: false
|
|
105
|
+
- id: delegate-engineer
|
|
106
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
107
|
+
config:
|
|
108
|
+
provider: spawn
|
|
109
|
+
toolName: delegate_engineer
|
|
110
|
+
agentPreset: company-lead
|
|
111
|
+
allowedAgentPresets:
|
|
112
|
+
- company-lead
|
|
113
|
+
- id: delegate-pm
|
|
114
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
115
|
+
config:
|
|
116
|
+
provider: spawn
|
|
117
|
+
toolName: delegate_pm
|
|
118
|
+
agentPreset: company-lead
|
|
119
|
+
allowedAgentPresets:
|
|
120
|
+
- company-lead
|
|
121
|
+
- id: delegate-tester
|
|
122
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
123
|
+
config:
|
|
124
|
+
provider: spawn
|
|
125
|
+
toolName: delegate_tester
|
|
126
|
+
agentPreset: company-lead
|
|
127
|
+
allowedAgentPresets:
|
|
128
|
+
- company-lead
|
package/icon.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#1f2937"/>
|
|
3
|
+
<rect x="12" y="12" width="40" height="8" rx="2" fill="#60a5fa"/>
|
|
4
|
+
<rect x="12" y="28" width="26" height="6" rx="2" fill="#93c5fd"/>
|
|
5
|
+
<rect x="12" y="38" width="32" height="6" rx="2" fill="#93c5fd"/>
|
|
6
|
+
<rect x="12" y="48" width="20" height="6" rx="2" fill="#93c5fd"/>
|
|
7
|
+
<circle cx="48" cy="31" r="7" fill="#34d399"/>
|
|
8
|
+
<circle cx="48" cy="51" r="7" fill="#fbbf24"/>
|
|
9
|
+
</svg>
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "AI company",
|
|
4
|
+
"description": "Turn a project into a minimal AI-native organization. The menu has a single AI company entry: the user only states a goal, the lead decides L1/L2 routing and the role itself, and delegates to engineer / project manager / tester subagents. Includes the embedded agent-company skill package (four core carriers, three role definitions, the init script and the company template)."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yigh/dsh-agent-company",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "skill/index.js",
|
|
6
|
+
"icon": "icon.svg",
|
|
7
|
+
"description": "AI 公司 — 极简 AI 原生组织的 DeepSeek Harness 插件:内嵌 agent-company 技能,并提供唯一入口「AI 组织」预设,总控自行判断 L1/L2 轨道与角色,委派 engineer / 调度者 / tester 子代理闭环。",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"deepseek-harness",
|
|
10
|
+
"dsh",
|
|
11
|
+
"cordis",
|
|
12
|
+
"plugin",
|
|
13
|
+
"bundle",
|
|
14
|
+
"agent",
|
|
15
|
+
"multi-agent",
|
|
16
|
+
"organization"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./skill/index.js",
|
|
21
|
+
"./skill": "./skill/index.js",
|
|
22
|
+
"./preset-lead": "./preset-lead/index.js",
|
|
23
|
+
"./locale/*.json": "./locale/*.json",
|
|
24
|
+
"./icon": "./icon.svg"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"cordis.patch.yml",
|
|
28
|
+
"package.json",
|
|
29
|
+
"README.md",
|
|
30
|
+
"icon.svg",
|
|
31
|
+
"locale/*.json",
|
|
32
|
+
"skill/index.js",
|
|
33
|
+
"skill/icon.svg",
|
|
34
|
+
"skill/locale/*.json",
|
|
35
|
+
"skill/skills/**",
|
|
36
|
+
"preset-lead/index.js",
|
|
37
|
+
"preset-lead/locale/*.json"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"dsh": ">=0.2.2-rc.1"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@deepseek-ai/cordis": "~4.1.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@deepseek-ai/cordis": "4.1.0"
|
|
47
|
+
},
|
|
48
|
+
"dsh": {
|
|
49
|
+
"bundle": {
|
|
50
|
+
"patch": "./cordis.patch.yml"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Wrapper for the official @deepseek-ai/dsh-agent-preset plugin.
|
|
2
|
+
//
|
|
3
|
+
// Re-exports the shipped implementation so the row is a real preset declaration,
|
|
4
|
+
// while this package's own locale supplies the Plugins-page row title and
|
|
5
|
+
// description (each row of a bundle shows its own package's metadata).
|
|
6
|
+
//
|
|
7
|
+
// @deepseek-ai/dsh-agent-preset ships inside the DSH installation, not in the
|
|
8
|
+
// profile's node_modules, so a bare specifier cannot resolve it from here.
|
|
9
|
+
// Locate the install root cross-platform:
|
|
10
|
+
// - macOS Electron: <app>/Contents/Resources/app.asar (process.resourcesPath)
|
|
11
|
+
// - Windows Electron: <install>/resources/app.asar (process.resourcesPath)
|
|
12
|
+
// - DSH_INSTALL_DIR when provided (points at .../dsh/node_modules/@deepseek-ai/dsh)
|
|
13
|
+
// Deriving resources from dirname(process.execPath) is WRONG on macOS: the
|
|
14
|
+
// executable is in Contents/MacOS while resources live in Contents/Resources.
|
|
15
|
+
|
|
16
|
+
import fs from 'node:fs'
|
|
17
|
+
import path from 'node:path'
|
|
18
|
+
import { pathToFileURL } from 'node:url'
|
|
19
|
+
|
|
20
|
+
const REL = ['app.asar', 'dsh', 'node_modules', '@deepseek-ai', 'dsh-agent-preset', 'lib', 'index.js']
|
|
21
|
+
|
|
22
|
+
function findEntry() {
|
|
23
|
+
const candidates = []
|
|
24
|
+
|
|
25
|
+
// 1) Electron 的 resources 目录(跨平台最可靠)。
|
|
26
|
+
if (process.resourcesPath) candidates.push(path.join(process.resourcesPath, ...REL))
|
|
27
|
+
// 2) DSH_INSTALL_DIR 环境变量:值为 <install>/dsh/node_modules/@deepseek-ai/dsh
|
|
28
|
+
// 向上三级回到 <install> 后拼相对路径。
|
|
29
|
+
if (process.env.DSH_INSTALL_DIR) {
|
|
30
|
+
const root = path.resolve(process.env.DSH_INSTALL_DIR, '..', '..', '..')
|
|
31
|
+
candidates.push(path.join(root, ...REL))
|
|
32
|
+
}
|
|
33
|
+
// 3) execPath 推导(旧逻辑,仅作最后兜底,Windows 正确、macOS 可能失败)。
|
|
34
|
+
candidates.push(path.join(path.dirname(process.execPath), 'resources', ...REL))
|
|
35
|
+
|
|
36
|
+
for (const file of candidates) {
|
|
37
|
+
try {
|
|
38
|
+
if (fs.existsSync(file)) return pathToFileURL(file).href
|
|
39
|
+
} catch { /* 忽略不可访问的候选路径 */ }
|
|
40
|
+
}
|
|
41
|
+
throw new Error('[ai-company] cannot locate @deepseek-ai/dsh-agent-preset; tried: '
|
|
42
|
+
+ candidates.join(' | '))
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const official = await import(findEntry())
|
|
46
|
+
|
|
47
|
+
export default official.default
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "AI company",
|
|
4
|
+
"description": "The single entry point to the AI-native organization. The user only states a goal; no role selection is needed. The lead decides L1/L2 routing and the role itself, reads and writes RULES/TASKS, writes task rows, and delegates to engineer / project manager / tester subagents. Goals, real external spend, and milestone acceptance stay with the human decision maker."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/skill/icon.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#1f2937"/>
|
|
3
|
+
<rect x="12" y="12" width="40" height="8" rx="2" fill="#60a5fa"/>
|
|
4
|
+
<rect x="12" y="28" width="26" height="6" rx="2" fill="#93c5fd"/>
|
|
5
|
+
<rect x="12" y="38" width="32" height="6" rx="2" fill="#93c5fd"/>
|
|
6
|
+
<rect x="12" y="48" width="20" height="6" rx="2" fill="#93c5fd"/>
|
|
7
|
+
<circle cx="48" cy="31" r="7" fill="#34d399"/>
|
|
8
|
+
<circle cx="48" cy="51" r="7" fill="#fbbf24"/>
|
|
9
|
+
</svg>
|
package/skill/index.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled `agent-company` skill provider.
|
|
3
|
+
*
|
|
4
|
+
* The bundle carries the complete skill directory (SKILL.md + scripts + the
|
|
5
|
+
* company template assets). Registering it as a runtime skill makes it
|
|
6
|
+
* discoverable through the ordinary `skill` tool, without depending on a copy
|
|
7
|
+
* in ~/.dsh/skills.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { readFile } from 'node:fs/promises'
|
|
11
|
+
import { fileURLToPath } from 'node:url'
|
|
12
|
+
|
|
13
|
+
const PROVIDER_NAME = 'agent-company'
|
|
14
|
+
const SKILL_NAME = 'agent-company'
|
|
15
|
+
const SKILL_BODY_URL = new URL('./skills/agent-company/SKILL.md', import.meta.url)
|
|
16
|
+
const RESOURCE_BASE = {
|
|
17
|
+
kind: 'directory',
|
|
18
|
+
path: fileURLToPath(new URL('./skills/agent-company/', import.meta.url)),
|
|
19
|
+
}
|
|
20
|
+
const INVOCATION = { modelInvocable: true, userInvocable: true }
|
|
21
|
+
|
|
22
|
+
// Verbatim from SKILL.md frontmatter.
|
|
23
|
+
const DESCRIPTION = '在任意项目初始化"极简 AI 原生组织"——4 个核心载体(RULES.md 唯一规则 / TASKS.md 唯一任务表 / kb 异常知识库 / 代码与 Git 记忆),3 类角色(人类决策者、常驻 T 型 engineer、按需唤醒的 project-manager 与 tester),双轨路由(L1 自测闭环快车道、L2 跨角色与高危变更标准道)。当用户要以 AI 代理团队运作项目、初始化公司/团队模式、或要求极简多代理协作时使用;即使用户只说"帮我组个团队把这个项目做出来"也应触发。'
|
|
24
|
+
|
|
25
|
+
const CANDIDATE = {
|
|
26
|
+
name: SKILL_NAME,
|
|
27
|
+
description: DESCRIPTION,
|
|
28
|
+
invocation: INVOCATION,
|
|
29
|
+
provider: PROVIDER_NAME,
|
|
30
|
+
source: 'bundled',
|
|
31
|
+
resourceBase: RESOURCE_BASE,
|
|
32
|
+
rank: 600,
|
|
33
|
+
locator: SKILL_BODY_URL,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const provider = {
|
|
37
|
+
name: PROVIDER_NAME,
|
|
38
|
+
list: () => Promise.resolve([CANDIDATE]),
|
|
39
|
+
async get() {
|
|
40
|
+
return {
|
|
41
|
+
name: CANDIDATE.name,
|
|
42
|
+
description: CANDIDATE.description,
|
|
43
|
+
invocation: CANDIDATE.invocation,
|
|
44
|
+
provider: CANDIDATE.provider,
|
|
45
|
+
source: CANDIDATE.source,
|
|
46
|
+
resourceBase: CANDIDATE.resourceBase,
|
|
47
|
+
content: await readFile(SKILL_BODY_URL, 'utf8'),
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Cordis plugin name. */
|
|
53
|
+
export const name = 'agent-company-skill'
|
|
54
|
+
/** Services required by the skill provider and the Team auto-enable hook. */
|
|
55
|
+
export const inject = ['skills', 'agents']
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Register the bundled `agent-company` skill and auto-enable the Team board
|
|
59
|
+
* for sessions that selected the `company-lead` preset.
|
|
60
|
+
*
|
|
61
|
+
* The host profile already provides `agentTeams`, `tool-agent-team` and the
|
|
62
|
+
* browser board globally. Mounting another agent-team inside the preset would
|
|
63
|
+
* double-register the `agentTeam` projection. Instead we gate the existing
|
|
64
|
+
* global service on the session preset, so only organization sessions get the
|
|
65
|
+
* board and no global default is changed.
|
|
66
|
+
*/
|
|
67
|
+
export function apply(ctx) {
|
|
68
|
+
const disposeSkill = ctx.skills.registerProvider(() => provider)
|
|
69
|
+
|
|
70
|
+
const enableTeamFor = async (agent, signal) => {
|
|
71
|
+
if (!agent || agent.session.header.origin === 'subagent') return
|
|
72
|
+
const agentTeams = ctx.get('agentTeams')
|
|
73
|
+
if (!agentTeams || agentTeams.isEnabled(agent)) return
|
|
74
|
+
try {
|
|
75
|
+
await agentTeams.setEnabled(agent, true, signal)
|
|
76
|
+
} catch (error) {
|
|
77
|
+
ctx.logger.warn('agent-company: could not enable Team for company session:', error)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Path 1: session created with the organization preset already selected.
|
|
82
|
+
// Resumes keep their saved Team mode; subagents are not tree roots.
|
|
83
|
+
ctx.on('agent/created', async ({ agent, source, signal }) => {
|
|
84
|
+
if (source !== 'startup' || agent.session.header.origin === 'subagent') return
|
|
85
|
+
const agentPresets = ctx.get('agentPresets')
|
|
86
|
+
if (!agentPresets || agentPresets.presetForSession(agent.session) !== 'company-lead') return
|
|
87
|
+
await enableTeamFor(agent, signal)
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
// Path 2: preset chosen on a blank session after the Agent already exists.
|
|
91
|
+
ctx.on('agent-preset/selected', async (sessionId, presetId) => {
|
|
92
|
+
if (presetId !== 'company-lead') return
|
|
93
|
+
const agents = ctx.get('agents')
|
|
94
|
+
if (!agents) return
|
|
95
|
+
await enableTeamFor(agents.get(sessionId))
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
return disposeSkill
|
|
99
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "AI company skill",
|
|
4
|
+
"description": "The AI company skill package: the embedded agent-company skill (four core carriers and three role definitions of the minimal AI-native organization), its initialization script, and the company template. Loaded by the AI company preset; the model can load it with the skill tool to generate the company/ directory in a project."
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-company
|
|
3
|
+
description: 在任意项目初始化"极简 AI 原生组织"——4 个核心载体(RULES.md 唯一规则 / TASKS.md 唯一任务表 / kb 异常知识库 / 代码与 Git 记忆),3 类角色(人类决策者、常驻 T 型 engineer、按需唤醒的 project-manager 与 tester),双轨路由(L1 自测闭环快车道、L2 跨角色与高危变更标准道)。当用户要以 AI 代理团队运作项目、初始化公司/团队模式、或要求极简多代理协作时使用;即使用户只说"帮我组个团队把这个项目做出来"也应触发。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Agent Company — 极简 AI 原生组织
|
|
7
|
+
|
|
8
|
+
一个不写过程文档的代理团队:规则一张纸,任务一张表,踩过的坑才记账,其余交给代码、测试与 Git。
|
|
9
|
+
|
|
10
|
+
## 何时使用
|
|
11
|
+
|
|
12
|
+
- 用户要以代理团队形式推进项目、初始化"公司/团队模式"。
|
|
13
|
+
- 用户要求把多代理协作收敛到最小、去过程文档、去拟人化管理。
|
|
14
|
+
|
|
15
|
+
不适用:单次问答、不需要跨轮次协作的小任务。
|
|
16
|
+
|
|
17
|
+
## 初始化
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
python <本技能目录>/scripts/init_company.py <交付项目根> [--name "公司名称"] [--nickname-set <方案>] [--platform zcode|claude|codex|all] [--dry-run]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
初始化前**主动征询用户选哪套角色昵称**(自然元素风 / 星辰航海风 / 四季生长风,展示名称与示例昵称,不要要求用户输入方案 ID),征询结果传 `--nickname-set`;终端手动操作可加 `--ask-nickname`。`--name` 默认易秦信息科技有限公司。
|
|
24
|
+
|
|
25
|
+
### 目录约定(内部与交付分离)
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
<父级>/company/ 内部工作区:RULES / TASKS / kb / 角色定义 / 脚本 / 风格库
|
|
29
|
+
<交付项目根>/.claude/ 平台适配器(Claude/Codex 只在项目根查找子智能体)
|
|
30
|
+
<交付项目根>/.codex/
|
|
31
|
+
<交付项目根>/.zcode/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
传入的是**交付项目根**,`company/` 自动生成到它的**父级**。代理在交付项目里工作,载体路径写作 `../company/...`。
|
|
35
|
+
|
|
36
|
+
生成 `company/`(4 载体 + 3 角色定义 + 昵称方案 + 风格库 + 脚本)与平台适配器。已存在文件一律跳过,幂等可重跑。初始化后向用户说明三件事:冷启动只读 `../company/RULES.md`;任务写 `../company/TASKS.md`;校验命令在 `../company/scripts/check.py` 按交付项目技术栈适配。
|
|
37
|
+
|
|
38
|
+
平台适配器由 `company/scripts/sync_agents.py` 生成,支持三个平台:`zcode`(`.zcode/agents/`)、`claude`(`.claude/agents/`)、`codex`(`.codex/agents/`,TOML 格式的自定义 agent,含 name / description / developer_instructions);`--platform all` 一次生成全部。DSH 的 preset 由 bundle patch 声明、不扫描目录,因此不生成 `.dsh/agents/`。修改 `company/agents/*.md` 后重新跑 `python ../company/scripts/sync_agents.py --platform all` 同步。
|
|
39
|
+
|
|
40
|
+
## 四个载体
|
|
41
|
+
|
|
42
|
+
| 载体 | 作用 | 规则 |
|
|
43
|
+
|------|------|------|
|
|
44
|
+
| `company/RULES.md`(≤50 行) | 唯一全局规则 | 代理冷启动只读此文件 |
|
|
45
|
+
| `company/TASKS.md` | 唯一任务表与状态源 | ID / 轨道 / 状态 / 前置 / 目标 / 产出指针 |
|
|
46
|
+
| `company/kb/` | 异常知识库 | PITFALLS 避坑三元组 + ADR 不可逆决策;平时不读、踩坑才记 |
|
|
47
|
+
| 代码 + Git | 过程记忆 | 测试全绿即闭环;过时文档 `git rm`,历史交给 Git |
|
|
48
|
+
|
|
49
|
+
**边界:`company/` 是内部工作区,不随交付项目提交。** 载体、角色定义、kb、脚本、风格库都属于内部产物,位于交付项目的父级目录;git 仓库只留交付内容(代码、测试、配置、文档)。平台适配器是生成产物,同样不提交。若某个项目此前把 `company/` 提交入库,跑 `git rm -r --cached company` 把它移出跟踪(`init_company.py` 会检测并提示)。
|
|
50
|
+
|
|
51
|
+
## 公司档案、昵称与风格库
|
|
52
|
+
|
|
53
|
+
- `company/company.json`:公司名、简称、业务描述、当前昵称方案(`nickname_set`)与交付项目根(`project_root`)。
|
|
54
|
+
- `company/agents/nicknames.json`:三套昵称方案;生成适配器时在角色标题下注入「公司别名」行。切换方案:`python ../company/scripts/sync_agents.py --nickname-set <id>`。
|
|
55
|
+
- `company/styles/`:界面风格资产库(`DESIGN.md` 配料体系 + `code.html` 页面模板);**用法与 code.html 的合理使用边界见其 README**,界面任务先选一套为基准整合(禁照搬),产物写源码目录 `design/DESIGN.md`。
|
|
56
|
+
- 该库初始只含 8 套通用默认风格;**项目形成的新风格沉淀回本项目自己的 `company/styles/`**,不写回插件模板——插件模板是给任意新公司用的初始资产,不应夹带某个具体项目的风格。
|
|
57
|
+
- 落地时容易漏掉的:分层表面色阶、高度阴影分档、粘性顶栏/表头、状态胶囊、空态与加载态构件、`:focus-visible` 交互态、图标体例统一、窄屏 `min-width: 0`。
|
|
58
|
+
- **界面改动必须真实浏览器过页**(不只是跑 build);后端不可登录时用浏览器路由拦截喂真实结构的数据,并量测 `scrollWidth` 与 `innerWidth` 查横向溢出。
|
|
59
|
+
|
|
60
|
+
## 角色
|
|
61
|
+
|
|
62
|
+
- **人类决策者**:定目标、批真实外部花销、里程碑验收。不参与日常执行。
|
|
63
|
+
- **engineer**(常驻):T 型执行代理,默认 L1,一人闭环。
|
|
64
|
+
- **project-manager**(按需):跨岗拆解、边界裁决、里程碑协调;事情结束即退出。
|
|
65
|
+
- **tester**(按需):高危变更边界对抗、发版前攒批全量回归。
|
|
66
|
+
|
|
67
|
+
## 双轨路由
|
|
68
|
+
|
|
69
|
+
- **L1 快车道(默认)**:单点任务。engineer 改代码 + 补单测 → `python ../company/scripts/check.py` 全绿(Lint / 类型 / 单测 / 构建)→ 确认交付项目根有 README.md 说明书 → TASKS.md 标 done。无过程文档、无移交、无 PM 审查。
|
|
70
|
+
- **L2 标准道(仅三类触发)**:跨角色接力 / 长周期易中断 / 核心链路变更(鉴权、数据结构、跨模块契约)。先唤醒 project-manager 拆边界与依赖;高危变更交 tester 对抗验证;任务行留 ≤100 字交接指针(已完成 / 下一步 / 关键文件),接手者据此冷启动。
|
|
71
|
+
- **并行拆分(L1 的子形态)**:简单任务可拆成互不依赖的子任务时,拆成 Tn-a / Tn-b 多行,轨道仍为 L1,目标列写明各自文件范围;总控并行拉起多个 engineer 实例,各自跑 check.py 闭环;需要合龙时加一行,前置写全部子任务。边界不清或共享文件切不开时转 L2,由 PM 拆。
|
|
72
|
+
|
|
73
|
+
## 行政职能的工程替代
|
|
74
|
+
|
|
75
|
+
- 测试与审计 → `check.py` 一键校验 + tester 攒批回归。
|
|
76
|
+
- 财务与工时 → 平台 API 硬限额;真实外部花销由人类决策者批。
|
|
77
|
+
- 人事与奖惩 → 提示词/模型迭代 + PITFALLS 规则沉淀。
|
|
78
|
+
|
|
79
|
+
## 冷启动协议(总控)
|
|
80
|
+
|
|
81
|
+
1. 只读 `../company/RULES.md` 与 `../company/TASKS.md`。
|
|
82
|
+
2. 新需求写任务行(含轨道与目标),按路由分派;L1 直接交 engineer,L2 先唤醒 PM;可并行时拆成子任务行并并行拉起多个 engineer。
|
|
83
|
+
3. 除报错、返工、接手外不读 kb;不写 status / progress / 日报 / 甘特图。
|
|
84
|
+
4. 给用户的文件指引写可点链接;播报主干一行,细节给指针。
|
|
85
|
+
5. 轮末自查:该分派的任务都分派了吗?在途任务都有活跃实例认领吗?断档当轮续派。
|
|
86
|
+
6. 验收交付:交付项目根必须有 README.md 说明书(简介、技术栈、启动步骤、目录结构、API 概览、测试与校验命令),缺则退回补齐。
|
|
87
|
+
|
|
88
|
+
## 交付说明书(README.md)
|
|
89
|
+
|
|
90
|
+
**每个交付项目都必须有 README.md**,缺它不得判 done。六项必含内容:
|
|
91
|
+
|
|
92
|
+
| 章节 | 内容 |
|
|
93
|
+
|------|------|
|
|
94
|
+
| 项目简介 | 做什么、给谁用、解决什么问题 |
|
|
95
|
+
| 技术栈 | 语言 / 框架 / 存储 / 依赖与版本 |
|
|
96
|
+
| 启动步骤 | 可直接复制的命令序列,含依赖安装与环境准备 |
|
|
97
|
+
| 目录结构 | 顶层目录与关键子目录的职责说明 |
|
|
98
|
+
| API 概览 | 主要端点一览(方法、路径、用途),必要时给请求/响应示例 |
|
|
99
|
+
| 测试与校验命令 | 怎么跑单测、怎么跑 lint/构建,以及一键校验命令 |
|
|
100
|
+
|
|
101
|
+
README 随代码一起进交付仓库(属交付内容,不是内部载体)。写完若技术栈或启动方式变了,同步更新 README——它是交付的一部分,不是事后补的文档。
|
|
102
|
+
|
|
103
|
+
新项目初始化时,`company/README.template.md` 提供了带六项章节的骨架;engineer 把它复制到**交付项目根**并填写(模板本身留在内部工作区,不进仓库)。
|
|
104
|
+
|
|
105
|
+
## 维护
|
|
106
|
+
|
|
107
|
+
- 角色定义唯一来源 `company/agents/*.md`;改后跑 `python ../company/scripts/sync_agents.py --platform all` 重新生成三平台适配器,不手改 `.zcode/agents/` 等生成目录。
|
|
108
|
+
- `RULES.md` 超过 50 行时先删再写:只保留会被违反的规则。
|
|
109
|
+
|
|
110
|
+
## 已废除(相对拟人化旧版)
|
|
111
|
+
|
|
112
|
+
财务 / 人事 / 绩效奖惩、CMMI 过程域、编号文档体系、甘特图与 status/progress 多头状态、inbox/outbox 固定消息头、手工 archive 打包蒸馏、分散章程与编号红线、一刀切的"无萃取不予 done"门禁。
|