AI Assistants
AI coding assistants change how Python developers write code, but they need to be configured to use the modern toolchain: uv, Ruff, Pyrefly, pytest. The handbook covers configuration, project initialization, and the supervisory practices that keep AI-generated code maintainable.
Set up your assistant
Start a new project with AI
Supervise the work
More AI Assistants pages
Everything else tagged ai-assistants, grouped by section. Pages featured above are not repeated here.
How To
How to configure Claude Code to run your pre-commit hooks
Wire pre-commit into Claude Code with hooks. Agents fix violations immediately using the same rules that gate your commits.
How to configure Claude Code to run your pytest suite
Wire pytest into Claude Code with Stop hooks for fast feedback. Sparse tracebacks help agents fix failures efficiently.
How to configure Claude Code to use virtual environments
Make Claude Code use virtual environments via `uv run`, CLAUDE.md rules, env config, or PreToolUse hooks. Shell activation doesn't persist.
How to configure Claude Code with a Python type checker
Integrate type checkers with Claude Code using CLAUDE.md, language-server plugins, Stop hooks, and pre-commit to surface errors during turns, not after.
How to configure Cursor for pytest
Enable pytest in Cursor's Testing sidebar, configure test discovery with pyproject.toml, and add a Cursor rule so the AI agent always runs tests via uv.
How to configure Cursor for Ruff
Configure the Ruff extension in Cursor for format-on-save, auto-fix, and import sorting with .vscode/settings.json setup.
How to configure Ruff with Claude Code
Wire Ruff into Claude Code via CLAUDE.md rules, PostToolUse hooks, and pre-commit for real-time linting.
How to create a new Python project with Codex
Scaffold Python projects with Codex. Pipe the Modern Python Setup Guide URL and let Codex bootstrap the project.
How to install OpenAI's Astral plugins for Claude Code
Install OpenAI's Astral plugin for Claude Code. Get skills and a language server for uv, ruff, and ty with live type diagnostics.
How to Run Parallel AI Coding Agents on One Python Project
Run multiple AI coding agents in parallel with git worktrees and isolated uv environments. Agents edit independently without conflicts.
How to stop AI agents from bypassing pre-commit hooks
Stop AI agents from using git commit --no-verify to skip pre-commit hooks. Implement PreToolUse hooks, deny rules, PATH shims, or CI-level enforcement.
How to use Python skills with Claude Code
Create reusable Claude Code skills to automate Python workflows. Write once, invoke by slash command or natural language description.
How to write Claude Code hooks for Python projects
Write Claude Code hooks for uv enforcement, Ruff auto-format, type checking, and project context injection into sessions.
From the blog
Posts tagged ai-assistants.
-
Astral Shuts Down pyx, Open-Sources the Part That Mattered
On Talk Python #552, Charlie Marsh says Astral is winding down the commercial pyx registry and open-sourcing its GPU index and prebuilt-wheel infrastructure with free artifacts.
-
uv won developer hearts. Now it has to win READMEs.
uv is the most admired tool in the 2025 Stack Overflow survey, but adoption in real repos lags far behind. The gap is not just AI agents. It's the install snippets they read.
-
OpenAI to Acquire Astral
OpenAI announced plans to acquire Astral, the company behind uv, Ruff, and ty, folding its team into the Codex coding agent.
-
Charlie Marsh on uv, Coding Agents, and the Changing Open Source Contract
Charlie Marsh discusses uv's adoption strategy, coding agents reshaping Astral's development, and open source when code is cheap.
-
Seven Claude Code Skills for Python from the Creator of spaCy
Matthew Honnibal's Claude Code skills collection covers type annotations, error handling, property-based testing, and mutation testing.
-
Pydantic Monty: A Secure Python Interpreter for AI Agents
Pydantic's Monty is a minimal Rust-based Python interpreter for safely executing LLM-generated code without containers.
-
Teaching Claude Code Quality Patterns with a Custom Skill
Dagster's Claude Code skill enforces Python 3.13 conventions, modern type syntax, Click CLI patterns, and subprocess safety.
-
ty is Built with AI
Charlie Marsh and Boris Cherny are building their Python tools with Claude Code, demonstrating AI-assisted open source development.
-
Teaching LLMs Python Best Practices
LLMs default to outdated Python patterns. The handbook provides llms.txt and structured context to teach AI assistants modern tooling.
-
Claude Code Hooks for uv Projects
Configure Claude Code hooks to prevent pip and python commands and enforce uv usage in your Python projects.
-
Use Interceptors to teach Claude Code to use uv
Armin Ronacher's interceptor pattern creates fake Python executables that redirect AI coding agents toward uv.