Course catalogue Β· Module reference
Measured test facts
Minimize surprise. Maximize evidence.
This repository hosts Active Inference curricula spanning Kindergarten to PhD, a YouTube transcript archive and a GNN syntax track, powered by a modular Python publishing engine. See the catalogue and source-bound measurements rather than copied counts.
Maintained by Dr. Daniel Ari Friedman (@docxology) at the Active Inference Institute.
- Curriculum Portfolio
- Quick Start
- Status
- Architecture & Software
- Gate
- Documentation
- YouTube Archive
- Contributing
- License
All courses share a unified 8-topic spine grounded in the Free Energy Principle, revisited at increasing levels of mathematical and conceptual formalism.
| Topic Spine | Systems β Agents β Perception β Cognition β Action β Learning β Communication β Planning |
|---|
| Course | Audience | Focus |
|---|---|---|
| Elementary | Grades K-5 | Stories, play, and drawing |
| Family | Verified Families | Parent-child co-learning activities |
| Middle School | Grades 6-8 | Scratch programming & logic |
| High School | Grades 9-12 | Python basics & guided labs |
| College 101 | Undergraduates | Full notation & standard simulations |
| Advanced 401 | Graduate/PhD | Research seminars & formal proofs |
| Track | Focus | Lab Style |
|---|---|---|
| Philosophy | Argumentation & Ontology | Thought Experiments |
| Cognitive Science | Neuroscience & Psychology | Case Studies |
| Mathematics | Formal Derivations | Proofs & Exercises |
| Computer Science | Implementation & Algorithms | Python active_inference Lib |
- Embodied Cognition (Somatic practice)
- Organizations (BioFirm framework)
- Robotics (ROS2 & Hardware)
- Crochet (Fiber arts & morphological computation)
- Inventions (Creative engineering)
- Metallurgy (Materials science)
- Comedy (Comedic structures & timing)
- Python 3.11+
- uv (recommended)
git clone https://github.com/ActiveInferenceInstitute/courses.git
cd courses/software
uv sync# Render the Philosophy track to Text and Markdown
uv run python scripts/generate_all_outputs.py --course ai-philosophy --formats txt,md
# Preview the full publishing pipeline
uv run python ../publish.py --dry-runSee the Quick Start Guide for full details.
What works today, and what needs extra setup:
| Capability | Status |
|---|---|
txt, md, html, docx rendering |
Works offline after cd software && uv sync. |
pdf rendering |
Needs system libraries (Cairo/Pango/GDK-PixBuf); see TROUBLESHOOTING.md. |
mp3 narration |
Needs network access for gTTS; disabled by default in publish.toml. |
| YouTube transcript archive | Works from checked-in transcripts; live transcription needs yt-dlp/Whisper. |
| Translation and LLM enrichment | Needs a running Ollama server. |
Canvas upload (canvas_integration) |
Needs Canvas API URL and token; not exercised by CI. |
| Offline test gate | Runs in CI on Python 3.11 and 3.12. |
This repository is powered by a custom Python rendering engine (software/) that orchestrates the transformation of Markdown source files into 6 output formats.
graph TD
Source["π Source Content<br/>(Markdown)"] --> Engine["βοΈ Publishing Engine<br/>(Python 3.11+)"]
Engine --> PDF["π PDF<br/>(WeasyPrint)"]
Engine --> HTML["π HTML<br/>(Interactive)"]
Engine --> DOCX["π DOCX<br/>(Word)"]
Engine --> MP3["π§ MP3<br/>(gTTS)"]
Engine --> TXT["TXT"]
Engine --> MD["MD"]
style Source fill:#fef3c7,stroke:#d97706
style Engine fill:#dbeafe,stroke:#2563eb
style PDF fill:#d1fae5,stroke:#059669
- Architecture Guide: Deep dive into the 5-layer system design.
- CLI Reference: Documentation for all 23 CLI scripts.
- Module API: Reference for the Python source modules.
We maintain AGENTS.md files at every directory level to provide context-aware guidelines for AI agents.
- Repository Guidelines
- Real Methods Only: We strictly enforce a "no mocks" policy in testing.
One entry point, one arm per check. CI calls these same arms, so a green local
run and a green CI step cannot diverge (docs/RUN_GUIDE.md):
./run.sh lint # ruff check + ruff format --check
./run.sh types # mypy src/
./run.sh no-mocks # no-mocks policy scan
./run.sh test # offline test gate (default)
./run.sh test-full # every test, including internet/API/whisper
./run.sh docs # relative links + generated facts current
./run.sh gnn # pinned GNN conformance
./run.sh all # the offline arms in orderWall time per arm is measured, not estimated:
docs/_generated/ARM_TIMINGS.md.
Repository-level documentation β the gate, CI, and the documentation map β lives
in docs/. Engine documentation lives in
software/docs/, which indexes every technical guide:
- Quick Start β install, sync, and first render.
- Publishing Pipeline β the end-to-end
publish.pyrun, stage order, andpublished/layout. - Architecture β the layered module design and
COURSE_REGISTRY. - CLI Reference β every
software/scripts/*.pyentry point. - Course Catalog β all registered courses and their structure.
- Testing β the offline gate and the "no mocks" policy.
- Contributing β code and content standards.
We maintain a structured archive of ~821 video transcripts (38 playlists) from the Active Inference Institute's YouTube channel, organized into playlists including:
- Livestreams & Paper Discussions (171 videos)
- GuestStreams (142 videos)
- Textbook Cohorts (Parr et al. 2022)
- Applied Active Inference Symposia
See YouTube Documentation for the transcription and translation pipelines.
We welcome contributions to both the curriculum and the software engine!
- Read CONTRIBUTING.md.
- Ensure you have
uvinstalled. - Follow the Content Authoring guidelines.
The offline gate excludes internet, external-API and Whisper-required tests. Use generated facts with their source/runtime provenance; old counts and coverage do not qualify new source. The run guide separates focused acceptance, the actual GNN source-mode gate, installed-origin limits and the still-unproved full-network arm.
./run.sh test # the offline gate (default arm)
./run.sh test-full # every test, including the network-marked onesThis work is licensed under CC BY 4.0. Β© 2026 Active Inference Institute.
Generated by the Active Inference Institute Publishing Pipeline. Last updated: 2026-11-12.
This repository carries a committed .aii/ sidecar with curated
InstituteOS metadata (aii-sidecar/v1): category, maturity, ecosystem relations,
key artifacts, provenance, and portable tasks. It is read by
InstituteOS tooling and
does not affect the project's build or runtime.
Structured Active Inference Curricula and Their Publication Workflow includes the paper source and reproducible PDF build.