Agentic AI The Hard Way
Hands-on Kubernetes labs that take you from a human-in-the-loop assistant to sandboxed, gateway-secured, observable agentic workloads.
- Source repo
- AdminTurnedDevOps/Agentic-AI-The-Hard-Way
- Stars
- ★ 76
- Last updated
- 1mo ago
- FARS reviewed
- Oct 18, 2026
- Primary language
- HTML
- FA score
- 33/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI APIClaude API (Partial support)
- Cost
- Free software; you pay for model usage
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- Platform engineers or SREs who want an agent to diagnose and fix a broken app in their cluster while keeping a human in the loop.
- Not a fit if
- Teams wanting finished docs — several lab links are still blank.
- Readers without a Kubernetes cluster or a way to run local models.
- Anyone expecting a hosted product or a one-command install.
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-18
- Source review
- 33/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
Agentic AI The Hard Way is a free, work-in-progress lab repository (started 2026-01-04) that walks engineers through four agentic AI scenarios: a Platform Engineering Assistant, The Observer, an Autonomous k8s Engineer, and Isolated Agents. Each scenario is a sequence of step-by-step lab files that deploy real components onto Kubernetes: kagent as the declarative agent runtime, vLLM/llm-d or Ollama for local models, Model Context Protocol servers that expose tools such as listing pods, reading events and deploying workloads, agentgateway as the AI gateway for prompt guards, rate limiting and inference routing, and Agent Substrate for sandboxing. Observability, agent identity, an agent registry for shadow AI, agent evaluations and performance testing are treated as first-class lab steps rather than afterthoughts. Setup rests on a prerequisites document plus optional Terraform configurations for Azure, AWS or GCP clusters; the repository ships no packaged installer. Because several lab links are still empty, it reads best as a curriculum in progress rather than a finished product.
The repository breaks each scenario into ordered lab files. The Platform Engineering Assistant path deploys an intentionally broken app (the-broken-apps/pe-assistant-app), then deploys kagent, configures vLLM and llm-d, creates an Agent, installs agentgateway with a Gateway and ModelConfig, wires up an MCP Server tool, collects metrics and traces, adds agent identity and an agent registry, and finishes with a Researcher Agent plus Agent Evals for platform engineering tasks. The Observer path uses CrewAI with a local Ollama-served deepseek-r1:8b, then adds long-term memory, web search/RAG, Agent Skills, agentgateway and a registry that stores Skills and prompts. The Autonomous k8s Engineer path runs kagent against an OpenAI GPT model, deploys a demo app, scales pods down, then deploys a self-healing agent and self-healing checker and reviews logs. The Isolated Agents path combines kagent with Agent Substrate for software- and hardware-level isolation, covering sandbox installation, Kagent Substrate, a bring-your-own harness (Hermes) and egress through agentgateway; a separate standalone Substrate track covers components, installation, the first Actor, multi-tenant Actors, MicroVM isolation, parking and autoscaling, multiplexing, observability, worker packing, OpenFGA ReBAC permissions and cost comparison.
- Platform engineers or SREs who want an agent to diagnose and fix a broken app in their cluster while keeping a human in the loop.
- On-call engineers who want to hand the 2 a.m. log hunt to an observer agent with long-term memory, web search/RAG and Agent Skills.
- Teams already on Kubernetes that want to create and host agents declaratively instead of writing their own Python framework code.
- Security or platform teams that must sandbox agents and prove their egress only flows through a gateway.
- Architects evaluating prompt guards, rate limiting, inference routing, agent identity and a shadow-AI registry against real traffic.
- Teams preparing to put agent evaluations and performance testing into their delivery pipeline but lacking a reference lab.
How do you install or deploy this agent?
There is no packaged installer. The path is: prepare a cluster, then work through the lab files in order. The README points to three entry documents: the prerequisites file (prerequisites.md), an optional Kubernetes cluster creation guide (k8s-terraform/setup.md) with Terraform configurations for Azure, AWS and GCP, and a workstation setup directory (workstation-setup/) containing laptop.md, terminal.md, agent-runtime.md and a-few-key-features.md.
The actual kubectl, Helm or Terraform commands live inside those linked files; their bodies are not included in the source, so no copyable command can be reproduced here. To start, open:
- https://github.com/AdminTurnedDevOps/Agentic-AI-The-Hard-Way/blob/main/prerequisites.md
- https://github.com/AdminTurnedDevOps/Agentic-AI-The-Hard-Way/blob/main/k8s-terraform/setup.mdThe prerequisites are not itemised in the README body, which is the biggest missing piece today. From the scenario descriptions you can confirm you need at least a working Kubernetes cluster, kagent, agentgateway, an MCP server, and either a local model runtime (vLLM/llm-d or Ollama) or credentials for a provider such as OpenAI.
How do you use this agent?
Work through the lab files in the order the README lists them; each file is one step. For the Platform Engineering Assistant the documented order is: deploy the intentionally broken app under the-broken-apps/pe-assistant-app, run deploy-kagent.md, configure vLLM and llm-d via vllm-llmd.md, create the Agent with create-agent.md, then complete the agentgateway deployment and the Gateway/ModelConfig update, wire the MCP Server tool (mcp-server-tool-setup.md), handle metrics and traces, agent identity and the shadow-AI registry, and finally run platform-assistant-agent-evals.md.
The other three follow the same pattern: The Observer starts at the-observer/create-agent with CrewAI and a local deepseek-r1:8b; the Autonomous k8s Engineer starts at openai-install.md and continues through demo-app.md, scale-down.md, self-healing-agent.md, logs.md and self-healing-checker.md; Isolated Agents starts with learn-substrate.md and proceeds through installation.md, kagent-substrate.md, byo-harness-hermes.md and inference-with-agw.md. Note that prompt guards, inference routing, rate limiting, MCP security, metrics and traces, agent identity, the registry, long-term memory, RAG and Agent Skills are still empty links awaiting the author.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- Four scenarios span the full autonomy gradient — human-in-the-loop assistant, autonomous k8s engineer, fully isolated agents — so readers can compare autonomy levels before choosing one.
- Treats AI gateway (agentgateway), MCP servers, agent identity, a registry and Agent Evals as lab steps rather than teaching only model calls.
- Documents both local open-source models (Llama on vLLM/llm-d, deepseek-r1:8b on Ollama) and provider models (OpenAI GPT, Claude), so cost and data-boundary tradeoffs are visible.
- Ships Terraform cluster configurations for Azure, AWS and GCP, lowering the cost of getting an environment up.
- The isolation track goes deep: MicroVM isolation, Actor parking and autoscaling, multiplexing, OpenFGA ReBAC permissions and a cost comparison.
- Explicitly a WIP (started 2026-01-04); prompt guards, rate limiting, inference routing, MCP security, observability, agent identity and the registry are empty links.
- No packaged installer or one-shot script — you must bring your own Kubernetes cluster and execute each lab file by hand, which is a high setup burden.
- The local-model path pulls in vLLM, llm-d, Ollama and GPU capacity, and the hardware-decision link in the README is blank, so no sizing guidance is given.
- License status is unknown, so adoption requires checking the terms yourself.
- Content is mostly tutorial prose plus links, with no automated tests or CI evidence that the labs keep working over time.
How does this agent compare with similar options?
The stack section names two ways to build agents side by side: kagent and CrewAI. kagent is the declarative route — agents are created and run on Kubernetes as resources, which suits teams that already have a cluster and want to manage agents like any other workload. CrewAI is a Python framework for building agents and connecting them to LLMs; the repository uses it only for The Observer, paired with a local Ollama model. They are complementary rather than competing: pick kagent when you need in-cluster hosting and isolation, and CrewAI when you need flexible Python-side orchestration.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Agentic AI The Hard Way This agent | 33 · Major gaps | Self-hosted serviceFree + model costs | ★ 76 | 1mo ago | HTML | OpenAI API |
| AURA SRE Agent Platform | 72 · Some gaps | CLIFree + model costs | ★ 415 | 25d ago | Rust | OpenAI API |
| Archestra | 57 · Major gaps | Self-hosted serviceFreemium | ★ 4.5k | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| Preloop | 81 · Good | — | ★ 96 | today | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
README mentions Human-In-The-Loop, AI Gateway, MCP security, and agent sandboxing as teaching topics, but the repository is a tutorial/site, not an auditable agent runtime; there is no executable evidence of a permission model, confirmation flow, data-flow description, or rollback mechanism. least_privilege scores 1 only because sandboxing and HITL are mentioned conceptually; user_confirmation is conceptual only; data_flow_transparency and sensitive_data_handling are narrative only; dependency_security scores 2 because GitHub Actions are pinned to SHAs and npm ci uses a lockfile, but dependencies are not audited for vulnerabilities; external_effects scores 1 because the tutorial guides deployments to real clusters; rollback scores 0 with no rollback/recovery guidance; source_attribution scores 1 with external links but no systematic attribution.
README self-describes as WIP and many links are empty (e.g., prompt guards, inference routing, rate limiting, agent identity), creating self-consistency gaps, so self_consistency scores 1; dependency_availability lists Kubernetes, CrewAI, kagent, vLLM, Ollama, etc., but provides no version pinning or availability verification, scoring 1; failure_messages scores 0 with no error handling or failure guidance.
Four scenarios cover platform engineering, observability, autonomous k8s, and isolated agents, with clear audience and scenario descriptions, so audience_and_scenarios scores 2; capability_boundaries only narratively distinguishes autonomy levels without explicit boundaries or limits, scoring 1; trigger_precision has no trigger conditions or invocation conventions, scoring 1; environment_fit mentions local/cloud and multiple LLMs but lacks environment adaptation details, scoring 1.
README is well-structured and organized by scenario, so information_architecture scores 2; install_notes include prerequisites and Terraform cluster creation links, but many links are empty, scoring 1; naming_stability is mostly consistent but has empty links and unfinished sections, scoring 1; examples_and_faq has example scenarios but no FAQ, scoring 1; known_limitations is only a WIP notice, scoring 1; license metadata is unknown and no license file is present, scoring 0; versioning_changelog has no version or changelog, scoring 0; maintenance_responsibility has a WIP notice and author links but no explicit maintenance responsibility, scoring 1.
The tutorial provides ideas and lab paths, but many links are empty and content is unfinished, so output_usability scores 1; marginal_value lies in scenario-based teaching but lacks runnable artifacts, scoring 1; cost_benefit requires users to set up clusters and models at high cost with uncertain benefit, scoring 1.
claim_traceability has some external links but no systematic sourcing, scoring 1; cross_source_corroboration has only README and site tests, lacking multi-source verification, scoring 1; fact_inference_separation mixes narrative and facts without clear separation, scoring 1.
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- Repository self-describes as WIP with many empty links and incomplete content; it cannot be assessed as a production-grade agent implementation.
- No license file; terms for use and redistribution are unclear.
- The tutorial guides deploying agents and MCP servers to real Kubernetes clusters, which may cause external side effects, and provides no rollback or cleanup guidance.
- Dependency security is only evidenced by pinned GitHub Actions SHAs and an npm lockfile; dependencies are not audited for vulnerabilities.
- Publisher identity is unverified; maintenance responsibility and update path are unclear.
FAQ
Do I have to bring my own Kubernetes cluster?
Which labs cost money for model access?
Will I hit dead ends following it today?
How exactly is agent isolation implemented?
Can I learn the concepts without deploying anything?
Is Agentic AI The Hard Way open source?
Is Agentic AI The Hard Way safe to use?
Is Agentic AI The Hard Way still maintained?
Who makes Agentic AI The Hard Way?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.