Skip to content
cccskills
FreePublished on GitHub

global-sync

Use for multi-machine HTTP delta sync with peer management.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md3.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Global State Sync

Multi-Machine State Synchronization für OpenAmer.

Überblick

Global State Sync synchronisiert OpenAmer-Zustände (Skills, Cron, Scripts, Config, Sessions) zwischen mehreren Maschinen über HTTP. Nur geänderte Dateien seit dem letzten Sync werden übertragen (Delta-Only). Bei Timestamp-Konflikten gewinnt die neuere Version; die verlierende Version wird in .global-sync/conflicts/ gespeichert.

Architektur

+-------------------+          HTTP POST /sync           +-------------------+
|  Maschine A       |  ──────────────────────────────►   |  Maschine B       |
|  Port 8902        |  JSON-Delta + SHA256-Signatur      |  Port 8902        |
|  Sync-Thread 60m  |  ◄──────────────────────────────   |  Sync-Thread 60m  |
+-------------------+          JSON-Delta + Signatur     +-------------------+

Installation

Das Script liegt unter scripts/global-sync.py (OpenAmer Home) und wird via Config in .global-sync/config.json gesteuert.

Verwendung

# Status anzeigen
python scripts/global-sync.py --status

# Peer hinzufügen
python scripts/global-sync.py --add-peer mein-server 192.168.1.100:8902

# Sofort syncen
python scripts/global-sync.py --sync-now

# Server starten (Daemon-Modus)
python scripts/global-sync.py --start

# Peer-Liste anzeigen
python scripts/global-sync.py --peers

# Neues Token setzen
python scripts/global-sync.py --token MEIN_NEUES_SICHERES_TOKEN

Konfiguration

.global-sync/config.json:

{
  "peers": [
    {"name": "server1", "host": "192.168.1.100", "port": 8902}
  ],
  "sync_interval_minutes": 60,
  "sync_items": ["skills", "cron", "scripts", "config", "sessions"],
  "token": "DEIN_SICHERES_TOKEN",
  "server_port": 8902
}

sync_items

  • skills — OpenAmer Skills
  • cron — Cron-Job-Definitionen
  • scripts — Python-Scripte
  • config — config.yaml
  • sessions — Session-Dumps

Sicherheit

  • Jeder Request enthält einen SHA256-HMAC über den Body.
  • Der Shared-Token wird in der Config gespeichert.
  • Nur der SHA256-Hash des Tokens wird im Header übertragen.
  • Port 8902 sollte hinter einer Firewall liegen.

Konfliktlösung

BedingungErgebnis
Remote neuer als lokalRemote-Version überschreibt lokale
Lokal neuer als remoteLokale Version bleibt; Remote in .global-sync/conflicts/
Gleicher TimestampRemote gewinnt (idempotent)

Dateien

PfadBeschreibung
~/.global-sync/config.jsonSync-Konfiguration
~/.global-sync/conflicts/Konflikt-Dateien
~/.global-sync/last_sync.txtTimestamp des letzten Syncs
scripts/global-sync.pyHauptscript

Cron-Job

Ein Cron-Job führt --sync-now alle 60 Minuten aus.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Build integrated IS/BS/CF financial workbooks in Excel.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

Use for A/B experiments on OpenAmer configs and skills.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

Roleplay a hostile user to find and triage UX pain points.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 20, 2026

See all skills by openamer

Report a problem with this skill