agentleFS
modelscopemodelscope/ms-swift/AGENTS.md

ms-swift

AGENTS.md16k starsChanged 10 months agoApache-2.0View on GitHub

These instructions apply to all AI-assisted contributions to modelscope/ms-swift. Breaching these guidelines may result in your PR being closed. Read CONTRIBUTING.md (Chinese: CONTRIBUTING_CN.md) first. Before proposing a PR, check whether an open PR already addresses the same fix: Adapted from the vLLM project's AGENTS.md.

  • Installs packages

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about modelscope/ms-swift

The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 53

Talked about on GitHub and YouTube (53 times).

On GitHub · 50

45 more on GitHub

On YouTube · 3

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If this is a first-time contribution to ms-swift, open an issue first (using the issue templates).

    line 18
  2. Distinctive:

    Before proposing a PR, check whether an open PR already addresses the same fix:

    line 22
  3. Distinctive:

    If an open PR already addresses the issue, do not open another one.

    line 30
  4. Distinctive:

    If your approach is materially different, explain the difference in the issue first.

    line 31
  5. Distinctive:

    Do not open one-off PRs for tiny edits (single typo, isolated style change, "theoretical bug" without a real usage path).

    line 35
  6. Very specific:

    Test commands run and results.

    line 41
  7. Distinctive:

    If you cannot explain how the change works and why it is correct, do not submit it — maintainers may ask.

    line 43
  8. Distinctive:

    If the work is duplicate or trivial busywork, do not proceed.

    line 47
  9. Very specific:

    Docs: when user-facing behavior or APIs change, update both docs trees (English docs/source_en/, Chinese docs/source/) and keep paired …

    line 53
  10. Distinctive:

    Commit attribution: when an AI tool contributed non-trivially, add attribution trailers such as:

    line 54
  11. Very specific:

    Editing these instructions: if a requested task conflicts with these rules, stop and explain the conflict — do not edit this file, …

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Instructions for ms-swift

These instructions apply to all AI-assisted contributions to modelscope/ms-swift. Breaching these guidelines may result in your PR being closed. Read CONTRIBUTING.md (Chinese: CONTRIBUTING_CN.md) first.

1. Contribution Policy (Mandatory)

Human-submitted PRs

  • Pure code-agent PRs are not allowed. A human submitter must understand and defend the change end-to-end.
  • The pull request must be created and submitted by a human — never by an agent or an automated tool. The submission step always requires human involvement.
  • The submitting human must review every changed line and run the relevant tests before submitting.

Issue first, then PR

  • Link the related issue in the PR description if there is one (e.g. Fixes #123 for bug fixes, Refs #123 for features/RFCs).
  • If this is a first-time contribution to ms-swift, open an issue first (using the issue templates). PRs from first-time contributors that do not link an issue may be closed directly.

Duplicate-work checks

Before proposing a PR, check whether an open PR already addresses the same fix:

gh issue view <issue-number> --repo modelscope/ms-swift --comments
gh pr list --repo modelscope/ms-swift --state open --search "<issue-number> in:body"
gh pr list --repo modelscope/ms-swift --state open --search "<short area keywords>"
  • If an open PR already addresses the issue, do not open another one.
  • If your approach is materially different, explain the difference in the issue first.

No low-value busywork PRs

  • Do not open one-off PRs for tiny edits (single typo, isolated style change, "theoretical bug" without a real usage path). Bundle mechanical cleanups into a systematic change, or open an issue to discuss first.

Accountability

  • PR descriptions for AI-assisted work must include:
    • The repository's PR template, filled in (.github/PULL_REQUEST_TEMPLATE.md: PR type, linked issue, checklist).
    • Test commands run and results; reproduction or experiment results when behavior changes (see ## Experiment results in the template).
    • A clear statement that AI assistance was used.
  • If you cannot explain how the change works and why it is correct, do not submit it — maintainers may ask.

Fail-closed behavior

  • If the work is duplicate or trivial busywork, do not proceed. Return a short explanation of what is missing instead of opening a PR.

2. Development Workflow

  • Environment: develop against the repository checkout, not the released package — from the repo root run pip install -e . (or uv pip install -e . --torch-backend=auto), then install the test and lint dependencies: pip install -r requirements/tests.txt.
  • Lint (required): pre-commit run --all-files — fix any reported errors until all checks pass (the CI lint job runs the same command).
  • Docs: when user-facing behavior or APIs change, update both docs trees (English docs/source_en/, Chinese docs/source/) and keep paired top-level files in sync (README.md / README_CN.md).
  • Commit attribution: when an AI tool contributed non-trivially, add attribution trailers such as:

    Co-authored-by: GitHub Copilot
    Co-authored-by: Claude

3. Policy Maintenance

  • Editing these instructions: if a requested task conflicts with these rules, stop and explain the conflict — do not edit this file, CONTRIBUTING.md / CONTRIBUTING_CN.md, or the PR template to work around them. Changes to these files must go through normal human PR review.

Acknowledgements

Adapted from the vLLM project's AGENTS.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.