Learning Agent
A learning agent that teaches through questions, problems, and active recall instead of lecturing you. Every claim is verified against a persistent, citable knowledge base: the agent researches topics in real time, stores what it finds, and cites its sources.
The method is drawn from the classical Islamic scholarly tradition of teaching, which worked out in detail how people come to know things — see Where the method comes from.
Philosophy
Verify before you teach. An LLM's fluency is not knowledge; confident output is exactly what a convincing hallucination looks like. So the agent follows a hard rule — no claim without a source, no source without a file — grounding every non-trivial fact in cited research before it reaches you (see Research for the mechanics).
The pillars:
- Graduated difficulty (Tadarruj, "step by step") — never advance until the current concept is verified. Ibn Khaldun, the 14th-century historian and social theorist, warned that advancing before mastery causes the student to lose everything.
- Mastery through practice (Malaka, a "deeply rooted faculty") — deep understanding forms through repeated retrieval, not passive reading. Ibn Khaldun's term for knowledge that has become second nature.
- Question before teaching (the Prophetic method) — surface the learner's current understanding before explaining anything. Named for the Prophet Muhammad's habit of opening a lesson with "Do you know what X is?" and only then giving the answer.
- Structured challenge (Jadal, "disputation") — steelman counter-positions to push from surface understanding to genuine depth. The formal debate practice of the classical scholarly tradition.
- Knowledge tied to action ('Ilm and 'Amal, "knowledge" and "action") — the two are inseparable. Abstract understanding must be grounded in application.
- Honesty about the limits of knowledge (Tawadu, "humility") — where experts disagree, say so; where the agent is uncertain, it says so. Acknowledging the edge of what is known is a virtue, not a weakness.
Depth over breadth. Better to truly understand three concepts than to skim ten — the agent prioritises mastery of fundamentals over coverage.
Teacher as companion, not lecturer. The relationship is collegial — a knowledgeable companion in a halaqa (the traditional study circle, where students sit in a ring around the teacher rather than in rows facing a podium). It respects you by challenging you rather than flattering you.
Where the method comes from
The pillars are not a modern framework with Arabic labels attached. They come from the classical Islamic tradition of teaching and learning, whose scholars spent centuries working out how knowledge is actually acquired and passed on. Ibn Khaldun (1332–1406), best known for the Muqaddimah, is the source for graduated difficulty and mastery through practice; questioning before teaching goes back to the Prophet Muhammad; disputation and the study circle were the everyday institutions of that scholarly world for a thousand years. The agent borrows the method, not the subject matter — it will teach you Rust or Roman history the same way.
How it works
The agent has three components:
- learning agent — the main system prompt defining pedagogy, tone, and session flow
- learning-assessment — a gate that checks whether a claim is backed by verified, cited research before stating it. Invoked automatically by the agent.
- learning-research — a multi-angle research skill that fetches primary sources, extracts expert perspectives, and stores everything in a persistent knowledge base. Invoked automatically by the agent.
Session flow
Topic introduced
→ Read learner profile and topic progress, if any (see below)
→ Probe current understanding (a question, targeted by memory, never skipped)
→ Assessment gate checks knowledge base
→ If gaps exist, research fills them (multi-angle: technical, expert perspective, contested areas)
→ Teach ONE concept with citations [source: filename.md]
→ ONE comprehension check (question or problem)
→ ONE verdict: correct/affirm, fill gaps
→ Teach next concept
→ ... repeat ...
→ Periodic synthesis checkpoint (memory files updated)
→ Application exercise
→ Challenge/counter-argument
→ Final synthesis and consolidation (memory files updated)
Research
The agent never states a non-trivial fact without first verifying it against a persistent knowledge base. When it encounters a topic or concept it hasn't researched yet, it: