codegen init
.codegen/.venv
. Configure your IDE to use this environment for the best development experience.
VSCode, Cursor and Windsurf
.vscode/settings.json
:PyCharm
Settings
> Feature
> MCP Servers
section, click “Add New MCP Server” and add the following:
Settings
> Features
> Docs
and then click on Add new docs
. We recommend using this url to index the API reference:
-d --description
will get an LLM expert to compose an initial version for you. This requires a Github account registered on codegen.sh.codegen/codemods/organize_types/
system-prompt.txt
based on your taskcodegen init
, you will receive a system prompt optimized for AI consumption at .codegen/codegen-system-prompt.txt
.
If you reference this file in “chat” sessions with Copilot, Cursor, Cody, etc., the assistant will become fluent in Codegen.
.codegen/codemods/{name}/{name}-system-prompt.txt
. This prompt contains:
.codegen/.venv/bin/python path/to/codemod.py
or via your editor’s debugger