pyenv-native: Instructions file for Codex

AGENTS.md

pyenv-native AGENTS.md is an instructions file for Codex, OpenCode from ImYourBoyRoy/pyenv-native. It costs 807 tokens per session, scanned A, original, MIT.

Repository guidance for coding agents working on pyenv-native, a tool for managing Python versions, or using it in another project. It sets reading order, instruction priority, supported systems, and development rules.

In plain words
What is it for?
Use it when changing pyenv-native's Rust code or packaging, installing it, or using its agent-facing tools to manage Python environments.
Why use it?
It gives the agent the project context and constraints needed to make safe changes or use the tool correctly. This reduces guesswork about installation, packaging, platform support, and testing.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is ImYourBoyRoy/pyenv-native's own configuration. It tells Codex and OpenCode how to work on pyenv-native 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 pyenv-native configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ImYourBoyRoy/pyenv-native. 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/ImYourBoyRoy/pyenv-native/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ImYourBoyRoy/pyenv-native

Made for: Codex, OpenCode.

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 pyenv-native AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/imyourboyroy/pyenv-native/agents-md/github.svg)](https://agentmods.dev/instructions/imyourboyroy/pyenv-native/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/imyourboyroy/pyenv-native/agents-md"><img src="https://agentmods.dev/badge/instructions/imyourboyroy/pyenv-native/agents-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 pyenv-native AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/imyourboyroy/pyenv-native/agents-md"><img src="https://agentmods.dev/badge/instructions/imyourboyroy/pyenv-native/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 807 This file is loaded in full into every session.
When invoked 807 The same file — it is already loaded in full.
Security scan A 0 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.00807 $0.00807
Opus 5.5 $0.00323 $0.00323
Sonnet 5.5 $0.00161 $0.00161
Haiku 4.5 $0.00081 $0.00081

Measured 24d ago against content hash ac296418bc13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pyenv-native AGENTS.md scanned grade A with 0 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 24d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 67 lines

How it starts

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

pyenv-native — Agent Instructions

Repo-local rules for AI agents working on pyenv-native or using it to manage Python on a workstation/project.

Read first (in order)

  1. README.md — product overview and install entry points
  2. docs/INSTRUCTIONS.md — full install, shell init, workflows, troubleshooting
  3. docs/MCP.md — agent-facing MCP tools and recommended tool order
  4. docs/CLI.md — human CLI reference
  5. docs/ARCHITECTURE.md — Rust crate layout when changing code
  6. docs/cursor-setup.md — install this repo's Cursor skill

Instruction precedence

  1. Explicit user request
  2. This AGENTS.md
  3. docs/MCP.md for environment/runtime tasks (prefer MCP over shell guessing)
  4. README.md / docs/INSTRUCTIONS.md
  5. Tool defaults

When working ON this repo (Rust / packaging)

  • Supported platforms: Windows, Linux, and macOS. Exercise install and resolution on the OS you touch. Android/Termux is experimental (source builds).
  • Use existing scripts: scripts/dev-cargo.ps1, scripts/build-release-bundle.ps1.
  • Every install path must ship both pyenv and pyenv-mcp.
  • Run cargo test in affected crates before claiming success.
  • Do not break the version-selection precedence: shell → local .python-version → parents → global → system.
  • CPython install catalogs are live. Read https://www.python.org/ftp/python/ (24h cache). The compiled crates/pyenv-core/data/known_versions.txt is only the base seed. Publisher caches merge new names into PYENV_ROOT/cache/metadata/known_versions.txt and do not rewrite the shipped seed. Windows CPython still uses NuGet, and PyPy still uses the PyPy version manifest.
  • Managed venvs live under PYENV_ROOT/venvs/<runtime>/<name>; prefer pyenv venv over ad-hoc .venv when documenting agent flows.

When USING pyenv-native on another project

  1. Prefer pyenv-mcp tools when MCP is configured (get_toolkit_guide → resolve_project_environment → ensure_runtime → ensure_project_venv).
  2. If MCP is unavailable, use CLI: pyenv local, pyenv install, pyenv venv create, pyenv which python.
  3. Never pip install into an unknown global Python without resolving the active interpreter first.
  4. On Windows, use PowerShell 7+ (pwsh); run pyenv doctor when PATH/shim issues appear.
  5. Orientation blob for smaller models: pyenv-mcp guide (JSON).

Read the full file on GitHub · 67 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. 24d ago Changed · +1 lines · +91 tokens per session ac296418bc13
  2. 2mo ago First seen · 66 lines · 716 tokens per session scan A d55dbd5c0281

Subscribe to this mod's changes

pyenv-native AGENTS.md is an instructions file published in the GitHub repository ImYourBoyRoy/pyenv-native (2 stars, last pushed 6d ago), licensed MIT. It adds 807 tokens to every session, about $0.0032 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pyenv-native AGENTS.md compared with instructions from other repositories

pyenv-native AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pyenv-native AGENTS.mdImYourBoyRoy/pyenv-nativeInstructions file26d agoMITA807Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode