πŸ€– Roadmap Agentic AI & MCP β€” From Script to Autonomous Swarm

Filosofi: Jangan hanya "prompt" β€” kamu harus bisa "orchestrate." Bedanya besar: chat dengan ChatGPT itu 5 menit, tapi membangun agent yang bisa sense β†’ plan β†’ act β†’ observe secara loop, dengan tool use, memory, dan self-correction, itu skill yang ditanya waktu interview. Rekruter akan tanya: "Oke, agent-mu stuck di infinite loop saat tool call gagal β€” apa yang terjadi?" Kalau kamu jawab: "Agent punya max_iterations guard, fallback strategy ke human-in-the-loop, dan observability log setiap reasoning step via Langfuse" β€” itu yang menutup pertanyaan.


🎯 Checkpoint Awal β€” Sebelum Mulai

  • Stack: Python 3.11+, Node.js 20+, Ollama / LM Studio (local LLM) atau NVIDIA NIM free tier
  • Jalur: AI Agent Engineer / Autonomous Systems Developer
  • Spek: i7 Gen7, 16GB RAM minimum (⚠️ 32GB+ direkomendasikan untuk multi-agent + embedding)
  • Target Karir: AI Engineer β†’ Agent Architect β†’ Autonomous Systems Lead

Homelab Strategy untuk 16GB RAM:

  • Fase 1-2: Single agent, Ollama 7B model, local embedding (fastembed), SQLite vector store
  • Fase 3-4: Multi-agent (2-3 agents), Ollama 14B model, ChromaDB / Qdrant, MCP server local
  • Fase 5-6: Agent swarm, cloud VPS untuk model besar (NVIDIA NIM free tier), distributed memory
  • Prioritas: Belajar agent loop & tool use dulu, scale horizontal belakangan

Urutan belajar:

  • Fase 1 (foundation): LLM API β†’ Prompt engineering β†’ Structured output (JSON mode)
  • Fase 2 (tool use): Function calling β†’ Tool definition β†’ ReAct loop β†’ Error handling
  • Fase 3 (memory): Short-term (conversation) β†’ Long-term (vector DB) β†’ Semantic memory
  • Fase 4 (MCP): MCP server build β†’ MCP client β†’ Tool discovery β†’ Multi-server orchestration
  • Fase 5 (multi-agent): Agent delegation β†’ Conflict resolution β†’ Shared state β†’ Swarm pattern
  • Fase 6 (autonomous): Self-reflection β†’ Goal decomposition β†’ Human-in-the-loop β†’ Observability

Aturan Emas

Satu agent dulu. Selesaikan sampai agent-mu bisa handle edge case (tool failure, hallucination, context overflow) tanpa crash, baru loncat ke multi-agent. Agentic AI adalah tumpukan kartu β€” fondasi goyang, semua runtuh.


Fase 1 β€” LLM Foundation & Structured Output (Minggu 1–4)

Goal: Kuasai komunikasi dengan LLM secara programmatic. JSON mode, streaming, dan system prompt engineering adalah fondasi segalanya. RAM Impact: Ollama 7B ~4-6GB, Python ~512MB. Total aman untuk 16GB.

Tool/StackRAMYang DipelajariCombo A+B yang Membuktikan
Ollama / LM Studio~4-6GBLocal LLM serving, model quantization (Q4_K_M, Q8_0), context length tuning, GPU offloadingOllama + custom Modelfile = kamu bisa serve model dengan context 64k+ tanpa cloud API
OpenAI-compatible SDK~256MBChat completion API, streaming, JSON mode, system/user/assistant roles, temperature/top_p tuningSDK + structured output schema = LLM output selalu valid JSON, parseable tanpa regex hack
Pydantic~128MBData validation, schema definition, type hints integrationPydantic + JSON mode = output LLM langsung jadi Python object dengan type safety
Prompt EngineeringN/ASystem prompt design, few-shot prompting, chain-of-thought, role definition, output format specificationPrompt + Pydantic schema = LLM yang β€œberpikir” dalam format yang kamu tentukan

Cara Belajar Fase 1

Build 1 script Python yang: (1) load Ollama model, (2) kirim system prompt dengan Pydantic schema, (3) parse output jadi object, (4) validate dengan Pydantic. Ulangi dengan 10 skema berbeda (summarization, classification, extraction). Ulangi sampai tidak perlu buka dokumentasi.

Proyek Portofolio Fase 1: Structured Output Engine β€” Local LLM β€” repo Python dengan: Ollama Modelfile custom, 5+ Pydantic schema (summary, classify, extract, generate, translate), streaming handler, error retry logic. Sertakan benchmark: β€œ100 requests, 98% valid JSON output.”


Fase 2 β€” Tool Use & ReAct Loop (Minggu 5–8)

Goal: Agent tidak hanya chat β€” dia bisa β€œberbuat.” Function calling adalah jembatan dari language ke action. RAM Impact: Ollama 7B ~4-6GB, tools (calculator, search, file ops) ~512MB. Total ~7GB.

Tool/StackRAMYang DipelajariCombo A+B yang Membuktikan
Function CallingN/ATool definition (OpenAI format), tools parameter, parallel tool calls, tool result injection kembali ke contextFunction calling + Pydantic schema = tool argument selalu typed dan validated
ReAct PatternN/AReasoning β†’ Action β†’ Observation loop, max_iterations guard, early termination, self-correctionReAct + structured logging = setiap reasoning step terdokumentasi dan auditable
Custom Tools~256MBBuild tool dari Python function: file read/write, web search (DuckDuckGo API), calculator, date/time, system command (sandboxed)Custom tools + error handling = agent survive waktu tool gagal, tidak crash
LangChain / LlamaIndex~512MBAgent executor, tool binding, memory integration, callback systemLangChain + custom ReAct = agent framework yang extensible, bukan black box

Critical

Error handling adalah beda script dan agent. Script crash kalau API gagal. Agent harus: retry dengan exponential backoff, fallback ke tool alternatif, atau escalate ke human. Tanpa ini, itu hanya chatbot dengan extra steps.

Proyek Portofolio Fase 2: ReAct Agent with Tool Suite β€” agent yang bisa: (1) baca file dari path, (2) search web, (3) kalkulasi, (4) tulis summary ke file. Semua dengan ReAct loop, max 10 iterations, error recovery, dan structured log setiap step. Sertakan demo video: β€œAgent handle 3 consecutive tool failures tanpa crash.”


Fase 3 β€” Memory Architecture (Minggu 9–12)

Goal: Agent yang tidak punya memory adalah stateless API call. Memory adalah what makes an agent β€œpersonal” dan β€œcontextual.” RAM Impact: Ollama 7B ~4-6GB, ChromaDB ~512MB, embedding ~1GB. Total ~8GB.

Tool/StackRAMYang DipelajariCombo A+B yang Membuktikan
Short-term MemoryN/AConversation buffer, sliding window, summarization when context overflow, token countingBuffer + summarization trigger = agent tidak pernah kehilangan thread meski chat panjang
Vector DB (ChromaDB / Qdrant)~512MBCollection setup, embedding storage, similarity search, metadata filtering, persistenceVector DB + semantic search = agent ingat fakta dari 100+ conversation lalu
Embedding Model~1GBLocal embedding (all-MiniLM, BGE, fastembed), dimensionality, cosine similarity, chunking strategyEmbedding + chunking optimization = retrieval accuracy >80% untuk dokumen teknis
Long-term Memory PatternN/AEntity memory (siapa, apa, kapan), episodic memory (event spesifik), procedural memory (cara kerja), semantic memory (fakta umum)Memory layers + retrieval strategy = agent yang β€œmengenal” user dan konteks historis

Trik Memory

Jangan simpan seluruh conversation mentah. Summarize per 5-10 turn, extract entities dan facts, store ke vector DB. Retrieval: semantic search + recency bias + importance scoring. Ini bukan latihan, ini produksi.

Proyek Portofolio Fase 3: Agent with Persistent Memory β€” agent yang: (1) ingat fakta tentang user (nama, preferensi), (2) ingat task history, (3) bisa retrieve insight dari 50+ conversation lalu, (4) summarize conversation saat context penuh. Sertakan arsitektur diagram: memory flow dari input β†’ process β†’ store β†’ retrieve.


Fase 4 β€” Model Context Protocol (MCP) (Minggu 13–16)

Integrasi Sistem Lokal

Anda dapat melihat dokumentasi konfigurasi, skrip server, dan manajemen skill MCP lokal pada sistem Anda di MCP Local Integration Guide.

Goal: MCP adalah β€œUSB-C untuk AI tools.” Standardize bagaimana agent discover, call, dan manage tools dari berbagai sumber. RAM Impact: Ollama 7B ~4-6GB, MCP servers ~512MB each, client ~256MB. Total ~8-10GB.

Tool/StackRAMYang DipelajariCombo A+B yang Membuktikan
MCP Server (stdio)~256MBBuild MCP server dengan Python SDK: tool definition, resource exposure, prompt template, stdio transportMCP server + 3+ tools = tool yang bisa dipakai oleh client apapun yang support MCP
MCP Server (HTTP/SSE)~256MBHTTP transport, SSE streaming, multi-client support, authentication, rate limitingHTTP MCP + auth middleware = production-ready tool server
MCP Client~256MBDiscover tools dari server, call tool via MCP protocol, handle resource URI, compose multi-server workflowMCP client + 2+ servers = agent yang bisa pakai tool dari GitHub + filesystem + database sekaligus
MCP EcosystemN/AExisting MCP servers: filesystem, GitHub, PostgreSQL, Brave Search, Slack, Puppeteer. Community servers registry.Ecosystem + custom server = kamu bisa contribute ke MCP community, bukan cuma consume

Critical

MCP bukan cuma β€œwrapper API.” Bedanya: MCP server self-describe (tool schema, resource schema, prompt template). Client discover otomatis β€” tidak perlu hardcode tool definition di client. Tanpa pahami ini, itu hanya REST API dengan nama baru.

Proyek Portofolio Fase 4: MCP-Powered Agent with Multi-Server Orchestration β€” build: (1) custom MCP server untuk vault Obsidian-mu (read note, search, write summary), (2) connect ke existing MCP server (filesystem, GitHub), (3) agent yang discover dan call tool dari semua server via MCP protocol. Sertakan: mcp.json config, server source code, client integration demo.


Fase 5 β€” Multi-Agent & Swarm (Minggu 17–20)

Goal: Satu agent bisa handle satu task. Tapi masalah nyata butuh dekomposisi: researcher β†’ coder β†’ reviewer β†’ deployer. RAM Impact: Ollama 14B ~8-10GB, 3 agents ~512MB each, orchestrator ~256MB. Total ~12GB. Gunakan VPS untuk model besar.

Tool/StackRAMYang DipelajariCombo A+B yang Membuktikan
Agent DelegationN/AParent agent decompose task β†’ delegate ke child agent β†’ collect result β†’ synthesize. Task routing berdasarkan capability.Delegation + capability registry = task selalu di-handle oleh agent yang paling kompeten
Shared StateN/AShared memory (blackboard pattern), message passing (actor model), event bus, state synchronizationShared state + conflict resolution = multi-agent tidak overwrite kerjaan satu sama lain
CrewAI / AutoGen~512MBMulti-agent framework: role definition, task assignment, collaboration pattern, human-in-the-loopCrewAI + custom agent roles = team AI yang mirror struktur team engineering nyata
Swarm PatternN/ADecentralized decision, emergent behavior, voting/consensus, load balancing, fault toleranceSwarm + self-healing = sistem yang survive meski 1 agent mati

Trik Multi-Agent

Jangan buat 10 agent sekaligus. Mulai dari 2: Researcher + Writer. Researcher cari info, Writer rangkum. Lalu tambah Reviewer. Lalu tambah Fact-Checker. Scale gradual, validate setiap layer.

Proyek Portofolio Fase 5: Multi-Agent Content Pipeline β€” 3 agent: (1) Researcher (search web + read file), (2) Writer (draft article), (3) Reviewer (fact-check + critique). Shared state via blackboard, human approval gate sebelum publish. Sertakan: agent interaction diagram, task decomposition log, final output comparison (single agent vs multi-agent).


Fase 6 β€” Autonomous Operations & Observability (Minggu 21–24)

Goal: Agent yang tidak hanya menunggu prompt, tapi bisa self-direct, self-reflect, dan self-improve. Plus: kamu bisa melihat apa yang dia pikirkan. RAM Impact: Ollama 14B ~8-10GB, Langfuse ~1GB, scheduler ~256MB. Total ~12GB. Gunakan VPS untuk produksi.

Tool/StackRAMYang DipelajariCombo A+B yang Membuktikan
Self-ReflectionN/AAgent evaluasi hasil kerjanya sendiri: β€œApakah jawaban ini benar?” β€œApakah ada yang terlewat?” Reflection prompt, confidence scoringSelf-reflection + retry threshold = agent yang tahu kapan output-nya tidak cukup baik
Goal DecompositionN/AHigh-level goal β†’ sub-goal β†’ atomic task β†’ execution. Hierarchical planning, dependency graph, rollback strategyDecomposition + dependency tracking = agent yang bisa handle project kompleks tanpa human micromanagement
Human-in-the-LoopN/AApproval gate, escalation trigger, feedback injection, correction mechanism, override capabilityHITL + smart escalation = agent autonomous tapi tidak out-of-control
Observability (Langfuse / LangSmith)~1GBTrace setiap reasoning step, token usage, latency, tool call success/failure, cost tracking, A/B prompt testingObservability + alerting = kamu tahu agent-mu β€œsakit” sebelum user complain

Critical

Autonomous != Unsupervised. Agent yang self-direct tanpa observability adalah black box yang bisa menghasilkan garbage tanpa kamu tahu. Langfuse trace setiap step: input β†’ reasoning β†’ tool call β†’ output. Tanpa ini, debugging agent adalah nightmare.

Proyek Portofolio Fase 6: Autonomous Knowledge Curator β€” agent yang: (1) monitor folder sumber (PDF, web clip) setiap jam, (2) extract insight dan tulis ke knowledge base, (3) self-reflect: β€œApakah insight ini sudah ada? Apakah ada kontradiksi?” (4) escalate ke human kalau confidence <70%, (5) observability dashboard di Langfuse. Sertakan: cron config, reflection prompt, trace screenshot, cost analysis.


Roadmap Visual β€” Timeline 6 Bulan

Bulan 1Bulan 2Bulan 3Bulan 4Bulan 5Bulan 6
FASE 1
LLM Foundation
FASE 2
Tool Use & ReAct
FASE 3
Memory Architecture
FASE 4
MCP Protocol
FASE 5
Multi-Agent
FASE 6
Autonomous Ops
Ollama / LM StudioFunction CallingShort-term MemoryMCP Server (stdio)Agent DelegationSelf-Reflection
OpenAI SDKReAct LoopVector DB (ChromaDB)MCP Server (HTTP)Shared StateGoal Decomposition
Pydantic SchemaCustom ToolsEmbedding ModelMCP ClientCrewAI / AutoGenHuman-in-the-Loop
Prompt EngineeringLangChain AgentLong-term PatternMCP EcosystemSwarm PatternObservability (Langfuse)
JSON ModeError HandlingMemory RetrievalMulti-Server OrchestrationBlackboard PatternAutonomous Scheduler
Portfolio 1:Portfolio 2:Portfolio 3:Portfolio 4:Portfolio 5:Portfolio 6:
Structured Output EngineReAct Agent + ToolsAgent + Persistent MemoryMCP Multi-Server AgentMulti-Agent PipelineAutonomous Knowledge Curator

Sertifikasi yang Cocok per Fase

FaseSertifikasiKenapa
Setelah Fase 1OpenAI API Fundamentals (unofficial, via course)Validasi fondasi LLM API & structured output
Setelah Fase 2LangChain Certification (unofficial, community)Tool use & agent framework
Setelah Fase 3Vector DB Certification (Pinecone / Weaviate / Qdrant)Memory & retrieval architecture
Setelah Fase 4MCP Contributor (community badge)Build & publish MCP server
Setelah Fase 5Multi-Agent Systems (MIT OCW / Stanford CS)Teori delegation & swarm
Setelah Fase 6LLM Observability (Langfuse / LangSmith)Production monitoring & debugging
Jangka panjangGoogle Cloud Professional ML Engineer atau AWS ML SpecialtyCloud-scale AI deployment

Yang TIDAK Perlu Dipelajari Sekarang

Jangan Buang Waktu

  • Fine-tuning LLM dari nol β€” role ini agent orchestration, bukan model training. Gunakan pre-trained model (Ollama, API).
  • Deep Learning theory (backprop, CNN, RNN) β€” kamu operate LLM, bukan train neural network. Fokus pada inference & prompt engineering.
  • Kubernetes untuk AI (Kubeflow, Ray) β€” tidak disebutkan di stack awal; Docker Compose cukup untuk homelab.
  • Computer Vision / Multimodal β€” fokus text-based agent dulu. Vision agent adalah extension setelah text mastery.
  • Blockchain / Web3 / DAO β€” tidak relevan untuk agentic AI engineering path.
  • Entry-level Python (variable, loop, function) β€” asumsikan kamu sudah bisa Python intermediate. Kalau belum, kuasai dulu sebelum mulai roadmap ini.

πŸ”— Lihat Juga


Roadmap Agentic AI & MCP | Fase 1 (LLM Foundation) β†’ Fase 6 (Autonomous Ops) Β· 6 Bulan Homelab Β· Local-First, API-Optional