
Build a cloud code style agent from scratch that reads your codebase, runs commands, remembers context, and uses feedback loops to stay reliable and extensible.
Set up a project and a virtual environment, activate it, and run a hello world script to connect to an llm as the first step toward building an ai agent.
Learn how to convert a Python program into a cli using click, install the package, and implement decorators, options, arguments, and single versus interactive modes.
Create a context manager for prompts that loads a system prompt, identity, and token-aware messages to guide user and assistant interactions.
Explore tool calling fundamentals as the LLM uses a base tool to read, write, and edit files with schemas, confirmations, and safety via current working directory controls.
Define a read file tool with a pydantic base model to read text files from relative or absolute paths using offset and limit, returning line-numbered content and metadata.
Master the tool registry to register, unregister, and expose tools as OpenAI schemas, then pass schemas to the llm, invoke tool calls, and handle streaming and non-streaming execution.
Master the agentic loop from scratch by executing tools and managing context to optimize Claude code workflows.
Master run interactive mode in Claude code, fix context management errors, handle keyboard interrupts and exit commands, and set up a configurable agent loop with tool calls and CLI enhancements.
Create per-session contexts with isolated LLM clients, a context manager, and a tool registry to enable concurrent sessions, each with its own config, discovery, and turn tracking.
Learn to implement a write file tool that writes content to files, creates directories, overwrites when needed, and generates diffs to show changes, integrated with a tool framework.
Explore building a shell tool for an AI agent, including command execution, timeout handling, current working directory, and safe environment management with a configurable shell environment policy.
Learn to implement a list directory tool that lists files and folders in a given path, supports include hidden flag, resolves relative paths, handles errors, and formats results with metadata.
Display error messages in a TUI by checking error and not success, append a styled error text, possibly truncate, and show file not found details for robust error handling.
Explore how glob and grep differ for file discovery and content search, and learn a practical AI coding workflow that uses glob to locate files and grep to inspect definitions.
Build a grep tool that searches file contents with a regex pattern, returns matching lines with file paths and line numbers, and supports case-insensitive search.
This is a comprehensive, hands-on program where you will build a fully autonomous AI coding agent from scratch. Over the span of 19 hours, you will engineer a real system capable of reading and understanding an entire codebase, writing and editing files, running shell commands, searching and fetching data from the web, and managing long-running tasks autonomously.
Please note: This is an advanced course and is not suitable for complete beginners.
This curriculum is designed for experienced developers and AI practitioners who already have a solid foundation in software engineering, Python, and large language models. We will work extensively in the terminal and build a production-grade CLI and TUI-based system. Familiarity with APIs, tooling, and modern AI workflows is strongly recommended.
This course is for developers, AI engineers, and system builders who want to move beyond simple chat-based assistants and learn how to design, implement, and scale real agentic AI systems.
What This Course Is About
Modern AI tools can generate code, but real AI agents must do far more.
They must plan, execute, adapt, remember, recover from errors, and continue working even when context becomes large or tasks become complex.
In this course, you will build an AI coding agent that:
Reads and understands your codebase
Writes, edits, and manages files safely
Executes shell commands and tools
Searches and fetches information from the web
Maintains long-term memory across sessions
Plans tasks and tracks progress
Spawns sub-agents when complexity increases
Detects and breaks out of infinite loops
Learns from mistakes through feedback loops
Compacts and prunes context to run indefinitely
Saves sessions and restores checkpoints
Allows controlled autonomy and approvals
Is fully extensible with custom tools and third-party integrations using MCP
This is not a demo project. You are building a real AI system architecture that mirrors how modern autonomous coding agents are designed.
Architecture and Core Concepts You Will Master
This course takes a deep dive into agentic AI system design, covering both theory and implementation.
Agentic Loop and Execution Engine
You will design the core agentic loop that allows the AI to plan, execute actions, observe results, and iterate until tasks are complete.
Tool System and Tool Registry
Learn how to define, register, and expose tools to the AI using schemas, enabling safe and structured tool execution for file operations, shell commands, search, and more.
Context Management
Implement advanced context management strategies, including compaction and pruning, so the agent remains effective even during long-running tasks.
Memory Systems
Build memory tools that allow the agent to remember important information across turns and sessions, enabling personalization and continuity.
Sub-Agents and Multi-Agent Workflows
Design specialized sub-agents that handle specific responsibilities and are spawned dynamically when tasks grow complex.
Feedback Loops and Self-Correction
Implement mechanisms that allow the agent to recognize mistakes, adjust behavior, and avoid repeated failures.
Sessions and Checkpoints
Learn how to save, restore, and manage agent sessions, enabling long-term workflows and resumable execution.
MCP (Model Context Protocol)
Extend your agent by integrating third-party services and external tools through MCP, making the system modular and future-proof.
Practical, Real-World Implementation
Throughout the course, you will build:
A full CLI application using Click
A rich terminal UI for agent output and interaction
A robust configuration and error-handling system
Approval and permission controls for safe autonomy
Loop detection and execution guards
A scalable architecture that users can extend with their own tools
All concepts are implemented step by step with real code, not abstractions.
What You Will Be Able to Do After This Course
By the end of this course, you will be able to:
Design and build autonomous AI coding agents from scratch
Engineer agentic loops that plan, execute, and adapt
Implement tool-driven AI systems with real-world safety controls
Manage long context windows using compaction and pruning
Build multi-agent architectures for complex workflows
Extend AI agents with custom tools and external services
Create production-ready AI systems, not prototypes
Who This Course Is For
Software developers who want to build AI systems, not just use them
AI engineers looking to master agentic architectures
Advanced GenAI users ready to move beyond chat interfaces
System builders interested in autonomous tooling and workflows
Who This Course Is Not For
Complete beginners to programming
Learners looking for basic prompt engineering
Users seeking no-code or low-code AI solutions
This course gives you the knowledge and practical experience needed to engineer real autonomous AI coding agents, using the same principles behind modern AI developer tools.
If you are ready to move from AI usage to AI system design, this course is for you.