Skip to main content
The expert command gives you direct access to Codegen’s AI expert, which is specifically trained to help with codemods, transformations, and Codegen’s APIs.

Usage

Options

  • --query, -q: The question to ask the expert

Examples

Ask about a specific API:
Get help with a transformation:
Ask about best practices:

Use Cases

The expert is particularly helpful for:
  • Understanding Codegen’s APIs and capabilities
  • Getting guidance on codemod implementation strategies
  • Learning best practices for code transformations
  • Troubleshooting common issues
  • Finding the right approach for complex refactoring tasks
The expert has deep knowledge of Codegen’s internals and common transformation patterns. For general programming questions, consider using standard AI assistants instead.

Tips

  1. Be specific in your questions
  2. Include relevant context about your codebase or transformation
  3. Ask follow-up questions if needed
  4. Use code examples in your questions when applicable
  • codegen create: Create new codemods with AI assistance
  • codegen run: Execute your codemods
  • codegen docs-search: Search documentation and examples