Codegen home page
Search...
⌘K
Ask AI
GitHub
GitHub
Search...
Navigation
Tutorials
Learn by Example
Documentation
API Reference
CLI
Blog
Changelog
codegen
Introduction
Overview
Getting Started
Installation
IDE Usage
AI Integration
How it Works
Advanced Settings
Principles
Community
About Us
FAQ
Tutorials
At a Glance
Build code agent
Slack Bot
Github review bot
Code Research Agent
Analytics
Mining Data
Visualization
API Migrations
Organization
Promise to Async/Await
Modularity
Feature Flags
Dead Code
Type Coverage
Export Management
Default Export Conversion
Documentation
React Modernization
Unittest to Pytest
SQLAlchemy 1.4 to 2.0
Fixing Import Loops
Python 2 to 3
Flask to FastAPI
MCP Server
Neo4j Graph
Code Attributions
Building with Codegen
At a Glance
Parsing Codebases
Reusable Codemods
.codegen Directory
@codegen.function
Language Support
Commit and Reset
Git Operations
Files & Directories
Editables
Symbols
Classes
Imports
Exports
Inheritable Behaviors
Statements and Code Blocks
Dependencies and Usages
Function Calls
Variable Assignments
Local Variables
Comments & Docstrings
External Modules
Type Annotations
Moving Symbols
Collections
Call Graph
React and JSX
Visualization
Flagging Symbols
LLM Integration
Semantic Code Search
Reducing Conditions
On this page
Featured Tutorials
API Migrations
Code Organization
Testing & Types
Documentation & AI
Tutorials
Learn by Example
Explore our tutorials to learn how to use Codegen for various code transformation tasks.
Featured Tutorials
Build a Code Agent
Create an intelligent code agent with Langchain and powerful, codegen-powered tools
Visualize Your Codebase
Generate interactive visualizations of your codebase’s structure, dependencies, and relationships.
Mine Training Data
Create high-quality training data for LLM pre-training similar to word2vec or node2vec
Delete Dead Code
Remove unused imports, functions, and variables with confidence.
API Migrations
API Migration Guide
Update API calls, handle breaking changes, and manage bulk updates across your codebase.
SQLAlchemy 1.4 to 2.0
Update SQLAlchemy code to use the new 2.0-style query interface and patterns.
Flask to FastAPI
Convert Flask applications to FastAPI, updating routes and dependencies.
Python 2 to 3
Migrate Python 2 code to Python 3, updating syntax and modernizing APIs.
Code Organization
Organize Your Codebase
Restructure files, enforce naming conventions, and improve project layout.
Improve Modularity
Split large files, extract shared logic, and manage dependencies.
Manage TypeScript Exports
Organize and optimize TypeScript module exports.
Convert Default Exports
Convert between default and named exports in TypeScript/JavaScript.
Testing & Types
unittest to pytest
Convert unittest test suites to pytest’s modern testing style.
Increase Type Coverage
Add TypeScript types, infer types from usage, and improve type safety.
Documentation & AI
Create Documentation
Generate JSDoc comments, README files, and API documentation.
Prepare for AI
Generate system prompts, create hierarchical documentation, and optimize for AI assistance.
Each tutorial includes practical examples, code snippets, and best practices. Follow them in order or jump to the ones most relevant to your needs.
Was this page helpful?
Yes
No
FAQ
Build code agent
Assistant
Responses are generated using AI and may contain mistakes.