AGENTS.md · gradio-app/gradio
AGENTS.md from gradio-app/gradio: 74 lines covering Repository Structure, Pull Request Rules, Code Style, Agentic Contribution Policy and more.
Template by gradio-app
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/gradio-app/gradio/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 74 lines
- File
AGENTS.md
Sections
- Repository Structure
- Pull Request Rules
- Code Style
- Agentic Contribution Policy
- More Details
First lines (shown under the repo's Apache-2.0 license)
# AGENTS.md Instructions for AI coding agents working on this repository. ## Repository Structure - `gradio/` — Python source for the Gradio library (backend) - `gradio/components/` — all Gradio components - `gradio/cli/` — CLI commands (`gradio`, `gradio cc`, `gradio skills`, etc.) - `client/python/` — the `gradio_client` Python client library - `client/js/` — the `@gradio/client` JavaScript client library - `js/` — frontend code (Svelte/TypeScript), with each component in its own subdirectory - `test/` — Python backend tests (pytest) - `js/spa/test/` — browser/Playwright tests (`*.spec.ts`) - `demo/` — example Gradio apps - `guides/` — written guides and tutorials for the website ## Pull Request Rules Follow these rules when creating or contributing to pull requests: 1. **Target an issue.** Every non-trivial PR should reference an existing GitHub issue. If one doesn't exist, create it first. PRs without a linked issue may be closed. 2. **Use the PR template.** Fill out every section of `.github/PULL_REQUEST_TEMPLATE.md`, including: - A clear description of the change - The AI disclosure checkbox (see below) - The linked issue (`Closes: #NNN`) 3. **AI disclosure is mandatory.** If AI was used in any non-trivial way (drafting code, writing the PR description, etc.), you must disclose this in the PR template. Trivial autocomplete does not need to be disclosed. All AI-generated code must be self-reviewed. 4. **Format your code before pushing.** - Backend: `bash scripts/format_backend.sh` - Frontend: `bash scripts/format_frontend.sh` 5. **Tests must pass.** PRs are only merged when CI is green. Run backend tests locally with `bash scripts/run_backend_tests.sh`. 6. **PR title and description should be clear and written in English.** The title should concisely describe *what* the PR does. The description should explain *why*. 7. **Don't write changeset files.** A GitHub Action (committing as `gradio-pr-bot`) adds `.changeset/*.md` to your branch from the PR title, so a good title is all that's needed. The bot leaves an existing changeset alone, so a hand-written one silently replaces your title in the changelog. - **Reviewers (human or AI):** a `.changeset/*.md` file in a PR is expected, because the CI adds one to every PR. Don't flag it or ask for it to be removed. This rule is about what authors should do, not something to check in review. 8. **Submit against `main`.** All PRs target the `main` branch. ## Code Style - Python code is formatted with `ruff`. Run `bash scripts/format_backend.sh`. - Frontend code is formatted with `prettier`. Run `bash scripts/format_frontend.sh`. - Be consistent with the style of the surrounding code. ## Agentic Contribution Policy These rules apply to all AI-assisted contributions to this repository. Do not skip them. ### Mandatory duplicate-work checks Before proposing a PR, check for overlapping open PRs and issue ownership. - If an open PR already addresses the same fix, do not open another. - If your approach is materially different, explain the difference and why a second PR is needed in the issue thread. ### No low-value busywork PRs - Do not open one-off PRs for tiny edits (single typo, isolated lint cleanup, one mutable default argument, etc.). - Mechanical cleanups are acceptable only when bundled into a clear, systematic scope — not as isolated first contributions. ### Human accountability - Pure code-agent PRs are not allowed. A human contributor must understand and be able to defend the change. - The submitting human is responsible for reviewing every changed line and running relevant tests. ## More Details See [CONTRIBUTING.md](CONTRIBUTING.md) for full setup instructions, testing details, and the contribution workflow.
Signals
- Stars
- 43,862
- Forks
- 3,645
- Open issues
- 91
- Last commit (this folder)
- Sep 25, 2026 (1 month ago)
- Last release
- Oct 8, 2026 (20 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/gradio-app/gradio
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
AGENTS.md · gradio-app/gradio. Agent Mart. https://agentmart.dev/templates/gradio-app-gradio-agents-md (last updated 2026-10-24)