Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cybernetic-immune

БесплатноБез исполняемых скриптовНе проверен

Cybernetic immune system with Varela+Friston+Powers for Self/Non-Self discrimination via reafference, GF(3) trit encoding, and information geometry

plurigridот plurigrid★ 73 звезды на GitHub

Об этом скилле

Cybernetic Immune Skill

"The immune system is a cognitive system: it learns, remembers, and discriminates self from non-self." — Francisco Varela, Principles of Biological Autonomy (1979)

bmorphism Contributions

"Autopoietic Ergodicity combines the principles of autopoiesis and ergodicity. Autopoiesis refers to the self-maintenance of a system, where the system is capable of reproducing and maintaining itself." — vibes.lol gist

"Active Inference in String Diagrams: A Categorical Account of Predictive Processing and Free Energy" — ACT 2023, Tull, Kleiner, Smithe

Categorical Cybernetics Connection: The immune system's self/non-self discrimination maps directly to:

  • Reafference (self-caused) → SELF trit (-1)
  • Exafference (externally-caused) → NON-SELF trit (+1)
  • Markov blanket → boundary of selfhood

Key Papers (from bmorphism's Plurigrid references):

Related to bmorphism's work on:

  • plurigrid/act - active inference + ACT + enacted cognition
  • Autopoietic ergodicity and embodied gradualism

1. Core Concept

Self/Non-Self Discrimination via reafference vs exafference:

  • Reafference: Self-caused sensations (predicted = observed) → tolerate
  • Exafference: Externally-caused sensations (predicted ≠ observed) → inspect/attack

GF(3) Trit Encoding:

Trit Classification Immune Role Action
-1 SELF T_reg (regulatory) Suppress, tolerate
0 UNKNOWN MHC presentation Inspect, process
+1 NON-SELF Effector cells Attack, respond

Autoimmune = GF(3) Conservation Violation: Σ(trits) ≢ 0 mod 3

2. Information Geometry

The immune state manifold is a probability simplex with Fisher-Rao metric:

// Fisher information: I(θ) = E[(∂log p/∂θ)²]
computeFisherInformation() {
  const probs = Array.from(this.stateDistribution.values());
  // For categorical: I_ij = δ_ij/p_i - 1
  return probs.map((p, i) => 1 / Math.max(p, 0.001));
}

// Fisher-Rao geodesic distance: d(p,q)² = 4 Σ (√p_i - √q_i)²
fisherRaoDistance(dist1, dist2) {
  let sum = 0;
  for (const k of keys) {
    const p = dist1.get(k) || 0;
    const q = dist2.get(k) || 0;
    sum += (Math.sqrt(p) - Math.sqrt(q)) ** 2;
  }
  return 2 * Math.sqrt(sum); // = 2 × Hellinger distance
}

Natural Gradient: F⁻¹ · ∇L for efficient belief updating in curved space.

Parallel Transport: Cytokine signals transported along geodesics preserve information content.

3. Immune States

const IMMUNE_STATES = {
  NAIVE: 'naive',       // Not yet encountered antigen
  TOLERANT: 'tolerant', // Self-recognized, suppress response (-1)
  ACTIVATED: 'activated', // Response engaged (+1)
  MEMORY: 'memory',     // Prior encounter, fast recall
  ANERGIC: 'anergic'    // Exhausted, non-responsive (0)
};

4. Collision → Immune Response

// Recognition via color signature (antigenic epitope)
colorSignature(color) {
  const hueBin = Math.floor(color.H / 30); // 12 bins
  return `H${hueBin}T${color.trit}`;
}

// Response classification
recognize(antigenColor) {
  const signature = this.colorSignature(antigenColor);
  
  // Self-tolerance check
  if (this.toleranceList.has(signature)) {
    return { classification: 'self', trit: -1, action: 'tolerate' };
  }
  
  // Adaptive memory
  if (this.memory.has(signature)) {
    const mem = this.memory.get(signature);
    return { trit: mem.trit, action: mem.hostile ? 'attack' : 'tolerate' };
  }
  
  // Novel: inspect via Markov blanket
  return { classification: 'novel', trit: 0, action: 'inspect' };
}

5. Cognitive Firewall

System-level immune coordination:

class CognitiveFirewall {
  constructor(immuneAgents) {
    this.agents = immuneAgents;
    this.threatLevel = 0;
    this.autoimmuneCrisis = false;
  }
  
  // Coordinated response
  coordinatedResponse() {
    if (this.autoimmuneCrisis) {
      // Emergency T_reg activation
      return { action: 'tolerance_induction' };
    }
    
    if (this.threatLevel > 0.5) {
      // Germinal center reaction
      return { action: 'coordinated_attack' };
    }
    
    return { action: 'homeostasis' };
  }
}

6. Parallel Processing (GF(3) Aligned)

parallelProcess(allTiles) {
  // Partition agents by trit for parallel streams
  const partitions = {
    minus: agents.filter(a => a.trit === -1),   // Validators
    ergodic: agents.f
Полный SKILL.md на GitHub

Установить cybernetic-immune в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

FAQ

Что делает скилл cybernetic-immune?

Cybernetic immune system with Varela+Friston+Powers for Self/Non-Self discrimination via reafference, GF(3) trit encoding, and information geometry

Как установить скилл cybernetic-immune?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cybernetic-immune запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cybernetic-immune с