Is your agent writing proper Convex code?

Convex
2,676 views •

So these days my agent writes most of my code, and to be honest it's pretty good. But how do I actually know that what it's writing is good, proper Convex code? One really good way is the Convex ESLint plugin, which just got a big update to version 5. In this one I go through the rules your agent is going to run into (a few of them even fix the code for you), plus the one I'd really recommend turning on if an agent is writing your backend. Oh and yes, I look a little bit different in this one, I'm trying out something new! What Convex mistake do you keep seeing your agent make? Drop me a comment and I'll pass it on to Nicolas, it might end up as the next rule. Chapters 0:00 Is your agent writing proper Convex code? 1:01 Guidelines vs ESLint 1:29 Setting it up 1:51 What it catches 2:17 db.get and the old function syntax 2:32 Using .filter on queries 3:05 Args validators and duplicate indexes 3:40 Crons at the top of the hour 4:09 The one I'd turn on: require access control 5:09 Why it works so well with agents 5:30 More rules coming 5:49 What mistakes does your agent make? Links Convex ESLint plugin docs: https://docs.convex.dev/eslint ESLint plugin 5.0.0 changelog: https://ship.convex.dev/changelog/eslint-plugin-5-0-0 npm package: https://www.npmjs.com/package/@convex-dev/eslint-plugin Typed environment variables: https://docs.convex.dev/production/environment-variables#declaring Convex guidelines for your agent: https://convex.link/convex_rules.txt

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close