Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xsline OpenChatCut Claude Code Agent

From Leeroopedia
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