16 chapters and 149 sections of AI applied to DevOps, SRE and Platform Engineering
Understand the real problem and AI fundamentals for DevOps
What you will have built by the end, and where to start
1.1 What You Will Have Built by the End
1.2 The Control Model: the Agent Proposes, the Hook Blocks, Git Decides
1.3 The Guide's Technical Choices
1.4 Chapter Map
1.5 Prerequisites and Lab Environment
1.6 How to Read It: Tracks by Role
LLMs, Claude, MCP and Agent Frameworks
2.1 What Are Large Language Models
2.2 Claude and Other Models: When to Use Each
2.3 Critical Limitations You Need to Know
2.4 Model Context Protocol (MCP): The Bridge Between LLM and Tools
2.5 Agent Frameworks: When One Is Worth It
2.6 Architectural Decisions of This Guide
VS Code, Claude Code CLI and Environment Configuration
3.1 VS Code + Claude Code: The Recommended Setup for DevOps
3.2 Essential Extensions for DevOps
3.3 Configuration Files: Your Agent's DNA
3.4 Claude Code in the IDE: Terminal, Panel and Essential Commands
3.5 MCP: The Model Context Protocol
3.6 Common Anti-Patterns in IDE AI Usage
3.7 Claude Skills: Modular Instruction Packages
3.8 Building Your Own MCP Server
3.9 Context7 — Real-Time Documentation via MCP
3.10 The Claude 5 Generation: Opus 5.5, Fable 5.1 & Model Governance
3.11 Hooks: Automation & Guardrails in Claude Code
3.12 Cloud MCP Servers: AWS and GCP
From Concept to Practice with Specialized Subagents
4.1 What an AI Agent Is (and Isn't)
4.2 Anatomy of an Agent Execution (Step-by-Step)
4.3 Anti-Patterns and Limits
4.4 Agent in Action - Configuring the DevOps Agent
4.5 Specialized Subagents: Creating an AI Team
4.6 Agent Teams: Multiple Agents Working in Parallel
4.7 Managed Agents API — Anthropic's Stateful Alternative
4.8 Spec-Driven Agents: From Vibe Coding to Engineering Discipline
› 4.8.1 The Problem with Vibe Coding
› 4.8.2 The Three Pillars: Contracts, Agents, Runtime
› 4.8.3 The Canonical Workflow
› 4.8.4 Implementing in Claude Code
› 4.8.5 Tooling and the Official Position
› 4.8.6 When NOT to Use Spec-Driven
4.9 Headless Claude Code — From CLI to SDK to Embedded Orchestrators
› 4.9.1 The "Claude Code as Library" Pattern
› 4.9.2 The CLI Route — claude -p (Print Mode)
› 4.9.3 The SDK Route — Agent SDK (Python + TypeScript) — RECOMMENDED for Production
› 4.9.4 Three Orchestrator Patterns — Real-World Examples
› 4.9.5 CI Authentication & Cost Guardrails
› 4.9.6 When NOT to Use Headless Mode
4.10 ADRs and the Architect/Engineer Duo: Documented Decisions, Disciplined Implementation
› 4.10.1 What an ADR Is and Why Agents Change the Game
› 4.10.2 The ADR Template for DevOps
› 4.10.3 The Architect Agent: Decides and Documents, Never Implements
› 4.10.4 The Engineer Agent: Implements with Discipline, Never Decides
› 4.10.5 Agent-Memory: Institutional Knowledge Across Conversations
› 4.10.6 The Complete Cycle in Practice
4.11 Harness Engineering: the Anatomy of the System Around the Model
4.12 Agentic Bots: the Always-On Agent with Hermes Agent
› 4.12.1 When a Bot Beats the Terminal (and When It Does Not)
› 4.12.2 The Hermes Architecture, Read as a Harness
› 4.12.3 Installing on a Server with Claude as the Model
› 4.12.4 Importing Your Claude Code Setup
› 4.12.5 First Slack Bot, Read-Only by Construction
› 4.12.6 Limits, Cost and What Not to Delegate
Terraform and Kubernetes with AI in practice
Intelligent Infrastructure in Practice
5.1 Terraform in the Real World (The Silent Pain)
5.2 Where AI Really Helps in Terraform
5.3 MCP Applied to Terraform: Choosing Your Architecture
5.4 Installation Guide: VS Code + Claude Code
5.5 Installing the Right MCPs
5.6 Guardrails Configuration: Protecting Production
5.7 The "End-to-End" Flow (Supervised)
5.8 Practical Walkthrough: From Zero to First Module (Generic, Cloud-Agnostic)
5.9 Workspace Safety: AI as Environment Guardian
› 5.9.5 Hard Guardrail: Plan-Only IAM Role for Production
› 5.9.6 Scheduled Drift: a Daily Read-Only Plan on a Self-Hosted Worker
› 5.9.7 Drift Triage: Memory, Exceptions in Git and What Not to Automate
› 5.9.8 Provider Upgrades with Acceptance Criteria: Outcome, Rubric and PR
› 5.9.9 The Gate Stays in CI: Holds in Git, Human Review and What Not to Automate
5.10 FinOps: AI as Cost Analyst
5.11 Agent in Action - The Infrastructure Architect
5.12 Troubleshooting Terraform MCP
5.13 Terraform Automation: Subagent and Skills
5.14 Agent Teams: Multi-Module Infrastructure Refactoring
5.15 Spec-Driven IaC: From Business Requirements to Modules
› 5.15.1 Why IaC Is the Killer App for Spec-Driven
› 5.15.2 The Three Pillars Applied to Terraform
› 5.15.3 Walkthrough: Multi-AZ VPC for PCI Environment
› 5.15.4 Drift Detection as Spec Validation
› 5.15.5 Tooling: IBM iac-spec-kit and Native Claude Code
5.16 From Monolith to Composable: Refactoring CLAUDE.md into Skills and Subagents
› 5.16.1 Diagnosis: Why Refactor
› 5.16.2 The Partition Rule: Always-On vs On-Demand
› 5.16.3 Walkthrough: Migrating 3 Concrete Patterns
› 5.16.4 The Final CLAUDE.md ... ~80 lines
› 5.16.5 Final Directory Structure
› 5.16.6 When NOT to Refactor
5.17 Policy-as-Code for Terraform: Trivy, Conftest and the AI that Writes Rego
MCP Server, IAM Hard Guardrail, CFN/CDK, Bedrock, and Least-Privilege
6.1 AWS MCP Server (deep dive)
6.2 Hard Guardrail Plan-Only IAM: the AWS angle
6.3 CloudFormation and CDK with AWS MCP
6.4 Claude Code on Bedrock
6.5 Least-Privilege IAM for AWS MCP
6.6 Spec-Driven AWS: ADRs, Agents and Executable Guardrails
› 6.6.1 The Four ADRs (MCP, Bedrock, IAM, IaC)
› 6.6.3 The iam-auditor and iac-reviewer Agents
› 6.6.5 Auditing as Routine
6.7 Closing ... future GCP and Azure
Operation, Policies and Intelligent Scaling
7.1 Kubernetes: The Distributed Operating System
7.2 K8sGPT: From CLI to Continuous Monitoring
7.3 MCP for Kubernetes: Giving "Eyes" to the Agent in the IDE
7.4 MCP Installation Verification
7.5 Real End-to-End Case: Payment Service Down
7.6 Policies as Code: Kyverno + AI
7.7 Intelligent Autoscaling: KEDA + AI
7.8 Intelligent HPA/VPA: AI-Guided Configuration
› 7.8.1 Continuous Rightsizing: Requests Proposed by PR to the GitOps Repository
› 7.8.2 The PR Cycle: Declines in Memory, Human Review and What Not to Automate
7.9 Deployment Strategies: Canary and Blue-Green with AI
7.10 Kubernetes Automation: Subagent and Skills
7.12 Hosting MCP Servers on Kubernetes
7.13 AI-Assisted EKS/Kubernetes Upgrade
› 7.13.10 Continuous Readiness: a Managed Agents Worker Inside the Cluster
› 7.13.11 The Verdict: Exceptions in Git, Trends in Memory and What Not to Automate
7.14 Karpenter + AI: Intelligent Node Scaling
7.15 GKE vs EKS: Remote MCP and When Each One Makes Sense
7.16 GKE MCP in Action: The Tools in a Real Flow
7.17 Parallel Subagents: Multi-Region GKE Provisioning
7.18 Spec-Driven Kubernetes: From Requirements to Manifests + Policy
7.19 Upgrading EKS at Scale with Karpenter: From One Cluster to Three Hundred
› 6.19.1 The Manifests-Without-Intent Problem
› 6.19.2 The Three Pillars Applied to Kubernetes
› 6.19.3 Real Walkthrough: payment-service Deployment
› 6.19.4 The Spec as Dev ↔ Platform Contract
7.11 Section Conclusion
CI/CD, Observability and Troubleshooting
Pipelines as Product
8.1 Intelligent Test Selection (Predictive Test Selection)
8.2 Failure Auto-Triage
8.3 The Secure Pipeline (Supply Chain Security)
8.4 Flakiness Detection and Resolution
8.5 Where AI Accelerates Pipeline Creation (Code Generation)
8.6 When NOT to Use AI in the Pipeline
8.7 CI/CD Automation: Subagent and Skills
8.8 Agent in Action: Final Configuration
8.9 GitHub Actions with Claude Code
8.10 Claude Agent SDK in CI/CD
8.11 Spec-Driven CI/CD: ADRs, Deployer and Rules
› 8.11.1 The Decisions: four Pipeline ADRs
› 8.11.2 The Rules: Policy the Agent Loads
› 8.11.3 The Agents: the Trio that Operates the Pipeline
› 8.11.4 The Closed Loop: from Ticket to Deploy with Gates
8.12 Section Conclusion
From Signal Overload to Intelligent Action
9.1 The Problem of Signal Overload
9.2 Correlation of Logs, Metrics, and Traces
9.3 MTTR Reduction with Assisted Decision-Making
9.4 Resource Forecasting with Prophet
9.5 Incident Agent Architecture
9.6 Persona, Subagent and Skills Configuration
9.7 Agent Teams: Automated War Room for P1 Incidents
9.8 CloudWatch MCP Server: Native AWS Observability with AI
9.9 Grafana MCP + OpenTelemetry: Unified Multi-Cloud Observability
9.10 PagerDuty MCP: AI-Powered Incident Response on the Front Line
9.11 SLOs as Specs: Auto-Generating Alerts and Dashboards
› 9.11.1 The SLO Document Gap
› 9.11.2 The Three Pillars Applied to Observability
› 9.11.3 Real Walkthrough: payment-service SLO
› 9.11.4 The Compounding Effect: SLO Changes Become Regenerable
9.12 Section Conclusion
Security, FinOps and Runbook RAG
Intelligent Vulnerability Triage
10.1 The Problem of Security at Scale
10.2 Intelligent Vulnerability Triage
10.3 Triage System Architecture
10.4 Automated Prioritization: From Detection to Action
10.5 Secrets Management with AI
10.6 Subagent and Skills: security-auditor
10.7 Spec-Driven Container Security: ADRs, Gated Executor and Guardrails
› 10.7.1 The Decisions: four Security ADRs
› 10.7.2 Rules + Hook: the "NOT to Do" in Executable Form
› 10.7.3 The Gated Executor and Triage Memory
10.8 Section Conclusion
Intelligent Cloud Cost Reduction
11.1 The Structural Problem of FinOps
11.2 Intelligent FinOps Architecture
11.3 Implementation: Essential Components
11.4 Cost Explorer via MCP: Cost Questions in Plain Language
11.5 Spec-Driven FinOps: ADRs, Gated Reaper and the Tag Taxonomy
› 11.5.1 The Decisions: four FinOps ADRs
› 11.5.2 Rules and Skills: the Prompts Get a Home
› 11.5.3 The Agents: cost-reviewer and zombie-reaper
11.6 Conclusion
Operational Knowledge Instantly Accessible
12.1 The Problem of Distributed Documentation
12.2 Fundamentals: RAG, BM25 and Embeddings
12.3 Stack Selection: Detailed Comparison (2025-2026)
12.4 Step-by-Step Implementation with Qdrant + LlamaIndex
12.5 Integrating Multiple Sources: Jira, GitHub, Confluence, Slack
12.6 Creating an Agent/MCP that Uses RAG (Anti-Hallucination)
12.7 Slack Integration for Quick Access
12.8 RAG Metrics and Evaluation
12.9 Limitations and Troubleshooting
12.10 Conclusion and Implementation Checklist
Security, GitOps and Organizational Adoption
Human-in-the-Loop and Responsibility
13.1 Why AI Without Limits Becomes Risk
13.2 Human-in-the-Loop in Practice
13.3 Simple Guardrails That Work
13.4 Responsibility Remains Human
13.5 Security Checklist
13.8 A Real Audit Trail for Guardrails: Fail-Closed Hooks and the OpenTelemetry safety_event
ArgoCD, Flux and Intelligent Automation
14.1 What is GitOps (Recap)
14.2 Where AI Adds Value in GitOps Flow
14.3 Automated IaC PR Review
14.4 Manifest Generation with Claude
14.5 Drift Detection and Correction
14.6 Integration with ArgoCD and Flux
14.7 Production-Ready Prompts
14.8 Where to Place Prompts and How to Automate
14.9 Guardrails: What NOT to Automate
14.10 Scaling ArgoCD: App-of-Apps, ApplicationSet and Sync Waves
14.11 Progressive Delivery with Argo Rollouts
14.12 Spec-Driven GitOps: ADRs, Agents and the Complete Cycle
How to Scale AI in DevOps at the Enterprise
15.1 The Problem of Uncoordinated Adoption
15.2 Governance Architecture: Repositories and Structure
15.3 CLAUDE.md: The Single Source of Truth
15.4 Adoption Architecture: People and Processes
What's coming and how to prepare
Future Vision and Your Action Plan
16.1 What Changed (and What Didn't)
16.2 Three Trends to Watch
16.3 Next Steps
Everything in this table of contents is in the free book (edition 1.1, PDF and EPUB). The interactive guide gets updates every week.
14-day Guarantee | 1 Year Access | Updates Included