Codegen and typecheck
convex/_generated updates when schema/functions change — typecheck depends on it.
Difficulty 2/5
Plain English
After editing convex/, dev pushes and regenerates types. agentify runs convex codegen before vp typecheck. If types look wrong, rerun dev or deploy once.
Analogy
Updating the dictionary when you add new words to the language.
Agentify CRM
npm run typecheck includes convex codegen step.
Go deeper
Generated api.ts links React to functions.
Common mistakes
- Importing old function names after rename.
- Skipping push before tsc.
AI-agent trap
Hand-writing API paths instead of generated api.
Summary
Commit _generated in your repos for CI.
Confidence: