So I’m getting my environment set up to try to vibe code in FarmOS. I did some work already on the firefox extension I already shared, but also want to be able to work in FarmOS directly.
In reviewing other large projects that use AI across the workflow, it seems important to have a core agents.md (or for anthropic claude.md) file that gives AI the necessary background learning so it doesn’t have to relearn past lessons. It’s like a global memory file that anyone can use to get started, hopefully (?) making AI assisted coding from non-experts easier.
So I worked on an initial AGENTS.md with claude 4.6 thinking mode and reviewed it. I made some minor changes but felt it did pretty good. I requested it focus on FarmOS 4, review the forum and farmos.org. It includes contribution guidelines, best practices, business logic, api info and gotchas, etc. etc.
I know this is a lot, but any review or updates would be helpful. If this is used a starting point for “How AI should behave and understand FarmOS” it’s potentially an important document.
My Prompt
Hi claude, I would like to create an agents.md file and agentic setup specifically for contributing code, issues and discussions to FarmOS (farmos.org, https://farmos.discourse.group). It should follow the community norms and processes for contribution, discussion, issue creation, as well as Drupal's norms for core, contrib and community modules. Mike Stenta is a good role model to follow, as he's the primary contributor. My goal is to be able to have a strong agents.md file (and other history or reference data) that allows me, as a non-developer but active FarmOS user, to most easily contribute to existing FarmOS work and develop new ideas I can try myself and share. This should thoroughly review the existing data structure, business logic, API and documentation, and historical coding norms so that any new contributions fit within what has been done before.
This will require a thorough review of farmos.org and farmos.discourse.group, and following up with key links (especially in the last 1 - 2 years) on active threads and discussions. In addition, I actively develop conventions.farm (https://gitlab.com/our-sci/conventions/common_farm_conventions) and related tools which utilize farmOS's data model. That would also be good to review, though it's not farmOS directly. I would also search and review other public projects which are creating best practices for agent-based interaction with large open sourced databases... what are the best practices generally, and what can we implement here that follows those?
If there seem like some very different paths forward which are supported by farmos or community norms, then please summarize and present them. If the answer seems fairly obvious, please just continue until you have a completed product and summarize for me and others to review. I plan to share the finished concept and files with the FarmOS community as a whole to get feedback as well.
The AGENTS.md File Claude created. Please review, comment and change!!!
- (Nextcloud) You can download the file, modify and share back here
- Sorry… It was too long to post here so this was the easiest way to share. I can also put this in a git repo to track changes that way if it’s most comfortable.