From d054e40536ed2d30b35df1af3899de8b69580974 Mon Sep 17 00:00:00 2001 From: leehanjeong Date: Sat, 1 Aug 2026 17:06:26 +0900 Subject: [PATCH] docs: drop stale crate paths from AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Repository Structure" section listed pre-`crates/` paths (`vm/`, `compiler/`, `derive/`, etc.) that no longer exist; `CONTRIBUTING.md` already documents the current layout under "Code organization". Replace the stale list with a link to that section. Also generalized the title and intro from "GitHub Copilot Instructions" to "AI Agent Instructions" — the file was already renamed from `.github/copilot-instructions.md` to `AGENTS.md` in #6813 to follow the cross-vendor AGENTS.md standard (https://agents.md/), but the title text was never updated to match. Assisted-by: Claude Code:claude-sonnet-5 --- AGENTS.md | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c89b2a4d3a4..72a22471fb5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ -# GitHub Copilot Instructions for RustPython +# AI Agent Instructions for RustPython -This document provides guidelines for working with GitHub Copilot when contributing to the RustPython project. +This document provides guidelines for AI coding agents (GitHub Copilot, Claude Code, Gemini, etc.) contributing to the RustPython project. ## Project Overview @@ -13,22 +13,7 @@ RustPython is a Python 3 interpreter written in Rust, implementing Python 3.14.0 ## Repository Structure -- `src/` - Top-level code for the RustPython binary -- `vm/` - The Python virtual machine implementation - - `builtins/` - Python built-in types and functions - - `stdlib/` - Essential standard library modules implemented in Rust, required to run the Python core -- `compiler/` - Python compiler components - - `parser/` - Parser for converting Python source to AST - - `core/` - Bytecode representation in Rust structures - - `codegen/` - AST to bytecode compiler -- `Lib/` - CPython's standard library in Python (copied from CPython). **IMPORTANT**: Do not edit this directory directly; The only allowed operation is copying files from CPython. -- `derive/` - Rust macros for RustPython -- `common/` - Common utilities -- `extra_tests/` - Integration tests and snippets -- `stdlib/` - Non-essential Python standard library modules implemented in Rust (useful but not required for core functionality) -- `wasm/` - WebAssembly support -- `jit/` - Experimental JIT compiler implementation -- `pylib/` - Python standard library packaging (do not modify this directory directly - its contents are generated automatically) +See the "Code organization" section in [CONTRIBUTING.md](CONTRIBUTING.md#code-organization) for the current directory layout. ## AI Agent Rules