Codegen home page
Search...
⌘K
Ask AI
Codegen
Codegen
Search...
Navigation
Building with Codegen
Building with Codegen
Documentation
API Reference
CLI
Blog
Changelog
Introduction
Overview
Getting Started
Installation
IDE Usage
AI Integration
How it Works
Principles
Community
About Us
FAQ
Tutorials
At a Glance
API Migration
Organization
Modularity
Dead Code
Type Coverage
Mining Data
Feature Flags
Export Management
Default Export Conversion
Documentation
React Modernization
Unittest to Pytest
SQLAlchemy 1.6 to 2.0
Python 2 to 3
Flask to FastAPI
Building with Codegen
At a Glance
Parsing Codebases
Reusable Codemods
.codegen Directory
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
LLM Integration
Reducing Conditions
On this page
Core Concepts
Navigating the Code Graph
Code Manipulation
Special Features
Building with Codegen
Building with Codegen
Learn how to use Codegen’s core APIs to analyze and transform code.
Core Concepts
Parsing Codebases
Understand how Codegen parses and analyzes different programming languages.
Files & Directories
Learn how to work with files, directories, and navigate the codebase structure.
The Editable API
Learn how to safely modify code while preserving formatting and comments.
Symbols, Functions and Classes
Master the core abstractions for manipulating code safely and effectively.
Navigating the Code Graph
Dependencies & Usages
Analyze relationships between code elements and track symbol references.
Function Calls & Callsites
Understand function call patterns and manipulate call sites.
Imports
Work with module imports and manage dependencies.
Traversing the Call Graph
Navigate function call relationships and analyze code flow.
Code Manipulation
Moving Symbols
Relocate functions, classes, and other symbols while updating references.
Statements & Code Blocks
Work with code blocks, control flow, and statement manipulation.
Variable Assignments
Handle variable declarations, assignments, and scope.
Collections
Work with groups of related code elements like functions, classes, and imports.
Special Features
React & JSX
Work with React components, JSX syntax, and component transformations.
Local Variables
Analyze and manipulate local variable usage and scope.
Calling Out to LLMs
Integrate AI assistance into your code transformations.
Codebase Visualization
Visualize code relationships and dependencies.
Each guide includes practical examples and best practices. Start with core concepts or jump directly to the topics most relevant to your needs.
Flask to FastAPI
Parsing Codebases
Assistant
Responses are generated using AI and may contain mistakes.