byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project.
My initial shotgun all-over the place unorganized reactions:
- I like the idea of the community having a set of AI instructions that works well for elixir projects, which brings together experimentation from all parts of the community… As someone that just wants to “be productive” and doesn’t want to waste time “prompt engineering” an AGENTS.md file from my own frustrations… seeing what others have done/shared is nice.
- The merged AGENTS.md reads like an “Elixir + Phoenix + Ecto” best practices or a conventions document… Phoenix has great guides, Credo is like a best practice enforcer.
- Is the generator a place for this? Or would a separate community contributed “Phoenix AI Suggestions Package” (maybe credo?) that
usage_rulesuses to add toAGENTS.mdbe a better place? - Is there a Phoenix project’s AI Policy, like Ash Framework: AI Policy - #6 by zachdaniel ?
I’m just curious about what the community thinks about elixir plus AI agents instructions in general.
Trending in Discussions
Hey folks,
I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
Hi there! :wave:
@frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog
It says that Fly is going all-in on sprites, which is a worry ...
New
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Hi everyone,
I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
A note on form. Joe Armstrong, co-creator of the Erlang programming language, died in April 2019. What follows is a work of narrative non...
New
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #hex










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
chrismccord
AGENTS.md is for LLMs so I wouldn’t necessarily call it a best practice or convention doc, but there will of course be overlap. The goals with this are gap-filling for SOTA LLMs to supplement their “world knowledge” only, rather than an exhaustive set of guidelines (which exist as phoenix guides). Less capable models will need more gap filling, but also being less capable they will have less world knowledge and I haven’t yet seen lower tier/local models cross be able to really cross the gap regardless of context stuffing. On the other hand, most state of the art models are closely on par with one another gap wise. Surprisingly so even. You can shop the AGENTS.md around to gpt-4.1/claude/gemini 2.5 pro/grok4 and get more or less similar results.
The generator is indeed the place for this
usage_rulesis great, and zach is doing some great work there! It’s hard to beat a dependency free static file value wise at this point. As folks want to customize and extend their own rules they can bring in usage_rules to manage that process and aggregate their other deps that also provide rules. I don’t think credo makes sense at all in this flow. I do think that a mix task that aggregates AGENTS.md across your deps makes total sense, and it’s one thing that fell out of the Elixir contributors summit that Zach kindly took on the burden of running with. As the community standardizes on this stuff and libraries adopt AGENTS.md I could absolutely see deep integration with a mix task/lib out of the box, but in any case, the file must be there when you run phx.new, so even if we made it library generated, it would to be programmatically run insidephx.newto ensure it’s there out of the box.Not at this time
rocket4ce
Sounds like a great idea—we could start by implementing some kind of task. I actually have a couple of ideas we could use to create our own version.
I’m thinking we could begin with something pretty basic, maybe a Bash script that clones the project guide and installs it into your Phoenix project.
Also, here’s a source of inspiration we could look at: https://youtu.be/CTMyzeKKb0o
zachdaniel
It already exists, and the Phoenix AGENTS.md will be compatible with the format. usage_rules v1.2.6 — Documentation
rocket4ce
https://github.com/just-another-rule-craft/download-phoenix-guides
I think you were referring to something like this? Or was it something else?
I made a small Bash script that downloads all the guides into your project—you just need to be in your project directory and run the script.
anibal
I just generated a new phoenix app and noticed the AGENTS.md was pretty much the same as a few months ago and after doing some digging, as afar as I understand, it is basically one year old. Spent the weekend Fable tokens running evals on it and it looks like 90+ percent of it is no longer relevant, the model priors work just fine.
This experiment took 234 runs, for 3 models, with 7 tasks with and without Usage Rules, not all rules were tested, but for those the up-to-date models (Sonnet 5, Opus 4.8 and Fable 5) scored 94% of compliance, removing 23 of the 29 rules rules had no effect.
I am familiar with Elixir/Phoenix… but that’s it, so I am not suggesting an alternate version.
The harness Claude Code built to run the tests is available in Github is fully vibed, full disclaimer, in case you find it useful. And here is an artifact with the annotated AGENTS.mdfile that provides a quick overview of what was found.
josevalim
This is really cool @anibal, awesome job!
When Chris generated those rules, he did so by creating different apps. Given agents can run tasks for longer, what I would do is to have the tasks themselves be the creation of a new app, with features that exercise those paths.
So what I would do:
Ask your agent to generate the specification of three small apps that exercise the features there: authentication, forms, etc. The apps should be small, a todo list that can be shared with teams, a water ingestion tracker, etc.
Evaluate the generation with and without the rules
Would you be willing to run such evals again? Thank you!