codeagent by cexll/myclaude
npx skills add https://github.com/cexll/myclaude --skill codeagent使用可插拔的 AI 后端(Codex、Claude、Gemini)执行 codeagent-wrapper 命令。支持通过 @ 语法引用文件、通过后端选择进行并行任务执行,以及可配置的安全控制。
HEREDOC 语法(推荐):
codeagent-wrapper --backend codex - [working_dir] <<'EOF'
<任务内容在此>
EOF
选择后端:
codeagent-wrapper --backend claude - . <<'EOF'
<任务内容在此>
EOF
简单任务:
codeagent-wrapper --backend codex "简单任务" [working_dir]
codeagent-wrapper --backend gemini "简单任务" [working_dir]
| 后端 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 命令 |
|---|
| 描述 |
|---|
| 最适合 |
|---|
| codex | --backend codex | OpenAI Codex(默认) | 代码分析、复杂开发 |
| claude | --backend claude | Anthropic Claude | 简单任务、文档编写、提示工程 |
| gemini | --backend gemini | Google Gemini | UI/UX 原型设计 |
Codex(默认):
Claude:
Gemini:
后端切换:
task(必需):任务描述,支持 @file 引用working_dir(可选):工作目录(默认:当前目录)--backend(必需):选择 AI 后端(codex/claude/gemini)
--dangerously-skip-permissions智能体响应文本在此...
---
SESSION_ID: 019a7247-ac9d-71f3-89e2-a823dbd8fd14
# 使用 codex 后端恢复
codeagent-wrapper --backend codex resume <session_id> - <<'EOF'
<后续任务>
EOF
# 使用特定后端恢复
codeagent-wrapper --backend claude resume <session_id> - <<'EOF'
<后续任务>
EOF
默认(摘要模式 - 上下文高效):
codeagent-wrapper --parallel <<'EOF'
---TASK---
id: task1
backend: codex
workdir: /path/to/dir
---CONTENT---
任务内容
---TASK---
id: task2
dependencies: task1
---CONTENT---
依赖任务
EOF
完整输出模式(用于调试):
codeagent-wrapper --parallel --full-output <<'EOF'
...
EOF
输出模式:
--full-output):完整的任务消息。仅在调试特定故障时使用。按任务指定后端:
codeagent-wrapper --parallel <<'EOF'
---TASK---
id: task1
backend: codex
workdir: /path/to/dir
---CONTENT---
分析代码结构
---TASK---
id: task2
backend: claude
dependencies: task1
---CONTENT---
基于分析设计架构
---TASK---
id: task3
backend: gemini
dependencies: task2
---CONTENT---
生成实现代码
EOF
并发控制:设置 CODEAGENT_MAX_PARALLEL_WORKERS 以限制并发任务数(默认:无限制)。
CODEX_TIMEOUT:覆盖超时时间(毫秒)(默认:7200000 = 2 小时)CODEAGENT_SKIP_PERMISSIONS:控制 Claude CLI 权限检查
true/1 以添加 --dangerously-skip-permissions(默认:禁用)CODEAGENT_MAX_PARALLEL_WORKERS:限制并行模式下的并发任务数(默认:无限制,推荐:8)单任务:
Bash 工具参数:
- command: codeagent-wrapper --backend <backend> - [working_dir] <<'EOF'
<任务内容>
EOF
- timeout: 7200000
- description: <简要描述>
注意:--backend 是必需的(codex/claude/gemini)
并行任务:
Bash 工具参数:
- command: codeagent-wrapper --parallel --backend <backend> <<'EOF'
---TASK---
id: task_id
backend: <backend> # 可选,覆盖全局设置
workdir: /path
dependencies: dep1, dep2
---CONTENT---
任务内容
EOF
- timeout: 7200000
- description: <简要描述>
注意:全局 --backend 是必需的;按任务指定后端是可选的
切勿终止 codeagent 进程。 长时间运行的任务是正常的。应该:
通过日志文件检查任务状态:
# 查看实时输出
tail -f /tmp/claude/<workdir>/tasks/<task_id>.output
# 检查任务是否仍在运行
cat /tmp/claude/<workdir>/tasks/<task_id>.output | tail -50
使用超时等待:
# 使用 TaskOutput 工具,设置 block=true 和 timeout
TaskOutput(task_id="<id>", block=true, timeout=300000)
检查进程而不终止:
ps aux | grep codeagent-wrapper | grep -v grep
原因: codeagent 任务通常需要 2-10 分钟。终止它们会浪费 API 成本并丢失进度。
CODEAGENT_SKIP_PERMISSIONS=true 或传递 --skip-permissionsCODEAGENT_MAX_PARALLEL_WORKERS 以防止资源耗尽每周安装量
102
代码仓库
GitHub 星标数
2.4K
首次出现
2026年1月23日
安全审计
安装于
claude-code89
opencode42
codex34
cursor34
gemini-cli32
github-copilot32
Execute codeagent-wrapper commands with pluggable AI backends (Codex, Claude, Gemini). Supports file references via @ syntax, parallel task execution with backend selection, and configurable security controls.
HEREDOC syntax (recommended):
codeagent-wrapper --backend codex - [working_dir] <<'EOF'
<task content here>
EOF
With backend selection :
codeagent-wrapper --backend claude - . <<'EOF'
<task content here>
EOF
Simple tasks :
codeagent-wrapper --backend codex "simple task" [working_dir]
codeagent-wrapper --backend gemini "simple task" [working_dir]
| Backend | Command | Description | Best For |
|---|---|---|---|
| codex | --backend codex | OpenAI Codex (default) | Code analysis, complex development |
| claude | --backend claude | Anthropic Claude | Simple tasks, documentation, prompts |
| gemini | --backend gemini | Google Gemini | UI/UX prototyping |
Codex (default):
Claude :
Gemini :
Backend Switching :
task (required): Task description, supports @file referencesworking_dir (optional): Working directory (default: current)--backend (required): Select AI backend (codex/claude/gemini)
--dangerously-skip-permissions when explicitly enabledAgent response text here...
---
SESSION_ID: 019a7247-ac9d-71f3-89e2-a823dbd8fd14
# Resume with codex backend
codeagent-wrapper --backend codex resume <session_id> - <<'EOF'
<follow-up task>
EOF
# Resume with specific backend
codeagent-wrapper --backend claude resume <session_id> - <<'EOF'
<follow-up task>
EOF
Default (summary mode - context-efficient):
codeagent-wrapper --parallel <<'EOF'
---TASK---
id: task1
backend: codex
workdir: /path/to/dir
---CONTENT---
task content
---TASK---
id: task2
dependencies: task1
---CONTENT---
dependent task
EOF
Full output mode (for debugging):
codeagent-wrapper --parallel --full-output <<'EOF'
...
EOF
Output Modes:
--full-output): Complete task messages. Use only when debugging specific failures.With per-task backend :
codeagent-wrapper --parallel <<'EOF'
---TASK---
id: task1
backend: codex
workdir: /path/to/dir
---CONTENT---
analyze code structure
---TASK---
id: task2
backend: claude
dependencies: task1
---CONTENT---
design architecture based on analysis
---TASK---
id: task3
backend: gemini
dependencies: task2
---CONTENT---
generate implementation code
EOF
Concurrency Control : Set CODEAGENT_MAX_PARALLEL_WORKERS to limit concurrent tasks (default: unlimited).
CODEX_TIMEOUT: Override timeout in milliseconds (default: 7200000 = 2 hours)CODEAGENT_SKIP_PERMISSIONS: Control Claude CLI permission checks
true/1 to add --dangerously-skip-permissions (default: disabled)CODEAGENT_MAX_PARALLEL_WORKERS: Limit concurrent tasks in parallel mode (default: unlimited, recommended: 8)Single Task :
Bash tool parameters:
- command: codeagent-wrapper --backend <backend> - [working_dir] <<'EOF'
<task content>
EOF
- timeout: 7200000
- description: <brief description>
Note: --backend is required (codex/claude/gemini)
Parallel Tasks :
Bash tool parameters:
- command: codeagent-wrapper --parallel --backend <backend> <<'EOF'
---TASK---
id: task_id
backend: <backend> # Optional, overrides global
workdir: /path
dependencies: dep1, dep2
---CONTENT---
task content
EOF
- timeout: 7200000
- description: <brief description>
Note: Global --backend is required; per-task backend is optional
NEVER kill codeagent processes. Long-running tasks are normal. Instead:
Check task status via log file :
# View real-time output
tail -f /tmp/claude/<workdir>/tasks/<task_id>.output
# Check if task is still running
cat /tmp/claude/<workdir>/tasks/<task_id>.output | tail -50
Wait with timeout :
# Use TaskOutput tool with block=true and timeout
TaskOutput(task_id="<id>", block=true, timeout=300000)
Check process without killing :
ps aux | grep codeagent-wrapper | grep -v grep
Why: codeagent tasks often take 2-10 minutes. Killing them wastes API costs and loses progress.
CODEAGENT_SKIP_PERMISSIONS=true or pass --skip-permissionsCODEAGENT_MAX_PARALLEL_WORKERS in production to prevent resource exhaustionWeekly Installs
102
Repository
GitHub Stars
2.4K
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
claude-code89
opencode42
codex34
cursor34
gemini-cli32
github-copilot32
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
33,600 周安装