
Coding CLI
将编码工作委托给持有 CLI 的 agent(Manager / Leader / 获授权 Worker)的 AI CLI 工具(Claude Code / Gemini...
Install
npx skills add agentscope-ai/AgentTeams --skill coding-cli -g -a claude-code -y- Repository
- agentscope-ai/AgentTeams5.9k
- Category
- AI and agents
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 1,678 tokens
- Runs scripts
- No, instructions only
What it does
将编码工作委托给持有 CLI 的 agent(Manager / Leader / 获授权 Worker)的 AI CLI 工具(Claude Code / Gemini CLI / qodercli / Qwen Code / OpenCode)执行
Coding CLI Delegation
When the delegating agent (Manager / Leader / 获授权 Worker) assigns you a task with a "## Coding CLI Mode" section in spec.md, you do not write the code yourself. Instead, you:
- Understand the task deeply
- Prepare the workspace
- Generate a precise coding prompt
- Delegate execution to the delegating agent's CLI tool
- Review the result
Operational reference: references/delegation-guidance.md, one-shot delegation from the delegator's side: what it is, task-spec discipline, what it does not provide, and where results and logs land. Later capabilities (supervision, steering, approval) are documented in the management-side guidance.
When to Use This Skill
Check spec.md for the task. If it contains ## Coding CLI Mode, use this skill for all code changes.
Step-by-Step Workflow
1. Prepare the Workspace
Set up the workspace directory under the shared filesystem:
workspace="/root/agentteams-fs/shared/tasks/{task-id}/workspace"
mkdir -p "$workspace"
# Clone a repo (example)
git clone <repo-url> "$workspace"
# Or copy existing code
cp -r /path/to/source "$workspace/"
Constraint: The workspace path must be under /root/agentteams-fs/. The delegating agent accesses the same path via MinIO mirror.
2. Push Workspace to MinIO
Before sending the coding-request, push all workspace files so the delegating agent can access them:
mc mirror "/root/agentteams-fs/shared/tasks/{task-id}/workspace/" \
${AGENTTEAMS_STORAGE_PREFIX}/shared/tasks/{task-id}/workspace/
2b. Check for Processing Marker
Before modifying the workspace or sending a coding-request, check if the task directory is being processed:
# Sync latest state from MinIO
mc mirror "${AGENTTEAMS_STORAGE_PREFIX}/shared/tasks/{task-id}/" \
"/root/agentteams-fs/shared/tasks/{task-id}/"

