Why does code an AI agent writes for Clarence projects work once and then fail?
Often because it assumes where it will be run from, so file paths that worked in the agent's session break elsewhere. Our live online lessons cover building with AI and agents while watching for exactly that. The Clarence council area had 61,531 residents in 2021.
An agent wrote a tidy script to total Clarence's road network from a small data file, ran it, and reported 14,374 road segments. Run the same script from its own folder and Python cannot find the file. Nothing in the code changed; only the folder it was started from.
Facts last verified 14 October 2026. Teaching is online; no Clarence branch is claimed.
This project needs Python files, paths and a working knowledge of how scripts run. These courses cover them; a free first lesson picks the right one.

Coding agents on real projects, including how and where their code runs.
See the syllabus
Building with AI help and testing on more than one machine or folder.
See the syllabus
Files, paths and pathlib, explained from the ground up.
See the syllabus
Using AI tools well, including checking their assumptions.
See the syllabusBrowse the course atlas for more than one hundred options and use the coding roadmap to check prerequisites.
The four we are known for
These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

Python, web and AI projects where the learner still owns the thinking.
See the syllabus
Automate the work you already do, then let AI carry part of it.
See the syllabus
Train a model, read what it learned, and be able to say why it is wrong.
See the syllabus
Run AI coding agents on real work without losing control of the codebase.
See the syllabusCensus 2021 figures for the Clarence local government area (ABS code LGA61410), with Tasmania alongside.
| Measure | Clarence |
|---|---|
| Residents | 61,531 |
| Median age | 41 |
| Families | 17,067 |
| Private dwellings | 25,855 |
| People per household | 2.4 |
| Indicator | Clarence | Tasmania |
|---|---|---|
| Separate houses | 93.2% (21,987) | 87.7% |
| Adults with a bachelor degree or higher | 25.8% (13,155) | 21.9% |
| Workers who took a bus to work | 4.2% (1,227) | 2.5% |
| Employed people in professional jobs | 23.6% (6,856) | 20.0% |
Clarence had 3,546 residents aged 5 to 9, 3,726 aged 10 to 14 and 3,162 aged 15 to 19.
1,673 residents were aged 85 or over.
The council area covers about 378 square kilometres east of the Derwent.
Census cells carry small, deliberate privacy adjustments, so each figure is shown as published and none are combined.
We exported road segment totals for the Clarence council area from the LIST into data/clarence_roads.csv. Our scripted agent wrote scripts/report.py, which opens "data/clarence_roads.csv" and adds up the rows. We ran it from two folders, then ran a corrected version.
| Script and folder | Output |
|---|---|
| report.py, from the project folder | segments 14374 km 1837.0 |
| report.py, from the scripts folder | FileNotFoundError: data/clarence_roads.csv |
| report_fixed.py, from the scripts folder | segments 14374 km 1837.0 |
| report_fixed.py, from the project folder | segments 14374 km 1837.0 |
| Road class | Segments | Recorded length |
|---|---|---|
| Access Road | 6,141 | 752.3 km |
| Local Road | 4,877 | 434.7 km |
| Vehicular Track | 1,410 | 398.3 km |
| Collector Road | 746 | 67.8 km |
| Arterial Road | 549 | 66.7 km |
| Sub Arterial Road | 383 | 53.8 km |
| National/State Highway | 268 | 63.4 km |
A relative path is resolved from the folder Python was started in, not the folder the script lives in. The agent tested from one place; a person ran it from another.
Copying the data file into the scripts folder makes the error go away and leaves two copies that will drift apart. Agents sometimes do exactly that.
Build the path from the script's own location: Path(__file__).resolve().parent.parent / 'data' / 'clarence_roads.csv'. It works from anywhere.
Before accepting agent-written code, run it from a different folder, or ask the agent how it finds its files. Hidden assumptions about the working directory are among the most common reasons code works in a demo and fails in use.
The road totals come from the LIST, State of Tasmania, via its map service's statistics query for segments intersecting the council boundary. The scripts, folders and outputs are our own; the agent is our own short script standing in for one, not a commercial AI model.
A short guide to finding files reliably in Python.
| Approach | Works from any folder? | Note |
|---|---|---|
| open('data/file.csv') | No | Depends on the current folder |
| Path(__file__).resolve().parent | Yes | Anchored to the script itself |
| A path passed as an argument | Yes | The caller decides explicitly |
| os.chdir() at the top of the script | Yes, but risky | Changes state for everything else |
Give directions to a toy box from the kitchen, then try the same directions from the garden.
Ask an AI tool for a script that reads a CSV, run it from two folders, and fix it with pathlib.
Check scheduled jobs and agent-written tools at work for relative paths before they run unattended.
print(Path.cwd()) at the start of a script shows the working directory in one line. It is the quickest way to explain a FileNotFoundError that seems impossible.
Council-wide markers from the LIST open data and the Tasmanian school calendar.
Of the 14,374 segments, 9,016 are sealed, 5,143 unsealed and 215 need four-wheel drive.
The LIST records 510 points of interest and 30,912 address points in or on the council boundary, counts only.
Tasmanian government school Term 3 of 2027 runs from 19 July to 24 September.
Clarence council area
Figures describe the Clarence local government area, not Greater Hobart. By the ABS boundaries it touches Brighton, Sorell and Southern Midlands on land; the City of Hobart lies across the river.
Ages are a loose guide; a trial lesson finds the level.
Clear instructions and where things live in a project.
Scratch Coding for KidsVibe Coding for KidsFiles, folders and first AI tools.
Python and AI for KidsAI Literacy for Kids (Ages 8 to 14)Building with AI, then testing outside the demo.
Vibe Coding for TeensAI Tools Course for Teens (13+)Agent-built tools that run reliably.
Generative AI CourseCodex & Claude CodeBecause the agent ran it from somewhere you may not be.
Coding agents usually work inside one project folder and test from there. Their scripts pass every check they run. The first time a person double-clicks the file or a scheduler starts it elsewhere, a relative path points at nothing.
Learners who have seen 14,374 become FileNotFoundError with no code change check how files are found in any script an agent writes. That small habit separates a demo from a tool people can rely on.
In Clarence, the learner who anchors file paths ships scripts that run from anywhere. The longer argument is in why knowing how code runs still matters alongside AI.
All lessons are live on video, with no trip across the bridge.
Learners test agent code from more than one folder while the teacher watches.
Lessons follow the Tasmanian school year and pause in holidays.
One complete lesson without charge, then a written suggestion.
Learners matched by level, or private sessions.
Two fixed lessons a week, about eight each month.
Teaching comes from India: a 7pm Clarence class is 1:30pm India time in summer and 2:30pm after April.
Hobart clocks
Hobart changes to daylight saving on the first Sunday in October and back on the first Sunday in April (IANA time zone database); India stays on one time.
Three fixed prices, whichever suburb a learner lives in.
The first lesson is free and comes with written advice.
About eight group lessons a month with fifteen to twenty learners.
About eight private lessons a month.
Clarence families pay in US dollars once the trial has fixed a course and time. The pricing page sets out holidays and missed lessons.
Rated 4.9 across 547 Google reviews. These are real reviews, reproduced 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
Tell us the learner's age and interests. A teenager might fix the path in the agent's script; a younger child might write directions in Scratch that work from any starting point.
Questions asked across the Clarence council area.
The 2021 Census QuickStats count 61,531 residents in the Clarence local government area, with 17,067 families and 25,855 private dwellings.
The folder a program was started from. Relative file paths are resolved from it, not from the folder where the script file is saved.
Build the path from the script's location with pathlib, for example Path(__file__).resolve().parent, or pass the full path in as an argument.
The LIST transport layer returned 14,374 road segments intersecting the Clarence council area in October 2026, with 1,837.0 km of recorded length across its road classes.
An AI system that writes, runs and edits code over several steps to complete a task, rather than answering a single message.
Tools suited to their age. Claude appears only in our adult courses, which start at 18.
No. Lessons are live online only, we have no Australian office, and our listed phone number is Indian.
The first lesson is free. Group classes cost USD 100 a month for two live lessons a week, about eight a month, in groups of fifteen to twenty, and one-to-one classes cost USD 150 a month. You agree the course and time before paying.
Fifteen to twenty learners at a similar level and pace, not sorted by age or suburb. One-to-one lessons suit anyone no group time fits.
No. We teach Copilot Studio only in private sessions, while group learners write their agents in Python.
Across the river, Sandy Bay and Glenorchy have their own pages. The Hobart page covers the whole city and the Tasmania guide the state.