The .codegen
directory contains your project’s Graph-sitter configuration, codemods, and supporting files. It’s automatically created when you run gs init
.
The directory is created and managed using the gs init
command:
Graph-sitter maintains its own virtual environment in .codegen/.venv/
to ensure consistent package versions and isolation from your project’s dependencies. This environment is:
uv
for fast, reliable package managementThe environment is created during gs init
and used by commands like gs run
and gs notebook
.
.codegen/.venv
The .env
file stores your project settings:
This configuration is used by Graph-sitter to provide language-specific features and proper repository context.
Graph-sitter automatically adds appropriate entries to your .gitignore
:
.codegen/codemods/
and config.toml
are tracked in GitThe codemods/
directory is where your transformation functions live. You can create new codemods using:
This will:
.codegen/codemods/
.codegen/prompts/
(if using --description
)Use gs list
to see all codemods in your project.
The jupyter/
directory contains notebooks for interactive development:
A default notebook is created during initialization to help you explore your codebase.
After initializing your .codegen
directory:
The .codegen
directory contains your project’s Graph-sitter configuration, codemods, and supporting files. It’s automatically created when you run gs init
.
The directory is created and managed using the gs init
command:
Graph-sitter maintains its own virtual environment in .codegen/.venv/
to ensure consistent package versions and isolation from your project’s dependencies. This environment is:
uv
for fast, reliable package managementThe environment is created during gs init
and used by commands like gs run
and gs notebook
.
.codegen/.venv
The .env
file stores your project settings:
This configuration is used by Graph-sitter to provide language-specific features and proper repository context.
Graph-sitter automatically adds appropriate entries to your .gitignore
:
.codegen/codemods/
and config.toml
are tracked in GitThe codemods/
directory is where your transformation functions live. You can create new codemods using:
This will:
.codegen/codemods/
.codegen/prompts/
(if using --description
)Use gs list
to see all codemods in your project.
The jupyter/
directory contains notebooks for interactive development:
A default notebook is created during initialization to help you explore your codebase.
After initializing your .codegen
directory: