-
Notifications
You must be signed in to change notification settings - Fork 39
docs: Document Flash AI coding agent integration #641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,8 @@ The command creates the following project structure: | |
| <Tree.File name="pyproject.toml" /> | ||
| <Tree.File name="requirements.txt" /> | ||
| <Tree.File name="README.md" /> | ||
| <Tree.File name="AGENTS.md" /> | ||
| <Tree.File name="CLAUDE.md" /> | ||
| </Tree.Folder> | ||
| </Tree> | ||
|
|
||
|
|
@@ -62,6 +64,40 @@ The command creates the following project structure: | |
| - **cpu_worker.py**: CPU queue-based endpoint. Contains an `@Endpoint` function that runs on CPU-only instances. Provides `/run` or `/runsync` routes for job submission. Creates one Serverless endpoint when deployed. | ||
| - **.env**: Template for environment variables including `RUNPOD_API_KEY`. | ||
|
|
||
| ### AI coding agent files | ||
|
|
||
| Flash generates context files that help AI coding assistants (Claude Code, Cursor, GitHub Copilot, Codex, Aider, and others) use Flash correctly. These files tell agents to use Flash CLI commands instead of raw Runpod API calls. | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Corrected the AI agent files section based on the final merged state of PR #341. The merged PR creates only Source: runpod/flash#341 |
||
| | File | Purpose | | ||
| |------|---------| | ||
| | `AGENTS.md` | CLI-first rules for AI coding tools (Cursor, Codex, Aider, Amp, Jules, and others) | | ||
| | `CLAUDE.md` | Symlink to `AGENTS.md` so Claude Code picks up the same rules | | ||
|
|
||
| Flash writes these files only when they don't already exist. If you have your own `AGENTS.md` or `CLAUDE.md`, Flash leaves them alone. | ||
|
|
||
| <Tip> | ||
|
|
||
| **Tools using other conventions:** GitHub Copilot reads `.github/copilot-instructions.md` and Cursor (legacy) reads `.cursorrules`. If you use those, symlink or copy `AGENTS.md`: | ||
|
|
||
| ```bash | ||
| ln -s ../AGENTS.md .github/copilot-instructions.md | ||
| ln -s AGENTS.md .cursorrules | ||
| ``` | ||
|
|
||
| </Tip> | ||
|
|
||
| ### Add agent files to existing projects | ||
|
|
||
| If you've already run `flash init`, add the agent files with: | ||
|
|
||
| ```bash | ||
| python -c "from runpod_flash.rules import install_agent_files; from pathlib import Path; install_agent_files(Path.cwd())" | ||
| ``` | ||
|
|
||
| ### Opt out | ||
|
|
||
| Delete `AGENTS.md`. Flash won't re-create it. | ||
|
|
||
| ## Next steps | ||
|
|
||
| After initialization: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Line 41)
Added
--no-rulesflag and AI coding agent files section based on PR #341. Theflash initcommand now generates agent context files by default, with opt-out via--no-rulesor per-file<!-- FLASH:DISABLE -->markers.Source: runpod/flash#341