SimHacker avatar

action-queue

Sims-inspired task scheduling — queue actions, execute in order

提供方 SimHacker|开源

🎯 Action Queue

"Queue up what to do next. The Sims showed us the way."

MOOLLM K-Lines

K-LineWhy Related
simulation/Action queue in simulation state
character/Characters have queues
return-stack/Past complements future
advertisement/Objects suggest actions
room/Where actions happen
speed-of-light/Multiple actions per turn
needs/Needs drive action selection
designs/sims/sims-personality-motives.mdOriginal Sims design

Full Spec: SKILL.md

Overview

Sims-inspired task scheduling: queue actions, execute in order. While return-stack tracks where you've been, action-queue tracks what you're going to do.

Quick Commands

CommandEffect
DO actionAdd to queue
NEXTExecute next
QUEUEShow queue
URGENT actionInsert at front
CANCEL nRemove item
CLEAREmpty queue

The Food Chain Pattern

Objects push prerequisites onto the queue automatically:

> DO eat
→ Fridge pushes GET-FOOD
→ Food pushes PREPARE
→ Stove pushes COOK
Queue: [COOK, PREPARE, GET-FOOD, EAT]

Dangling a carrot in front of a donkey. Complex sequences emerge from simple object rules.

Tools Required

  • file_read — Read queue state
  • file_write — Update queue state

See SKILL.md for complete specification.