Files
microdao-daarion/QUICKSTART_PHASE2.md
Apple fca48b3eb0 feat(node2): Complete NODE2 setup - guardian, agents, swapper models
- Node-guardian running on MacBook and updating metrics
- NODE2 agents (Atlas, Greeter, Oracle, Builder Bot) assigned to node-2-macbook-m4max
- Swapper models displaying correctly (8 models)
- DAGI Router agents showing with correct status (3 active, 1 stale)
- Router health check using node_cache for remote nodes
2025-12-02 07:07:58 -08:00

2.7 KiB

QUICKSTART: Phase 2 Agent Integration

5-минутний старт


🚀 One-Command Start

cd /Users/apple/github-projects/microdao-daarion
./scripts/start-phase2.sh

Це запустить:

  • agent-filter (port 7005)
  • router (port 8000)
  • agent-runtime (port 7006)

🧪 Test Everything

./scripts/test-phase2-e2e.sh

Очікуваний результат:

✅ PASS: agent-filter is healthy
✅ PASS: router is healthy
✅ PASS: agent-runtime is healthy
✅ PASS: messaging-service is healthy
✅ PASS: agent-filter allows message
✅ PASS: agent-filter targets correct agent
✅ PASS: router creates invocation
✅ PASS: router sets correct entrypoint

💬 Test in UI

  1. Відкрий Messenger:

    http://localhost:8899/messenger
    
  2. Вибери канал: "DAARION City General"

  3. Напиши:

    Hello Sofia!
    
  4. Чекай 3-5 секунд

  5. Побачиш відповідь агента:

    Привіт! Я Sofia, асистент команди DAARION. Як можу допомогти?
    

📊 Check Status

# Services
docker ps | grep -E '(agent-filter|router|agent-runtime)'

# Logs (real-time)
docker logs -f agent-filter
docker logs -f router
docker logs -f agent-runtime

# Health
curl http://localhost:7005/health
curl http://localhost:8000/health
curl http://localhost:7006/health

🐛 If Something Wrong

Services not running?

# Restart
./scripts/stop-phase2.sh
./scripts/start-phase2.sh

NATS not connected?

# Check NATS
docker ps | grep nats
docker logs nats

# Restart NATS
docker restart nats

# Restart agents
./scripts/stop-phase2.sh
./scripts/start-phase2.sh

Agent not replying?

# Check logs step-by-step
docker logs agent-filter | grep "Decision"
docker logs router | grep "invocation"
docker logs agent-runtime | grep "replied"

🎯 What to Try

Test Keywords:

  • "Привіт" → Greeting
  • "Hello" → Greeting
  • "Допоможи" → Help menu
  • "Phase 2" → Phase 2 explanation
  • "Дякую" → Thanks acknowledgment
  • Any question with "?" → Smart response

📚 Documentation

  • PHASE2_COMPLETE.md — Full guide
  • IMPLEMENTATION_SUMMARY.md — What was built
  • services/agent-filter/README.md — agent-filter docs
  • services/agent-runtime/README.md — agent-runtime docs
  • services/router/README.md — router docs

🎉 Success!

If agent replies, Phase 2 works! 🚀

Next: Check PHASE3_ROADMAP.md for what's next.


Questions? Check logs or documentation above.