🚀 Cursor Prompt: Розгортання агентів microDAO Node-2¶
Завдання¶
Створити всіх агентів (35-50) для microDAO Node-2 з правильним призначенням LLM через Swoper/Ollama.
📋 Контекст¶
Структура microDAO Node-2:¶
- Пам'ять: Qdrant, Milvus, Neo4j, NATS JetStream
- LLM: Swoper (single-active) через Ollama
- Координатор: NodeAgent (port 9600)
- RAG Router: Local (port 9401)
- CrewAI: Для формування команд агентів
Архітектура агентів:¶
- 8-10 CrewAI команд (не одна велика команда)
- System agents (без CrewAI): Solarius, Nexor, Strategic Sentinels, Vindex, Arbitron, Aurora, Helix
- Somnia (без CrewAI): фоновий шар пам'яті
- NodeAgent = мета-менеджер (не член CrewAI)
🎯 Створити структуру директорій¶
~/node2/agents/
├── system/ # System agents (БЕЗ CrewAI)
│ ├── solarius/
│ ├── nexor/
│ ├── strategic_sentinels/
│ ├── vindex/
│ ├── arbitron/
│ ├── aurora/
│ └── helix/
│
├── engineering/ # Engineering Crew (CrewAI)
│ ├── byteforge/
│ ├── vector/
│ ├── chainweaver/
│ ├── cypher/
│ └── canvas/
│
├── marketing/ # Marketing Crew (CrewAI)
│ ├── roxy/
│ ├── mira/
│ ├── tempo/
│ ├── harmony/
│ ├── faye/
│ └── storytelling/
│
├── finance/ # Finance Crew (CrewAI)
│ └── [TBD агенти]
│
├── web3/ # Web3 Crew (CrewAI)
│ └── [TBD агенти]
│
├── security/ # Security Overwatch Crew (CrewAI)
│ ├── shadelock/
│ └── exor/
│
├── crypto-forensics/ # Crypto Forensics Crew (CrewAI)
│ ├── shadelock/
│ └── exor/
│
├── vision/ # Vision Crew (CrewAI)
│ ├── iris/
│ ├── lumen/
│ └── spectra/
│
├── somnia/ # Somnia (БЕЗ CrewAI)
│ └── somnia/
│
└── memory/ # Memory Agents (БЕЗ CrewAI)
└── [TBD агенти]
🤖 Створити агентів з призначенням LLM¶
1. System Agents (Reasoning Models)¶
LLM: DeepSeek-R1, Mistral 22B, Gemma 30B
Solarius¶
- Role: Strategic Leader
- LLM:
deepseek-r1:q4(через Ollama) - Priority: HIGH
- CrewAI: ❌ Ні
Nexor¶
- Role: System Coordinator
- LLM:
deepseek-r1:q4 - Priority: HIGH
- CrewAI: ❌ Ні
Strategic Sentinels¶
- Role: Strategic Planning
- LLM:
mistral-nemo:22b:q4 - Priority: HIGH
- CrewAI: ❌ Ні
Vindex¶
- Role: Decision Maker
- LLM:
deepseek-r1:q4 - Priority: HIGH
- CrewAI: ❌ Ні
Arbitron¶
- Role: Conflict Resolver
- LLM:
mistral-nemo:22b:q4 - Priority: MEDIUM
- CrewAI: ❌ Ні
Aurora¶
- Role: Innovation Catalyst
- LLM:
gemma2:27b-it:q4 - Priority: MEDIUM
- CrewAI: ❌ Ні
Helix¶
- Role: System Architect
- LLM:
deepseek-r1:q4 - Priority: HIGH
- CrewAI: ❌ Ні
2. Engineering Crew (Code Models)¶
LLM: Qwen Code 72B, StarCoder2 34B
ByteForge¶
- Role: Code Generator
- LLM:
qwen2.5-coder:72b:q4 - Priority: HIGH
- CrewAI: ✅ Так
Vector¶
- Role: Vector Operations Specialist
- LLM:
starcoder2:34b:q4 - Priority: HIGH
- CrewAI: ✅ Так
ChainWeaver¶
- Role: Blockchain Developer
- LLM:
qwen2.5-coder:72b:q4 - Priority: HIGH
- CrewAI: ✅ Так
Cypher¶
- Role: Security Coder
- LLM:
starcoder2:34b:q4 - Priority: HIGH
- CrewAI: ✅ Так
Canvas¶
- Role: UI/UX Developer
- LLM:
qwen2.5-coder:72b:q4 - Priority: MEDIUM
- CrewAI: ✅ Так
3. Marketing Crew (Fast Models)¶
LLM: Mistral 7B, Qwen-2 7B, GPT-OSS-20B
Roxy¶
- Role: Social Media Manager
- LLM:
mistral:7b-instruct - Priority: HIGH
- CrewAI: ✅ Так
Mira¶
- Role: Content Creator
- LLM:
qwen2.5:7b-instruct - Priority: HIGH
- CrewAI: ✅ Так
Tempo¶
- Role: Campaign Manager
- LLM:
gpt-oss:20b:q4 - Priority: MEDIUM
- CrewAI: ✅ Так
Harmony¶
- Role: Brand Manager
- LLM:
mistral:7b-instruct - Priority: MEDIUM
- CrewAI: ✅ Так
Faye¶
- Role: Community Manager
- LLM:
qwen2.5:7b-instruct - Priority: MEDIUM
- CrewAI: ✅ Так
Storytelling¶
- Role: Story Creator
- LLM:
qwen2.5:7b-instruct - Priority: MEDIUM
- CrewAI: ✅ Так
4. Vision Crew (Vision Models)¶
LLM: Qwen2-VL-32B, Qwen3-VL
Iris¶
- Role: Image Analyzer
- LLM:
qwen2-vl:32b-instruct:q4 - Priority: HIGH
- CrewAI: ✅ Так
Lumen¶
- Role: Visual Content Creator
- LLM:
qwen2-vl:32b-instruct:q4 - Priority: HIGH
- CrewAI: ✅ Так
Spectra¶
- Role: Multimodal Processor
- LLM:
qwen3-vl:latest(вже встановлено) - Priority: HIGH
- CrewAI: ✅ Так
5. Security Overwatch Crew (Code + Reasoning)¶
LLM: Qwen Code 72B, DeepSeek-R1
Shadelock¶
- Role: Security Auditor
- LLM:
qwen2.5-coder:72b:q4 - Priority: HIGH
- CrewAI: ✅ Так
Exor¶
- Role: Threat Analyst
- LLM:
deepseek-r1:q4 - Priority: HIGH
- CrewAI: ✅ Так
6. Crypto Forensics Crew (Code + Reasoning)¶
LLM: Qwen Code 72B, DeepSeek-R1
Shadelock¶
- Role: Blockchain Forensics
- LLM:
qwen2.5-coder:72b:q4 - Priority: HIGH
- CrewAI: ✅ Так
Exor¶
- Role: Crypto Investigator
- LLM:
deepseek-r1:q4 - Priority: HIGH
- CrewAI: ✅ Так
7. Somnia (Light + High Context)¶
LLM: Qwen-2 7B, Gemma 2B, Mistral 7B
Somnia¶
- Role: Subconscious Memory Layer
- LLM:
qwen2.5:7b-instruct - Priority: HIGH
- CrewAI: ❌ Ні (фоновий шар)
📝 Шаблон створення агента¶
Для кожного агента створити:
~/node2/agents/[crew]/[agent]/agent.py¶
from crewai import Agent
from langchain_community.llms import Ollama
from crewai_tools import tool
# LLM через Ollama (Swoper буде керувати через NodeAgent)
llm = Ollama(
base_url="http://localhost:11434",
model="deepseek-r1:q4" # або інша модель з плану
)
# Tool для локальної пам'яті
@tool("Local Memory Search")
def local_memory_search(query: str) -> str:
"""Search in local memory via RAG Router"""
import httpx
response = httpx.post(
"http://localhost:9401/query",
json={"query": query, "query_type": "vector_search", "limit": 10},
timeout=30.0
)
return response.json().get("results", [])
# Створення агента
agent = Agent(
role="Agent Role",
goal="Agent Goal",
backstory="Agent Backstory",
llm=llm,
tools=[local_memory_search],
verbose=True,
allow_delegation=False
)
~/node2/agents/[crew]/[agent]/system_prompt.md¶
# [Agent Name] - System Prompt
## Role
[Детальний опис ролі]
## Goal
[Мета агента]
## Backstory
[Історія та контекст]
## Capabilities
- [Способності 1]
- [Способності 2]
## Memory Access
- Local Qdrant (Fast RAG)
- Local Milvus (Heavy indexing)
- Local Neo4j (Graph queries)
## LLM Model
[Назва моделі через Ollama]
## Tools
- Local Memory Search
- [Інші інструменти]
~/node2/agents/[crew]/[agent]/config.yaml¶
agent:
name: "agent_name"
role: "Agent Role"
llm_model: "deepseek-r1:q4"
priority: "high"
crew_assignment: "engineering" # або null для system agents
memory_access:
qdrant: true
milvus: true
neo4j: true
🎭 Створити CrewAI команди¶
Engineering Crew¶
# ~/node2/crewai/crews/engineering_crew.py
from crewai import Crew, Process, Task
from agents.engineering.byteforge import byteforge
from agents.engineering.vector import vector
# ... інші агенти
engineering_crew = Crew(
agents=[byteforge, vector, chainweaver, cypher, canvas],
tasks=[...], # Задачі для команди
process=Process.sequential,
verbose=True,
memory=True
)
Marketing Crew¶
# ~/node2/crewai/crews/marketing_crew.py
marketing_crew = Crew(
agents=[roxy, mira, tempo, harmony, faye, storytelling],
tasks=[...],
process=Process.sequential,
verbose=True,
memory=True
)
... (інші команди)
🔗 Інтеграція з NodeAgent¶
NodeAgent координує всі Crew: - Маршрутизація між Crew - Управління Swoper (завантаження/вивантаження моделей) - Контроль ресурсів - Health checks
✅ Чеклист створення¶
- [ ] Створити структуру директорій
~/node2/agents/ - [ ] Створити всіх агентів з system prompts
- [ ] Налаштувати LLM routing через Ollama
- [ ] Створити CrewAI команди (8-10 груп)
- [ ] Інтегрувати з NodeAgent
- [ ] Створити конфігурацію для кожного агента
- [ ] Тестування
📋 Моделі для встановлення¶
Пріоритет 1 (критичні): - deepseek-r1:q4 - mistral-nemo:22b:q4 - gemma2:27b-it:q4 - qwen2.5-coder:72b:q4 - starcoder2:34b:q4 - qwen2-vl:32b-instruct:q4 - mistral:7b-instruct - qwen2.5:7b-instruct - gpt-oss:20b:q4
Пріоритет 2 (спеціалізовані): - deepseek-math:33b:q4
Пріоритет 3 (ultra-light): - gemma2:2b-it - phi3:mini - qwen2.5:3b-instruct
🚀 Готово до виконання!¶
Використайте цей промт для створення всіх агентів microDAO Node-2.