synapse-reinst
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSynapse Re-Instruction
Synapse 指令重注入
Restore Synapse A2A agent identity and instructions after or context reset.
/clear在执行或上下文重置后,恢复Synapse A2A Agent的身份与指令。
/clearWhen to Use
使用场景
- After running (or equivalent context reset)
/clear - 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.pyThe script reads environment variables set by Synapse at startup (, , ) which persist even after .
SYNAPSE_AGENT_IDSYNAPSE_AGENT_TYPESYNAPSE_PORT/clear运行重注入脚本以输出完整的Synapse指令:
bash
python plugins/synapse-a2a/skills/synapse-reinst/scripts/reinst.py该脚本会读取Synapse在启动时设置的环境变量(、、),这些变量即使在执行后也会保留。
SYNAPSE_AGENT_IDSYNAPSE_AGENT_TYPESYNAPSE_PORT/clearInstructions
操作步骤
- Run the script above
- Read the output carefully — it contains your full Synapse A2A configuration
- Follow the instructions as if they were just sent to you
- Resume normal operation with A2A communication enabled
- 运行上述脚本
- 仔细阅读输出内容——其中包含完整的Synapse A2A配置信息
- 按照输出中的指令操作,就像刚收到这些指令一样
- 恢复启用A2A通信的正常操作
How It Works
工作原理
The script:
- Reads Synapse environment variables (set at agent startup, survives )
/clear - Looks up your name/role from the agent registry
- Loads your instruction template from
.synapse/settings.json - Outputs the complete instruction with all placeholders replaced
该脚本:
- 读取Synapse环境变量(在Agent启动时设置,可在后保留)
/clear - 从Agent注册表中查找你的名称/角色
- 从加载指令模板
.synapse/settings.json - 输出替换所有占位符后的完整指令