AIAG / BASE / 01
Python Masterclass
The language most agents are written in, from zero.
Open the syllabusHong Kong · AI agents · Adults and teens
An AI agent is a language model that is allowed to act: it reads a goal, picks a tool, looks at what came back and decides what to do next, again and again until it thinks the job is done. That last part is where most of the trouble lives. Our course teaches you to build agents and, just as much, to doubt them: to give them narrow tools, a stopping rule and a person who signs off, and to measure how often they are right. Every class is one to one, live, with a mentor who speaks English throughout.
Teaching live since 2020 · 10,000+ students worldwide · in Hong Kong every class is one to one, online, in English
The short answer
Modern Age Coders teaches an AI agents course for adults and teenagers in Hong Kong: live online classes, one to one and in English, at whatever Hong Kong hour you pick. You learn what an agent is (a model that chooses tools in a loop until a goal is met), when a fixed workflow or no AI at all is the wiser build, how to add stopping rules and a human sign-off, and how to score an agent with tests before trusting it. Everyone builds in Python, then on agent platforms offered in Hong Kong or provided by their school or employer, within each platform's age terms. The first class is free.
Start here
Three routes cover most people who reach this page. From Hong Kong all three run as private lessons, which lets the mentor shape the course around your own job, studies or project.

AIAG / 01
The deepest route. Tool calling, MCP, retrieval, memory and guardrails written by hand, then an evaluation harness and tracing that decide whether your agent is ready. Taught one to one only.
Open the syllabus →
AIAG / 02
For people who write or manage software. You plan the work, let an AI assistant offered in Hong Kong or provided by your employer draft code, then review every change and keep it inside limits you set.
Open the syllabus →
AIAG / 03
The teenage route, one to one only. Agents built on Microsoft's low-code platform; for a student under 18 a parent or guardian accepts Microsoft's terms before anything is set up.
Open the syllabus →Agents, defined
A chatbot answers. An agent acts: it can search, calculate, read a file or send something, and it decides for itself which of those to do next. The two firms behind the most widely used models describe the difference in almost the same words.
Anthropic's engineering essay "Building effective agents" (published 19 December 2024) separates two kinds of system. "Workflows are systems where LLMs and tools are orchestrated through predefined code paths." Agents, by contrast, "are systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks."
That distinction is the first thing we teach, because it decides who is in charge. In a workflow, your code says step one, step two, step three, and the model fills in each step. In an agent, the model writes its own plan as it goes, and your job moves from writing the steps to setting the fences.
OpenAI's guide for product teams, "A practical guide to building agents", puts it in one line: "Agents are systems that independently accomplish tasks on your behalf." It then names "three core components": the model, the tools, and the instructions, which it describes as "Explicit guidelines and guardrails defining how the agent behaves".
Anthropic calls the same starting point "an LLM enhanced with augmentations such as retrieval, tools, and memory." In the course you build each augmentation yourself before using any framework that hides it.
Reads the goal and the results so far, then proposes the next move. Clever, fast and sometimes confidently wrong.
Small functions the model may call: a search, a calendar lookup, a database query, an email draft. Each one is a door you open on purpose.
The rules: what the agent is for, what it must never do, when it must stop and ask a person.
Sources: Anthropic, “Building effective agents”, 19 December 2024 (the page now notes that much of the tooling it describes has changed since then; the definitions still hold); OpenAI, “A practical guide to building agents” (PDF, no date printed). Both read on 23 November 2026.
Tools have to be wired to something. The Model Context Protocol is the most common wiring today, and its own documentation describes it as "an open-source standard for connecting AI applications to external systems." Its plainest line is a picture: "Think of MCP like a USB-C port for AI applications."
In class you write a small tool server first, so that the plug is not magic, then connect ready-made ones and read what each is allowed to touch.
Anthropic writes that agents must "gain "ground truth" from the environment at each step (such as tool call results or code execution)". In other words, the agent is only as good as its habit of checking. A model that assumes its last step worked, instead of looking, will drift a little further from the truth with every turn.
For a gentler introduction before choosing a course, our explainer on AI agents explained walks through the same loop with everyday examples.
Agent or not
Less often than the marketing suggests. The advice from the people who build the models is to start with the least clever thing that works, and to add autonomy only when a task truly needs it.
Anthropic's guidance is blunt: "we recommend finding the simplest solution possible, and only increasing complexity when needed. This might mean not building agentic systems at all." Its reason is cost and risk: "The autonomous nature of agents means higher costs, and the potential for compounding errors."
It also warns against starting with a heavy framework. It suggests that developers "start by using LLM APIs directly", and adds: "If you do use a framework, ensure you understand the underlying code." We teach in that order.
Many tasks people bring to a first class turn out to be workflows: the same four steps every Monday, in the same order. A workflow is cheaper, easier to test and far easier to explain to a manager or an auditor.
An agent earns its place when the path genuinely changes from case to case, when it needs to search before it knows what to do next, and when a mistake can be caught before it matters.
| Task | Our usual choice | Why |
|---|---|---|
| Turn a weekly sales sheet into the same three-paragraph summary | Workflow | The steps never change; a fixed chain is cheaper and testable |
| Answer staff questions from a policy handbook | Workflow with retrieval | Look up, then answer; no actions are taken |
| Triage a support inbox and draft replies for a person to send | Agent, with approval | Each email needs a different path, but nothing leaves without a human |
| Fix a failing test in a code base | Agent, in a sandbox | The route depends on what it finds; the tests act as ground truth |
| Move money, cancel orders or email customers directly | Not without sign-off | Irreversible actions belong to a person |
| Add up a column of numbers | Neither | A spreadsheet formula is faster and always right |
The table is our teaching judgement, not a rule from any vendor. It follows Anthropic’s advice to prefer the simplest solution and OpenAI’s list of actions that should trigger human oversight, both read on 23 November 2026.
If what you mainly need is to write better instructions for an existing assistant, rather than build anything, our prompt engineering course is the shorter road, and you can come back to agents later.
Limits and sign-off
With three things you decide before the agent runs: how many steps it gets, which actions need a person's yes, and how you will check its work afterwards. Hong Kong's own guidance on generative AI points the same way.
Anthropic notes that "it's also common to include stopping conditions (such as a maximum number of iterations) to maintain control", and recommends "extensive testing in sandboxed environments". A step budget is the simplest fence there is, and one of the first lines we write in class.
OpenAI's guide lists "Two primary triggers" for handing control back to a person. The first is "Exceeding failure thresholds", when an agent keeps retrying. The second is "High-risk actions: Actions that are sensitive, irreversible, or have high stakes", with examples such as "canceling user orders, authorizing large refunds, or making payments".
Anthropic's appendix on tools has a two-word rule borrowed from factory engineering: "Poka-yoke your tools." Change a tool's inputs so the wrong call is difficult to make. A tool that only accepts a date from a list cannot invent a date.
This is thinking work, not typing work, and it is the part of agent building that AI assistants are worst at doing for you. It is also why our courses keep to the habit described on we teach you how to think: you design the fence yourself, then let the tool help with the wiring.
| Dimension (DPO wording) | What the guideline is concerned with | What we practise in class |
|---|---|---|
| Personal Data Privacy | Personal data handled by AI systems | Agents get test data only; real names and ID numbers never go into a prompt |
| Intellectual Property | Copyright in training data and outputs | Every tool and dataset we use is checked for its licence |
| Crime Prevention | Misuse of AI for fraud or harm | Agents cannot send messages or move money without a person |
| Reliability and Trustworthiness | False or fabricated outputs | Every agent is scored against a checker before it is trusted |
| System Security | Attacks on AI systems and their data | Tools get the narrowest permission that does the job |
Source: Digital Policy Office, Hong Kong Generative Artificial Intelligence Technical and Application Guideline, Version 1.1, December 2025, section 2.2 “Five Dimensions of Governance”. The first column is the DPO’s wording; the second is our summary of its section; the third is our own practice. Read on 23 November 2026. The guideline is guidance for reference, and we claim no link with the DPO.
The same guideline speaks directly to people who use AI services: "Service Users should be fully aware of the potential for falsity in content generated by AI and should proactively verify the authenticity of the content." On hallucinations it is frank that "it has not been possible to completely eliminate them."
An agent multiplies that problem, because it acts on its own outputs. One wrong date early in a plan becomes a wrong booking, then a wrong email.
The guideline also describes "Human-Dominated Models" for higher-stakes uses, which rely mainly on human decision-making "with AI serving as an auxiliary tool." For most office agents in Hong Kong that is the right setting, at least at first.
Our course treats human sign-off as a design feature, not a failure. You will build an agent that drafts, a person who approves, and a log that shows what happened.
A real lesson
You write an eval: a list of tasks with known answers, a slow checker that is obviously right, and a score. Here is a small one we use early in the course. Two tiny "agents" must find the first Hong Kong working day a set number of days after a 2027 public holiday.
# Testing two small agents against a checker that is known to be right (an "eval").
# Holiday dates: Hong Kong general holidays for 2027, as gazetted on 15 May 2026. Our rule for a
# working day: Monday to Friday and not a general holiday. The tasks are ours.
from datetime import date, timedelta as days
HOLIDAYS = {
"The first day of January": date(2027, 1, 1), "Lunar New Year's Day": date(2027, 2, 6),
"The third day of Lunar New Year": date(2027, 2, 8), "The fourth day of Lunar New Year": date(2027, 2, 9),
"Good Friday": date(2027, 3, 26), "The day following Good Friday": date(2027, 3, 27),
"Easter Monday": date(2027, 3, 29), "Ching Ming Festival": date(2027, 4, 5),
"Labour Day": date(2027, 5, 1), "The Birthday of the Buddha": date(2027, 5, 13),
"Tuen Ng Festival": date(2027, 6, 9), "Christmas Day": date(2027, 12, 25),
"The first weekday after Christmas Day": date(2027, 12, 27),
}
OFF = set(HOLIDAYS.values())
def working(d):
return d.weekday() < 5 and d not in OFF
def checker(after, gap): # slow and obviously right: walk forward one day at a time
d = HOLIDAYS[after] + days(gap)
while not working(d):
d += days(1)
return d
def hasty_agent(after, gap): # checks once, nudges once, never checks again
d = HOLIDAYS[after] + days(gap)
if not working(d):
d += days(1)
return d
def careful_agent(after, gap): # keeps checking until a tool says yes, within a step budget
d = HOLIDAYS[after] + days(gap)
for _ in range(10):
if working(d):
return d
d += days(1)
return None # out of steps: hand back to a person
TASKS = [("Good Friday", 10), ("The first day of January", 4), ("Easter Monday", 12),
("Labour Day", 12), ("Tuen Ng Festival", 3), ("Christmas Day", 1)]
for agent in (hasty_agent, careful_agent):
score = 0
print(agent.__name__)
for after, gap in TASKS:
got, want = agent(after, gap), checker(after, gap)
score += got == want
mark = "pass" if got == want else "FAIL, wanted " + want.strftime("%a %d %b")
print(f" {after} +{gap}d -> {got.strftime('%a %d %b %Y')} {mark}")
print(f" score: {score} of {len(TASKS)}")The working-day rule (Monday to Friday, not a general holiday) and the six tasks are ours. The two "agents" are deliberately tiny stand-ins so the code runs without any account; in the course a real model sits where they are, and the harness around it stays the same. Run with Python 3, it prints exactly the lines below.
hasty_agent Good Friday +10d -> Tue 06 Apr 2027 pass The first day of January +4d -> Tue 05 Jan 2027 pass Easter Monday +12d -> Sun 11 Apr 2027 FAIL, wanted Mon 12 Apr Labour Day +12d -> Fri 14 May 2027 pass Tuen Ng Festival +3d -> Sun 13 Jun 2027 FAIL, wanted Mon 14 Jun Christmas Day +1d -> Mon 27 Dec 2027 FAIL, wanted Tue 28 Dec score: 3 of 6 careful_agent Good Friday +10d -> Tue 06 Apr 2027 pass The first day of January +4d -> Tue 05 Jan 2027 pass Easter Monday +12d -> Mon 12 Apr 2027 pass Labour Day +12d -> Fri 14 May 2027 pass Tuen Ng Festival +3d -> Mon 14 Jun 2027 pass Christmas Day +1d -> Tue 28 Dec 2027 pass score: 6 of 6
The hasty agent scores 3 of 6. Easter Monday plus 12 days is a Saturday; one nudge lands on Sunday. Christmas Day 2027 is a Saturday, so the next day is Sunday, and one nudge lands on Monday 27 December, which the government has made a general holiday in its own right. The careful agent scores 6 of 6.
The hasty agent looks fine on half the tasks. If you had tried it once on Good Friday and moved on, you would have shipped it. That is the everyday failure with agents: a few good demos, no systematic test.
Its mistakes also compound in exactly the way Anthropic describes. It does the right thing once (it notices a holiday), then assumes its fix worked instead of checking the new date. Each wrong answer is one missing look at the ground truth.
The careful agent is not clever. It simply keeps asking the working-day tool until the answer is yes, and it has a step budget so it cannot loop for ever. The checker, written first, is what tells you that this plain approach is the right one.
With a real language model in the agent's seat, the scores move around from run to run, so the course teaches you to run each task several times and to report a rate, not a single pass.
Ages and tools
Adults can use any of the platforms in our courses. Teenagers can learn the same ideas, but only on tools whose makers allow their age, and with a parent involved where the terms ask for one.
| Learner | Course route | What the work looks like |
|---|---|---|
| Adults and professionals, 18 and over | Agentic AI Engineering or Vibe Coding for Adults | Agents in Python, AI-assisted coding on real projects, evals and tracing |
| Office staff who do not code | Copilot Studio for professionals | Low-code agents inside Microsoft 365, with approval steps |
| University students | Generative AI: LLMs, RAG and agents | Models, retrieval and agents built from first principles |
| Teenagers, 13 to 17 | Copilot Studio for teens, or agent patterns in plain Python | A parent or guardian accepts Microsoft's terms; no ChatGPT or Claude |
| Children under 13 | Our AI course for kids in Hong Kong instead | How machines learn, with no chatbot accounts |
| Platform | Age wording in the vendor's terms | Our rule in class |
|---|---|---|
| Claude (Anthropic) | At least 18, or higher where local law requires | Not used: Anthropic does not list Hong Kong among its supported places |
| ChatGPT and Codex sign-in (OpenAI) | At least 13; under 18 needs a parent's or legal guardian's permission | Not used: OpenAI does not list Hong Kong among its supported places |
| Gemini (Google) | 13 or the applicable age with a personal or school account; 18 with a work account; not on Family Link accounts | Google lists Hong Kong for the web app; teens with a parent's agreement |
| Copilot Studio (Microsoft) | Course access arranged by us; for under-18s a parent or guardian accepts Microsoft's terms | Set up with the mentor in the first class |
Source: each vendor’s own terms, quoted in our AI tools age guide (audited 15 July 2026), and our Copilot Studio for teens course page. Where a tool is offered is a separate question: OpenAI's and Anthropic's lists of supported countries and regions do not include Hong Kong, Google's list for the Gemini web app does, and Microsoft Support says Copilot is unavailable in “China (excluding Hong Kong SAR)”, all read 23 November 2026. Vendors revise these terms, and we read them again before each new course starts. An age floor is the law speaking, not a promise that the tool is right for a given 14 year old.
Agents are a good fit for a capable 15 year old: the logic is the same as any program, and the testing habit is the one teachers wish every student had. What a teenager cannot do is hold an account their age does not allow.
So the teen route uses Copilot Studio, set up with a parent, or plain Python where the "model" is a set of rules the student writes, as in the lesson above. Our page on AI agents for teens says more about that route.
Most adults in our Hong Kong classes come with a job-shaped problem: an inbox, a report, a code base. The mentor starts from that problem, so the first agent you build is one you might actually keep, with its approval step and its tests.
If you are new to AI altogether, our AI classes for adults cover the ground before agents, and you can move across at any point.
From Hong Kong
Because almost everything about agents is written in English first, and because a private mentor can follow your real project instead of a class syllabus.
Framework documentation, model release notes, error messages and the security write-ups that matter all appear in English, usually months before any translation. Learning in the same language means you can read the source when something breaks.
For Hong Kong professionals who already work in English, the classes feel like a technical meeting. For those who mostly work in Cantonese, the mentor speaks steadily, types new terms into the chat and is happy to repeat; the teaching is always in English, never in Cantonese or Mandarin.
Every Hong Kong learner gets a mentor to themselves. You never wait for a class to reach your level, and you can spend a whole lesson on the one tool that keeps misbehaving.
It also suits confidential work. Rather than sharing your company's files, you and the mentor build a safe copy with invented data that behaves like the real thing, which is good practice under the privacy dimension in the table above.
| Hong Kong time | India time | Typical use |
|---|---|---|
| 12:30 pm, weekday | 10:00 am | A lunch-hour lesson |
| 8:00 pm, weekday | 5:30 pm | After work |
| 9:30 pm, weekday | 7:00 pm | Late evening, children asleep |
| 11:00 am, Saturday | 8:30 am | A weekend session |
Clock basis: Hong Kong runs on UTC+8 and India on UTC+5:30, and neither observes daylight saving (IANA time zone database; Hong Kong Observatory), so the difference is a steady 150 minutes. The rows are our own arithmetic, offered as sample hours rather than a timetable.
Progress
Our own stages for the agents course, used to plan lessons and to tell you where you stand. They are not an official level or qualification.
| Stage | You can | Evidence |
|---|---|---|
| 1. Name it | Say whether a task needs a workflow, an agent or neither | A short written decision for three of your own tasks |
| 2. Wire it | Give a model one tool and read every call it makes | A working tool call with its log |
| 3. Fence it | Add a step budget, a failure limit and an approval step | An agent that stops and asks at the right moments |
| 4. Score it | Write an eval with a checker and a task set | A score and a list of failure patterns |
| 5. Harden it | Narrow tool inputs and permissions after reading failures | A higher score on the same tasks |
| 6. Explain it | Defend the design to someone who will rely on it | A ten-minute walkthrough, in English |
A demo that worked once is not a result; a score on twenty tasks is.
If you cannot say when your agent will stop, it is not finished.
Monthly notes list what was built, how it was tested and what it may not do.
Stage 6 is the one that matters at work: a person who can explain the agent can be held responsible for it.
More courses
Every course here runs live in English; from Hong Kong you take it one to one.
AIAG / BASE / 01
The language most agents are written in, from zero.
Open the syllabusAIAG / BASE / 02
For 13 to 17 year olds before any agent work.
Open the syllabusAIAG / BASE / 03
Language models, retrieval and agents, built up slowly.
Open the syllabusAIAG / PLAT / 01
Agents inside Microsoft 365, with sign-off steps.
Open the syllabusAIAG / PLAT / 02
The same platform at a student's pace.
Open the syllabusAIAG / PLAT / 03
Google's enterprise agent tools, where your employer provides them.
Open the syllabusAIAG / MORE / 01
Scripts and APIs: the tools an agent calls.
Open the syllabusAIAG / MORE / 02
Spreadsheets and dashboards, the data an office agent reads.
Open the syllabusAIAG / MORE / 03
Using and questioning AI tools inside their age terms.
Open the syllabusHow classes run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Bring a laptop and a quiet room; the mentor logs in from India, which runs 150 minutes behind Hong Kong whatever the season.
Lunch hour
Half past twelve in Hong Kong; ten in the morning for the mentor.
After work
Book 8 pm locally and the mentor's clock shows 5:30.
Weekends
Saturday or Sunday sessions, whichever suits you.
Lessons start from a task you actually have.
Every tool call is printed and discussed.
Nothing is called finished without a score.
Practice copies stand in for anything confidential.
Technical terms explained and typed into the chat.
The same person from your first month onwards.
Student work
Work from learners on our longer programmes; browse the rest in our student labs.

AI and ML
An AI nutrition coach that reads what you eat and works you toward a target.

AI and ML
A chatbot that answers mathematics and programming questions, built and deployed by a student.

AI and ML
An assistant that helps a young person recognise unsafe situations online.

Web app
A weather forecasting site with live conditions for any location.
Fees
Billing is monthly, with no lump sum and nothing collected ahead for later months. The fee card is in Hong Kong dollars, and any payment-gateway charge sits on its own line before you confirm, which means the total is visible before any money moves.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
What learners and parents wrote on Google, shown as written.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
Questions from Hong Kong
Yes. Every lesson is live over video with a mentor based in India, and the whole class runs in English. Mentors speak clearly, write new terms in the chat and repeat when asked. No lesson is taught in Cantonese or Mandarin.
One to one. In Hong Kong we teach every learner individually, so your mentor can build the course around your own work and move at your speed.
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Because neither place changes its clocks, the gap to India never moves: book 8 pm in Hong Kong and your mentor is teaching at 5:30 in the afternoon.
Not for every route. Copilot Studio is low-code. For Agentic AI Engineering you should be comfortable in Python; if you are not, we start with Python and move to agents when you are ready.
Yes, from 13, by the right route. Teenagers take Copilot Studio for Teens with a parent or guardian accepting Microsoft's terms, or learn agent patterns in plain Python. ChatGPT and Claude are not used: OpenAI and Anthropic do not list Hong Kong among the places they offer them, and Claude is adults only in any case.
No. Our courses are not on the Continuing Education Fund list, so fees cannot be claimed back from it. The fund supports adults on courses registered with it; if a subsidy matters to you, check the fund's own course search before you enrol anywhere.
Python first, then the platforms that fit your route and are offered in Hong Kong or provided by your school or employer: MCP tool servers, Copilot Studio, Gemini Enterprise. ChatGPT, Codex and Claude are not among them, because OpenAI and Anthropic do not list Hong Kong among the places they offer them. We build each piece by hand before using a framework, so you understand what it hides.
We teach rather than build for you. You leave able to design, test and explain the agent yourself, which is what an employer will need from you in any case.
Monthly. The fee card reads in Hong Kong dollars, nothing is collected in advance for later months, and the gateway charge appears on screen before you confirm. Your first class costs nothing.
Finish a course and you get a Modern Age Coders certificate of completion, issued by us alone. No government body, university or professional institute stands behind it.
Related
Background for choosing where to start with agents.
The loop, the tools and the risks, without code.
Our agents teaching for learners anywhere.
Working alongside coding agents on real software.
Models and data for teens and adults.
Every course we offer Hong Kong learners.
Each tool's minimum age, in its maker's words.
Part of the guide: Every Hong Kong page
More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · Coding subjects and courses: App development · By age and school level: Adults · HKDSE ICT and maths: DSE ICT elective guide · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Olympiads and competitions: AMC 10 preparation · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
In the free class you give a small agent one tool and a step budget, try a task that trips it up, and see the log of what it did. The mentor then suggests the route that fits your work, your age and how much Python you already know.
Still weighing it up? Our page on how we teach shows a live session from the inside, and the full course list has each syllabus week by week.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Live, online and one to one, in English, with mentors based in India. A WhatsApp message gets the quickest reply.
A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.
Book a priority demo