← Browse

@activeinferenceinstitute/active-inference-in-dart

B

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

skillclaude

Install

agr install @activeinferenceinstitute/active-inference-in-dart --target claude

Writes 6 files into .claude/skills/, pinned to git-476e27bb.

  • .claude/skills/active-inference-in-dart/AGENTS.md
  • .claude/skills/active-inference-in-dart/README.md
  • .claude/skills/active-inference-in-dart/SKILL.md
  • .claude/skills/active-inference-in-dart/SPEC.md
  • .claude/skills/active-inference-in-dart/active_inference.dart
  • .claude/skills/active-inference-in-dart/run.sh

Document


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

Active Inference in Dart

Overview

This skill provides a complete Active Inference implementation in Dart, 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

  • active_inference.dart — Source implementation
  • run.sh — Execution script (handles compilation if needed)
  • README.md — Usage documentation and requirements

Usage

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

Language-Specific Features

  • Rapid prototyping and iteration
  • Dynamic typing flexibility
  • Rich standard library

Integration

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

Prerequisites

See README.md for Dart-specific installation requirements.

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-476e27bbd9332026-07-31