Sign inSign up

an open-source complete solution for cross-device, cross-Agent session synchronization, supporting multiple users

Open SourceReports & Dashboards
2026-12-03 13:00 0 views • 0 downloads 0KB
an open-source complete solution for cross-device, cross-Agent session synchronization, supporting multiple users

1. Project Overview

Agent Context Sync

A complete solution for cross-device, cross-Agent session synchronization. Supports multi-user, multi-workspace isolation, based on PostgreSQL backend, and implements Agent startup automatic synchronization through MCP Server.

2. Open Source License

Licensed under MIT

3. Screenshots

Image
Image
Image
Image
Image
Image

4. Feature Overview

Main Features

  • Cross-Agent synchronization
    Hermes / OpenAI Codex / opencode / Reasonix / OpenClaw / WorkBuddy share the same session pool. Each client pullsthe entire session pool(all Agents) and pushes all local-held sessions; A's sessions can be pulled and written to B's local storage; sessions are cross-device continued when only new messages are pushed
  • Sub-agent session folding
    Hermes child agent (delegated task) dialog merges into the main session during synchronization — the main agent and child agent appear as the same session, with child agent messages displaying a "child agent" badge in the session viewer
  • Multi-Tenant
    Multi-user + multi-Workspace isolation, each Workspace has an independent API Key; administrators can manage users, invitation codes, and space metadata, butcannot view the contents of any user's space, sessions, or messages
  • Automatic synchronization
    Incremental pull at startup (automatic push guide on first pairing), followed by periodic automatic synchronization; batch processing to avoid timeouts, single-writer lock safety, and message cross-device idempotent deduplication
  • Quota mechanism
    Based on user session storage limit + Agent whitelist (free / unlimited package), server-side enforcement of new sessions, strategy stored in database (no restart required), with audit logs
  • Web management interface
    Simplified Chinese / English bilingual; overview of information, Workspace management, and unified cross-spaceAll sessionspage, Markdown session viewer, recycle bin, export / import, and management backend
  • Project synchronization
    Hermes project (project list in the sidebar) synchronizes across devices with sessions, with same-name merging + path union
  • Data Security
    One-click export (Markdown / JSON.gz) and import of sessions / workspaces; sessions / messages can be soft deleted (recycle bin can be recovered), pinned sorting, title / content search
  • Integration help
    Built-in integration help page, one-click download of MCP client for Agent (including installation instructions and registration command; key placeholder keeps the key, and the package does not leak), and provides WorkBuddy and Reasonix guide flow (Reasonix desktop version is a JSON plugin registration, including the required env block)
  • Client automatic update
    Client periodically pulls new versions from the server, performs file-by-file verification, and automatically replaces, with the Agent restarting to take effect
  • Open registration
    Registration is open by default, with invitation codes optional; when controlling the quantity, invitation codes can be used (with optional validity period, revocable, and supporting ?code= sharing link)

Supported Agents

Agent

Local Storage

canonical id

Write constraints

Hermes

%LOCALAPPDATA%\hermes (POSIX: ~/.hermes) scans all files: state.db (default) +

 

profiles/<name>/state.db (named files) (SQLite)

Raw IDs (hermes files stored in

 

profile_name

 

columns, belonging to

 

agent_type)

SQLite transactions

OpenAI Codex

~/.codex/sessions/rollout-*.jsonl

bare id

append-only; title needs to be appended

 

session_index.jsonl; codex relies on backfill to perceive new sessions

OpenCode

$XDG_DATA_HOME/opencode/storage/

 

(JSON file)

bare id

.tmp+rename atomic write; foreign sessions are distributed via idmap

 

ses_

 

id

Reasonix

%APPDATA%\reasonix\sessions\*.jsonl

bare id (file name)

append-only; running sessions with lock files are skipped

OpenClaw

~/.openclaw/agents/<id>/agent/openclaw-agent.sqlite

bare id

schema auto-detection (experimental)

WorkBuddy

~/.workbuddy/projects/<slug>/*.jsonl

 

+

 

workbuddy.db

bare id (uuid)

JSONL append + SQLite upsert; cwd directory is automatically created; sessions written need to restart WorkBuddy to appear (MIGRATE scan at startup)

each Agent has its own MCP client instance (HERMES_SYNC_AGENT chosen), all connected to the same Workspace to achieve mutual synchronization. New Agents only need to implement an adapter (see docs/ADDING_AGENT.md), server and sync engine remain unchanged

5. Tech Stack

Quick Start

three-minute access

an open-source project should have this kind of access experience: one command, one configuration

deploy server

one command to deploy on your own server, automatically creates default admin and workspace API Key:
bash deploy-server.sh

configure client

download client package (server address is automatically prefilled) on the help page for your Agent, fill in workspace Key:
export HERMES_SYNC_API_KEY=ws_xxx

restart Agent

automatically incrementally pulls at startup, pushes local data to remote when empty, and synchronizes every 5 minutes thereafter

Web management

open management interface in browser: session viewer (Markdown rendering), one-click export/import, device status at a glance

6. Source Code Repository

Open-source project address:

https://github.com/westsource/agentctxsync

#1
资源直链https://github.com/westsource/agentctxsync
Download

Next steps

Browse similar deployable resources