返回顶部
n

nerve_bridge

Bi-directional control of Trae via macOS AppleScript with built-in feedback mechanism. Use when needing to execute code/commands in Trae IDE and wait for completion confirmation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V v1.0.0
安全检测
已通过
577
下载量
0
收藏
概述
安装方式
版本历史

nerve_bridge

# Nerve Bridge (v2) Direct neural link to Trae with closed-loop feedback via macOS AppleScript. ## Quick Start Send instruction and wait for confirmation: ```bash python3 nerve_bridge.py "<instruction>" ``` Example: ```bash python3 nerve_bridge.py "Create a new Python file and add a simple 'Hello World' function. After creating, add a print statement to test it." ``` ## How It Works 1. **Signal Injection**: - Payload is copied to system clipboard via `pbcopy` - AppleScript activates Trae and simulates: Space (wake) → Delete → Cmd+V → Enter 2. **Feedback Loop**: - Instruction must include a Python hook that writes to `~/.openclaw/workspace/trae_feedback.json` when done - Script waits up to 5 minutes (300 seconds) for the signal file - Returns JSON feedback when received ## Required Hook Pattern When crafting instructions, include this pattern at the end: ```python import json, time with open("~/.openclaw/workspace/trae_feedback.json", "w") as f: json.dump({"status": "success", "timestamp": time.time()}, f) ``` ## Environment - **Platform**: macOS only - **Dependencies**: System Python (`python3`), AppleScript (`osascript`) - **Permissions**: System Events and Terminal must have "Accessibility" permissions - **Output File**: `~/.openclaw/workspace/trae_feedback.json` (created by the script) ## Troubleshooting - **No output from Trae**: Check if Trae window is active and input is focused - **Timeout**: Trae didn't complete within 5 minutes - **Permission denied**: macOS may need to grant Terminal System Events permission

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 nerve-bridge-skill-1776420092 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 nerve-bridge-skill-1776420092 技能

通过命令行安装

skillhub install nerve-bridge-skill-1776420092

下载 Zip 包

⬇ 下载 nerve_bridge vv1.0.0

文件大小: 3.2 KB | 发布时间: 2026-4-17 20:09

vv1.0.0 最新 2026-4-17 20:09
Bi-directional control of Trae with feedback mechanism via AppleScript

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部