Make a Mineflayer plugin so the agent can join your Minecraft game.
Assistant
I'll build the Mineflayer plugin with memory and knowledge.
Assistant
Let me start with the core types + injectable driver + session.
Assistant
Now the knowledge module (recipes, version "new stuff", structure templates + builder).
Assistant
Now the session (state machine + dispatch + event→memory). Then the tests.
Assistant
Now the tests for memory + knowledge + session (with a fake driver).
Assistant
All 16 pass. Now the real Mineflayer driver (dynamic import, pathfinder, optional).
Assistant
Let me clean up the driver — remove the dead nested helper and use a single resolved Vec3 constructor.
Assistant
Now the minecraft tool + shutdown wiring. Let me write the tool.
Assistant
Now the gate module. Let me read ml-gate for the exact shape.
Assistant
Now bundled.ts, loader SkillPackId, resolve.ts. Let me look at those.
Assistant
Now reveal.ts + registration in session.ts + tool-routing + allowlist. Let me do reveal.
Assistant
Also update the reveal_skills description/param enum for minecraft.
Assistant
Now register the tool in session.ts when the gate is active, add tool-routing + allowlist, and export.
Assistant
First export shutdownMinecraftSessions from index, then wire the 3 sites.
Assistant
Now export gate symbols from index (already done for minecraft-gate) and typecheck.
Assistant
All pass. Now full suite + smoke, then docs + commit.
Assistant
Now the AGENTS.md bundled-skills table row for the minecraft pack.
Assistant
The Mineflayer Minecraft bot is built, wired, tested, and shipped on (PR #9). Final state: , with the gate verified live.
What I built
cursor/prod-perfection-round-b474
2,264 tests pass, typecheck clean across core/app/GUI, exec smoke 10/10
Turn it on three ways: Settings → Agent → Minecraft bot skills, the GUI Integrations directory, or just asking ("play Minecraft on my LAN") — the pack and the minecraft tool auto-reveal from the prompt (or when your project depends on mineflayer). reveal_skills {pack: "minecraft"} unlocks it mid-session too.
Play: tell NAXI a version + LAN port and it joins. The minecraft tool covers connect, status, chat, goto/follow/stop, dig/place/collect/craft, build, remember/recall, knowledge, and disconnect.
Persistent Minecraft memory (per server, in ~/.nxlite/minecraft/): the bot's base (captured on first spawn), named waypoints, players it has met, deaths and their cause, builds it made, and freeform notes. It's recalled while playing so it picks up where it left off, and it travels with a .naxisave export.
Knowledge (offline, always available): crafting recipes, version "new stuff" for 1.17–1.21 (so it doesn't try to use blocks that don't exist in your version), and structure building — templates for hut/tower/bridge/wall/platform with a bottom-up planner that computes a materials bill and never places a block it can't reach. Deeper playbooks live in the bundled minecraft-director / minecraft-building / minecraft-survival skills.
The design decision worth flagging: Mineflayer itself is an optional dependency and actually connecting needs a real world Open to LAN — neither is testable in CI. So I put the real bot behind an injectable BotDriver and unit-tested the entire session state machine, memory, knowledge, and structure builder with a fake driver (38 tests), while the real driver is a best-effort dynamic import with a friendly install hint (bun add mineflayer mineflayer-pathfinder minecraft-data). The bot session is a per-workspace singleton torn down at the same three exit points as code_graph, and I live-verified that a "play Minecraft" prompt injects the director + discipline and registers the tool, while unrelated prompts leave it completely absent — so it never clutters non-Minecraft work.
One implementation note captured as a lesson: a gate that registers a tool (not just prompt text) has to be fingerprinted in the prep registry cache key, not only the prompt key — otherwise toggling it wouldn't rebuild the tool registry. Same pattern as the GIF tool from the previous round.