moincraft
๐ค Agents
Mindcraft agent lifecycle, model slots, memory, modes, commands, and cooperation levels.
Lifecycle#
bootstrap()
โ Mindcraft.init()
โ createAgent(settings)
โ Agent.start()
โโ ActionManager
โโ Prompter
โโ History
โโ Coder
โโ NPCController
โโ MemoryBank
โโ SelfPrompter
โโ VisionInterpreter
โโ CooperationFramework
โโ tick-based modes
Model slots#
| Slot | Role |
|---|---|
model |
Default chat model and fallback. |
code_model |
Code generation for !newAction. |
vision_model |
Multimodal image/world analysis. |
embedding |
Semantic search for examples and skill docs. |
Runtime systems#
- History: sliding window plus summarization when context fills; recent turns and summaries feed prompts.
- SelfPrompter: autonomous goal loop with
STOPPED,ACTIVE, andPAUSEDstates. - Coder: generates JS, lints before execution, and runs inside SES-style sandbox boundaries.
- Modes: tick-based reactive behaviors where priority order decides first responder.
Cooperation levels#
| Level | Agent type | Behavior |
|---|---|---|
| 1 | Broadcast | Intent broadcasting through chat. |
| 2 | Request/Response | Direct resource/task requests. |
| 3 | Negotiation | Proposal/accept/reject flow. |
| 4 | Emergent | Reputation and vocabulary compression. |
| 5 | Collective | Hive-mind/consensus coordination. |
Reactive modes#
Examples: self-preservation, hunting, cowardice, self-defense, unstuck, item collection, torch placing, idle staring, cheat mode, auto-eat.
Sources: moincraft/docs/moincraft-stack-cheatsheet.md, moincraft/docs/bot-architecture.md.