Andrew Ng's Four Agent Patterns, De-Frameworked
It rebuilds Andrew Ng’s four canonical agent patterns in plain Python so you can see the machinery without framework middleware.

What it does
This repository implements the four agentic patterns Andrew Ng outlined for DeepLearning.AI—reflection, tool use, planning, and multi-agent collaboration—using nothing but direct API calls to Groq. It packages the code as both step-by-step Jupyter notebooks and a small, installable Python library called agentic-patterns.
The interesting bit
The author deliberately avoids the usual orchestration frameworks—no LangChain, no CrewAI, no LlamaIndex—so the logic stays transparent. Each pattern is boiled down to a single, inheritance-based Python class (ReflectionAgent, ToolAgent, ReactAgent, and Crew) that you can read and modify in minutes.
Key highlights
- Implements reflection, tool use, ReAct planning, and multi-agent crew patterns from scratch.
- Zero framework dependencies; talks directly to the Groq API.
- Includes step-by-step notebooks and a reusable
agentic-patternsPyPI package. - Tool system uses a simple
@tooldecorator to bind Python functions to the LLM. ReactAgentextendsToolAgentto add multi-step reasoning without extra abstraction layers.
Caveats
- Hard-wired to Groq; swapping in another provider means editing the source.
- The multi-agent section references CrewAI’s abstractions, so it may borrow concepts from the very frameworks it avoids.
- The README is heavy on quickstart snippets and YouTube links, light on architectural details.
Verdict Good for developers who want to understand agent internals without wading through framework indirection. Skip it if you need multi-provider support or production observability.
Frequently asked
- What is neural-maze/agentic-patterns-course?
- It rebuilds Andrew Ng’s four canonical agent patterns in plain Python so you can see the machinery without framework middleware.
- Is agentic-patterns-course open source?
- Yes — neural-maze/agentic-patterns-course is open source, released under the MIT license.
- What language is agentic-patterns-course written in?
- neural-maze/agentic-patterns-course is primarily written in Jupyter Notebook.
- How popular is agentic-patterns-course?
- neural-maze/agentic-patterns-course has 1.7k stars on GitHub.
- Where can I find agentic-patterns-course?
- neural-maze/agentic-patterns-course is on GitHub at https://github.com/neural-maze/agentic-patterns-course.