Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions docs/comparison/hook-plugin-extension-deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,25 @@ v1.0.10 修复了 `.github/hooks/` 在 `-p`(prompt)模式下不触发的问
└── post-tool-use.sh # 工具执行后触发
```

### Codex CLI 用户 Prompt Hook(新增
### Codex CLI:Plugins 一等公民(v0.117.0

Codex CLI 新增 user prompt hook,允许在用户提交 prompt 时触发自定义逻辑。
> 来源:[Codex CLI v0.117.0 Changelog](https://developers.openai.com/codex/changelog)

v0.117.0 将 Plugins 提升为一等公民:
- 启动时自动同步 product-scoped plugins
- `/plugins` 命令浏览、安装、卸载
- 更清晰的认证/设置流程
- User prompt hook 允许在用户提交 prompt 时触发自定义逻辑

### Copilot CLI:Hook 模板变量(v1.0.12)

> 来源:[Copilot CLI v1.0.12 Changelog](https://github.com/github/copilot-cli/blob/main/changelog.md)

v1.0.12 为 Plugin hooks 引入环境变量和模板变量:
- 环境变量:`CLAUDE_PROJECT_DIR`、`CLAUDE_PLUGIN_DATA`(**注**:沿用 Claude Code 生态的变量命名,确保跨工具 Plugin hooks 兼容——Copilot CLI 读取 `.claude/settings.json` 和 Claude Code 插件)
- 模板变量:`{{project_dir}}`、`{{plugin_data_dir}}`(在 hook 配置中使用)
- `/session rename` 无参数时自动从对话历史生成会话名
- `/yolo` 路径权限在 `/clear` 后持久化

### Qwen Code Hooks 自动化系统(v0.12 新增)

Expand Down
2 changes: 1 addition & 1 deletion docs/comparison/multi-agent-deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| **Kimi CLI** | 5 代理类型 | **5** | ✓(前台/后台) | Wire 协议 | **D-Mail 时间回溯** |
| **OpenHands** | 4 复合代理 | **4** | ✓ | AgentDelegate | **EventStream 解耦** |
| **Aider** | 双模型流水线 | 1(双阶段) | — | 内部委托 | **架构师→编辑器** |
| **Codex CLI** | Guardian 审批 | 实验性 | — | 功能标志 | **安全审查子代理** |
| **Codex CLI** | Multi-agent v2(v0.117) | 实验性 | — | 逻辑路径地址(如 `/root/agent_a`) | 结构化代理间消息 + Plugins 一等公民 |
| **Goose** | MCP 工具委托 | — | — | Recipe | **纯 MCP 工作流** |

---
Expand Down
15 changes: 8 additions & 7 deletions docs/comparison/sandbox-security-deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,14 @@ priority = 70
- 架构特定:x64/arm64/arm/ia32 独立字节码
- 过滤器文件:`/tmp/gemini-cli-seccomp-{pid}.bpf`

### v0.34 新增沙箱特性

- **gVisor(runsc)**:原生容器沙箱,用于更安全的执行环境
- **实验性 LXC 容器沙箱**:轻量级容器隔离
- **严格 macOS Seatbelt**:基于白名单的 Seatbelt 策略(~200+ 条 syscall 规则)
- **safeFetch + IP 验证**:防止 SSRF 和内部网络访问
- **子代理特定 TOML 策略**:每个子代理可有独立安全策略
### v0.34-v0.35 新增沙箱特性

- **gVisor(runsc)**:原生容器沙箱,用于更安全的执行环境(v0.34)
- **实验性 LXC 容器沙箱**:轻量级容器隔离(v0.34)
- **严格 macOS Seatbelt**:基于白名单的 Seatbelt 策略(~200+ 条 syscall 规则)(v0.34)
- **safeFetch + IP 验证**:防止 SSRF 和内部网络访问(v0.34)
- **子代理特定 TOML 策略**:每个子代理可有独立安全策略(v0.34)
- **统一 SandboxManager**:v0.35 引入统一沙箱管理器,集成 Linux 原生 bubblewrap + seccomp 隔离工具执行(150 变更含 2 安全修复)(来源:[v0.35 Release Notes](https://geminicli.com/docs/changelogs/latest/))

### macOS Seatbelt

Expand Down
5 changes: 5 additions & 0 deletions docs/comparison/terminal-ui-deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ Rust 原生 CLI / Metal(macOS) + Vulkan(Linux/Win) GPU 渲染
| Shift+Tab | 循环切换审批模式(DEFAULT → AUTO_EDIT → PLAN → YOLO) |
| Esc Esc | 触发 `/rewind`(RewindViewer 组件) |

**v0.35 新增:自定义快捷键 + Vim 增强**(来源:[v0.35 Release Notes](https://geminicli.com/docs/changelogs/latest/))

- **自定义键绑定**:支持自定义 keybindings、字面字符绑定、扩展终端协议键
- **Vim 模式增强**:新增 `X`、`~`、`r`、`f/F/t/T` 动作 + yank/paste 支持

**Hook 系统对 UI 的影响**:

11 个 Hook 事件中,`BeforeModel`/`AfterModel` 可拦截 LLM 调用前后的 UI 渲染;`BeforeToolSelection` 可在工具选择 UI 前注入自定义逻辑。
Expand Down