Advanced customization
The Code Editor provides direct access to your agent’s underlying code for precise customization beyond natural language descriptions.
File structure overview
src/ : Main source directory
components/ : UI components
pages/ : Interface files
styles/ : CSS files
config/ : Behavior configuration
index.tsx : Main entry point
components/*.tsx : UI components
styles/globals.css : Global styling
config/agent.json : Core configuration
Incorrect changes can affect functionality. Consider duplicating your agent before making significant modifications.
Basic operations
Access editor
Click “Code” or “Code Editor” from your agent’s dashboard.
Browse files
Use the file tree on the left to select files.
Edit code
Make changes in the editor with syntax highlighting.
Save work
Click “Save” or press Ctrl+S (Cmd+S on Mac).
Test changes
Use “Test Agent” to verify behavior.
Common customizations
// Example: Customizing the welcome message in index.tsx
export default function Home () {
return (
< div >
< h1 > Hello World </ h1 >
< p > Welcome to my application </ p >
</ div >
);
}
Start with small changes and test frequently to ensure your agent continues functioning as expected.