dsh-lcu
开发工具 活跃维护

dsh-lcu

kinocode-jp/dsh-lcu

LCU (Codex computer use) for DeepSeek Harness: macOS app control with an approval dialog, via an MCP adapter.

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
13 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:kinocode-jp/dsh-lcu
git clone https://github.com/kinocode-jp/dsh-lcu.git
git clone git@github.com:kinocode-jp/dsh-lcu.git
README.md main

@kinocode/dsh-lcu

日本語 | English

LCU (Codex computer use, decoupled from the Codex app) as a
DeepSeek Harness plugin. The agent gets
mcp__lcu__js / mcp__lcu__js_reset to read and operate native macOS apps.

DSH's stock dsh-mcp-client cannot answer LCU's per-app approval requests (MCP elicitation), so a plain
MCP mount fails with createElicitation is unavailable. This plugin launches LCU behind a small adapter
(lib/adapter.mjs) that handles approval.

Requirements

  • macOS (Apple Silicon) with the official ChatGPT desktop app installed
  • LCU installed, e.g. ~/.local/share/lcu (installation guide); --runtime-only is enough
  • macOS permissions: Accessibility (ChatGPT Computer Use) and Screen Recording (ChatGPT)

Install

dsh plugin --profile desktop add @kinocode/dsh-lcu

Restart DSH and start a new session. Other LCU location: set prefix (below) or LCU_PREFIX.

Approval modes

Set in your profile patch:

- id: lcu
  config:
    approval: ask      # ask (default) | all | deny
approval Behavior
ask A macOS dialog asks you: Deny / Allow this time / Always allow (Touch ID, same as lcu apps allow). Closed, timed out, or answered faster than a human → denied
all Approve every app without asking
deny Always deny

In every mode the adapter refuses apps the agent could use to approve itself: DSH, terminals, Claude,
osascript / System Events. Other config: prefix, toolCallTimeoutMs.

What the adapter does

  • Exposes only js and js_reset (host-only tools such as turn_ended are hidden)
  • Saves screenshots as files under $TMPDIR/dsh-lcu-shots/ and returns the path (view with read_image),
    because the MCP client turns images into placeholders
  • Reconnects to LCU on the next call if it exits

Safety

all lets the agent operate any app, including browsers and password managers. Prefer ask.
This is an unofficial community plugin; it is not affiliated with OpenAI or amontlabs. The ChatGPT app and
its runtime keep their own terms; this package contains neither.

License

MIT