← 返回
数据分析 中文

Nerve Bridge Skill

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 com...
通过 macOS AppleScript 实现对 Trae 的双向控制,内置反馈机制。适用于需要在 Trae IDE 中执行代码/命令并等待其完成。
88901111hz-lang
数据分析 clawhub vv1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,042
下载
💾 18
安装
1
版本
#automation#latest#macos#trae

概述

Nerve Bridge (v2)

Direct neural link to Trae with closed-loop feedback via macOS AppleScript.

Quick Start

Send instruction and wait for confirmation:

python3 nerve_bridge.py "<instruction>"

Example:

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
  1. 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:

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

版本历史

共 1 个版本

  • vv1.0.0 当前
    2026-03-29 08:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 57,003
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,106
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,181