minecraft-ai-python: Instructions file for Claude Code

CLAUDE.md

minecraft-ai-python CLAUDE.md is an instructions file for Claude Code from aeromechanic000/minecraft-ai-python. It costs 7,927 tokens per session, scanned C, original, MIT.

Project instructions for Minecraft AI-Python, a framework for controlling Minecraft characters with Python and language models. The project connects Python code to Minecraft through JavaScript and the mineflayer library.

In plain words
What is it for?
Use them when developing or running the Minecraft bots, managing Python packages with uv, compiling the project, or running its unit and web-view tests.
Why use it?
They explain the project's moving parts and required development setup, reducing errors caused by using the wrong runtime, package manager, or startup process.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is aeromechanic000/minecraft-ai-python's own configuration. It tells Claude Code how to work on minecraft-ai-python itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything minecraft-ai-python configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/nil/Projects/minecraft-ai-python.

Reuse

Borrowing it

Nothing to install: this file belongs to aeromechanic000/minecraft-ai-python. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aeromechanic000/minecraft-ai-python/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/aeromechanic000/minecraft-ai-python

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minecraft-ai-python CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aeromechanic000/minecraft-ai-python/claude-md/github.svg)](https://agentmods.dev/instructions/aeromechanic000/minecraft-ai-python/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/aeromechanic000/minecraft-ai-python/claude-md"><img src="https://agentmods.dev/badge/instructions/aeromechanic000/minecraft-ai-python/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minecraft-ai-python CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aeromechanic000/minecraft-ai-python/claude-md"><img src="https://agentmods.dev/badge/instructions/aeromechanic000/minecraft-ai-python/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,927 This file is loaded in full into every session.
When invoked 7,927 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.07927 $0.07927
Opus 5.5 $0.03171 $0.03171
Sonnet 5.5 $0.01585 $0.01585
Haiku 4.5 $0.00793 $0.00793

Measured 2mo ago against content hash 8488620bac46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

minecraft-ai-python CLAUDE.md scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -LsSf https://astral.sh/uv/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -LsSf https://astral.sh/uv/install.sh | sh
CLAUDE.md · 946 lines

How it starts

The opening of the file, as written. The whole thing — 946 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Minecraft AI-Python: Developer Guide

This document summarizes the key requirements and setup instructions for the Minecraft AI-Python project, with a focus on using uv for Python package management.

Project Overview

Minecraft AI-Python is a modular framework for building AI Characters (AICs) in Minecraft. It uses Python to control Minecraft bots via a JavaScript bridge (JSPyBridge/mineflayer), enabling LLM-driven agents to interact with the game world.

Key Components:

  • Python 3.9+ - Main runtime for AI agent logic
  • Node.js - Runs mineflayer for Minecraft protocol communication
  • JSPyBridge - Python-JavaScript interop package (v1.2.6+)
  • LLM Provider - OpenAI, Anthropic, Ollama, or compatible API

Architecture

┌─────────────────────────────────────────────────────────────┐
│                         main.py                             │
│                    (Process Manager)                        │
└─────────────────────────┬───────────────────────────────────┘
                          │
                          ├─────────────────┐
                          │                 │
                    ┌─────▼─────┐    ┌────▼─────┐
                    │  agent.py │    │ agent.py │  (Multiprocess)
                    └─────┬─────┘    └────┬─────┘
                          │                │
              ┌───────────┴────────────────┴──────────┐
              │         Python Modules                  │
              │  - agent.py, memory.py, world.py       │
              │  - actions.py, skills.py, model.py     │
              └───────────────────┬────────────────────┘
                                  │
              ┌───────────────────┴────────────────────┐
              │      JSPyBridge (javascript package)   │
              │      require('mineflayer', ...)        │
              └───────────────────┬────────────────────┘
                                  │
              ┌───────────────────┴────────────────────┐
              │         Node.js Runtime                │
              │  - mineflayer (Minecraft bot)          │
              │  - mineflayer-pathfinder               │
              │  - mineflayer-collectblock             │
              │  - mineflayer-pvp, -auto-eat, etc.     │
              └───────────────────┬────────────────────┘
                                  │
              ┌───────────────────┴────────────────────┐
              │      Minecraft Server (1.21.1)         │
              └────────────────────────────────────────┘

Read the full file on GitHub · 946 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 946 lines · 7,927 tokens per session scan C 8488620bac46

Subscribe to this mod's changes

minecraft-ai-python CLAUDE.md is an instructions file published in the GitHub repository aeromechanic000/minecraft-ai-python (25 stars, last pushed 5mo ago), licensed MIT. It adds 7,927 tokens to every session, about $0.0317 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

minecraft-ai-python CLAUDE.md compared with instructions from other repositories

minecraft-ai-python CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
minecraft-ai-python CLAUDE.mdaeromechanic000/minecraft-ai-pythonInstructions file255mo agoMITC7,927Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot