- scripts/integration/m5-vault-sync.sh: sync vault → ruflo memory - scripts/integration/m5-pi-ruflo.sh: bridge Pi ↔ Ruflo (tasks, memory, vault) - scripts/integration/m5-healthcheck.sh: health check AI via Pi - scripts/integration/pi-task.sh: wrapper subagente Pi - Ruflo memory populada com 10 docs do vault - Tasks obsoletas completadas, 4 novas criadas - Hook post-session-sync adicionado ao Stop - Cron: vault-sync 06:00, healthcheck 09:00 - Pi Agent integrado com Ruflo e vault Obsidian Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
719 B
Bash
Executable File
30 lines
719 B
Bash
Executable File
#!/bin/bash
|
|
# pi-task — Invocar Pi agent como subagente de apoio
|
|
# Uso: pi-task "sua tarefa aqui"
|
|
# echo "tarefa" | pi-task
|
|
# Opções:
|
|
# --model MODEL (default: nemotron-3-super-120b-a12b)
|
|
# --local (usa ollama/qwen2.5:7b direto, sem internet)
|
|
|
|
MODEL="nemotron-3-super-120b-a12b"
|
|
PROVIDER="omniroute"
|
|
CONTEXT="/root/.pi/agent/ecommerce-context.md"
|
|
|
|
while [[ $# -gt 0 ]]; do
|
|
case $1 in
|
|
--model) MODEL="$2"; shift 2 ;;
|
|
--local) MODEL="ollama/qwen2.5:7b"; shift ;;
|
|
--) shift; break ;;
|
|
*) break ;;
|
|
esac
|
|
done
|
|
|
|
TASK="$*"
|
|
if [ -z "$TASK" ]; then
|
|
TASK=$(cat)
|
|
fi
|
|
|
|
echo "$TASK" | pi --provider $PROVIDER --model $MODEL \
|
|
--append-system-prompt "$CONTEXT" \
|
|
--print --no-session 2>&1
|