Implementation:0xsline OpenChatCut Claude Code Agent
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Agent, HTTP |
| Last Updated | 2026-10-22 14:00 GMT |
Overview
Claude Code agent plugin that manages Claude Code SDK turns, model listing, and tool result settlement via HTTP endpoints.
Description
The Claude Code Agent plugin provides HTTP endpoints for Claude Code agent integration. It manages model listing, turn streaming, and tool result submission. Uses the Claude Code SDK for agent communication.
Usage
- Agent turns:*** HTTP streaming endpoint for starting Claude Code conversation turns.
Code Reference
Source Location
- Repository:*** OpenChatCut
- File:*** server/plugins/claude-code-agent.ts
- Lines:*** 1-295
Signature
export const claudeCodeAgentPlugin: Plugin;
Import
import { claudeCodeAgentPlugin } from './plugins/claude-code-agent.ts';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| request | object | Yes | Turn request with prompt |
Outputs
| Name | Type | Description |
|---|---|---|
| stream | SSE | Server-sent events with turn events |
Usage Examples
Starting a Claude Code Turn
// POST /api/claude-code/turn
// Body: { prompt: "Edit clip 1", tools: [...] }
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment