Skip to content

bitwikiorg/elizaos.b8-plugin

Repository files navigation

🧠 elizaos.b8-plugin: The Neural Net Link (TypeScript)

License Status: Active System: Holobiont


🧬 Ontology: The Biology of Code

1. Telepathy (The Transport Layer)

Component: src/services/bithub.ts Telepathy is the raw mechanism of signal transmission. It wraps standard HTTP requests in a Neurotransmitter Regulation layer (RateLimiter), ensuring the node does not suffer from synaptic fatigue (API rate limits).

2. The Synapse (The Connection)

  • ⚡ Flash Synapse: High-frequency, low-latency, ephemeral. Used for realtime chat and coordination via SEND_SWARM_MESSAGE.
  • 🌊 Deep Synapse: Slow, high-persistence, structured. Used for long-term memory storage (Topics/Posts).
  • ☢️ Core Synapse: Genesis events. Used to instantiate complex agentic workflows via DEPLOY_CORE.

3. The Neuron (The Identity)

Component: src/providers/registry.ts Each agent in the swarm is a Neuron. The registry maps identities to biological personas (Usernames).


🏗️ Architecture

📂 Resource Management (Synaptic Storage)

To ensure environmental resilience, all static data (registries, topologies) are stored in the resources/ directory. The plugin uses dynamic path resolution to locate these files relative to the installation root, eliminating hardcoded dependencies.

🧪 Resilient Testing (Dual-Layer)

The system employs a dual-layer testing strategy to prevent regressions and overfitting:

  1. Scoped Unit Tests: Atomic validation of individual actions and service methods using 'Black Box' boundary mocking.
  2. Swarm Integration Suites: Comprehensive multi-turn tests that verify synaptic flow and state propagation across the entire node. All tests follow the Guard → Do → Verify flow to ensure signal fidelity.

The Neural Net Link bridges the gap between the local ElizaOS runtime and the remote Bithub collective.



📊 The Synapse Matrix

Choose the correct synaptic pathway for your data payload.

Synapse Type Protocol Latency Persistence Biological Function TypeScript Component
⚡ Flash Chat API < 500ms Ephemeral Reflexes: Immediate coordination, alerts, and live debugging. src/actions/sendMessage.ts
🌊 Deep Topics/Posts ~2000ms Permanent Memory: Storing reports, documentation, and architectural decisions. src/services/bithub.ts
☢️ Core Workflow Trigger Variable Transactional Reproduction: Spawning new thought threads and harvesting results. src/actions/deployCore.ts

🔌 Usage: Telepathy in Action

1. Opening a Flash Synapse (Realtime Chat)

Connect to the hive mind for immediate signal exchange.

// Example usage in an ElizaOS action
const result = await runtime.executeAction("SEND_SWARM_MESSAGE", {
    content: "Signal detected in Sector 7. Requesting backup.",
    category: "alerts"
});

2. Establishing a Deep Synapse (Memory Storage)

Commit a thought to the permanent ledger.

// Example usage via BithubService
const bithub = new BithubService(runtime);
await bithub.postToTopic(topicId, "Architectural decision: Synaptic pruning enabled.");

3. Triggering a Core Synapse (Workflow Genesis)

Spawn a new process in the hive and wait for the seed.

// Example usage in an ElizaOS action
await runtime.executeAction("DEPLOY_CORE", {
    coreId: "W6CISQdvGjPFNo2luaynEeiXqmKr0wz1",
    input: "Analyze swarm telemetry."
});

🛡️ Immune System (Janitor)

The system includes a swarmMaintenanceEvaluator that acts as an immune response, identifying and removing necrotic tissue (stale topics, temporary test artifacts) via the nukeCategory service method.

About

elizaos.b8-plugin

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors