A VSCode extension for Codegen that allows you to create and manage async code agents directly from your editor.
π€ Agent Management
- View your recent agent runs in a dedicated sidebar
- Create new agents with custom prompts
- Monitor agent status with real-time updates
- Open agent runs in your browser
π Authentication
- Secure token-based authentication
- Organization support
- Easy login/logout commands
β‘ Real-time Updates
- Auto-refresh agent runs every 30 seconds
- Manual refresh capability
- Status indicators with color coding
- Install the extension from the VSCode Marketplace (coming soon)
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run
Codegen: Loginto authenticate with your Codegen account - Start creating and managing agents!
- Login: Use
Codegen: Logincommand or click the login button in the welcome view - Logout: Use
Codegen: Logoutcommand when needed
- Click the "+" button in the Codegen sidebar
- Enter your agent prompt (e.g., "Fix the bug in the login component")
- The agent will be created and you can monitor its progress
- All your recent agent runs appear in the Codegen sidebar
- Click on any agent run to open it in your browser
- Status indicators show the current state:
- π’ Complete
- π΅ Running (animated)
- π΄ Failed
- π‘ Pending
You can customize the extension behavior in VSCode settings:
{
"codegen.apiEndpoint": "https://api.codegen.com",
"codegen.autoRefresh": true,
"codegen.refreshInterval": 30
}Codegen: Login- Authenticate with CodegenCodegen: Logout- Sign out from CodegenCodegen: Show Agent Runs- Open the Codegen sidebarCodegen: Create New Agent- Create a new agent with a promptCodegen: Refresh Agent Runs- Manually refresh the agent list
- VSCode 1.74.0 or higher
- A Codegen account (sign up at codegen.com)
- API token from your Codegen dashboard
Most people will use this extension in development mode. Here's how to set it up:
-
Clone the repository
git clone https://github.com/codegen-sh/codegen-ide.git cd codegen-ide -
Install dependencies
npm install
-
Open in VSCode
code . -
Launch Extension Development Host
- Important: Make sure you have
src/extension.tsopen in the editor - Press
F5or go to Run β Start Debugging - This opens a new VSCode window with the extension loaded
- You can also use
Ctrl+Shift+Pβ "Debug: Start Debugging"
- Important: Make sure you have
-
Test the extension
- In the new VSCode window, open the Command Palette (
Ctrl+Shift+P) - Run
Codegen: Loginto authenticate - The Codegen sidebar should appear in the Activity Bar
- In the new VSCode window, open the Command Palette (
- Hot Reload: The extension automatically reloads when you make changes
- Debugging: Set breakpoints in your TypeScript code and they'll work in the Extension Development Host
- Console Logs: Check the Debug Console in the main VSCode window for extension logs
- Restart Extension: Use
Ctrl+Shift+Pβ "Developer: Reload Window" in the Extension Development Host
# Compile TypeScript (one-time) npm run compile # Watch mode (auto-compile on changes) npm run watch # Run tests npm test # Lint code npm run lint # Package extension for distribution npm run package
The project includes pre-configured launch settings in .vscode/launch.json:
- Run Extension: Launches the extension in a new VSCode window
- Extension Tests: Runs the test suite
- Attach to Extension Host: For debugging running extensions
- If F5 fails: Make sure you have
src/extension.tsopen and runnpm run compilefirst - Extension Host Logs: Check the Output panel β "Log (Extension Host)"
- Developer Tools: Use
Help β Toggle Developer Toolsin the Extension Development Host - Reload Extension:
Ctrl+Rin the Extension Development Host to reload after changes - TypeScript Errors: Run
npm run compileto check for compilation issues
# Full build process npm install npm run compile npm test npm run package
We welcome contributions! Please see our contributing guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- π Documentation
- π¬ Discord Community
- π Report Issues
- π§ Email Support
Made with β€οΈ by the amazing Codegen team
- Install the extension from the VSCode Marketplace
- Run
Codegen: Loginfrom the Command Palette - Start creating agents from the sidebar!