Skip to main content

Cross-engineer Claude Code context sharing — type /share, your teammate queries your context.

Project description

teammate-sync

Cross-engineer Claude Code context sharing. Your teammate types /share in their Claude Code session. From your own terminal, your Claude can ask theirs anything and gets back a cited answer in seconds.

No pasted transcripts. No GitHub pushes. No shared bucket setup.


The problem

You and your teammate are both using Claude Code on the same project. You need to know what they decided about the database schema, or which file they touched, or why they picked one library over another.

Today, two bad options:

  1. Ping them on Slack and wait. Forty-five minutes of context-switching.
  2. Get them to send their session transcript. Their .jsonl is 50k lines. You paste it into your Claude and immediately blow past the 200k token context window.

teammate-sync is the third option: their Claude becomes a queryable context server. Your Claude calls it, gets back a cited synthesis, your context window stays clean.

Install

pip install teammate-sync
teammate-sync init
teammate-sync daemon

That's it. Full setup walkthrough: INSTALL.md.

init opens GitHub OAuth (your workspace = your GitHub org, no separate account), installs the /share slash commands into ~/.claude/commands/, wires session lifecycle hooks into ~/.claude/settings.json, and registers the MCP server. daemon runs in the foreground in a terminal you leave open.

How sharing works

/share                              in any Claude Code session

Daemon log immediately prints share-mode ACTIVATED -> uploading. That session's .jsonl plus your CLAUDE.md start syncing to your team's backend in real time as you work.

/unshare                            same session

Daemon wipes that session's content from the backend immediately.

/shared                             any session

Lists which sessions are currently shared.

How teammates query you

From any Claude Code session in your org, your teammate types:

Use mcp__teammate-sync__query_teammate_context with teammate=<your-github-handle> and question="..."

The MCP server pulls your active-session state + your shared session transcripts, hands them to a Claude Sonnet synthesis call, and returns a cited answer. Citations point to specific session IDs and file names so they can verify.

Privacy model

Default: nothing is shared. The daemon is running but idle.

  • Sessions are opted in one at a time via /share. Unshared sessions never leave your machine, no matter how many you have running.
  • Your GitHub OAuth token sits in ~/.teammate-sync/auth.json (mode 0600) and is never in the synced tree.
  • Your org is the unit of trust. Only members of your GitHub org can query you. Discovery happens via the GitHub API, no manual invites.

What syncs where

Path What it holds Synced to cloud?
~/.teammate-sync/auth.json Your GitHub OAuth token NEVER (local only)
~/.teammate-sync/state/.shared-sessions.json List of currently-shared session IDs No (local gate)
~/.teammate-sync/state/.active-sessions.json Which sessions are active right now (cwd, last activity) Yes
~/.claude/projects/<encoded-cwd>/<sid>.jsonl Claude Code session transcripts Only /share'd ones

CLI

teammate-sync init First-run setup. Re-runnable to refresh hooks / slash commands.
teammate-sync daemon Run the sync daemon (foreground).
teammate-sync share / unshare / shared Same as the slash commands, from any shell.
teammate-sync whoami Show your identity + workspace.
teammate-sync teammates List members of your workspace org.
teammate-sync logout Delete ~/.teammate-sync/auth.json.

Requirements

  • Python 3.11+
  • Claude Code CLI
  • ANTHROPIC_API_KEY exported in your shell (used by the MCP server's synthesis calls)

Status

Public beta. Backend runs on Fly.io (Singapore region, single-region by design — synthesis latency is dominated by Anthropic API not by storage). Per-session opt-in (/share / /unshare) is the privacy model; there is no "everything sync" mode and there won't be.

License

MIT — see LICENSE if present, or pyproject.toml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teammate_sync-0.1.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teammate_sync-0.1.0-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file teammate_sync-0.1.0.tar.gz.

File metadata

  • Download URL: teammate_sync-0.1.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for teammate_sync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06c5442e6a39785bfab906803728411f82dd1abe5e2f216a3749bf1f3e1396b9
MD5 cc170291b5b304569a335ba91d874a32
BLAKE2b-256 bab11d1eb57ecc881f353a7c4d891acc118f29ff0f2262c7a4e7b0a73941f603

See more details on using hashes here.

File details

Details for the file teammate_sync-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: teammate_sync-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for teammate_sync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 686a52903de895c3212d1d86ace0c185e555e79d7897022dd32f645d272eb16d
MD5 e91faf0cd4b5721770d9afa20550db6e
BLAKE2b-256 a60a0a98e0058c6a4fd921aacd68a4c42c8120932bd0b95d17792f558084576a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page