Skip to content

Contribute with AI tools

You can use AI tools to write code and documentation for Music Assistant. This page says what the AI policy asks of you, and what the project gives your assistant to work with.

The AI policy of the Open Home Foundation applies to every repository.

  • Allowed: AI tools to write code and documentation, to improve the grammar and clarity of what you write, and to translate your comments.
  • You stay responsible: review and understand every change before you submit it, and be able to explain each one. Check a description the assistant wrote for technical accuracy.
  • Your own words: answer questions from maintainers yourself, not with generated text. To share something an assistant said, put it in a quote block, say it comes from AI, and add your own comment.
  • Closed: pull requests and issues created by autonomous agents, contributions that bypass the issue or pull request templates, and pull requests that look like unreviewed AI output. Unreviewed AI comments may be hidden. Repeated violations can get you blocked from contributing to Open Home Foundation projects.
  • AGENTS.md: the rules for code in a repository, written for AI assistants and valid for people too. The server’s AGENTS.md (also as CLAUDE.md) holds the code style, the usage policy rules, migrations and branches. The community provider template has one too. The frontend and the mobile app have a CLAUDE.md.
  • A README.md next to the code: how a controller or provider works and why. Most controllers in the controllers folder have one, and so do several providers.
  • The demo providers: annotated templates for a music provider, a player provider, a plugin and an audio analysis provider.
  • The review-pr skill: a skill for Claude Code in the server, in .claude/skills/review-pr/. It reviews a pull request and reports its findings in your console, without posting anything on GitHub.
  • The review standards: .github/copilot-instructions.md says what the Copilot review of a server pull request flags, and how severe each finding is.
  • This site: /llms.txt points an assistant to the whole site as plain text (/llms-full.txt, or the shorter /llms-small.txt), and Architecture explains how the parts fit together.
  1. Have the assistant read AGENTS.md and the README.md of the part it changes.
  2. Run the checks: on the server, pre-commit run --all-files and pytest, see Test your change.
  3. Test the change on your own setup, with your own speaker or music service. For code that talks to a device, say in the pull request which real device you tested it on.
  4. Write the pull request description and your answers to reviews in your own words.
  5. Never let the assistant remove the guards the server’s AGENTS.md names under Usage policy: the readrate pacing on the stream endpoints, the filesystem-only restriction on background audio analysis, and the empty artist tracks listing for a provider without an artist tracks endpoint. They look removable, and they are not.
  6. Never let it change stored data, such as a config entry or a database row, without a migration. AGENTS.md says why.

Pull requests and reviews covers the rest of the way to a merge.

Music Assistant is a project of the Open Home Foundation.