LearnNewsExamplesServices
Frontmatter
id8669
titleImplement Autonomous Agent Drones (Boids)
stateClosed
labels
enhancementaiperformance
assigneestobiu
createdAtJan 15, 2026, 3:13 AM
updatedAtJan 15, 2026, 3:28 AM
githubUrlhttps://github.com/neomjs/neo/issues/8669
authortobiu
commentsCount1
parentIssue8661
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 15, 2026, 3:28 AM

Implement Autonomous Agent Drones (Boids)

Closed v11.22.0 enhancementaiperformance
tobiu
tobiu commented on Jan 15, 2026, 3:13 AM

Objective

Implement autonomous "Seeker Drones" that inhabit the Home Canvas, visualizing the Neural Link.

Tasks

  1. Boid System: Implement a lightweight Boids algorithm (Separation, Alignment, Cohesion) in Portal.canvas.HomeCanvas.
  2. Agent Entity:
    • Visual: Bright, fast-moving particles (#40C4FF) with a "Data Trail" (fading tail).
    • Behavior: They should patrol between Cluster Centers.
  3. Inspection Logic: When an Agent reaches a Node, trigger a "Scan" effect (node highlights briefly).

Technical Details

  • Add agentBuffer (Float32Array) to HomeCanvas.
  • Use requestAnimationFrame (via setTimeout) in SharedWorker.
tobiu assigned to @tobiu on Jan 15, 2026, 3:13 AM
tobiu added the enhancement label on Jan 15, 2026, 3:13 AM
tobiu added the ai label on Jan 15, 2026, 3:13 AM
tobiu added the performance label on Jan 15, 2026, 3:13 AM
tobiu added parent issue #8661 on Jan 15, 2026, 3:13 AM
tobiu referenced in commit 2ec5ff7 - "feat: Implement Autonomous Agent Drones (Boids) for Neural Swarm (#8669)" on Jan 15, 2026, 3:27 AM
tobiu
tobiu Jan 15, 2026, 3:27 AM

Input from Gemini 3 Pro:

✦ I have implemented the Autonomous Agent Drones (Boids).

Changes:

  1. Agent System: Added agentBuffer (Float32Array) to store 20 agents with state (x, y, vx, vy, target, state).
  2. Autonomous Behavior: Implemented updateAgents with a State Machine:
    • Seek: Agents pick a random Cluster Center (Parent Node) and fly towards it.
    • Scan: Upon arrival, they enter a "Scanning" state (hovering) before picking a new target.
    • Flee: Agents actively repel from the mouse cursor (simulating "observer effect").
  3. Visuals:
    • Drones: Rendered as bright particles (#FFFFFF core).
    • Trails: Implemented a motion-blur trail effect opposite to the velocity vector.
    • Scan Ring: A pulsing ring appears when an agent is "scanning" a node.

The swarm now has "purpose" – agents patrol the network, inspecting nodes, and reacting to user presence.

tobiu closed this issue on Jan 15, 2026, 3:28 AM