synapse-reinst

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Synapse Re-Instruction

Synapse 指令重注入

Restore Synapse A2A agent identity and instructions after
/clear
or context reset.
在执行
/clear
或上下文重置后,恢复Synapse A2A Agent的身份与指令。

When to Use

使用场景

  • After running
    /clear
    (or equivalent context reset)
  • When the agent no longer recognizes Synapse commands
  • When A2A communication has stopped working
  • After any event that clears the agent's initial instructions
  • 执行
    /clear
    (或等效的上下文重置操作)之后
  • 当Agent不再识别Synapse命令时
  • 当A2A通信停止工作时
  • 在任何清除Agent初始指令的事件发生后

Usage

使用方法

Run the reinst script to output your full Synapse instructions:
bash
python plugins/synapse-a2a/skills/synapse-reinst/scripts/reinst.py
The script reads environment variables set by Synapse at startup (
SYNAPSE_AGENT_ID
,
SYNAPSE_AGENT_TYPE
,
SYNAPSE_PORT
) which persist even after
/clear
.
运行重注入脚本以输出完整的Synapse指令:
bash
python plugins/synapse-a2a/skills/synapse-reinst/scripts/reinst.py
该脚本会读取Synapse在启动时设置的环境变量(
SYNAPSE_AGENT_ID
SYNAPSE_AGENT_TYPE
SYNAPSE_PORT
),这些变量即使在执行
/clear
后也会保留。

Instructions

操作步骤

  1. Run the script above
  2. Read the output carefully — it contains your full Synapse A2A configuration
  3. Follow the instructions as if they were just sent to you
  4. Resume normal operation with A2A communication enabled
  1. 运行上述脚本
  2. 仔细阅读输出内容——其中包含完整的Synapse A2A配置信息
  3. 按照输出中的指令操作,就像刚收到这些指令一样
  4. 恢复启用A2A通信的正常操作

How It Works

工作原理

The script:
  1. Reads Synapse environment variables (set at agent startup, survives
    /clear
    )
  2. Looks up your name/role from the agent registry
  3. Loads your instruction template from
    .synapse/settings.json
  4. Outputs the complete instruction with all placeholders replaced
该脚本:
  1. 读取Synapse环境变量(在Agent启动时设置,可在
    /clear
    后保留)
  2. 从Agent注册表中查找你的名称/角色
  3. .synapse/settings.json
    加载指令模板
  4. 输出替换所有占位符后的完整指令