sumulige-claude 1.5.2 → 1.6.0

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 CHANGED
@@ -1,682 +1,433 @@
1
- # Sumulige Claude
1
+ <p align="center">
2
+ <h1 align="center">Sumulige Claude</h1>
3
+ <p align="center">
4
+ <strong>The Universal Agent Harness for AI Coding Assistants</strong>
5
+ </p>
6
+ <p align="center">
7
+ Transform Claude Code and OpenAI Codex into intelligent, memory-aware development teams
8
+ </p>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/sumulige-claude"><img src="https://badge.fury.io/js/sumulige-claude.svg" alt="npm version"></a>
13
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
14
+ <a href="#"><img src="https://img.shields.io/badge/platforms-Claude%20%7C%20Codex-blue.svg" alt="Platforms"></a>
15
+ </p>
2
16
 
3
- **The Best Agent Harness for Claude Code**
4
- **Claude Code 的终极 Agent 编排框架**
17
+ ---
5
18
 
6
- [![npm version](https://badge.fury.io/js/sumulige-claude.svg)](https://www.npmjs.com/package/sumulige-claude)
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
19
+ ## Quick Start
8
20
 
9
- ---
21
+ ```bash
22
+ # Install
23
+ npm install -g sumulige-claude
10
24
 
11
- ## Table of Contents / 目录
25
+ # Initialize in your project
26
+ smc template
27
+
28
+ # Start Claude Code
29
+ claude
30
+ ```
12
31
 
13
- 1. [Layer 1: What is it? / 第一层:它是什么?](#layer-1-what-is-it--第一层它是什么)
14
- 2. [Layer 2: Why use it? / 第二层:为什么使用它?](#layer-2-why-use-it--第二层为什么使用它)
15
- 3. [Layer 3: Core Concepts / 第三层:核心概念](#layer-3-core-concepts--第三层核心概念)
16
- 4. [Layer 4: Quick Start / 第四层:快速开始](#layer-4-quick-start--第四层快速开始)
17
- 5. [Layer 5: Commands / 第五层:命令参考](#layer-5-commands--第五层命令参考)
18
- 6. [Layer 6: Advanced / 第六层:高级配置](#layer-6-advanced--第六层高级配置)
19
- 7. [Layer 7: Lifecycle Hooks / 第七层:生命周期钩子](#layer-7-lifecycle-hooks--第七层生命周期钩子)
20
- 8. [Layer 8: Data Flow Architecture / 第八层:数据流转架构](#layer-8-data-flow-architecture--第八层数据流转架构)
21
- 9. [Layer 9: Config Inheritance / 第九层:配置分层继承](#layer-9-config-inheritance--第九层配置分层继承)
22
- 10. [Documentation / 文档](#documentation--文档)
32
+ **That's it.** Your project now has AI memory, slash commands, and quality gates.
23
33
 
24
34
  ---
25
35
 
26
- ## Layer 1: What is it? / 第一层:它是什么?
36
+ ## Why Sumulige Claude?
27
37
 
28
- ### The 30-Second Version / 30 秒版本
38
+ | Problem | Before | After |
39
+ |---------|--------|-------|
40
+ | AI forgets context every session | Repeat project structure constantly | Automatic memory via ThinkingLens |
41
+ | Inconsistent code quality | Manual reviews, missed issues | Quality Gate auto-checks |
42
+ | Works with Claude, need Codex too | Maintain two config systems | One config, both platforms |
29
43
 
30
- **English** | Sumulige Claude is a CLI tool that makes Claude Code smarter by:
31
- - Adding specialized AI agents (like a team of experts)
32
- - Providing ready-to-use project templates
33
- - Managing reusable "skills" for common tasks
44
+ ---
34
45
 
35
- **中文** | Sumulige Claude 是一个让 Claude Code 更聪明的 CLI 工具:
36
- - 添加专业的 AI Agent(像专家团队)
37
- - 提供开箱即用的项目模板
38
- - 管理可复用的"技能"
46
+ ## Features
39
47
 
40
- ### The 5-Minute Version / 5 分钟版本
48
+ ### Multi-Platform Support
41
49
 
42
50
  ```
43
51
  ┌─────────────────────────────────────────────────────────────┐
44
- Without Sumulige Claude
52
+ smc CLI
45
53
  ├─────────────────────────────────────────────────────────────┤
46
- 你 ──▶ Claude ──▶ 写代码
47
- │ │
48
- └─ 每次都要解释项目结构
49
- └─ 要重复告诉 Claude 代码风格
50
- └─ Claude 不知道你的团队约定
51
- └─────────────────────────────────────────────────────────────┘
52
-
53
- ┌─────────────────────────────────────────────────────────────┐
54
- │ With Sumulige Claude │
54
+ ┌─────────────────┐ ┌─────────────────┐
55
+ │ │ Claude Code │ Codex CLI │ │
56
+ │ │ (Anthropic) │ │ (OpenAI) │ │
57
+ │ │ │ │ │ │
58
+ │ │ .claude/ │ ◄────► │ .codex/ │ │
59
+ │ │ CLAUDE.md │ sync │ AGENTS.md │ │
60
+ │ │ JSON config │ │ TOML config │ │
61
+ │ └─────────────────┘ └─────────────────┘ │
55
62
  ├─────────────────────────────────────────────────────────────┤
56
- ──▶ Conductor ──▶ Architect ──▶ Builder ──▶ 代码
57
- │ (协调) (架构) (实现) │
58
- │ │
59
- │ ✓ 自动理解项目结构 │
60
- │ ✓ 知道团队代码风格 │
61
- │ ✓ 记住所有历史决策 │
63
+ Shared: Skills, Rules, Memory
62
64
  └─────────────────────────────────────────────────────────────┘
63
65
  ```
64
66
 
67
+ ### Core Capabilities
68
+
69
+ - **Memory System** - AI remembers decisions across sessions
70
+ - **Multi-Agent** - Specialized AI agents (Architect, Builder, Reviewer)
71
+ - **Skills Marketplace** - Install and share reusable AI capabilities
72
+ - **Quality Gate** - Automatic code quality enforcement
73
+ - **Slash Commands** - `/commit`, `/test`, `/review`, `/fix`
74
+
65
75
  ---
66
76
 
67
- ## Layer 2: Why use it? / 第二层:为什么使用它?
77
+ ## Installation
68
78
 
69
- ### Problem vs Solution / 问题 vs 解决方案
79
+ ### Requirements
70
80
 
71
- | 问题 | 传统方式 | Sumulige Claude |
72
- |------|---------|-----------------|
73
- | **每次都要解释项目结构** | 复制粘贴 README 内容 | `.claude/rag/` 自动存储项目知识 |
74
- | **代码风格不一致** | 手动告诉 Claude 规则 | Quality Gate 自动检查 |
75
- | **AI 不记得之前的决策** | 翻聊天记录找答案 | ThinkingLens 记忆所有对话 |
76
- | **团队成员配置不同** | 各自配置 Claude | `smc sync` 统一环境 |
77
- | **重复性任务** | 每次重新写 Prompt | Skills 系统,一键调用 |
81
+ - Node.js 16+
82
+ - Claude Code or Codex CLI installed
78
83
 
79
- ### Three Key Benefits / 三大核心价值
84
+ ### Install
80
85
 
86
+ ```bash
87
+ npm install -g sumulige-claude
81
88
  ```
82
- 1. 记忆 (Memory)
83
- ┌─────────────────────────────────────────────┐
84
- │ ThinkingLens │
85
- │ ├─ 记住每次对话的上下文 │
86
- │ ├─ 记住项目的架构决策 │
87
- │ └─ 记住代码风格约定 │
88
- └─────────────────────────────────────────────┘
89
-
90
- 2. 分工 (Specialization)
91
- ┌─────────────────────────────────────────────┐
92
- │ Multi-Agent System │
93
- │ ├─ Conductor → 任务分解 │
94
- │ ├─ Architect → 架构设计 │
95
- │ ├─ Builder → 代码实现 │
96
- │ ├─ Reviewer → 质量检查 │
97
- │ └─ Librarian → 文档整理 │
98
- └─────────────────────────────────────────────┘
99
-
100
- 3. 复用 (Reuse)
101
- ┌─────────────────────────────────────────────┐
102
- │ Skills System │
103
- │ ├─ 安装社区技能 │
104
- │ ├─ 创建自己的技能 │
105
- │ └─ 团队共享技能库 │
106
- └─────────────────────────────────────────────┘
89
+
90
+ ### Verify
91
+
92
+ ```bash
93
+ smc --version
107
94
  ```
108
95
 
109
96
  ---
110
97
 
111
- ## Layer 3: Core Concepts / 第三层:核心概念
98
+ ## Usage
112
99
 
113
- ### Concept 1: What is an "Agent"? / 什么是 "Agent"?
100
+ ### New Project Setup
114
101
 
115
- **English** | An Agent is like a virtual team member with a specific role. Instead of one AI doing everything, you have specialized AIs working together.
102
+ ```bash
103
+ # Deploy Claude Code template
104
+ smc template
116
105
 
117
- **中文** | Agent 就像是一个有特定职责的虚拟团队成员。不是让一个 AI 做所有事,而是让专业的 AI 协作。
106
+ # Or deploy for both platforms
107
+ smc template --all
118
108
 
109
+ # Or Codex only
110
+ smc template --codex
119
111
  ```
120
- 传统方式:
121
- ┌─────────────────────────────────────┐
122
- │ Claude (通用 AI) │
123
- │ 写代码 + 审查 + 架构 + 文档 │
124
- └─────────────────────────────────────┘
125
-
126
- Agent 方式:
127
- ┌─────────┐ ┌─────────┐ ┌─────────┐
128
- │Conductor│─▶│Architect│─▶│ Builder │
129
- │ 分解任务 │ │ 设计架构 │ │ 实现代码 │
130
- └─────────┘ └─────────┘ └─────────┘
131
-
132
-
133
- ┌─────────┐
134
- │Reviewer │
135
- │ 审查代码 │
136
- └─────────┘
137
- ```
138
-
139
- ### Concept 2: What is a "Skill"? / 什么是 "Skill"?
140
112
 
141
- **English** | A Skill is a reusable set of instructions for Claude. Think of it as a "plugin" that gives Claude new capabilities.
113
+ ### Existing Project
142
114
 
143
- **中文** | Skill 是一组可复用的指令,就像是给 Claude 安装"插件",赋予它新的能力。
115
+ ```bash
116
+ # Add to existing project (safe mode - won't overwrite)
117
+ smc template --safe
144
118
 
145
- ```
146
- Skill = 上下文 + 指令 + 资源
147
-
148
- ┌─────────────────────────────────────┐
149
- │ Skill: api-tester │
150
- ├─────────────────────────────────────┤
151
- │ 上下文: REST/GraphQL API 测试知识 │
152
- │ 指令: 如何验证 API 响应 │
153
- │ 资源: 测试脚本模板 │
154
- └─────────────────────────────────────┘
119
+ # Or sync incrementally
120
+ smc sync
155
121
  ```
156
122
 
157
- ### Concept 3: What is the Template? / 什么是模板?
123
+ ### Platform Commands
158
124
 
159
- **English** | The Template is a pre-configured project structure with all AI settings, hooks, and skills ready to use.
125
+ ```bash
126
+ # Detect configured platforms
127
+ smc platform:detect
160
128
 
161
- **中文** | 模板是预先配置好的项目结构,包含所有 AI 设置、钩子和技能,开箱即用。
129
+ # Convert Claude config to Codex
130
+ smc platform:convert claude codex
162
131
 
163
- ```
164
- smc template 之后,你的项目会变成:
165
-
166
- your-project/
167
- ├── .claude/
168
- │ ├── commands/ # 斜杠命令定义
169
- │ ├── skills/ # 技能库
170
- │ ├── hooks/ # 自动化钩子
171
- │ ├── rag/ # 项目知识库
172
- │ └── sessions/ # 对话历史
173
- ├── CLAUDE.md # AI 配置文件
174
- └── development/
175
- └── todos/ # 任务管理系统
132
+ # Sync to all platforms
133
+ smc platform:sync
176
134
  ```
177
135
 
178
136
  ---
179
137
 
180
- ## Layer 4: Quick Start / 第四层:快速开始
138
+ ## Project Structure
181
139
 
182
- ### Installation / 安装
140
+ After `smc template`, your project looks like:
183
141
 
184
- ```bash
185
- npm install -g sumulige-claude
142
+ ```
143
+ your-project/
144
+ ├── .claude/ # Claude Code configuration
145
+ │ ├── settings.json # Hooks and settings
146
+ │ ├── CLAUDE.md # Project instructions
147
+ │ ├── commands/ # Slash commands
148
+ │ ├── skills/ # Installed skills
149
+ │ ├── hooks/ # Automation hooks
150
+ │ ├── rag/ # Knowledge index
151
+ │ └── MEMORY.md # AI memory
152
+
153
+ ├── .codex/ # Codex CLI configuration (if --all)
154
+ │ └── config.toml # Codex settings
155
+
156
+ ├── AGENTS.md # Codex instructions (if --all)
157
+ └── CLAUDE.md # Project-level AI config
186
158
  ```
187
159
 
188
- ### Three Commands to Get Started / 三个命令开始使用
160
+ ---
189
161
 
190
- ```bash
191
- # Step 1: Initialize global config / 初始化全局配置
192
- smc init
162
+ ## Commands Reference
193
163
 
194
- # Step 2: Deploy to your project / 部署到项目
195
- mkdir my-project && cd my-project
196
- smc template
164
+ ### Core Commands
197
165
 
198
- # Step 3: Start planning / 开始规划
199
- smc kickoff
200
- ```
166
+ | Command | Description |
167
+ |---------|-------------|
168
+ | `smc init` | Initialize global configuration |
169
+ | `smc template` | Deploy project template |
170
+ | `smc sync` | Sync configuration (incremental) |
171
+ | `smc status` | Show current status |
201
172
 
202
- ### What Each Command Does / 每个命令做什么
173
+ ### Platform Commands
203
174
 
204
- | 命令 | 做什么 | 类比 |
205
- |------|--------|------|
206
- | `smc init` | 创建 `~/.claude/config.json` | 买房前准备工具箱 |
207
- | `smc template` | 复制模板到项目 | 装修新房子 |
208
- | `smc kickoff` | 启动项目规划 | 开工典礼 |
175
+ | Command | Description |
176
+ |---------|-------------|
177
+ | `smc platform:detect` | Detect AI platforms in project |
178
+ | `smc platform:list` | List supported platforms |
179
+ | `smc platform:convert <from> <to>` | Convert between platforms |
180
+ | `smc platform:sync` | Sync config to all platforms |
209
181
 
210
- ---
182
+ ### Skill Commands
211
183
 
212
- ## Layer 5: Commands / 第五层:命令参考
184
+ | Command | Description |
185
+ |---------|-------------|
186
+ | `smc skill:list` | List installed skills |
187
+ | `smc skill:create <name>` | Create new skill |
188
+ | `smc marketplace:list` | Browse skill marketplace |
189
+ | `smc marketplace:install <name>` | Install a skill |
213
190
 
214
- ### Command Groups / 命令分组
191
+ ### Quality Commands
215
192
 
216
- ```
217
- ┌─────────────────────────────────────────────────────────────┐
218
- │ 基础命令 (每次使用都需要) │
219
- ├─────────────────────────────────────────────────────────────┤
220
- smc init 初始化全局配置 │
221
- │ smc status 查看当前状态 │
222
- │ smc sync 同步到当前项目(增量) │
223
- └─────────────────────────────────────────────────────────────┘
193
+ | Command | Description |
194
+ |---------|-------------|
195
+ | `smc qg:check` | Run quality gate checks |
196
+ | `smc qg:rules` | List quality rules |
197
+ | `smc config:validate` | Validate configuration |
224
198
 
225
- ┌─────────────────────────────────────────────────────────────┐
226
- │ 项目命令 (新项目启动时使用) │
227
- ├─────────────────────────────────────────────────────────────┤
228
- │ smc template 部署项目模板 │
229
- │ smc kickoff 启动项目规划 │
230
- └─────────────────────────────────────────────────────────────┘
231
-
232
- ┌─────────────────────────────────────────────────────────────┐
233
- │ 技能命令 (管理 Claude 能力) │
234
- ├─────────────────────────────────────────────────────────────┤
235
- │ smc skill:list 列出已安装技能 │
236
- │ smc marketplace:list 浏览技能市场 │
237
- │ smc marketplace:install <name> 安装技能 │
238
- └─────────────────────────────────────────────────────────────┘
199
+ ---
239
200
 
240
- ┌─────────────────────────────────────────────────────────────┐
241
- │ 配置命令 (高级配置) │
242
- ├─────────────────────────────────────────────────────────────┤
243
- │ smc config:validate 验证配置文件 │
244
- │ smc config:backup 创建配置备份 │
245
- │ smc qg:check 运行质量检查 │
246
- └─────────────────────────────────────────────────────────────┘
247
- ```
201
+ ## Slash Commands
248
202
 
249
- ### Command Flow / 命令流程
203
+ Available in Claude Code after template deployment:
250
204
 
251
- ```
252
- 新项目流程:
253
- ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
254
- │ 新建 │──▶ smc │──▶ smc │──▶ smc │
255
- │ 项目 │ │ template │ │ kickoff │ │ 开发 │
256
- └─────────┘ └─────────┘ └─────────┘ └─────────┘
257
-
258
- 已有项目:
259
- ┌─────────┐ ┌─────────┐ ┌─────────┐
260
- │ 进入 │──▶ │ smc │──▶ │ 开发 │
261
- │ 项目 │ │ sync │ │ │
262
- └─────────┘ └─────────┘ └─────────┘
263
- ```
205
+ | Command | Model | Description |
206
+ |---------|-------|-------------|
207
+ | `/review` | Sonnet | Code review + security scan |
208
+ | `/test` | Sonnet | Run tests with TDD support |
209
+ | `/fix` | Haiku | Quick fix for build/lint errors |
210
+ | `/plan` | Opus | Architecture and planning |
211
+ | `/commit` | - | Git commit with message |
264
212
 
265
213
  ---
266
214
 
267
- ## Layer 5.5: Core Skills / 核心技能系统
215
+ ## Multi-Platform Workflow
268
216
 
269
- ### 4 Core Skills / 4 个核心技能
217
+ ### Converting Existing Project
270
218
 
271
- > v2.0.0 优化:将 9 个技能合并为 4 个核心技能,成本降低 60-70%
219
+ ```bash
220
+ # You have a Claude Code project, want to add Codex support
272
221
 
273
- | Skill | 命令 | 模型 | 作用 |
274
- |-------|------|------|------|
275
- | `quality-guard` | `/review` | sonnet | 代码审查 + 安全检查 + 清理建议 |
276
- | `test-master` | `/test` | sonnet | TDD + E2E + 覆盖率分析 |
277
- | `design-brain` | `/plan` | opus | 规划 + 架构设计 |
278
- | `quick-fix` | `/fix` | haiku | 快速修复构建/类型/lint 错误 |
222
+ # 1. See what's configured
223
+ smc platform:detect
224
+ # Output: Detected 1 platform(s): claude
279
225
 
280
- ### Quick Reference / 命令速查
226
+ # 2. Convert to Codex
227
+ smc platform:convert claude codex
281
228
 
282
- ```bash
283
- # 代码审查
284
- /review # 标准审查
285
- /review --security # 安全深扫 (OWASP Top 10)
286
- /review --clean # 死代码清理
287
-
288
- # 测试
289
- /test # 运行测试
290
- /test --tdd # TDD 模式
291
- /test --e2e # E2E 测试
292
- /test --coverage # 覆盖率
293
-
294
- # 规划
295
- /plan # 快速规划
296
- /plan --deep # 深度设计
297
-
298
- # 快速修复
299
- /fix # 自动检测修复
300
- /fix --build # 构建错误
301
- /fix --type # 类型错误
302
-
303
- # 重构
304
- /refactor # 分析建议
305
- /refactor --execute # 执行清理
306
- ```
229
+ # 3. Verify
230
+ smc platform:detect
231
+ # Output: Detected 2 platform(s): claude, codex
307
232
 
308
- ### Model Cost Strategy / 模型成本策略
309
-
310
- ```
311
- ┌─────────┬─────────────────────┬──────────┬────────┐
312
- │ 模型 │ 使用场景 │ 相对成本 │ 速度 │
313
- ├─────────┼─────────────────────┼──────────┼────────┤
314
- │ haiku │ /fix 快速修复 │ 1x │ 最快 │
315
- │ sonnet │ /review, /test │ 5x │ 中等 │
316
- │ opus │ /plan --deep │ 15x │ 较慢 │
317
- └─────────┴─────────────────────┴──────────┴────────┘
233
+ # 4. Use either CLI
234
+ claude "Fix the login bug"
235
+ codex "Fix the login bug"
318
236
  ```
319
237
 
320
- 详细使用指南: [.claude/USAGE.md](.claude/USAGE.md)
321
-
322
- ---
238
+ ### Platform Config Mapping
323
239
 
324
- ## Layer 6: Advanced / 第六层:高级配置
240
+ | Claude Code | Codex CLI |
241
+ |-------------|-----------|
242
+ | `.claude/settings.json` | `.codex/config.toml` |
243
+ | `CLAUDE.md` | `AGENTS.md` |
244
+ | JSON format | TOML format |
245
+ | Hooks in settings.json | Notifications in config.toml |
325
246
 
326
- ### Multi-Agent Configuration / 多 Agent 配置
247
+ ---
327
248
 
328
- **English** | Each agent can be customized with its own model and role description.
249
+ ## Configuration
329
250
 
330
- **中文** | 每个 Agent 都可以自定义模型和职责描述。
251
+ ### Claude Code (`~/.claude/config.json`)
331
252
 
332
253
  ```json
333
254
  {
334
- "version": "1.2.0",
335
- "model": "claude-opus-4.5",
255
+ "version": "1.6.0",
256
+ "model": "claude-sonnet-4",
336
257
  "agents": {
337
- "conductor": {
338
- "role": "任务协调与分解 - 理解需求并分配给合适的 Agent",
339
- "model": "claude-opus-4.5"
340
- },
341
- "architect": {
342
- "role": "架构设计 - 设计系统架构和技术选型",
343
- "model": "claude-sonnet-4.5"
344
- },
345
- "builder": {
346
- "role": "代码实现 - 编写高质量代码和测试",
347
- "model": "claude-sonnet-4.5"
348
- },
349
- "reviewer": {
350
- "role": "代码审查 - 检查代码质量和安全问题",
351
- "model": "claude-opus-4.5"
352
- },
353
- "librarian": {
354
- "role": "文档管理 - 整理文档和知识库",
355
- "model": "claude-haiku-4.5"
356
- }
258
+ "architect": { "model": "claude-opus-4" },
259
+ "builder": { "model": "claude-sonnet-4" },
260
+ "reviewer": { "model": "claude-opus-4" }
357
261
  },
358
- "skills": [
359
- "anthropics/skills",
360
- "numman-ali/n-skills"
361
- ],
362
262
  "thinkingLens": {
363
263
  "enabled": true,
364
- "autoSync": true,
365
- "syncInterval": 20
264
+ "autoSync": true
366
265
  }
367
266
  }
368
267
  ```
369
268
 
370
- ### Quality Gate / 质量门禁
371
-
372
- **English** | Automatically check code quality before commits.
269
+ ### Codex CLI (`.codex/config.toml`)
373
270
 
374
- **中文** | 提交前自动检查代码质量。
375
-
376
- ```json
377
- {
378
- "enabled": true,
379
- "severity": "warn",
380
- "rules": [
381
- { "id": "line-count-limit", "enabled": true },
382
- { "id": "no-console-logs", "enabled": true }
383
- ],
384
- "gates": {
385
- "preCommit": true,
386
- "prePush": true
387
- }
388
- }
389
- ```
390
-
391
- ### Skills Marketplace / 技能市场
392
-
393
- ```bash
394
- # Browse available skills / 浏览可用技能
395
- smc marketplace:list
271
+ ```toml
272
+ model = "o3"
273
+ model_provider = "openai"
274
+ sandbox_mode = "workspace-write"
275
+ approval_policy = "on-failure"
396
276
 
397
- # Install a skill / 安装技能
398
- smc marketplace:install dev-browser
277
+ [project]
278
+ project_doc_fallback_filenames = ["AGENTS.md", "CLAUDE.md"]
399
279
 
400
- # Create your own skill / 创建自己的技能
401
- smc skill:create my-skill
280
+ [features]
281
+ shell_tool = true
282
+ web_search_request = true
402
283
  ```
403
284
 
404
285
  ---
405
286
 
406
- ## Layer 7: Lifecycle Hooks / 第七层:生命周期钩子
287
+ ## Architecture
407
288
 
408
- ### Auto-Sync System / 自动同步系统
409
-
410
- > v1.3.2: 利用 Claude Code 官方 Hook 事件实现记忆自动同步
289
+ ### Memory System
411
290
 
412
291
  ```
413
- ┌─────────────────────────────────────────────────────────────┐
414
- SessionStart ──► memory-loader.cjs │
415
- │ └─ 自动加载 MEMORY.md, ANCHORS.md, TODO 状态 │
416
- │ │
417
- PreCompact ──► auto-handoff.cjs │
418
- │ └─ 上下文压缩前自动生成 handoff 文档 │
419
-
420
- │ SessionEnd ──► memory-saver.cjs │
421
- │ └─ 会话结束自动保存摘要到 MEMORY.md │
422
- └─────────────────────────────────────────────────────────────┘
292
+ Session Start
293
+
294
+
295
+ ┌─────────────────┐
296
+ memory-loader │ ◄── Load MEMORY.md, ANCHORS.md
297
+ └─────────────────┘
298
+
299
+
300
+ Work with AI
301
+
302
+
303
+ ┌─────────────────┐
304
+ │ memory-saver │ ──► Save to MEMORY.md
305
+ └─────────────────┘
306
+
307
+
308
+ Session End
423
309
  ```
424
310
 
425
- ### Hook Files / 钩子文件
426
-
427
- | Hook | 文件 | 触发时机 | 功能 |
428
- |------|------|----------|------|
429
- | `SessionStart` | `memory-loader.cjs` | 会话开始 | 加载记忆、锚点、TODO |
430
- | `SessionEnd` | `memory-saver.cjs` | 会话结束 | 保存摘要、归档会话 |
431
- | `PreCompact` | `auto-handoff.cjs` | 上下文压缩前 | 生成 handoff 保护上下文 |
432
-
433
- ### Handoff Documents / 交接文档
434
-
435
- 当上下文即将被压缩时,自动生成交接文档:
311
+ ### Hook System
436
312
 
437
313
  ```
438
- .claude/handoffs/
439
- ├── LATEST.md # 最新交接文档
440
- ├── INDEX.md # 交接文档索引
441
- └── handoff_*.md # 历史交接文档
314
+ Claude Code Event
315
+
316
+
317
+ ┌─────────────────────────────────────────┐
318
+ │ settings.json │
319
+ ├─────────────────────────────────────────┤
320
+ │ SessionStart → memory-loader.cjs │
321
+ │ SessionEnd → memory-saver.cjs │
322
+ │ PreCompact → auto-handoff.cjs │
323
+ │ PostToolUse → code-formatter.cjs │
324
+ └─────────────────────────────────────────┘
442
325
  ```
443
326
 
444
- 每个交接文档包含:
445
- - 会话信息(项目、版本、开始时间)
446
- - 活跃 TODOs 列表
447
- - 最近修改的文件
448
- - 恢复命令
327
+ ---
449
328
 
450
- ### Update Hooks / 更新钩子
329
+ ## Upgrading
451
330
 
452
- 其他项目如何获取新 hooks:
331
+ ### From v1.x
453
332
 
454
333
  ```bash
455
- # 方式 1: 完整更新(推荐)
456
- smc template --force
457
-
458
- # 方式 2: 增量同步(仅更新 hooks)
459
- smc sync --hooks
460
-
461
- # 方式 3: 手动安装
334
+ # Update global package
462
335
  npm update -g sumulige-claude
463
- smc template
464
- ```
465
-
466
- ---
467
336
 
468
- ## Layer 8: Data Flow Architecture / 第八层:数据流转架构
469
-
470
- > v1.4.0: Hook 统一调度 + 智能过滤,Token 成本降低 62%
471
-
472
- ### Hook 调度流程
473
-
474
- ```
475
- ┌─────────────────────────────────────────────────────────────────────────┐
476
- │ Claude Code 事件触发 │
477
- └─────────────────────────────────────────────────────────────────────────┘
478
-
479
-
480
- ┌─────────────────────────────────────────────────────────────────────────┐
481
- │ settings.json 路由 │
482
- ├─────────────────────────────────────────────────────────────────────────┤
483
- │ SessionStart ──────→ memory-loader.cjs (直接执行) │
484
- │ SessionEnd ──────→ memory-saver.cjs (直接执行) │
485
- │ PreCompact ──────→ auto-handoff.cjs (直接执行) │
486
- │ UserPromptSubmit ───→ hook-dispatcher.cjs │
487
- │ PreToolUse ──────→ (空,不执行任何 hook) │
488
- │ PostToolUse ──────→ code-formatter.cjs (仅 Write/Edit 时) │
489
- │ AgentStop ──────→ hook-dispatcher.cjs │
490
- └─────────────────────────────────────────────────────────────────────────┘
491
- ```
492
-
493
- ### Hook Dispatcher 内部流程
494
-
495
- ```
496
- ┌─────────────────────────────────────────────────────────────────────────┐
497
- │ hook-dispatcher.cjs │
498
- └─────────────────────────────────────────────────────────────────────────┘
499
-
500
- ┌───────────────┼───────────────┐
501
- ▼ ▼ ▼
502
- ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
503
- │ 加载 Registry│ │ 加载 State │ │ 获取事件类型 │
504
- │ hook-registry│ │ .dispatcher │ │CLAUDE_EVENT │
505
- │ .json │ │ -state.json │ │ _TYPE │
506
- └─────────────┘ └─────────────┘ └─────────────┘
507
- │ │ │
508
- └───────────────┼───────────────┘
509
-
510
- ┌───────────────────────────────┐
511
- │ 筛选当前事件的 Hooks │
512
- └───────────────────────────────┘
513
-
514
-
515
- ┌───────────────────────────────────────────────┐
516
- │ 对每个 Hook 检查 │
517
- ├───────────────────────────────────────────────┤
518
- │ 1. shouldRunDebounce() - 5秒内执行过? → 跳过 │
519
- │ 2. shouldRunOnce() - 已执行过? → 跳过 │
520
- │ 3. shouldRunCondition() - 条件不满足? → 跳过 │
521
- └───────────────────────────────────────────────┘
522
-
523
-
524
- ┌───────────────────────────────┐
525
- │ 执行通过检查的 Hook + 更新状态 │
526
- └───────────────────────────────┘
527
- ```
528
-
529
- ### 增量同步流程
530
-
531
- ```
532
- ┌─────────────────────────────────────────────────────────────────────────┐
533
- │ smc sync --incremental │
534
- └─────────────────────────────────────────────────────────────────────────┘
535
-
536
- ┌───────────────────────────┼───────────────────────────┐
537
- ▼ ▼ ▼
538
- ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
539
- │ 读取项目版本 │ │ 读取版本清单 │ │ 计算差异变更 │
540
- │ .sumulige- │ │ version- │ │ getChangesSince│
541
- │ claude-version│ │ manifest.json │ │ (1.3.3) │
542
- └───────────────┘ └───────────────┘ └───────────────┘
543
-
544
-
545
- ┌───────────────────────────────────────────────┐
546
- │ 应用变更: hook/config/lib/command │
547
- │ 更新项目版本标记 │
548
- └───────────────────────────────────────────────┘
337
+ # Update project template
338
+ smc template --force
549
339
  ```
550
340
 
551
- ### 状态文件汇总
341
+ ### Migration
552
342
 
553
- | 文件 | 用途 | 生命周期 |
554
- |------|------|----------|
555
- | `.dispatcher-state.json` | Hook 执行状态 | 会话级 |
556
- | `.match-cache.json` | RAG 匹配缓存 | 5 分钟 TTL |
557
- | `.sumulige-claude-version` | 项目版本标记 | 永久 |
343
+ Old hooks are automatically migrated. Your custom configurations are backed up to `.claude/backup/`.
558
344
 
559
345
  ---
560
346
 
561
- ## Layer 9: Config Inheritance / 第九层:配置分层继承
562
-
563
- > v1.4.1: 单一真相源架构,零维护成本的多项目配置管理
347
+ ## Troubleshooting
564
348
 
565
- ### 架构图
349
+ ### Common Issues
566
350
 
567
- ```
568
- sumulige-claude/.claude/ ~/.claude/ 项目/.claude/
569
- (Git 仓库 - 版本控制) (运行时 - 符号链接) (项目特定)
570
- │ │ │
571
- ├── hooks/ ─────→ symlink ────→│ │
572
- ├── skills/ ────→ symlink ────→│ 自动继承 │
573
- ├── templates/ ─→ symlink ────→│ ─────────────────────→│
574
- ├── commands/ ──→ symlink ────→│ │
575
- │ │ │
576
- └── *.md ────────→ 复制 ──────→│ │
577
- │ │
578
- ├── cache/ ├── MEMORY.md
579
- ├── debug/ ├── PROJECT_LOG.md
580
- └── history.jsonl └── thinking-routes/
351
+ **Q: Commands not found after install**
352
+ ```bash
353
+ # Ensure npm global bin is in PATH
354
+ export PATH="$PATH:$(npm bin -g)"
581
355
  ```
582
356
 
583
- ### 使用方式
584
-
357
+ **Q: Platform not detected**
585
358
  ```bash
586
- # 首次设置:建立符号链接
587
- cd ~/Documents/Antigravity/sumulige-claude
588
- ./scripts/sync-to-home.sh
589
-
590
- # 日常更新:修改 sumulige-claude 后自动生效
591
- git pull # 所有项目自动获得最新配置!
592
-
593
- # 更新模板文件(CLAUDE.md, MEMORY.md 等)
594
- ./scripts/sync-to-home.sh --copy
359
+ # Ensure project has config files
360
+ ls -la .claude/settings.json
361
+ ls -la .codex/config.toml
595
362
  ```
596
363
 
597
- ### 项目配置精简
598
-
599
- **之前**:每个项目复制完整 `.claude/` (~300 个文件)
600
-
601
- **之后**:项目只保留特定内容 (~10 个文件)
602
-
603
- ```
604
- 项目/.claude/
605
- ├── MEMORY.md # 项目记忆
606
- ├── PROJECT_LOG.md # 项目日志
607
- ├── ANCHORS.md # 项目锚点
608
- ├── CLAUDE.md # 项目配置 (继承+覆盖)
609
- ├── thinking-routes/ # 思维轨迹
610
- └── rag/ # 项目 RAG 索引
364
+ **Q: Codex can't read AGENTS.md**
365
+ ```bash
366
+ # Regenerate from Claude config
367
+ smc platform:convert claude codex
611
368
  ```
612
369
 
613
- ### 收益
614
-
615
- | 指标 | 传统方式 | 分层继承 |
616
- |------|---------|---------|
617
- | 配置同步 | 手动复制到每个项目 | 自动(符号链接) |
618
- | 更新成本 | O(n) 项目数 | O(1) |
619
- | 配置漂移 | 容易发生 | 不可能 |
620
- | 存储空间 | 每项目 ~5MB | 每项目 ~50KB |
621
-
622
370
  ---
623
371
 
624
- ## Documentation / 文档
372
+ ## Contributing
625
373
 
626
- - **[Development Guide / 开发指南](docs/DEVELOPMENT.md)** - Architecture, adding skills / 架构、添加技能
627
- - **[Marketplace Guide / 市场指南](docs/MARKETPLACE.md)** - Skill marketplace user guide / 技能市场用户指南
628
- - **[Q&A / 常见问题](Q&A.md)** - Core design concepts explained / 核心设计理念解释
374
+ 1. Fork the repository
375
+ 2. Create your feature branch (`git checkout -b feature/amazing`)
376
+ 3. Commit your changes (`git commit -m 'Add amazing feature'`)
377
+ 4. Push to the branch (`git push origin feature/amazing`)
378
+ 5. Open a Pull Request
629
379
 
630
380
  ---
631
381
 
632
- ## Changelog / 更新日志
633
-
634
- ### v1.2.0 (2026-01-17)
382
+ ## Documentation
635
383
 
636
- **English** | Comprehensive regression test suite.
384
+ | Document | Description |
385
+ |----------|-------------|
386
+ | [Development Guide](docs/DEVELOPMENT.md) | Architecture and adding skills |
387
+ | [Marketplace Guide](docs/MARKETPLACE.md) | Skill marketplace user guide |
388
+ | [Q&A](Q&A.md) | Frequently asked questions |
637
389
 
638
- **中文** | 完整的回归测试套件。
390
+ ---
639
391
 
640
- - **Test Coverage / 测试覆盖**
641
- - 219 new tests across 6 modules / 6 个模块新增 219 个测试
642
- - errors.js: 100% statement coverage / 100% 语句覆盖率
643
- - quality-gate.js: 95.59% statement coverage / 95.59% 语句覆盖率
644
- - quality-rules.js: 86.17% statement coverage / 86.17% 语句覆盖率
645
- - config-manager.js: 91.66% statement coverage / 91.66% 语句覆盖率
646
- - config-validator.js: 77.41% statement coverage / 77.41% 语句覆盖率
647
- - version-check.js: 55.07% statement coverage / 55.07% 语句覆盖率
392
+ ## Changelog
648
393
 
649
- ### v1.1.1 (2026-01-16)
394
+ ### v1.6.0 (2026-01-24)
650
395
 
651
- **English** | Config validation and quality gate system.
396
+ **Multi-Platform Support** - OpenAI Codex CLI compatibility
652
397
 
653
- **中文** | 配置验证和质量门禁系统。
398
+ - **Platform Adapters** - Abstract layer for multi-CLI support
399
+ - **Config Converter** - JSON ↔ TOML conversion
400
+ - **Instruction Converter** - CLAUDE.md ↔ AGENTS.md
401
+ - **New Commands**:
402
+ - `platform:detect` - Detect configured platforms
403
+ - `platform:list` - List supported platforms
404
+ - `platform:convert` - Convert between platforms
405
+ - `platform:sync` - Sync to all platforms
406
+ - **Template Extensions**:
407
+ - `--codex` flag for Codex-only deployment
408
+ - `--all` flag for both platforms
654
409
 
655
- - **Config System / 配置系统**
656
- - JSON Schema validation for all configs / 所有配置的 JSON Schema 验证
657
- - Backup/rollback functionality / 备份回滚功能
658
- - Environment variable expansion / 环境变量展开
659
- - **Quality Gate / 质量门禁**
660
- - 8 built-in quality rules / 8 条内置质量规则
661
- - Pre-commit/pre-push Git hooks / Git 钩子
662
- - Configurable severity levels / 可配置严重级别
410
+ ### v1.5.2 (2026-01-23)
663
411
 
664
- ### v1.1.0 (2026-01-15)
412
+ - Architecture refactoring and code cleanup
413
+ - Design standards system + 3 new skills
665
414
 
666
- **English** | Skill Marketplace with auto-sync.
415
+ ### v1.5.0 (2026-01-22)
667
416
 
668
- **中文** | 技能市场,支持自动同步。
417
+ - Three-tier quality gate system
669
418
 
670
- - Marketplace system with 6 new commands / 市场系统,6 个新命令
671
- - Auto-sync via GitHub Actions / GitHub Actions 自动同步
672
- - 20+ built-in skills / 20+ 内置技能
419
+ [Full Changelog](CHANGELOG.md)
673
420
 
674
421
  ---
675
422
 
676
- ## License / 许可证
423
+ ## License
677
424
 
678
425
  MIT © [sumulige](https://github.com/sumulige)
679
426
 
680
427
  ---
681
428
 
682
- **Happy Coding with AI! / 祝编码愉快! 🚀**
429
+ <p align="center">
430
+ <strong>Works with</strong><br>
431
+ <a href="https://claude.ai">Claude Code</a> •
432
+ <a href="https://openai.com/codex">Codex CLI</a>
433
+ </p>
package/cli.js CHANGED
@@ -9,7 +9,7 @@
9
9
  * - Built-in Claude Code project template
10
10
  * - ThinkingLens conversation tracking
11
11
  *
12
- * @version 1.5.2
12
+ * @version 1.6.0
13
13
  */
14
14
 
15
15
  const { runCommand } = require('./lib/commands');
@@ -37,8 +37,8 @@ const COMMANDS = {
37
37
  args: ''
38
38
  },
39
39
  template: {
40
- help: 'Deploy Claude Code project template',
41
- args: '[path] [--safe] [--force] [--help]'
40
+ help: 'Deploy AI CLI project template (Claude/Codex)',
41
+ args: '[path] [--codex] [--all] [--safe] [--force]'
42
42
  },
43
43
  kickoff: {
44
44
  help: 'Start project planning workflow (Manus-style)',
@@ -179,6 +179,22 @@ const COMMANDS = {
179
179
  audit: {
180
180
  help: 'Audit approved commands for security risks',
181
181
  args: '[--global] [--ci] [--report]'
182
+ },
183
+ 'platform:detect': {
184
+ help: 'Detect AI CLI platforms in current project',
185
+ args: ''
186
+ },
187
+ 'platform:list': {
188
+ help: 'List supported AI CLI platforms',
189
+ args: ''
190
+ },
191
+ 'platform:convert': {
192
+ help: 'Convert config between platforms (claude ↔ codex)',
193
+ args: '<from> <to> [--dry-run]'
194
+ },
195
+ 'platform:sync': {
196
+ help: 'Sync configuration to all platforms',
197
+ args: '[--platforms <list>]'
182
198
  }
183
199
  };
184
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumulige-claude",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "The Best Agent Harness for Claude Code - AI Agent Skills, Rules & Best Practices",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -35,6 +35,9 @@
35
35
  "keywords": [
36
36
  "claude",
37
37
  "claude-code",
38
+ "codex",
39
+ "codex-cli",
40
+ "openai",
38
41
  "agent",
39
42
  "ai",
40
43
  "skills",
@@ -63,6 +66,7 @@
63
66
  "node": ">=16.0.0"
64
67
  },
65
68
  "dependencies": {
69
+ "@iarna/toml": "^2.2.5",
66
70
  "ajv": "^8.17.1",
67
71
  "ajv-formats": "^3.0.1",
68
72
  "patchright": "^1.57.0"
@@ -0,0 +1,69 @@
1
+ # Codex CLI Configuration
2
+
3
+ This directory contains configuration for [OpenAI Codex CLI](https://developers.openai.com/codex/).
4
+
5
+ ## Files
6
+
7
+ | File | Purpose |
8
+ |------|---------|
9
+ | `config.toml` | Codex CLI settings (model, sandbox, approval policy) |
10
+ | `../AGENTS.md` | Project instructions for the AI agent |
11
+
12
+ ## Quick Start
13
+
14
+ ```bash
15
+ # Install Codex CLI
16
+ npm install -g @openai/codex
17
+
18
+ # Run Codex in your project
19
+ codex
20
+
21
+ # Or with a specific task
22
+ codex "Fix the failing tests"
23
+ ```
24
+
25
+ ## Configuration Options
26
+
27
+ ### Sandbox Modes
28
+
29
+ | Mode | Description |
30
+ |------|-------------|
31
+ | `read-only` | Can only read files, no modifications |
32
+ | `workspace-write` | Can modify project files (recommended) |
33
+ | `danger-full-access` | Full system access (use with caution) |
34
+
35
+ ### Approval Policies
36
+
37
+ | Policy | Description |
38
+ |--------|-------------|
39
+ | `untrusted` | Require approval for all actions |
40
+ | `on-failure` | Auto-approve, ask on errors (recommended) |
41
+ | `on-request` | Auto-approve unless agent requests |
42
+ | `never` | Never ask for approval |
43
+
44
+ ## Integration with Claude Code
45
+
46
+ This project supports both Claude Code and Codex CLI:
47
+
48
+ - Claude Code reads `.claude/CLAUDE.md` and `.claude/settings.json`
49
+ - Codex CLI reads `AGENTS.md` and `.codex/config.toml`
50
+
51
+ Both tools can use the same project rules in `.claude/rules/`.
52
+
53
+ ## Sync Configuration
54
+
55
+ Use sumulige-claude to sync settings between platforms:
56
+
57
+ ```bash
58
+ # Convert Claude config to Codex
59
+ smc platform:convert claude codex
60
+
61
+ # Sync all platforms
62
+ smc platform:sync
63
+ ```
64
+
65
+ ## Documentation
66
+
67
+ - [Codex CLI Documentation](https://developers.openai.com/codex/)
68
+ - [AGENTS.md Guide](https://developers.openai.com/codex/guides/agents-md)
69
+ - [Configuration Reference](https://developers.openai.com/codex/config-reference/)
@@ -0,0 +1,56 @@
1
+ # Codex CLI Configuration
2
+ # Generated by sumulige-claude
3
+ # Documentation: https://developers.openai.com/codex/config-reference/
4
+
5
+ # Model Configuration
6
+ model = "o3"
7
+ model_provider = "openai"
8
+
9
+ # Sandbox and Approval Settings
10
+ # sandbox_mode options: read-only | workspace-write | danger-full-access
11
+ sandbox_mode = "workspace-write"
12
+
13
+ # approval_policy options: untrusted | on-failure | on-request | never
14
+ approval_policy = "on-failure"
15
+
16
+ # Project Settings
17
+ [project]
18
+ # Files to read as instructions (priority order)
19
+ project_doc_fallback_filenames = ["AGENTS.md", "CLAUDE.md", "TEAM_GUIDE.md"]
20
+
21
+ # Maximum size of instruction files (bytes)
22
+ project_doc_max_bytes = 65536
23
+
24
+ # Feature Flags
25
+ [features]
26
+ # Enable shell command execution
27
+ shell_tool = true
28
+
29
+ # Enable web search capability
30
+ web_search_request = true
31
+
32
+ # Enable unified PTY-backed exec (beta)
33
+ # unified_exec = false
34
+
35
+ # Enable shell environment snapshots (beta)
36
+ # shell_snapshot = false
37
+
38
+ # TUI Settings
39
+ [tui]
40
+ # Enable terminal animations
41
+ animations = true
42
+
43
+ # Show desktop notifications on completion
44
+ notifications = true
45
+
46
+ # MCP Server Configuration (uncomment to enable)
47
+ # [mcp_servers.filesystem]
48
+ # command = ["mcp-server-filesystem", "--root", "."]
49
+ # enabled = true
50
+ # enabled_tools = ["read_file", "write_file", "list_directory"]
51
+ # env = {}
52
+
53
+ # [mcp_servers.github]
54
+ # command = ["mcp-server-github"]
55
+ # enabled = true
56
+ # enabled_tools = ["create_issue", "list_issues", "create_pr"]
@@ -0,0 +1,94 @@
1
+ # Project Instructions
2
+
3
+ > This file configures Codex CLI behavior for this project.
4
+ > Generated by sumulige-claude. Edit to customize.
5
+ > Documentation: https://developers.openai.com/codex/guides/agents-md
6
+
7
+ ---
8
+
9
+ ## Project Overview
10
+
11
+ [Describe your project's purpose and goals here]
12
+
13
+ ---
14
+
15
+ ## Working Agreements
16
+
17
+ - Run tests after modifications
18
+ - Request approval before adding external dependencies
19
+ - Document public API changes
20
+ - Follow existing code patterns and conventions
21
+
22
+ ---
23
+
24
+ ## Code Standards
25
+
26
+ ### General Principles
27
+
28
+ 1. **Simplicity First** - Write clear, maintainable code
29
+ 2. **Test Coverage** - Maintain 80%+ test coverage
30
+ 3. **Documentation** - Document public APIs and complex logic
31
+
32
+ ### Style Guidelines
33
+
34
+ Follow the project's established patterns:
35
+ - See `.claude/rules/` for detailed guidelines (if present)
36
+ - Run linting before committing
37
+
38
+ ---
39
+
40
+ ## Project Structure
41
+
42
+ ```
43
+ project/
44
+ ├── src/ # Source code
45
+ ├── tests/ # Test files
46
+ ├── docs/ # Documentation
47
+ ├── .claude/ # Claude Code configuration
48
+ └── .codex/ # Codex CLI configuration
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Common Commands
54
+
55
+ ```bash
56
+ # Development
57
+ npm run dev # Start development server
58
+ npm test # Run tests
59
+ npm run build # Build for production
60
+
61
+ # Code Quality
62
+ npm run lint # Check code style
63
+ npm run typecheck # Check types
64
+ ```
65
+
66
+ ---
67
+
68
+ ## Codex-Specific Settings
69
+
70
+ - **Sandbox Mode**: `workspace-write` - Can modify project files
71
+ - **Approval Policy**: `on-failure` - Auto-approve unless errors occur
72
+ - **Shell Tool**: Enabled for command execution
73
+ - **Web Search**: Enabled for documentation lookup
74
+
75
+ ### Configuration
76
+
77
+ Full configuration is in `.codex/config.toml`.
78
+
79
+ ### Fallback Files
80
+
81
+ Codex also reads these instruction files if present:
82
+ - `CLAUDE.md` - Claude Code instructions (compatible)
83
+ - `TEAM_GUIDE.md` - Team guidelines
84
+
85
+ ---
86
+
87
+ ## Human Confirmation Required
88
+
89
+ Request human confirmation before:
90
+ - Architecture changes
91
+ - Database schema modifications
92
+ - Adding new external dependencies
93
+ - Security-related changes
94
+ - Deploying to production