Outshift Logo

Code Editor

A powerful code editing component with syntax highlighting, multiple language support, and AI-assisted code generation. Perfect for documentation, tutorials, and collaborative coding environments.

Preview

Code Editor Preview

Installation

Schema & Prompt Control

Conversation

Installation

Instructions

# Initialize HAX in your project
agntcy-hax init

# Add the component
agntcy-hax add artifact code-editor

Usage

The code editor component integrates with AI agents through CopilotKit. Users interact with AI agents through natural language, and the agents automatically create and populate code editors.

Component Setup

Setup

import { HAXCodeEditor, useCodeEditorAction } from "@/hax/artifacts/code-editor";
export function DocumentationPage() {
const [artifacts, setArtifacts] = useState([]);
// Register code editor actions for AI agents
useCodeEditorAction({
addOrUpdateArtifact: (type, data) => {
// Handle code editor updates
}
});
return (
<HAXCodeEditor
language="javascript"
value={codeContent}
/>
);
}

© 2025 Outshift. All Rights Reserved.