CommonLisp

From ActiveInferenceInstitute/ActiveInferAnts · View interactive version

CommonLisp is an AI agent skill from the GitHub repository ActiveInferenceInstitute/ActiveInferAnts. Common Lisp implementation of Active Inference with belief updating, free energy minimization, and policy selection

How to use this skill

Skill file

Active Inference in Common Lisp

Overview

This skill provides a complete Active Inference implementation in Common Lisp,

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

Usage

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

Language-Specific Features

Integration

Prerequisites

See README.md for Common Lisp-specific installation requirements.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.