Show HN: Plain – The full-stack Python framework designed for humans and agents
TL;DR Highlight
Django fork rebuilt with types, rules, and docs so coding agents can use it
Who Should Read
Backend developer building Python web apps with coding agents like Claude Code and weighing framework choices
Core Mechanics
- Django fork for the agent era
- Forked from Django in 2023 and shaped by real use at PullApprove.
- Licensed BSD-3.
- Start by handing it to an agent
- Run claude "$(curl -sSf https://plainframework.com/start.md)" to let the agent scaffold.
- Without an agent, use uvx plain-start my-app.
- Types and a fixed stack are the core
- Postgres-only, Jinja2, htmx, Tailwind CSS, Python 3.14+.
- Models use annotated fields like Field[str], and plain check runs ty (type checker) every time.
- Rules, docs, and skills built in
- Short rule files (~50 lines) such as .claude/rules/ prevent common mistakes.
- plain docs models --search "queryset" fetches docs on demand from the CLI.
- Slash-command skills included
- /plain-install, /plain-upgrade, /plain-optimize, /plain-bug.
- optimize captures performance traces, finds slow queries and N+1, and fixes them.
- Observability and 31 packages out of the box
- OpenTelemetry traces and slow-query detection ship by default.
- 31 first-party packages cover auth, jobs, email, cache, and an MCP server (plain.mcp).
Community Reactions
- Opinion that a new agent-targeted tool lacks training data
- Agents already know Python, Django, and Go, so existing tech is better.
- Truly agent-native tech would have needed to be popular ten years ago.
- Experience of Claude using an unseen CLI from a skill file
- A commenter saw Claude read a markdown skill file and correctly call a CLI it had never seen.
- Their view: agents are bad at guessing but good at learning from docs.
- Pushback that class-based views hurt agents
- Inheritance forces agents to keep reading base classes or docs.
- They prefer a self-contained view function.
- Experience vibe coding with Django and views on the structure
- Django code is quick to review and LLMs write it well, per one commenter.
- Another says top-level modules and per-module READMEs are easy for agents to discover.
How to Apply
- Try Plain in an empty folder
- Run uvx plain-start my-app in a new side-project folder.
- Open the generated .claude/rules/ files to see which rules are included.
- Write a 50-line rules file for your framework
- List 5-10 mistakes agents often make in .claude/rules/ or CLAUDE.md.
- Keep the file around 50 lines.
- Expose docs search via CLI
- Make internal library docs searchable by agents with a command like docs --search.
- Fetch only the relevant sections instead of stuffing full docs into the prompt.
- Bundle recurring work into slash skills
- Write step-by-step skill files for repeated flows like upgrades or performance checks.
Try It
# Paste into Claude Code (applies Plain's rules-file idea to your project)
Read our codebase and create .claude/rules/project.md in 50 lines or fewer.
- Stack: {{framework and DB in use}}
- Mistakes agents often make: {{e.g. wrong import paths, missing types}}
Write short do/don't imperatives,
based only on facts you verified in the code.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques