Add the AI-agent setup guide and make it discoverable (docs/AGENTS.md, README, PyPI)#281
Merged
Merged
Conversation
10 tasks
Add docs/AGENTS.md, an operational guide for AI coding agents that help a user install, configure, and run rapidfireai (workflow decision tree, setup order, safety rules, troubleshooting, tutorials, and a validation checklist), and surface it to package consumers via an AI-Agent-Guide project URL. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
08bea39 to
db16af1
Compare
This was referenced Jun 26, 2026
david-rfai
reviewed
Jun 27, 2026
david-rfai
left a comment
Collaborator
There was a problem hiding this comment.
Please consolidate this PR with #280
Add a collapsible notice above the Overview that points AI coding agents to the operational setup guide (docs/AGENTS.md) before they help a user install or set up rapidfireai, with a quick RAG-vs-fine-tuning decision and a pointer to the contributor docs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
arun-rfai
approved these changes
Jun 28, 2026
david-rfai
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
docs/AGENTS.md— an operational guide for AI coding agents that help an end user install, configure, and runrapidfireai— and add the hooks that make agents actually discover it (a README notice + a PyPI link).Two
AGENTS.mdfiles, opposite audiences — and why this one lives indocs/After #280 the repo has a root
AGENTS.md; this PR adds a second one underdocs/. They are for different readers, which is the whole reason for the separate location:AGENTS.md(#280)AGENTS.mdconvention (Claude Code via the rootCLAUDE.mdpointer, plus Cursor, Codex, Copilot, …) whenever they work in the repodocs/AGENTS.md(this PR)AI-Agent-GuideURL — both added in this PRWhy not put it at the repo root? Agents that follow the convention auto-load the root
AGENTS.mdas the project's standing rules, and there is only one root slot — it belongs to the maintainer guide (#280). If this end-user install guide sat at the root, every agent working on rapidfireai would load "how to install rapidfireai for a user" as its contributor instructions — wrong audience, wrong rules. Keeping it underdocs/puts it outside the auto-load path, so it's read only by the agents that should read it. (Each file carries a short "you're in the wrong place → go to the other one" scope guard so a misrouted agent self-corrects.)What the guide covers
Self-contained for the install/setup journey:
It deliberately defers all volatile install content (Python version,
pip installline, ports, SSH syntax, HF auth) toREADME.mdso it cannot drift.Discoverability — so agents actually find the guide
The README is the first page an AI coding agent reads when a user asks it to install
rapidfireai(the canonical entry point on GitHub and PyPI). A guide nothing points to never gets read, so this PR also ships the two discovery hooks:README.mdthat routes any AI agent todocs/AGENTS.mdbefore it starts — the GitHub-side hook;AI-Agent-GuideURL inpyproject.tomlthat surfaces the guide on the PyPI sidebar and in the installed package metadata — the PyPI-side hook.(The README notice previously lived in a separate PR; it's consolidated here so the guide and the hooks that surface it land together — no dangling link, and a reviewer sees the notice and the guide it points to in one diff.)
Files (3)
docs/AGENTS.md(new) — the agent install & setup guideREADME.md— collapsible AI-agent notice above## Overviewpyproject.toml—AI-Agent-Guideproject URLDependencies
Independent of #280 at the file level — mergeable in any order. One ordering note: the README notice links the root
AGENTS.md(added by #280), so that link resolves only once #280 merges — prefer landing #280 first (or accept one transient 404 on that single link). The optional integration guide (#283,docs/agent-integration-guide) is stacked on this branch and extendsdocs/AGENTS.mdadditively; this PR stands alone as a complete install/setup guide if #283 is never merged.🤖 Generated with Claude Code
Note
Low Risk
Documentation and package metadata only; no application or runtime behavior changes.
Overview
Adds
docs/AGENTS.md, an operational guide for AI coding agents that help end users install and runrapidfireai. It routes volatile commands (pip, ports, HF auth) to README.md, and adds workflow branching (RAG/evals vs fit; API vs self-hosted; SFT/DPO/GRPO), ordered setup steps, safety rules, a troubleshooting table, tutorial paths, and a pre-flight checklist.Registers an
AI-Agent-GuideURL under[project.urls]inpyproject.tomlso the guide appears on the PyPI project sidebar.Reviewed by Cursor Bugbot for commit db16af1. Bugbot is set up for automated code reviews on this repo. Configure here.