Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By lycfyiv0.1.0MITIn 1 marketplace
Several sessions on one topic see each other's decisions: each session records what the person decided, and the next prompt in another session on that topic carries it
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; writes files; reads files; reads environment variables (HOME, SESSION_SYNC_AUTO); calls a model on your account; reads or rewrites your prompts; sends prompts on its own; changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
When you run several Claude Code sessions at once, two of them often work on the same thing. One session settles a question; the other does not know and goes on with the old answer. session-sync lets sessions on one topic see each other's decisions. It runs only when you send a message, and it makes no model call of its own in the normal case.
The words the model reads are in Chinese (the author's working language).
All state is local, under ~/.claude/session-sync/. Each session writes only its own files, so two
sessions never write the same file:
| File | Holds |
|---|---|
log/<session>.jsonl | Topics the session joined, decisions recorded there, files it edited, and (once on a topic) what you said |
seen/<session>.json | How far this session has been shown the other sessions' entries |
Nothing goes into git. Worktrees sit on different branches, so a file in git reaches another session only after a commit, a push and a pull.
Write. The model gets three tools, listed up front:
mcp__session-sync__topic: join a topic. It returns the sessions already on it and what they
recorded.mcp__session-sync__decision: record a line on a topic: you decided (decided), you overturned
something (overturned), the agent proposed (proposed), or a convergence result (converged),
with your own words.mcp__session-sync__read: read a topic in full, for convergence.A short system-prompt section tells the model when to call them.
Fallback. When a turn ends, you seemed to settle something (you answered a question, or your reply starts with words such as "好", "就这样", "改成", "选 B", "ok", "lgtm"), the session is on a topic, and nothing was recorded, the mod forks the session once over its warm prompt cache and records what the fork finds.
Read. When you send a message, the prompt carries, beside your words:
The main model of the session judges whether a decision conflicts. It holds the whole session, so no second model call is needed.
Converge. Say "收敛一下 " or run /converge <topic>. The model reads the topic, lists
what agrees, what disagrees (both sides' words and session ids) and what only one session discussed,
asks you about each disagreement, and records the result as converged. The other sessions see it
at their next message.
Each session also has one state, in ~/.claude/session-sync/inbox/<session>.json:
| State | When |
|---|---|
| working | you sent a message |
| waiting | the agent answered and stopped; the first line of its answer is kept |
| snoozed | you typed /snooze 2h (also 30m, 1d, 明早, 今晚, 下午, 15:30; default 2h). At that time it turns back to waiting, with a notification |
| done | you typed /done. The agent first writes one closing line (result, PR, what is left). /done <note> uses your note instead. A new message reopens the session |
/inbox lists the sessions of the last 7 days: the ones waiting for you, the one that waited
longest first, each with its place, last line and claude --resume <id>; then the snoozed ones and
the ones still working. Done sessions are only counted.
Set SESSION_SYNC_AUTO=0 (for example in the env block of ~/.claude/settings.json) and start a
new session. Then:
/converge, and the inbox (/done, /snooze, /inbox).claude -p and the SDK (cron jobs among them) take no part./plugin marketplace add lycfyi/yskills
/plugin install session-sync@yskills
Or link mods/session-sync to ~/.claude/skills/session-sync. Install it one way only.
claude plugin validate mods/session-sync && claude plugin test mods/session-sync
The logic without $ is in hooks/lib.ts, and most tests call it directly.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub lycfyi/yskills --plugin session-syncPlugins from other owners that cover similar ground