active-inference-in-brainfuck

star 29

Brainfuck implementation of Active Inference with belief updating, free energy minimization, and policy selection

ActiveInferenceInstitute By ActiveInferenceInstitute schedule Updated 3/11/2026

name: Active Inference in Brainfuck description: Brainfuck implementation of Active Inference with belief updating, free energy minimization, and policy selection

Active Inference in Brainfuck

Overview

This skill provides a complete Active Inference implementation in Brainfuck, demonstrating Bayesian belief updating, variational free energy calculation, and expected free energy-based policy selection.

Core Algorithms

  1. Belief Updating: Bayesian inference using observation likelihoods to update posterior beliefs
  2. Free Energy Calculation: KL divergence between posterior beliefs and prior distribution
  3. Policy Selection: Softmax action selection over expected free energy per action
  4. Perception-Action Loop: Iterative sense → infer → act cycle with generative model

Key Files

  • Brainfuck_ActiveInference.py — Source implementation
  • analysis.py — Source implementation
  • category_theory.py — Source implementation
  • config_schema.py — Source implementation
  • visualization.py — Source implementation
  • run.sh — Execution script (handles compilation if needed)
  • README.md — Usage documentation and requirements

Usage

cd 0_CONTEXT/Computer_Languages/Brainfuck/
./run.sh

Language-Specific Features

  • Unconventional programming paradigm
  • Demonstrates computational universality
  • Educational value

Integration

  • Tested via master_controller.py test brainfuck
  • Benchmarked via benchmark_suite.py
  • Listed in languages.json under category "Esoteric"

Prerequisites

See README.md for Brainfuck-specific installation requirements.

Install via CLI
npx skills add https://github.com/ActiveInferenceInstitute/ActiveInferAnts --skill active-inference-in-brainfuck
Repository Details
star Stars 29
call_split Forks 6
navigation Branch main
article Path SKILL.md
More from Creator
ActiveInferenceInstitute
ActiveInferenceInstitute Explore all skills →