Skip to main content

Code Mode

Code Mode provides AI-powered code generation and editing capabilities for agents.

Installation

Quick Start

1

Simple Usage

2

With Configuration

Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.

Configuration

Usage Examples

Generate Code

Edit Existing Code

Input/Output Types

Environment Variables

Code Execution

Execute code

Custom Tools

Create custom tools