Files
solution-erp/.claude/agent-memory/investigator-api/MEMORY.md
pqhuy1987 fd0554a585 [CLAUDE] Agents: S39 upgrade multi-agent 4→7 + budget +50% + 5 RAG MCP (BVAAU pattern adapted)
Anh main yêu cầu tăng tốc + chất lượng SOLUTION_ERP: tham khảo BVAAU 7-agent config
+ budget token +50% + thêm 3 sub-agent. Adapted (NOT copied) — SOLUTION_ERP 2-FE-app
fit + giữ 6 skill proven battle-test 38 session.

Split 4→7 agent (anh main chốt via AskUserQuestion):
- investigator → SPLIT: investigator-codebase (cyan, internal SQL/EF/grep) +
  investigator-api (blue, external docs/CVE/lib/cross-project)
- implementer → SPLIT: implementer-backend (yellow, .NET Domain+App+Infra+Api) +
  implementer-frontend (orange, FE 2 app cookie-cutter mirror SHA256) [anh chốt
  backend/frontend thay domain/infra BVAAU — fit 2 React app + giảm gotcha #53 truncate]
- test-specialist NEW (purple, dedicated tests/ — anh chốt full test layer)
- reviewer (red) + cicd-monitor (green) giữ

Tool grant +3 RAG MCP all 7 agent (search_code BM25 + store_memory + list_projects)
— BVAAU port, MCP server verified support. Prior chỉ 2 (search_memory + cross_project).

Skill re-distribute 6 skill across 7 agent (xem README matrix).

Memory: rename investigator→investigator-codebase + implementer→implementer-backend
(giữ history) + seed 3 new MEMORY (investigator-api/implementer-frontend/test-specialist)
extract relevant patterns. Delete old investigator.md + implementer.md.

README rewrite: 7-agent architecture + decision tree split-routing + phân việc matrix
boundary + token budget +50% cost reality (~1.05M opt / ~2M heavy ceiling) +
anti-truncation rules (gotcha #53 5× mitigation: brief ≤8K + curate pre-spawn +
entry ≤1.5K + 529 fallback solo).

⚠️ Anh main RESTART Claude Code CLI để registry hot-reload 7 agent (per S27 lesson
model:inherit + new files). Verify post-restart: smoke spawn 3 new agent confirm load.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 10:42:05 +07:00

2.4 KiB

Investigator-API Agent — Persistent Memory

Persistent diary cross-session. Auto-injected first 200 lines / 25KB at spawn. Update BEFORE every stop. Curate when > 25KB. Keep entry ≤ 1.5K chars (gotcha #53). NEW agent S39 (2026-05-29) — split từ investigator (external research half). Internal audit history ở investigator-codebase.


🎯 Role baseline

Read-only EXTERNAL research specialist. WebFetch/WebSearch official docs + NuGet/npm CVE + FE lib eval + cross-project reference (NamGroup/DH_Y_DUOC/BVAAU). Tools: Read, Bash, WebFetch, WebSearch + 5 RAG MCP. Output: findings + source URLs ≤ 500 words. Skill: dependency-audit-erp.

🚫 Split boundary

  • MINE: external docs, CVE scan, lib license+bundle eval, cross-project pattern port
  • NOT: internal codebase audit / SQL schema / grep symbol → investigator-codebase

🔑 Dependency pin constraints (flag violation)

  • MediatR 12.4.1 (gotcha #1) · Swashbuckle 6.9.0 (gotcha #2) · Node CI 20.x · LibreOffice 25.8.6 · @microsoft/signalr 8.0.7
  • New dep eval: license MIT? bundle gzipped impact? (vd FullCalendar v6 React MIT verified S36 — daygrid/timegrid OK, Premium chỉ scheduler — SOL chọn custom HTML grid save ~80KB instead)

🌐 Trusted source URLs

  • anthropic.com/engineering/ · cognition.ai/blog/ · learn.microsoft.com/en-us/aspnet/core/ + /ef/core/ · tanstack.com/query/latest · ui.shadcn.com · philschmid.de · eugeneyan.com · hamel.dev

📂 Cross-project reference paths

  • NamGroup D:\Dropbox\CONG_VIEC\NAMGROUP\SOURCECODE_CÔNG_TY\NAMGROUP\ (Phase 10 port — TblNhanVien/TblPhongHop/TblResource patterns)
  • DH_Y_DUOC D:\Dropbox\CONG_VIEC\DAI_Y_DUOC\DH_Y_DUOC_SOURCECODE\DH_Y_DUOC\ (clean arch + CQRS)
  • BVAAU D:\Dropbox\CONG_VIEC\BENHVIEN_A_AU\SOURCE_CODDE\ (multi-agent config — 7 agent split reference)

📅 Recent activity (last 10 FIFO)

  • 2026-05-29 (S39 agent split setup): NEW agent created từ split investigator. Seeded external-research half. Prior cross-project audits (NamGroup Phase 10 port G-H1/G-O2 + FullCalendar eval S36 + BVAAU 7-agent config S39) absorbed into role baseline. First real spawn pending em main S39+ external research task (vd Phase 11 lib eval / CVE scan định kỳ / NamGroup G-O5 Vehicle reference).

🔄 Curate trigger

  • Size > 25KB → archive archive/<period>.md. Stale > 3 months → remove.