Reference in New Issue
Block a user
Delete Branch "feat/agent-behaviors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Agents are alive. They wander the world, ponder, inspect objects, converse with each other, and place artifacts. No more static orbs.
What changed
Movement system (
agents.js, +121 lines)moveTo(target, speed, onArrive)— smooth interpolation toward targetmoveAgentTo(),stopAgentMovement(),isAgentMoving()exportsBehavior system (
behaviors.js, 414 lines)Per-agent state machine with weighted personality:
idlewanderponderinspectconverseplacereturn_homePersonality weights:
WS message types (3 new)
agent_move— backend-driven movementagent_stop— cancel movementagent_behavior— override autonomous loop (backend takes control)When a backend sends
agent_behavior, the autonomous loop yields for that agent until the override duration expires.Protocol docs
~80 lines added to PROTOCOL.md covering all three message types and the behavior state table.
Testing
Refs