Codegen home page
Search...
⌘K
Ask AI
GitHub
GitHub
Search...
Navigation
Building with Codegen
Building with Codegen
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
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.
Was this page helpful?
Yes
No
Code Attributions
Parsing Codebases
Assistant
Responses are generated using AI and may contain mistakes.