personal · update
What I'm Learning from Building an Offline AI Tutor for South African Learners, and the System I Built to Remember Everything
Note: this is a work in progress. My agents and I are currently in the feasibility testing phase, the spike if you will. Vision matters, but only if it works. There is already a lot I am learning that may be useful to others, so this will evolve as the project evolves.
I am testing a simple but high-stakes question: can a learner in South Africa get a useful AI maths tutor on a low-cost Android phone, fully offline, with no subscription and no internet dependency?
This post shares what I have measured so far, what is working, what changed after real spike data, and how I built a companion system to preserve every decision so progress compounds instead of resetting every session.
This article covers two systems:
- eZansiEdgeAI Small: the solution I am investigating and building to bring AI to the edge of access, with AI agents working from a comprehensive vision.
- Engineering Journey System (EJS): the system I built to track what AI agents are doing, in collaboration with me and with each other. I now use this in all my projects.
eZansiEdgeAI Small
What am I trying to solve?
South Africa has a learning crisis that predates load-shedding, predates COVID, and predates most technology conversations.
Too many learners sit in under-resourced classrooms, go home to households without reliable internet, and do not have access to a patient, knowledgeable tutor who can explain things in a way that makes sense to them, right now, for free.
Yes, there is a global EdTech boom. But it often bypasses these learners. Many solutions require internet. Cloud AI often requires subscriptions and data plans. Even many so-called offline apps are thin wrappers that still need to phone home when anything interesting happens.
So the question I am trying to answer is simple, but heavily constrained:
Can a small language model, running entirely on a cheap Android phone, with no internet connection, tutor a learner through a South African CAPS curriculum?
Today, not in the distant future, and not on expensive hardware most people cannot buy or support.
So what is the answer?
The answer is maybe, and maybe needs to be tested first.
Intent, vision, and specs are important, but feasibility matters more. If it is not feasible, you risk building an impressive but ineffective hobby project.
That is why I am using a spike-driven engineering approach: time-boxed research experiments to reduce risk, clarify requirements, and improve estimates before deeper implementation.
A useful reference: Agile spikes help teams deliver knowledge so teams can deliver products.
What I am betting on
I deliberately picked a hard starting point: Grade 6 CAPS maths.
1. Small models can be good enough for curriculum-bounded tutoring
A general-purpose LLM must know everything. A curriculum tutor only needs to know bounded material: fractions, decimals, basic geometry, patterns, measurement.
That is a tractable domain.
A smaller model running on-device, grounded by retrieval that feeds the right curriculum chunks, might be sufficient even if benchmark scores are not flashy.
After benchmarking several candidates, I selected Qwen2.5-1.5B.
Running Qwen2.5-1.5B locally for the first time, watching it generate coherent maths explanations in under 10 seconds, entirely offline, was a major moment.
The model works. RAM budget fits on 4 GB hardware. The bigger challenges are prompt design, curriculum grounding, and Android runtime integration.
You can review the model tests and results in the LLM spike report: https://github.com/McFuzzySquirrel/ezansiedgeai-small/blob/spike/p0-002-embedding-retrieval/spikes/p0-001-llm-inference/reports/spike-report.md
2. Retrieval is the quality multiplier
RAG improves accuracy by grounding responses in retrieved content.
Instead of relying on model memory alone (and risking hallucinations), the plan is to embed CAPS content locally, retrieve relevant chunks, and ground every generation call.
In that setup, the LLM is the reasoning and language engine. The content pack is the source of truth.
Feasibility target:
- Tiny embedding model + local vector store on-device alongside the LLM
-
= 80% retrieval accuracy on curriculum content
- Fit within RAM and storage budgets
After benchmarking candidates, I selected all-MiniLM-L6-v2 with FAISS Flat as the V1 vector store.
You can review those benchmark results here: https://github.com/McFuzzySquirrel/ezansiedgeai-small/blob/spike/p0-002-embedding-retrieval/spikes/p0-002-embedding-retrieval/reports/spike-report.md
This result surprised me: all-MiniLM-L6-v2 achieved 100% top-3 retrieval accuracy on 20 handcrafted Grade 6 CAPS maths queries.
Fractions, decimals, geometry, and measurement all returned correct chunks in top-3 every time.
That tells me the retrieval architecture is viable before writing Android integration code.
I still expect real-world issues later (for example, curriculum completeness), but feasibility is confirmed.
3. The hardware floor is achievable
Original target was 3 GB devices. That left only 209 MB RAM headroom after loading the LLM, effectively a project-killer constraint.
Embedding/retrieval spike measured actual embedding cost:
- all-MiniLM-L6-v2 peak RAM: 554 MB
This made the right decision obvious: raise minimum device floor to 4 GB RAM.
Headroom shifted from 209 MB to 1,161 MB. Risk profile changed dramatically.
Current measured feasibility snapshot:
- Qwen2.5-1.5B: 1,839 MB RAM, ~8 second responses on x86 host
- all-MiniLM-L6-v2: 87 MB on disk, 554 MB peak RAM
- Total first-launch download: ~1.15 GB
That is feasible on affordable 4 GB devices in the South African market.
4. Storage constraints must be honest
An early constraint was APK <= 150 MB installed.
That was written before Qwen2.5 measurements. Ambitious, but wrong.
Rather than architecting around a false target, I redefined packaging:
- APK <= 50 MB
- First-launch model downloads <= 1.2 GB
- Content packs <= 200 MB each
This mirrors how mobile games handle large asset packs. It is a practical compromise based on measured feasibility.
The System I Built to Remember Everything: Engineering Journey System (EJS)
This part is harder to explain, but equally important.
EJS is a separate project focused on capturing human-to-agent and agent-to-agent collaboration.
I want to know what agents are doing, both for auditability and as a learning system for myself (and hopefully for the agents over time).
You can view current journey records and ADRs for eZansiEdgeAI Small here: https://github.com/McFuzzySquirrel/ezansiedgeai-small/tree/spike/p0-002-embedding-retrieval/ejs-docs
Why I built EJS
Decisions carry the knowledge.
Code is the output. The reasoning that produced it, constraints considered, alternatives rejected, and experiments that changed direction can disappear quickly.
Traditionally, this disappears into chats, meetings, or memory. With multiple agents, this problem can grow as context windows and logs evolve.
I wanted to preserve:
- Prompt/response trail and the why behind changes
- Experiments attempted, evidence observed, and pivots made
- Trade-offs considered but not chosen
- Agent influence versus human overrides/corrections
EJS captures this with low friction and strong auditability:
- One Session Journey per session: initialized at start, updated throughout, finalized at end
- ADRs only for significant decisions: conditional and numbered to keep the ADR ledger small
- Repo-portable and tool-agnostic structure: usable in GitHub web, VS Code, and team workflows
- Non-competing observer model: EJS records silently and does not override existing agent instructions
What EJS captures
- Architecture Decision Records (ADRs): significant decisions with context, alternatives, and consequences
- Session Journey files: running logs of what was tried, changed, learned, and suggested (including adoption/rejection)
- Searchable decision database: Python indexing of ADRs into a queryable store so new sessions can ask, have we already decided this?
How this changed my work with AI
I use GitHub Copilot as my primary engineering collaborator.
EJS changes the collaboration dynamic: Copilot writes code and documents its reasoning during the session.
Pattern reference: https://github.com/McFuzzySquirrel/Engineering-Journey-System/blob/main/ejs-docs/session-lifecycle-patterns.md
Every decision made in a session gets recorded. ADRs get created when decisions happen, not days later. Benchmark results and iterations are logged while fresh.
The result is auditable AI collaboration.
Example: I can inspect ADR-0007 and see exactly why all-MiniLM-L6-v2 was chosen over bge-small-en-v1.5, based on recorded evidence at decision time.
What I am learning about AI-assisted engineering
The quality of output depends on the quality of constraints
With vague briefs, Copilot gives vague plans.
With measurable constraints (RAM in MB, latency in ms, accuracy thresholds), it gives testable plans.
EJS reinforces this discipline. You cannot write a decision record without a reason, and you cannot state the reason without understanding the constraint.
Human and agent both need memory
A single LLM session is effectively stateless.
It will not reliably remember earlier decisions, rejection rationales, or measured headroom.
EJS session files and ADRs provide persistent memory. Starting each session with that context immediately improves collaboration quality.
Incremental recording beats end-of-session reconstruction
I tested both.
Reconstructed notes are thin, lose pivots, and miss near-turning points.
Capturing at decision-time is richer, more accurate, and more useful.
Rejection is as valuable as adoption
The EJS Agent Influence section records both.
That has become some of the highest-value data in the system.
When Copilot proposed tiered device strategies for RAM fallback, I rejected that in favor of a simpler 4 GB floor raise. That rejection and rationale are now explicit, so future sessions do not re-propose it without context.
The bigger picture
This project sits at the intersection of three priorities:
- Equitable access to learning
The learners this is for do not have easy fallbacks. No tutor, no stable data budget, no guaranteed power.
- Honest engineering
Edge AI in education often demos well on high-end hardware and fails on target devices.
Spike-first methodology (measure first, decide second, build third) is the only approach I trust for this work.
- Compounding knowledge
EJS is a bet that project two benefits from project one, and project three benefits from project two.
Decisions made today should not need to be rediscovered next year.
Where this goes next
Phase 0 spikes validated technical bets one by one.
Next step is building the real content pack: CAPS Grade 6 fractions content with precomputed embeddings, then:
- Wire LLM + embedding + content pack into an end-to-end pipeline
- Validate battery and thermal behavior on actual Android hardware
If I can sustain this end-to-end loop under 15 seconds offline (question -> retrieve -> grounded tutoring response), Phase 1 begins:
- Android app
- Learner interaction model
- Teacher dashboard
- Content authoring tools
None of that matters without a sound foundation. Spikes are that foundation.
A note on what Small means
eZansiEdgeAI Small is named intentionally.
eZansi means down below or from the south in Zulu, grounding where this is built and who it is for.
Small means:
- It runs on the phone in a learner’s pocket
- It does not require reliable internet, data budgets, or stable power
- It is curriculum-bounded, built to explain the right thing well enough for a learner right now rather than to know everything
In this project, small is the most ambitious thing I can build.
The Product Requirements Document
Up to now, I have been operating from a detailed project vision that functioned like a PRD.
For the next phase, I need broader collaboration, and that requires a structured source of truth. So I created a consolidated PRD that:
- Unifies vision, architecture decisions (ADR-0001 to ADR-0008), Phase 0 spike results, engineering principles, and product documentation
- Is self-contained enough that developers, AI agents, and stakeholders can understand V1 scope from this document alone
Note: You can view the full PRD in the repository.
Phase 1: Bring in the agent team
Feasibility testing has transitioned from spikes into a validated, working local end-to-end AI pipeline with strong foundations for scaling.
Highlights so far:
- Content Pack Builder: SQLite-based chunks -> embeddings -> FAISS -> pack pipeline, with 100% validation accuracy and strong local performance
- End-to-End pipeline: embed -> retrieve -> generate using local models, including hardware constraint mitigation through CPU fallback and measurable reporting
Next objective is a minimal but usable fully offline Android app for grounded maths tutoring.
To do that, I assembled a specialized agent team with clearly scoped ownership:
- Project orchestrator
- Project architect
- Learner data engineer
- Content pack engineer
- AI pipeline engineer
- Android UI engineer
- QA test engineer
This team is highly specialized by design.
Switching to GitHub Copilot CLI
Most earlier work happened in VS Code.
For this phase, I shifted to GitHub Copilot CLI because it is optimized for autonomous multi-agent operation while keeping a familiar workflow.
The first step was running the Project Orchestrator for Phase 1. It has already organized specialist agent sequencing based on implementation dependencies and phase objectives.
If you want to learn how this team was created, see McFuzzy Agent Forge: https://github.com/McFuzzySquirrel/mcfuzzy-agent-forge
It transforms a PRD into a specialized team of custom agents and reusable skills with clear ownership and collaboration patterns.
There is more in progress, and I will post updates as it evolves.
Notes
This article reflects the state of the project as of March 2026.
Repositories:
- eZansiEdgeAI Small (spike results, ADRs, session journals): https://github.com/McFuzzySquirrel/ezansiedgeai-small
- Engineering Journey System (EJS): https://github.com/McFuzzySquirrel/Engineering-Journey-System
- McFuzzy Agent Forge: https://github.com/McFuzzySquirrel/mcfuzzy-agent-forge
Special thanks to Nabeel Prior for encouragement, thoughtful input, and support throughout this journey.
All of my projects exist for one core reason: learning through experimentation.
Each repository starts with questions like: Is this possible? I wonder if…?
Sometimes these projects aim to solve practical problems. Sometimes they are curiosity-driven rabbit holes. All of them show the work while it is still in progress.
Some projects will be messy, others structured, but all of them are real.
Feel free to reuse, modify, and build on anything here in your own repositories.