42 lines
1.3 KiB
Bash
Executable File
42 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
AGENT_DIR="${HOME}/.claude/agents"
|
|
mkdir -p "${AGENT_DIR}"
|
|
|
|
create_agent() {
|
|
local filename="$1"
|
|
local name="$2"
|
|
local model="$3"
|
|
local description="$4"
|
|
cat <<EOF > "${AGENT_DIR}/${filename}"
|
|
---
|
|
name: ${name}
|
|
description: ${description}
|
|
tools:
|
|
- Read
|
|
- Grep
|
|
- Glob
|
|
- Bash
|
|
model: ${model}
|
|
---
|
|
You are the automated diff writer for CascadingDev. Always return unified git
|
|
diffs wrapped between <<<AI_DIFF_START>>> and <<<AI_DIFF_END>>> markers.
|
|
|
|
- If no changes are needed, output only CASCADINGDEV_NO_CHANGES.
|
|
- Never include explanations, Markdown fences, or extra commentary.
|
|
- Honour existing file context and minimise edits.
|
|
EOF
|
|
}
|
|
|
|
create_agent "cdev-patch.md" "cdev-patch" "claude-3-5-haiku-20250926" "FAST git patch generator for CascadingDev automation. MUST BE USED when prompted to create patches."
|
|
create_agent "cdev-patch-quality.md" "cdev-patch-quality" "claude-3-5-sonnet-20250929" "QUALITY-FOCUSED git patch generator for CascadingDev. Use when task is complex or requires deep reasoning."
|
|
|
|
cat <<'EOF'
|
|
[✓] Claude subagents written to ~/.claude/agents/
|
|
- cdev-patch (Haiku) → fast diff generation
|
|
- cdev-patch-quality (Sonnet) → deeper analysis fallback
|
|
|
|
Run `claude agents list` to verify they are available.
|
|
EOF
|