🎖️ คู่มือกองร้อย TOPMANIDMB

AI Agent System v3.2 — 6 Agents x Task Pipeline x Training x Collaboration

📋 ภาพรวม

กองร้อย TOPMANIDMB คือระบบ AI Agent 6 ตัว ทำงานอัตโนมัติ 24/7 บน DO1 VPS
แต่ละตัวมีบทบาทเฉพาะทาง ทำงานเป็นทีม ส่งต่องานให้กัน เรียนรู้จากประสบการณ์
Observe สังเกตข้อมูล → Think AI คิดวิเคราะห์ → Act ทำจริง → Reflect สรุปบทเรียน → Sleep → วนซ้ำ
รายการรายละเอียด
AI ModelQwen3.5-Flash (DashScope) — ~฿0.07/call
ค่าใช้จ่าย~87 THB/วัน · ~2,600 THB/เดือน (งบ 5,000)
MemorySQLite persistent — จำทุกอย่างที่ทำ
Task Pipelineสร้างงาน → มอบหมาย → ทำ → ส่งผล → ประเมิน
Smart Assignน้องกุ้ง auto-assign ตาม specialty + workload balance
Multi-ChannelTG + LINE + Discord — ข้อมูลสำคัญส่ง 3 ช่องทาง
Security Watchแมคตรวจ SSH/UFW/SSL/API 24/7 → alert 3 ช่องทาง
Quality MonitorGrade A-D + ROI scoring + failure detection
Weekly Reportทุกจันทร์ 08:00 — 🏆 Leaderboard + สรุปสัปดาห์
Learningสะสมบทเรียน → inject กลับเข้า AI → ฉลาดขึ้นเรื่อยๆ
Training SystemDrill Master + Skill Progression (30 skills, 5 levels) + Scenario + Benchmark
Prediction Trackingปลา predict ราคา coin → ตรวจ 24h → Win Rate tracking
Alert Escalationส่ง alert → ไม่ตอบ 30 นาที → escalate ซ้ำ (max 3 ครั้ง)
Knowledge BaseAuto-build จาก reflections ทุก 12 loops · 6 categories · searchable
Incident Playbooksแมค+โรส 5 playbooks — server_down, disk_full, brute_force, ssl_expire, high_error
Agent Collaborationกุ้ง auto-detect 5 patterns → สร้าง multi-agent tasks อัตโนมัติ

👥 Agent ทั้ง 6 ตัว

🌹
น้องโรส
Daily Operations Monitor
ทุก 3 นาที
เช็คระบบ 21 services ทุก 3 นาที · แจ้งเตือนเมื่อมีปัญหา · สรุป Daily Brief 07:30 ทุกเช้า · Restart service ที่ down
check_services check_deep get_errors get_costs get_signals daily_report restart_service share_finding create_task start_task complete_task line_push discord_send
  • ตรวจสอบ 21 services ว่าทำงานปกติ
  • แจ้งเตือนผู้การทันทีเมื่อพบ service down
  • สรุป Daily Brief 07:30 ทุกเช้าส่ง TG Group
🐟
น้องปลา
Crypto Intelligence
ทุก 5 นาที
Monitor ราคา 10 coins, Fear & Greed Index, ข่าว crypto · วิเคราะห์ signal · โพสต์สรุปตลาดเข้า TG Group · ส่ง Strong Signal เข้า Premium Channel อัตโนมัติ
get_prices get_fear_greed search_news get_signals analyze_alert trigger_signals post_group notify_premium share_insight line_push discord_send
  • ติดตามตลาด crypto 24/7 — ราคา, volume, sentiment
  • ถ้า signal แรง (strength ≥ 7) → ส่งเข้า Premium Channel ทันที
  • โพสต์สรุปตลาดเข้า TG Group สำนักงาน
🦀
น้องปู
AML & Financial Intelligence
ทุก 10 นาที
สแกนเคสใหม่จาก TPO War Room · ตรวจจับ pattern เบอร์/บัญชีซ้ำข้ามเคส · วิเคราะห์เส้นทางเงิน · AI Case Analysis ผ่าน Travis
get_cases get_stats search_phone search_account search_scam analyze_case_ai cross_ref_phone share_alert line_push discord_send
  • Scan เคส TPO ทุก 10 นาที หา pattern ผิดปกติ
  • Cross-reference เบอร์/บัญชีข้ามระบบ (TPO + Analyzer)
  • แจ้งเตือนเมื่อพบ mule account หรือธุรกรรมผิดปกติ
🖥️
แมค
Infrastructure Optimizer (วิศวกรอาวุโส อายุ 60)
ทุก 10 นาที
ตรวจสุขภาพ 6 เครื่อง — disk, RAM, latency, backup · ล้าง log · VACUUM DB · Security Watch — SSH brute force, UFW firewall, SSL cert, API anomaly · แจ้งเตือน 3 ช่องทาง (TG+LINE+Discord)
deep_monitor check_machines backup_status latencies clean_logs vacuum_db restart_pm2 disk_detail ssh_check ufw_check ssl_check api_check connections security_summary line_push discord_send
  • ตรวจ disk/RAM/latency ทุกเครื่อง — แจ้งเตือนถ้า disk >85%
  • ล้าง journal log เก่า + VACUUM SQLite DB ประหยัดพื้นที่
  • ตรวจสอบ backup ว่าทำสำเร็จครบถ้วน
  • 🔒 SSH Watch — ตรวจ failed login ทุก 3 loops, brute force (>10/hr) → แจ้ง 3 ช่องทาง
  • 🔒 UFW Firewall — ตรวจ blocked IP, วิเคราะห์ pattern ผิดปกติ
  • 🔒 SSL Certificates — เช็ค 10 domains ทุก 12 loops, แจ้งถ้าเหลือ <14 วัน
  • 🔒 API Anomalies — ตรวจ 401/403/500 ผิดปกติ, auto-alert multichannel
⚖️
ทราวิส
Legal & News Intelligence (พ่อมด อายุ 500 ปี)
ทุก 15 นาที
ติดตามข่าวกฎหมาย, cybercrime, regulation ทั้งไทยและอังกฤษ · วิเคราะห์ผลกระทบกฎหมาย · โพสต์ข่าวสำคัญเข้า TG Group
search_legal search_regulation search_cybercrime get_warroom post_news_group deep_search get_warroom_articles share_finding line_push discord_send
  • สรุปข่าวกฎหมาย/cybercrime/ฟอกเงิน/regulation ทุก 15 นาที
  • วิเคราะห์ผลกระทบกฎหมายต่อการทำงาน ศปอส.
  • โพสต์ข่าวสำคัญเข้า TG Group สำนักงาน
🦐
น้องกุ้ง
Coordinator & Task Manager
ทุก 15 นาที
ผู้ประสานงานทีม — จัดการคิวงาน, มอบหมาย, review, ตรวจจับงานซ้ำ, ดูแลงบ, สรุปรายงาน · Quality Monitor (Grade A-D) · Cost Deep Analysis (ROI) · Smart Task Assignment · Weekly Report + Leaderboard
agent_stats reflections conflicts cost_check team_report create_task review_task task_queue_summary broadcast assign_task quality_scores response_times repeated_failures reflection_quality cost_trends agent_roi efficiency_report line_usage line_push discord_send
  • สร้าง Daily Mission 07:00 ทุกเช้า — 5 งานให้ทีม
  • Auto-review งานที่เสร็จ + สร้าง follow-up ถ้าจำเป็น
  • Auto Task Chain: ปลา→ปู→ทราวิส→โรส เมื่อพบ keyword สำคัญ
  • Morning Report 08:00 + Performance Report 18:00 → TG + LINE + Discord
  • 📊 Weekly Report + Leaderboard ทุกจันทร์ 08:00 → 3 ช่องทาง
  • 🧠 Smart Task Assignment — ดู specialty + workload → auto-assign งาน pending
  • 📈 Quality Monitor — วัด productivity score, Grade A-D ทุก 2 loops
  • 💰 Cost Deep Analysis — ROI per agent, cost trend, anomaly ทุก 4 loops
  • Budget Alert ถ้าค่าใช้จ่ายเกิน 80% (4,000 THB/เดือน)

📋 Task Pipeline

สร้างงาน → pendingassignedworkingdonereviewed

กุ้ง/ผู้การ/ใครก็ได้ สร้างงาน → มอบให้ agent ที่เหมาะ → agent start_task → ทำงาน → complete_task → กุ้ง review + สร้าง follow-up → ถ้าพบ keyword สำคัญ → Auto Task Chain

Auto Task Chain

เมื่อ agent ทำเสร็จ กุ้ง review อัตโนมัติ ถ้าผลงานมี keyword สำคัญ → สร้างงานต่อเนื่อง:
เมื่อพบ keywordส่งต่อให้
ปลาเจอข่าวscam, fraud, hack, แก๊ง, ฟอกปู (trace เงิน) + ทราวิส (กฎหมาย)
ปูพบ patternsuspicious, ผิดปกติ, mule, riskทราวิส (กฎหมาย) + โรส (สรุป Brief)
ทราวิสวิเคราะห์พ.ร.บ., มาตรา, ความผิดโรส (สรุป Legal Brief)
แมคพบปัญหาdisk full, error, down, criticalโรส (ตรวจสอบ + แก้ไข)

📡 Multi-Channel Output

Agent ส่งข้อมูลผ่าน 3 ช่องทางพร้อมกัน — ข้อมูลสำคัญส่งครบ, ข้อมูลทั่วไปส่ง TG อย่างเดียวเพื่อประหยัด LINE quota
ช่องทางข้อจำกัดใช้เมื่อ
📱 Telegramไม่จำกัดทุกข้อความ (default)
💚 LINE Push200 ข้อความ/เดือน/botเฉพาะ important=True (limit 180)
💜 Discordไม่จำกัดทุก important message → #ทั่วไป

ข้อมูลสำคัญ (→ 3 ช่องทาง)

Daily Mission 07:00 · Morning Report 08:00 · Performance Report 18:00 · Weekly Report จันทร์ · Security Alert · Team Report

ข้อมูลทั่วไป (→ TG เท่านั้น)

สรุปตลาด crypto · ข่าวกฎหมาย · เช็คสุขภาพระบบ · อัปเดตเคส

🧠 Agent Intelligence

🔒 Security Watch (แมค)

ตรวจจับภัยคุกคามอัตโนมัติ ส่ง alert 3 ช่องทาง
เช็คความถี่Alert เมื่อ
SSH Failed Loginทุก 3 loops (30 นาที)Brute force >10 attempts/hr
UFW Firewall Blocksทุก 3 loopsIP ถูกบล็อกผิดปกติ
API Anomaliesทุก 3 loops401/403/500 เยอะผิดปกติ
SSL Certificatesทุก 12 loops (2 ชม.)เหลือ <14 วัน

📊 Quality Monitor (น้องกุ้ง)

วัดคุณภาพ agent แบบ real-time
Metricวิธีวัด
Productivity Score0-100 จาก success rate + tool variety + tasks
GradeA (≥80) · B (≥60) · C (≥40) · D (<40)
ROI(actions + tasks×10 + observations×5) / cost_thb
Failure Detectionตรวจจับ tool ที่ fail ซ้ำ >3 ครั้ง

🧠 Smart Task Assignment (น้องกุ้ง)

Auto-assign งาน pending ให้ agent ที่เหมาะสุด ทุก loop
AgentSpecialty Keywords
🐟 น้องปลาintelligence, crypto, market, signal
🦀 น้องปูinvestigation, aml, fraud, scam, financial
⚖️ ทราวิสlegal, law, regulation, news, cybercrime
🖥️ แมคinfrastructure, infra, security, server, disk, backup
🌹 น้องโรสoperations, ops, report, monitor, service
Algorithm: match_count × 10 + (20 - workload × 5) → agent ที่ score สูงสุดได้งาน · ถ้าไม่มี keyword match → agent ที่ workload น้อยสุด

🏆 Weekly Report + Leaderboard

ทุกจันทร์ 08:00 → TG + LINE + Discord + TG Group สำนักงาน
ส่วนเนื้อหา
🏆 Leaderboard🥇🥈🥉 จัดอันดับ agent ตาม Grade + ROI
✅ Tasksสรุปงานสัปดาห์ แยกตาม agent
⚡ Actionsจำนวน actions + success rate
💰 Costรวมค่าใช้จ่าย + ประมาณรายเดือน + % งบ

🎯 Training System (เฟส 6.5.3)

ระบบฝึกฝน AI Agent อัตโนมัติ — ออกโจทย์ ตรวจงาน สะสม EXP เลื่อนระดับ · agents.topmanidmb.ai/training
📝 Drill Master (น้องกุ้ง)
ออกโจทย์ 09:00 ทุกเช้า ตาม specialty ของแต่ละ agent
ตรวจคำตอบ 17:00 ให้คะแนน 0-10 + feedback + EXP
📈 Skill Progression
30 skills ทั้งหมด · Auto-EXP จากการใช้ tool จริง
5 Levels: Rookie → Specialist → Expert → Master → Grandmaster
⚔️ Drill Scenarios
พฤหัสบดี 10:00 — ซ้อมรบทีม สถานการณ์จำลอง
ทดสอบการประสานงานข้าม agent
📊 Benchmark Test
ศุกร์ 09:00 — สอบ 3 ข้อ/agent
วัดผลเทียบกับ baseline ทุกสัปดาห์
กิจกรรมเวลารายละเอียด
Daily Drill09:00 ทุกวันกุ้งออกโจทย์ 1 ข้อ/agent ตาม specialty
Drill Grading17:00 ทุกวันกุ้งตรวจคำตอบ ให้คะแนน + EXP
Team Scenarioพฤหัสบดี 10:00ซ้อมรบทีม สถานการณ์จำลอง multi-agent
Benchmarkศุกร์ 09:00สอบ 3 ข้อ/agent วัดผลประจำสัปดาห์

🔮 Prediction Tracking (น้องปลา)

น้องปลา predict ทิศทางราคา coin → ระบบตรวจสอบราคาจริง 24 ชั่วโมงหลัง → คำนวณ Win Rate อัตโนมัติ
predict (coin, direction, confidence) → รอ 24h → ดึงราคาจริง → ✓ ถูก / ✗ ผิด → สะสม Win Rate → inject กลับเข้า AI เพื่อเรียนรู้
Toolหน้าที่
predictทำนายทิศทาง coin (UP/DOWN) พร้อม confidence %
prediction_accuracyดู Win Rate รวม + แยกตาม coin
prediction_historyดูประวัติ prediction ย้อนหลัง

🚨 Alert Escalation

เมื่อ agent ส่ง alert ถึงผู้การ — ถ้าไม่มีการตอบรับภายใน 30 นาที → ระบบ escalate ส่งซ้ำอัตโนมัติ (สูงสุด 3 ครั้ง)
Agent ส่ง alert → sent → 30 นาที ไม่ตอบ → escalate #1 → 30 นาที ไม่ตอบ → escalate #2 → 30 นาที ไม่ตอบ → critical (max 3 ครั้ง)
Priorityสถานะช่องทาง
NormalsentTG เท่านั้น
EscalatedescalatedTG + LINE
CriticalcriticalTG + LINE + Discord

📚 Knowledge Base

ระบบสร้างฐานความรู้อัตโนมัติจาก reflections ของ agents — ทุก 12 loops จะสกัดบทเรียนสำคัญเข้า Knowledge Base · ทุก agent สามารถค้นหาและใช้งานได้
หมวดเนื้อหา
troubleshootingวิธีแก้ปัญหาระบบ, service down, error patterns
cryptoบทเรียนจากตลาด, signal patterns, ข่าวสำคัญ
securityภัยคุกคาม, brute force patterns, SSL issues
legalกฎหมาย, regulation, มาตรา สำคัญ
investigationเทคนิคสืบสวน, cross-reference, mule patterns
generalบทเรียนทั่วไป, การประสานงาน, best practices
Auto-Build: ทุก 12 loops → สกัด reflections → จัดหมวดหมู่ → เก็บเข้า KB · Searchable: ทุก agent ค้นหาข้าม category ได้

📋 Incident Playbooks (แมค + น้องโรส)

Playbook สำหรับรับมือเหตุการณ์ฉุกเฉิน — step-by-step automated response · แมคตรวจจับ → เรียก playbook → ดำเนินการอัตโนมัติ → แจ้งผู้การ
PlaybookTriggerActions
server_downService ไม่ตอบ ≥2 ครั้งติดDiagnose → Restart → Verify → Alert
disk_fullDisk usage ≥90%Clean logs → VACUUM DB → Archive → Alert
brute_forceSSH failed login >10/hrBlock IP → UFW update → Check damage → Alert 3ch
ssl_expireSSL cert เหลือ <7 วันAuto-renew → Verify → Alert ถ้า fail
high_error_rateError rate >20% ใน 15 นาทีIdentify source → Restart → Monitor → Alert

🤝 Agent Collaboration (น้องกุ้ง auto-detect)

น้องกุ้งตรวจจับ pattern สำคัญจาก agent board/tasks → สร้าง multi-agent collaboration tasks อัตโนมัติ · ประสานงานข้าม agent เพื่อรับมือสถานการณ์ซับซ้อน
PatternAgents ที่เกี่ยวข้องตัวอย่าง
crypto_scam🐟 ปลา + 🦀 ปู + ⚖️ ทราวิสพบข่าว crypto scam → trace เงิน → วิเคราะห์กฎหมาย
cyber_attack🖥️ แมค + 🌹 โรส + 🦐 กุ้งพบ brute force → ตรวจระบบ → สรุป + escalate
money_laundering🦀 ปู + ⚖️ ทราวิส + 🐟 ปลาพบ mule account → วิเคราะห์กฎหมาย → ตรวจ crypto
system_crisis🖥️ แมค + 🌹 โรส + 🦐 กุ้งMultiple services down → full diagnostic → recovery plan
regulation_impact⚖️ ทราวิส + 🐟 ปลา + 🦀 ปูกฎหมายใหม่ → ผลกระทบ crypto → ผลกระทบ AML
Auto-Detect: กุ้งสแกน board + tasks ทุก loop → ถ้าพบ keyword match → สร้าง collaboration task → assign ทุก agent ที่เกี่ยวข้อง → ติดตามจนเสร็จ

📱 คำสั่ง TG (เฉพาะผู้การ)

คำสั่งตัวอย่างผลลัพธ์
/task สถานะ/task สถานะดูคิวงานทั้งหมด
/task <agent> <งาน>/task ปู ตรวจเบอร์ 0891234567สร้าง task ให้ปู priority สูงสุด
/task ปลา วิเคราะห์ BTCสร้าง task ให้ปลา
/task ทราวิส วิเคราะห์ พ.ร.บ.คอมพิวเตอร์สร้าง task ให้ทราวิส
/task แมค ตรวจ disk ทุกเครื่องสร้าง task ให้แมค
/task โรส สรุปปัญหาวันนี้สร้าง task ให้โรส
/status/statusดูสถานะ 21 services
/signals/signalsดู Crypto Signal Pro ล่าสุด
ใช้ได้กับบอท TG ทุกตัว (น้องโรส, น้องกุ้ง, น้องปลา, น้องปู, แมค, ทราวิส)

🕐 ตารางเวลาประจำวัน

เวลาAgentกิจกรรม
07:00🦐 กุ้งสร้าง Daily Mission — 5 งานให้ทีม → TG+LINE+Discord
07:30🌹 โรสDaily Brief → TG Group สำนักงาน
08:00🦐 กุ้งMorning Report — สรุปภาพรวมทีม → TG+LINE+Discord
ตลอดวันทุกตัวObserve→Think→Act→Reflect ตาม loop interval
ตลอดวัน🦐 กุ้งAuto-review + Auto Task Chain + Smart Task Assignment
ตลอดวัน🐟 ปลาStrong Signal → Premium Channel อัตโนมัติ
ตลอดวัน🖥️ แมคSecurity Watch — SSH/UFW/SSL/API ทุก 3-12 loops → แจ้ง 3 ช่องทาง
ตลอดวัน🦐 กุ้งQuality Monitor (ทุก 2 loops) + Cost Analysis (ทุก 4 loops)
18:00🦐 กุ้งPerformance Report — สรุปผลงานวัน → TG+LINE+Discord
จันทร์ 08:00🦐 กุ้ง🏆 Weekly Report + Agent Leaderboard → TG+LINE+Discord
09:00🦐 กุ้ง🎯 Drill Master — ออกโจทย์ให้ทุก agent
17:00🦐 กุ้ง🎯 Drill Grading — ตรวจคำตอบ + ให้ EXP
พฤหัสบดี 10:00ทุกตัว⚔️ Team Scenario — ซ้อมรบทีม
ศุกร์ 09:00ทุกตัว📊 Benchmark Test — สอบ 3 ข้อ/agent

🌐 Dashboards ทั้งหมด

URLหน้าที่
agents.topmanidmb.aiกองร้อย Agent Dashboard + คู่มือ
status.topmanidmb.aiStatus Monitor 21 services
monitor.topmanidmb.aiDeep Health — disk/RAM/SSL/backup
cc.topmanidmb.aiCommand Center
do1.topmanidmb.ai/signalsCrypto Signal Pro Dashboard
warroom.topmanidmb.aiWar Room News Intelligence
intel.topmanidmb.aiIntel SaaS Platform
analyzer.topmanidmb.aiPhoneBank Intel Analyzer
api.topmanidmb.aiAI Cost Intelligence

🏛️ โครงการ TOPMANIDMB

Topman Intelligent Digital Management Bureau — AI-Driven Command Center
🚔 ระบบ 1 — Law Enforcement AI
วิเคราะห์คดี / AML / OSINT / ข่าวกรอง / รายงานผู้บริหาร
🧪 ระบบ 2 — AI Development Lab
Multi-Agent System / Automation / Task Pipeline / Learning
💰 ระบบ 3 — AI Economy
Crypto Signal / Intel SaaS / Passive Income
🖥️ Infrastructure
6 เครื่อง / Tailscale Mesh / 24/7 / Auto-Backup