Include upstream Caveman Codex SessionStart hook

This commit is contained in:
KeyInfo Bot committed 2026-09-11 07:14:35 +08:00
1 parent 074381889b
commit 692889f8fd
6 files changed
+39 -13

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ Codex 插件页的大标题按 marketplace 来源分组,不是按插件 `categ
如果插件刚安装到当前 Codex 会话中,启动新的 Codex thread 或新的 Codex 调用后再依赖新增 skills/hooks/MCP/app 配置。 如果插件刚安装到当前 Codex 会话中,启动新的 Codex thread 或新的 Codex 调用后再依赖新增 skills/hooks/MCP/app 配置。
`caveman` 包含 Codex `SessionStart` hook,信任并启用后会在启动、恢复会话时注入精简表达模式。可要求 `normal mode` 停用当前模式;恢复会话时上游 hook 会再次注入。需要持续关闭时,请在 Codex 中禁用该 hook 或插件。
卸载插件: 卸载插件:
```bash ```bash
+7 -1
View File
@@ -193,6 +193,7 @@
"category": "Developer Tools", "category": "Developer Tools",
"sourcePath": "plugins/caveman", "sourcePath": "plugins/caveman",
"sparseCheckout": [ "sparseCheckout": [
".codex/hooks.json",
"package.json", "package.json",
"plugins/caveman", "plugins/caveman",
"skills/caveman-commit/SKILL.md", "skills/caveman-commit/SKILL.md",
@@ -214,6 +215,10 @@
"skills/caveman-stats" "skills/caveman-stats"
], ],
"materializePaths": [ "materializePaths": [
{
"source": ".codex/hooks.json",
"destination": "hooks/hooks.json"
},
{ {
"source": "skills/caveman-commit/SKILL.md", "source": "skills/caveman-commit/SKILL.md",
"destination": "skills/caveman-commit/SKILL.md" "destination": "skills/caveman-commit/SKILL.md"
@@ -249,11 +254,12 @@
], ],
"manifestVersionPath": "package.json", "manifestVersionPath": "package.json",
"manifestOverrides": { "manifestOverrides": {
"hooks": "./hooks/hooks.json",
"description": "Caveman 是面向 Codex 的精简表达、代码工作流和上下文压缩 skill 集合。", "description": "Caveman 是面向 Codex 的精简表达、代码工作流和上下文压缩 skill 集合。",
"interface": { "interface": {
"displayName": "Caveman", "displayName": "Caveman",
"shortDescription": "精简 Codex 输出,并提供调查、实现、迁移、重构、评审和验证工作流。", "shortDescription": "精简 Codex 输出,并提供调查、实现、迁移、重构、评审和验证工作流。",
"longDescription": "Caveman 提供精简输出、提交信息、代码评审、问题调查、精益实现、安全重构、迁移、补丁和验证工作流。另含可选的 caveman-compress;它需要 Python 3.10 及 Anthropic API Key 或 Claude CLI,仅在用户明确指定文件后把该文件内容发送给 Anthropic。Claude Code 专用统计 hooks、statusline、Caveman CLI、代理和 MCP shrink 不包含在此插件中。", "longDescription": "Caveman 提供精简输出、提交信息、代码评审、问题调查、精益实现、安全重构、迁移、补丁和验证工作流。包含 Codex SessionStart hook:信任并启用后,在启动或恢复会话时注入 Caveman 模式;可要求 normal mode 停用,但恢复会话会再次注入。另含可选的 caveman-compress,需要 Python 3.10 及 Anthropic API Key 或 Claude CLI,仅在用户明确指定文件后把该文件内容发送给 Anthropic。Claude Code 专用统计 hooks、statusline、Caveman CLI、代理和 MCP shrink 不包含在此插件中。",
"developerName": "Julius Brussee", "developerName": "Julius Brussee",
"category": "Developer Tools", "category": "Developer Tools",
"capabilities": [ "capabilities": [
+9 -9
View File
@@ -45,15 +45,6 @@
"commit": "4aad0584d92131626b16d4ff4d77f0455385013c", "commit": "4aad0584d92131626b16d4ff4d77f0455385013c",
"syncedAt": "2026-09-06T15:59:59Z" "syncedAt": "2026-09-06T15:59:59Z"
}, },
{
"id": "caveman",
"pluginName": "caveman",
"repo": "https://github.com/JuliusBrussee/caveman.git",
"ref": "main",
"adapter": "codex-plugin",
"commit": "15581d14007fd01fb3f132016741962f34936ca2",
"syncedAt": "2026-09-07T16:00:01Z"
},
{ {
"id": "taste-skill", "id": "taste-skill",
"pluginName": "taste-skill", "pluginName": "taste-skill",
@@ -152,6 +143,15 @@
"adapter": "claude-skill", "adapter": "claude-skill",
"commit": "d2d0ce27da295581c3cf87a30ab65deb7d0ddfb8", "commit": "d2d0ce27da295581c3cf87a30ab65deb7d0ddfb8",
"syncedAt": "2026-09-03T02:45:43Z" "syncedAt": "2026-09-03T02:45:43Z"
},
{
"id": "caveman",
"pluginName": "caveman",
"repo": "https://github.com/JuliusBrussee/caveman.git",
"ref": "main",
"adapter": "codex-plugin",
"commit": "15581d14007fd01fb3f132016741962f34936ca2",
"syncedAt": "2026-09-10T23:13:42Z"
} }
] ]
} }
@@ -19,7 +19,7 @@
"interface": { "interface": {
"displayName": "Caveman", "displayName": "Caveman",
"shortDescription": "精简 Codex 输出,并提供调查、实现、迁移、重构、评审和验证工作流。", "shortDescription": "精简 Codex 输出,并提供调查、实现、迁移、重构、评审和验证工作流。",
"longDescription": "Caveman 提供精简输出、提交信息、代码评审、问题调查、精益实现、安全重构、迁移、补丁和验证工作流。另含可选的 caveman-compress;它需要 Python 3.10 及 Anthropic API Key 或 Claude CLI,仅在用户明确指定文件后把该文件内容发送给 Anthropic。Claude Code 专用统计 hooks、statusline、Caveman CLI、代理和 MCP shrink 不包含在此插件中。", "longDescription": "Caveman 提供精简输出、提交信息、代码评审、问题调查、精益实现、安全重构、迁移、补丁和验证工作流。包含 Codex SessionStart hook:信任并启用后,在启动或恢复会话时注入 Caveman 模式;可要求 normal mode 停用,但恢复会话会再次注入。另含可选的 caveman-compress,需要 Python 3.10 及 Anthropic API Key 或 Claude CLI,仅在用户明确指定文件后把该文件内容发送给 Anthropic。Claude Code 专用统计 hooks、statusline、Caveman CLI、代理和 MCP shrink 不包含在此插件中。",
"developerName": "Julius Brussee", "developerName": "Julius Brussee",
"category": "Developer Tools", "category": "Developer Tools",
"capabilities": [ "capabilities": [
@@ -38,5 +38,6 @@
"logo": "./assets/caveman.svg", "logo": "./assets/caveman.svg",
"screenshots": [], "screenshots": [],
"brandColor": "#6B7280" "brandColor": "#6B7280"
} },
"hooks": "./hooks/hooks.json"
} }
@@ -5,5 +5,5 @@
"commit": "15581d14007fd01fb3f132016741962f34936ca2", "commit": "15581d14007fd01fb3f132016741962f34936ca2",
"adapter": "codex-plugin", "adapter": "codex-plugin",
"sourcePath": "plugins/caveman", "sourcePath": "plugins/caveman",
"syncedAt": "2026-09-07T16:00:01Z" "syncedAt": "2026-09-10T23:13:42Z"
} }
@@ -0,0 +1,17 @@
{
"hooks": {
"SessionStart": [
{
"matcher": "startup|resume",
"hooks": [
{
"type": "command",
"command": "echo 'CAVEMAN MODE ACTIVE. Rules: Drop articles/filler/pleasantries/hedging. Fragments OK. Short synonyms. Pattern: [thing] [action] [reason]. [next step]. Not: Sure! I would be happy to help you with that. Yes: Bug in auth middleware. Fix: Code/commits/security: write normal. User says stop caveman or normal mode to deactivate.'",
"timeout": 5,
"statusMessage": "Loading caveman mode"
}
]
}
]
}
}