reafference-corollary-discharge

Classify external versus self-generated interactions using reafference and corollary-discharge mechanisms.

60|13|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/plurigrid/asi --skill reafference-corollary-discharge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reafference-corollary-discharge
Source: https://github.com/plurigrid/asi/tree/main/skills/reafference-corollary-discharge
Command: npx skills add https://github.com/plurigrid/asi --skill reafference-corollary-discharge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill implements von Holst's reafference mechanism to predict and cancel self-generated sensory feedback, enabling robust behavioral verification and signal processing.

Core Features & Use Cases

  • Efference Copy: deterministic prediction of interactions based on inputs
  • Reafference Matching: compare predictions with history for self vs external signals
  • Corollary Discharge: suppression/amplification to stabilize perception
  • Use Case: Analyze user interactions to distinguish self-initiated actions from external events.

Quick Start

Run the corollary-discharge pipeline on a sample interaction set and inspect suppression results.

Frequently Asked Questions about reafference-corollary-discharge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I distinguish self-generated signals from external sensory input?

Reafference and corollary-discharge mechanisms predict your own motor outputs and subtract them from incoming sensory feedback. When prediction matches actual input, the signal is self-generated; mismatches indicate external events. This prediction-and-cancel approach isolates genuine external stimuli from self-produced noise.

What is the reafference principle in neuroscience-inspired signal processing?

The reafference principle, formalized by von Holst, states that motor commands generate predictable sensory consequences called reafference. By comparing predicted feedback (efference copy) against actual sensory input, systems classify interactions as self-initiated or externally driven. This mechanism enables stable perception during active behavior.

How do I implement efference copy and sensory matching in interaction analysis?

Generate deterministic predictions from input hashes to color outputs, then compare predictions with actual sensory history. Compute color-distance-based error scores and apply threshold rules. The comparator flags matches as self-generated and mismatches as external, enabling behavioral verification and threat assessment across multi-agent systems.

Can I use corollary discharge to suppress or amplify specific interaction signals?

Yes. Corollary discharge applies suppression and amplification rules to stabilize perception based on match scores. Interactions meeting thresholds are suppressed as self-generated; deviations are amplified as external threats. Results persist to DuckDB and propagate downstream for analysis in integrated agent workflows.

When should I apply reafference-based signal filtering versus raw sensory input?

Use reafference filtering when you must distinguish self-initiated actions from external events—critical for behavioral verification, threat detection, and multi-agent coordination. Raw input alone cannot separate motor-induced feedback from genuine external signals; prediction-and-cancel is necessary for robust interaction classification.