WZ

williamfzc/zcode-cli

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

0 stars 품질 55 트렌드 8Apache-2.0

Standalone Go CLI는 Chrome DevTools Protocol에서 ZCode 데스크톱 앱 (Electron)을 구동하고 코딩 에이전트와 채팅하고 터미널에서 앱 상태를 검사합니다. cdp2cli로 내장.

개요

- 대상 앱 ZCode 3.11.2 (Electron 41 / Chrome 146), CDP 포트 9227, 실시간 인증 2026-09-10. zcodecli는 로컬 ZCode Electron 앱의 독립 이동 명령행 클라이언트입니다. 그것은 포트 9227에 크롬 DevTools 프로토콜을 통해 응용 프로그램을 구동. 명령을 읽으면 언 window.zcode contextBridge 메소드를 직접 호출합니다. Chat 명령은 실제로 에이전트를 구동 ( 세션 생성, 프롬프트를 보내고, 최종 응답을 수집) 렌더링자의 작업 공간 서비스를 통해, zcodecli는 in-page React Fiber tree를 산책하여 도달합니다. 훅이 설치되지 않고 언 브리지가 결코 감싸지 않습니다. Makefile은 -ldflags="-linkmode=external"를 사용하여 macOS Go linker LC UUID 문제를 방지합니다. 로컬 디버그 포트로 앱을 먼저 시작: Business 명령은 앱을 조용히 재시작하지 않습니다. 디버그 포트가 닫히면 시작을 먼저 실행합니다.

개요(AI 번역)

** cdp2cli로 자동 생성 ** - 대상 앱 ZCode 3.11.2 (Electron 41 / Chrome 146), CDP 포트 9227], 실시간 인증 2026-09-10.

zcodecli는 로컬 ZCode Electron 앱의 독립 이동 명령행 클라이언트입니다. 그것은 포트 9227에 Chrome DevTools 프로토콜을 통해 응용 프로그램을 구동한다.

명령을 읽으려면 언 window.zcode contextBridge 메소드를 직접 호출합니다. Chat 명령은 실제로 에이전트를 구동 ( 세션 생성, 프롬프트를 보내고, 최종 응답을 수집) 렌더링자의 작업 공간 서비스를 통해, 이는 zcodecli] in-page React Fiber tree를 걷기로 도달. 훅이 설치되지 않고 언 브리지가 결코 감싸지 않습니다.

빌드

Makefile은 -ldflags="-linkmode=external"]를 사용하여 macOS Go linker LC_UUID] 문제점을 방지합니다.

개발

사용

로컬 디버그 포트로 앱을 먼저 시작:

Business 명령은 앱을 조용히 재시작하지 않습니다. 디버그 포트가 닫히면 start를 먼저 실행합니다.

채팅 명령 (현재 열린 작업 공간에서 에이전트를 구동):

chat new] 및 chat send]는 에이전트가 차례를 완료하고 최종 응답 텍스트를 인쇄 할 때까지 차단합니다 (만 제출 승인).

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

zcodecli

Auto-generated with cdp2cli — target app ZCode 3.11.2 (Electron 41 / Chrome 146), CDP port 9227, live-verified 2026-09-10.

zcodecli is a standalone Go command-line client for the local ZCode Electron app. It drives the app through Chrome DevTools Protocol on port 9227.

Read commands call the frozen window.zcode contextBridge methods directly. Chat commands actually drive the agent (create sessions, send prompts, and collect the finished reply) through the renderer’s workspace services, which zcodecli reaches by walking the in-page React fiber tree. No hooks are installed and the frozen bridge is never wrapped.

Build

make build

The Makefile uses -ldflags="-linkmode=external" to avoid the macOS Go linker LC_UUID issue.

Development

make fmt
make vet
make test
make build

Use

Start the app with the local debug port first:

./zcodecli start

Business commands do not restart the app silently. If the debug port is closed, run start first.

Chat commands (these drive the agent in the currently open workspace):

./zcodecli chat list
./zcodecli chat show             # most recent messages
./zcodecli chat show  --all       # full history
./zcodecli chat new "reply with the word ok" # create a session, send a prompt, wait for the reply
./zcodecli chat send  "follow up" # continue a session, wait for the reply

chat new and chat send block until the agent finishes its turn and then print the final reply text (not just a submission acknowledgement). A turn that stops on a permission/approval prompt, reports an error, or does not finish within the timeout exits non-zero. Session ids always come from chat list or the chat new output.

Read commands:

./zcodecli status
./zcodecli ssh list
./zcodecli system locale
./zcodecli system device-id
./zcodecli editors list
./zcodecli docker status
./zcodecli docker containers
./zcodecli wsl list
./zcodecli updates status
./zcodecli window state
./zcodecli remote status
./zcodecli desktop activity
./zcodecli community status
./zcodecli explore methods

./zcodecli skill prints the built-in agent guide (compiled into the binary).

Every business command supports --json for single-line JSON. The default output is a human-readable table. Contract mismatches and connection errors exit non-zero.

Stop the debug-enabled app when finished:

./zcodecli stop

Safety

The debug port is a plaintext local control surface for a logged-in application. Keep it closed when not in use. The CLI serializes local CDP operations with a lock and closes its WebSocket after each command.

GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add williamfzc/zcode-cli
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →