refactor: rename MCP tool from qwen3_task to task and update delegation flow
- Rename MCP tool `qwen3_task` → `task` in server.py and all references - Enforce direct use of `mcp__qwen3__task` (no sub-agents) in docs - Add bootstrap logic to install.sh/update_crazyclaude.sh for repo self-installation - Introduce tools-local/ directory for local tool overrides - Add test suite (test_qwen3.sh, test_qwen3.md) to validate Qwen3 file generation - Update .gitignore: ignore test_qwen3_output/, add missing .claude/ - Add system prompt to server.py for fs_write enforcement - Update agent docs (qwen3-worker, code-reviewer, delegation-rules, task-planner) to reflect new tool name and workflow - Add system instruction: always use fs_write/fs_patch, never display content in response
This commit is contained in:
28
install.sh
28
install.sh
@@ -7,6 +7,16 @@
|
||||
set -euo pipefail
|
||||
|
||||
CLAUDE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Bootstrap : si on lance install.sh depuis le repo CrazyClaude lui-même
|
||||
# (et non depuis .claude/ d'un autre projet), on s'installe en tant que .claude/
|
||||
if [[ "$(basename "$CLAUDE_DIR")" != ".claude" ]]; then
|
||||
TARGET="${1:-$(pwd)/.claude}"
|
||||
echo "==> Bootstrap : installation de CrazyClaude dans $TARGET"
|
||||
git clone "$CLAUDE_DIR" "$TARGET"
|
||||
exec bash "$TARGET/install.sh"
|
||||
fi
|
||||
|
||||
PROJECT_DIR="$(dirname "$CLAUDE_DIR")"
|
||||
|
||||
require() {
|
||||
@@ -31,7 +41,25 @@ if [[ ! -f "$CLAUDE_DIR/llm-functions/Argcfile.sh" ]]; then
|
||||
else
|
||||
echo "déjà présent"
|
||||
fi
|
||||
if [[ ! -f "$CLAUDE_DIR/llm-functions/tools.txt" ]]; then
|
||||
echo "Génération de tools.txt..."
|
||||
find "$CLAUDE_DIR/llm-functions/tools" -maxdepth 1 -type f \
|
||||
! -name 'demo_*' \
|
||||
| sed 's|.*/||' \
|
||||
| sort > "$CLAUDE_DIR/llm-functions/tools.txt"
|
||||
echo " $(wc -l < "$CLAUDE_DIR/llm-functions/tools.txt") outils activés"
|
||||
fi
|
||||
(cd "$CLAUDE_DIR/llm-functions" && argc build)
|
||||
LOCAL_TOOLS_DIR="$CLAUDE_DIR/tools-local"
|
||||
if [[ -d "$LOCAL_TOOLS_DIR" ]]; then
|
||||
for src in "$LOCAL_TOOLS_DIR"/*; do
|
||||
[[ -f "$src" ]] || continue
|
||||
name="$(basename "$src")"
|
||||
cp "$src" "$CLAUDE_DIR/llm-functions/bin/$name"
|
||||
chmod +x "$CLAUDE_DIR/llm-functions/bin/$name"
|
||||
done
|
||||
echo " overrides locaux appliqués"
|
||||
fi
|
||||
echo "OK"
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user