← 返回
开发者工具 中文

occ

Control OpenCode to execute development tasks. Provides session management and task execution capabilities.
控制 OpenCode 执行开发任务,提供会话管理与任务执行功能。
gongxh13
开发者工具 clawhub v0.1.0 1 版本 99813.1 Key: 无需
★ 0
Stars
📥 534
下载
💾 6
安装
1
版本
#latest

概述

OCC (OpenCode Controller)

Control OpenCode to execute development tasks via CLI.

When to Use

Use this skill when:

  • You want to delegate coding tasks to OpenCode
  • You need to control OpenCode from external systems (like OpenCLAW)
  • You want to automate development workflows

Quick Start

Prerequisites

OpenCode CLI must be installed and available in PATH.

Workflow

Step 1: Choose Working Directory

⚠️ Important: Run the script in the directory where you want OpenCode to work. The session will be created in the current directory.

Step 2: Decide Session Mode

  • New session: Use create command (creates session only, then use continue to execute task)
  • Continue existing session: Use continue command (session ID provided by caller)

Step 3: Run Command

# Query existing sessions
node skills/occ/scripts/bin/opencode-server.js query

# Create a new session
node skills/occ/scripts/bin/opencode-server.js create "Create a React login page"

# Continue a session
node skills/occ/scripts/bin/opencode-server.js continue <session-id> "Add password reset"

How It Works

The script automatically handles OpenCode Server:

  1. Port Detection: Scans ports 4096-4200 to find an existing OpenCode Server
  2. Auto-Start: If no server is found, automatically starts a new one
  3. Session Management: Creates and manages development sessions through OpenCode's session API

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-19 21:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,260
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,809
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,250