Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

codeagentcodeagent 搜索

Agent Skill

codeagent 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,248

周安装

177

GitHub Stars

2,575

下载量

1,416
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codeagent(codeagent 搜索)
来源仓库:https://github.com/cexll/myclaude
仓库路径:skills/codeagent
安装命令:
npx skills add https://github.com/cexll/myclaude --skill codeagent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/cexll/myclaude --skill codeagent

简介

codeagent 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它是 codeagent-wrapper 的命令包装器,支持多 AI 后端(Codex、Claude、Gemini、OpenCode)和并行任务编排。
  • 适用于复杂代码分析、大规模重构、多代理协作和自动化代码生成等场景。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • codeagent 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Codeagent Wrapper Integration

Overview

Execute codeagent-wrapper commands with pluggable AI backends (Codex, Claude, Gemini, OpenCode), agent presets, auto-detected skill injection, and parallel task orchestration. Supports session resume, git worktree isolation, and structured JSON output.

When to Use

  • Complex code analysis requiring deep understanding
  • Large-scale refactoring across multiple files
  • Multi-agent orchestration (explore → design → implement → review)
  • Automated code generation with backend/agent selection
  • Parallel task execution with dependency management

Quick Reference

codeagent-wrapper [flags] <task|-> [workdir]
codeagent-wrapper [flags] resume <session_id> <task|-> [workdir]
codeagent-wrapper --parallel [flags] < tasks_config

CLI Flags

FlagDescriptionDefault
--backend <name>Backend: codex, claude, gemini, opencodecodex
--agent <name>Agent preset (from models.json or agents/ dir)none
--model <name>Model override for any backendbackend default
--skills <names>Comma-separated skill names to injectauto-detected
--reasoning-effort <level>Reasoning level: low, medium, highbackend default
--prompt-file <path>Custom prompt file (restricted to ~/.claude or ~/.codeagent/agents/)none
--output <path>Write structured JSON output to filenone
--worktreeExecute in isolated git worktree (branch: do/{task_id})false
--skip-permissionsSkip Claude backend permission promptsfalse
--parallelEnable parallel task execution from stdinfalse
--full-outputInclude full messages in parallel output (default: summary)false
--config <path>Config file path~/.codeagent/config.*
--cleanupClean up old logs and exit
-v, --versionPrint version and exit

Backends

BackendFlagBest For
Codex--backend codex (default)Deep code analysis, complex logic, algorithm optimization, large-scale refactoring
Claude--backend claudeDocumentation, prompt engineering, clear-requirement features
Gemini--backend geminiUI/UX prototyping, design system implementation
OpenCode--backend opencodeLightweight tasks, minimal feature set

Agent Presets

Agent presets bundle backend, model, prompt, and tool control into a reusable name. Use --agent <name> to select.

Sources (checked in order):

  1. ~/.codeagent/models.jsonagents.<name> object
  2. ~/.codeagent/agents/<name>.md → markdown file becomes the prompt

Agent config fields (in models.json):

{
  "agents": {
    "develop": {
      "backend": "codex",
      "model": "gpt-4.1",
      "prompt_file": "~/.codeagent/prompts/develop.md",
      "reasoning": "high",
      "yolo": true,
      "allowed_tools": ["Read", "Write", "Bash"],
      "disallowed_tools": ["WebFetch"]
    }
  }
}

Common agent presets:

AgentPurposeRead-Only
code-explorerTrace code, map architecture, find patternsYes
code-architectDesign approaches, file plans, build sequencesYes
code-reviewerReview for bugs, simplicity, conventionsYes
developImplement code, run tests, make changesNo

Skill Injection

Auto-Detection

When --skills is not specified, skills are auto-detected from the working directory:

Detected FilesInjected Skills
go.mod / go.sumgolang-base-practices
Cargo.tomlrust-best-practices
pyproject.toml / setup.py / requirements.txtpython-best-practices
package.jsonvercel-react-best-practices, frontend-design
vue.config.js / vite.config.ts / nuxt.config.tsvue-web-app

Manual Override

codeagent-wrapper --agent develop --skills golang-base-practices,frontend-design - . <<'EOF'
Implement full-stack feature...
EOF

Skills are loaded from ~/.claude/skills/{name}/SKILL.md, stripped of YAML frontmatter, and injected into the task prompt.

Usage Patterns

Single Task (HEREDOC recommended)

codeagent-wrapper --backend codex - [workdir] <<'EOF'
<task content here>
EOF

With Agent Preset

codeagent-wrapper --agent develop --skills golang-base-practices - . <<'EOF'
Implement the authentication middleware following existing patterns.
EOF

Simple Task (short prompts only)

codeagent-wrapper --backend codex "simple task description" [workdir]

Auto-stdin detection: When task length exceeds 800 characters or contains special characters (\n, \, ", ', ` `, $), stdin mode is used automatically. Use -` to force stdin mode explicitly.

Resume Session

codeagent-wrapper --backend codex resume <session_id> - <<'EOF'
<follow-up task>
EOF

# Or with agent preset
codeagent-wrapper --agent develop resume <session_id> - <<'EOF'
<follow-up task>
EOF

Worktree Isolation

Execute in an isolated git worktree to keep changes separate from the main branch:

# Create new worktree automatically (branch: do/{task_id})
codeagent-wrapper --agent develop --worktree - . <<'EOF'
Implement feature in isolation...
EOF

# Reuse existing worktree (set by /do workflow)
DO_WORKTREE_DIR=/path/to/worktree codeagent-wrapper --agent develop - . <<'EOF'
Continue work in existing worktree...
EOF

Rules:

  • DO_WORKTREE_DIR env var takes precedence over --worktree
  • Read-only agents (code-explorer, code-architect, code-reviewer) do NOT need worktree
  • Only develop agent needs worktree when making changes

Parallel Execution

Task Config Format

codeagent-wrapper --parallel <<'EOF'
---TASK---
id: <unique_id>
agent: <agent_name>
workdir: <path>
backend: <name>
model: <model_name>
reasoning_effort: <low|medium|high>
skills: <skill1>, <skill2>
dependencies: <id1>, <id2>
session_id: <id>
skip_permissions: true|false
worktree: true|false
---CONTENT---
<task content>
EOF

Task header fields (all optional except id):

FieldDescription
idUnique task identifier (required)
agentAgent preset name
workdirWorking directory
backendOverride global backend
modelOverride model
reasoning_effortReasoning level
skillsComma-separated skill names
dependenciesComma-separated task IDs that must complete first
session_idResume a previous session
skip_permissionsSkip permission prompts (Claude backend)
worktreeExecute in git worktree

Multi-Agent Orchestration Example

codeagent-wrapper --parallel <<'EOF'
---TASK---
id: p1_architecture
agent: code-explorer
workdir: .
---CONTENT---
Map architecture for the authentication subsystem. Return: module map + key files with line numbers.

---TASK---
id: p1_conventions
agent: code-explorer
workdir: .
---CONTENT---
Identify testing patterns, conventions, config. Return: test commands + file locations.

---TASK---
id: p2_design
agent: code-architect
workdir: .
dependencies: p1_architecture, p1_conventions
---CONTENT---
Design minimal-change implementation plan based on architecture analysis.

---TASK---
id: p3_backend
agent: develop
workdir: .
skills: golang-base-practices
dependencies: p2_design
---CONTENT---
Implement backend changes following the design plan.

---TASK---
id: p3_frontend
agent: develop
workdir: .
skills: vercel-react-best-practices,frontend-design
dependencies: p2_design
---CONTENT---
Implement frontend changes following the design plan.

---TASK---
id: p4_review
agent: code-reviewer
workdir: .
dependencies: p3_backend, p3_frontend
---CONTENT---
Review all changes for correctness, edge cases, and KISS compliance.
Classify each issue as BLOCKING or MINOR.
EOF

Dependency Resolution

  • Tasks are topologically sorted (Kahn's algorithm)
  • Circular dependencies are detected and reported
  • Failed parent tasks cause dependent tasks to be skipped
  • Independent tasks at the same level run concurrently

Output Modes

Summary (default): Structured report per task with extracted fields:

=== Execution Report ===
3 tasks | 2 passed | 1 failed

### task_id PASS 92%
Did: Brief description of work done
Files: file1.ts, file2.ts
Tests: 12 passed
Log: /tmp/codeagent-xxx.log

### task_id FAIL
Exit code: 1
Error: Assertion failed
Detail: Expected status 200 but got 401
Log: /tmp/codeagent-zzz.log

Full output (--full-output): Complete task messages included. Use only for debugging specific failures.

Structured JSON Output

codeagent-wrapper --parallel --output results.json <<'EOF'
...
EOF

Produces:

{
  "results": [
    {
      "task_id": "task_1",
      "exit_code": 0,
      "message": "...",
      "session_id": "...",
      "coverage": "92%",
      "files_changed": ["file.ts"],
      "tests_passed": 12,
      "log_path": "/tmp/..."
    }
  ],
  "summary": { "total": 3, "success": 2, "failed": 1 }
}

Return Format

Single task output:

Agent response text here...

---
SESSION_ID: 019a7247-ac9d-71f3-89e2-a823dbd8fd14

Environment Variables

VariableDescriptionDefault
CODEX_TIMEOUTTimeout in milliseconds7200000 (2 hours)
CODEAGENT_SKIP_PERMISSIONSSkip Claude backend permission prompts (true/false)true
CODEX_BYPASS_SANDBOXControl Codex sandbox bypass (true/false)true
CODEAGENT_MAX_PARALLEL_WORKERSMax concurrent parallel workers (0=unlimited, max 100)0
DO_WORKTREE_DIRReuse existing worktree path (set by /do workflow)none
CODEAGENT_TMPDIRCustom temp directory for executable scriptssystem temp
CODEAGENT_ASCII_MODEUse ASCII symbols (PASS/WARN/FAIL) instead of Unicodefalse
CODEAGENT_LOGGER_CLOSE_TIMEOUT_MSLogger shutdown timeout in ms5000

Config file: Supports ~/.codeagent/config.(yaml|yml|json|toml) with the same keys as CLI flags (kebab-case). Env vars use CODEAGENT_ prefix with underscores.

Exit Codes

CodeMeaning
0Success
1General error (missing args, failed task)
124Timeout
127Backend command not found
130Interrupted (Ctrl+C)

Invocation Pattern

Single Task:

Bash tool parameters:
- command: codeagent-wrapper --agent <agent> --skills <skills> - [workdir] <<'EOF'
  <task content>
  EOF
- timeout: 7200000
- description: <brief description>

Parallel Tasks:

Bash tool parameters:
- command: codeagent-wrapper --parallel <<'EOF'
  ---TASK---
  id: task_id
  agent: <agent>
  workdir: /path
  skills: <skill1>, <skill2>
  dependencies: dep1, dep2
  ---CONTENT---
  task content
  EOF
- timeout: 7200000
- description: <brief description>

With Worktree:

Bash tool parameters:
- command: DO_WORKTREE_DIR=<path> codeagent-wrapper --agent develop --skills <skills> - . <<'EOF'
  <task content>
  EOF
- timeout: 7200000
- description: <brief description>

Critical Rules

NEVER kill codeagent processes. Long-running tasks (2-10 minutes) are normal. Instead:

  1. Check task status via log file: tail -f /tmp/claude/<workdir>/tasks/<task_id>.output
  2. Wait with timeout: TaskOutput(task_id="<id>", block=true, timeout=300000)
  3. Check process without killing: ps aux | grep codeagent-wrapper | grep -v grep

Why: Killing wastes API costs and loses progress.

Tool Control (Claude Backend)

When using Claude backend with agent presets, control available tools:

{
  "agents": {
    "safe-develop": {
      "backend": "claude",
      "allowed_tools": ["Read", "Write", "Bash", "Grep", "Glob"],
      "disallowed_tools": ["WebFetch", "WebSearch"]
    }
  }
}

Passed as --allowedTools and --disallowedTools to Claude CLI. Explicit enumeration only (no wildcards).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

26.36%
按下载量换算373

Claude Code

25.38%
按下载量换算359

Cursor

19.18%
按下载量换算272

Codex

14.35%
按下载量换算203

Antigravity

8.04%
按下载量换算114

windsurf

3.68%
按下载量换算52

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills