mcpField
S
synapse-reinst

synapse-reinst

github.com/s-hiraokuAgent workflows17233 installsUpdated 2w ago
Repository

About synapse-reinst

synapse-reinst is a recovery skill for Synapse A2A agents whose identity or instructions were lost after a context reset. Its script rebuilds the agent’s configuration from startup environment variables and project settings.

Key features

  1. 01Restore agent identity after context reset
  2. 02Read Synapse startup environment variables
  3. 03Look up agent role in registry
  4. 04Load instruction template from settings

Use cases

  1. 01Recover Synapse commands after /clear
  2. 02Restore A2A communication after instructions are cleared

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/s-hiraoku/synapse-a2a --skill synapse-reinst

After installing, type/synapse-reinstin Claude Code to confirm it loaded.

Bundled filesscripts/reinst.py

Details

From the project README

Synapse Re-Instruction

Restore Synapse A2A agent identity and instructions after /clear or context reset.

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

Usage

Run the reinst script to output your full Synapse instructions:

# From the source tree
python plugins/synapse-a2a/skills/synapse-reinst/scripts/reinst.py

# From a synced or installed skill copy
cd .claude/skills/synapse-reinst && python 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.

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

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

Comments

Markdown supported