Metadata-Version: 2.5
Name: crossby
Version: 0.67.1
Summary: CROSSBY — Cross-platform Bridge for Your AI agents
Project-URL: Homepage, https://github.com/ivanviragine/crossby
Project-URL: Repository, https://github.com/ivanviragine/crossby
Author: Ivan Viragine
License-Expression: MIT
License-File: LICENSE
Keywords: ai,bridge,cli,cross-platform,tools
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: jsonschema<5,>=4.23
Requires-Dist: pexpect<5,>=4.9; sys_platform != 'win32'
Requires-Dist: pydantic-settings>=2.0
Requires-Dist: pydantic>=2.0
Requires-Dist: pyte<0.9,>=0.8.2; sys_platform != 'win32'
Requires-Dist: pyyaml>=6.0
Requires-Dist: questionary<3.0,>=2.0
Requires-Dist: rich>=13.0
Requires-Dist: structlog>=24.0
Requires-Dist: tomli-w>=1.0
Requires-Dist: typer<0.26,>=0.12
Provides-Extra: claude-sdk
Requires-Dist: claude-agent-sdk==0.2.165; extra == 'claude-sdk'
Provides-Extra: copilot-sdk
Requires-Dist: github-copilot-sdk==1.0.21; extra == 'copilot-sdk'
Provides-Extra: dev
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Requires-Dist: types-pyyaml>=6.0; extra == 'dev'
Description-Content-Type: text/markdown

# crossby

**Write your AI-tool setup once. Reuse it, focus it, and carry it between coding agents.**

`crossby` is a local interoperability layer for AI coding agents. You keep writing your rules, subagents, skills, permissions, hooks, and MCP servers in whatever format your main tool already uses — and crossby handles three jobs on top of that:

- **Reuse one configuration across compatible agents.** One `crossby sync` translates your setup into each tool's native format, so a new CLI inherits it instead of starting blank. Direct sync targets are **Claude, Cursor, Copilot, Codex, and Antigravity CLI**.
- **Focus an agent on a task-shaped set of capabilities.** A **scene** narrows the installed tools down to just the skills, agents, MCP servers, hooks, and permissions a task needs — persistently, or for a single launch.
- **Carry a live session to another agent.** `crossby handoff` summarizes your current transcript and continues it in another tool, so you never re-explain what you were doing.

```console
$ crossby sync --from claude

✓  rules         CLAUDE.md          →  AGENTS.md, .cursorrules, +1 more
✓  agents        .claude/agents/    →  .cursor/agents/, .codex/agents/, +2 more
✓  skills        .claude/skills/    →  .cursor/skills/, .agents/skills/, +2 more
✓  permissions                      →  translated for Cursor
✓  hooks                            →  written for Cursor, Codex, Copilot, Antigravity CLI
✓  mcp servers                      →  merged into Cursor, Codex, Copilot, Antigravity CLI
```

Any of the five direct-sync tools can be the source — `crossby sync --from cursor` works the same way. (No tool holds every surface, though: permissions live only in Claude's and Cursor's config, so a sync *from* Codex, Copilot, or Antigravity CLI has no permissions to read, and a sync *to* them writes none.) crossby is **stateless by default** — it reads directly from each tool's standard paths, so no config file is required.

## Which workflow do you want?

| I want to… | Use | Start with |
| --- | --- | --- |
| Give my other tools the same rules/agents/skills/MCP/hooks I already wrote | **Sync** | `crossby sync --plan --from claude` |
| Run a tool with only the capabilities one task needs | **Scenes** | `crossby scene list` / `crossby launch --scene <name>` |
| Continue my current session in a different tool | **Handoff** | `crossby handoff --from claude --to codex` |
| Have one agent consult another until it has its answer, headless | **Converse** | `crossby converse claude codex --goal "…"` |
| Launch a tool and drive it from a browser instead of a shell | **Browser terminal** | `crossby ui` |

Everything else in this README expands one of these. Jump to [What crossby supports](#what-crossby-supports) for the exact per-tool coverage.

## Install

```bash
pip install crossby
# or
uv tool install crossby
# or
pipx install crossby
```

Requires Python 3.11+.

## Quick start

Lead with the read-only inspection commands to see what crossby would do before it writes: `sync --plan` / `--doctor`, `scene show`, `scene use --plan`. Commands that write or launch (handoff, `scene add` / `use`) note their side effects in the sections below.

```bash
# Don't know where to start? Run crossby with no args for an interactive menu (TTY only).
crossby
```

### 1. Reuse your setup — sync

```bash
# See exactly what a sync would write, without touching any file.
crossby sync --plan --from claude

# Add a readiness rating and the post-sync validation checks it would run.
crossby sync --doctor --from claude

# Happy with the plan? Run it for real. Any direct-sync tool can be the source
# (claude, cursor, copilot, codex, antigravity-cli).
crossby sync --from claude

# Prefer to be walked through it? Omit --from for the interactive wizard.
crossby sync
```

`--plan` and `--doctor` never write; `--dry-run` runs a real sync in shadow mode. See [Syncing configuration](https://github.com/ivanviragine/crossby/blob/main/docs/sync.md#syncing-configuration) for what gets written and what stays additive.

### 2. Focus a session — scenes

```bash
# List the scenes defined in .crossby.yml, with per-concern counts.
crossby scene list

# No scenes yet? Drop in opinionated starters and tweak them.
crossby scene install-starters   # pr-review, deploy-watch, write-docs, presentation

# Preview what a scene resolves to per tool before applying it.
crossby scene show pr-review

# Apply it for one launch only — nothing tracked is touched, no cleanup needed.
crossby launch --scene pr-review --tool claude
```

Use `crossby scene use <name>` to persist a scene across tools, or `crossby launch --scene <name>` for a session-scoped one. See [Scenes](https://github.com/ivanviragine/crossby/blob/main/docs/scenes.md#scenes).

### 3. Continue elsewhere — handoff

```bash
# Write the handoff summary to .crossby/handoffs/ and stop — review it first.
crossby handoff --from cursor --to copilot --no-launch

# Or summarize the latest Claude session and continue it straight in Codex
# (this writes the handoff file and launches Codex with it pre-loaded).
crossby handoff --from claude --to codex
```

Handoff sources are the tools with readable transcripts (**Claude, Cursor, Codex, Copilot**). See [Session handoff](https://github.com/ivanviragine/crossby/blob/main/docs/handoff.md#session-handoff).

```bash
# A few more one-offs:
crossby launch ccyolo                       # launch a saved profile (see .crossby.yml)
crossby stats /path/to/transcript.txt       # parse a transcript for token usage
crossby convert "Bash(myapp:*)" --from claude --to cursor   # translate one allowlist pattern
crossby tools update                        # update your installed AI CLIs
```

Every command with missing arguments drops into a "Proceed / Change X" review, so you can accept the resolved defaults with one keystroke or tweak any single value before it runs.

## What crossby supports

crossby drives eight tools, but **not every tool does every job.** The tables below are the source of truth for every support claim in this README.

### Direct sync targets

The Agents checkmarks describe definition portability, independently of
[runtime subagent readiness](https://github.com/ivanviragine/crossby/blob/main/docs/headless.md#runtime-subagent-readiness).

A sync **writer** exists for five tools. These are the only tools crossby writes configuration *into*:

| Surface | Claude | Cursor | Copilot | Codex | Antigravity CLI |
| --- | :---: | :---: | :---: | :---: | :---: |
| Rules (`AGENTS.md` ↔ `CLAUDE.md` ↔ `.cursorrules` ↔ Copilot) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Agents (subagents) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Skills | ✓ | ✓ | ✓ | ✓ | ✓ |
| MCP servers | ✓ | ✓ | ✓ | ✓ | ✓ |
| Hooks | ✓ | ✓ | ✓ | ✓ | ✓ |
| Permissions | ✓ | ✓ | — | — | — |

A checkmark is **per surface, not per tool** — the exceptions are real:

- **Permissions sync only to Claude and Cursor** — the tools with a persistent per-project permission file that crossby writes. Copilot, Codex, and Antigravity CLI gate command permissions through launch-time flags or sandbox modes (`--allow-tool`, `--dangerously-skip-permissions`) rather than a synced policy file, so they have no permission writer. (Antigravity CLI's `--sandbox` is a terminal-restriction flag, not a permission grant, and crossby does not emit it.)
- **Plugins are detected, never written.** `.claude/plugins/`, `.claude/plugin-marketplaces.json`, and `.claude-plugin/marketplace.json` are reported as `Not Added`; their bundled commands/agents/MCP servers must be migrated by hand.

### Launch and handoff

Launching and handoff reach a wider set of tools than sync:

| Tool | Direct sync | Launch | Handoff source | Handoff target |
| --- | :---: | :---: | :---: | :---: |
| Claude | ✓ | ✓ | ✓ | ✓ auto |
| Cursor | ✓ | ✓ | ✓ | ✓ auto |
| Copilot | ✓ | ✓ | ✓ | ✓ auto |
| Codex | ✓ | ✓ | ✓ | ✓ auto |
| Antigravity CLI | ✓ | ✓ | — | ✓ auto |
| OpenCode | — | ✓ | — | ✓ auto |
| Antigravity IDE | via Antigravity CLI | ✓ (GUI) | — | manual |
| VS Code | — | ✓ (GUI) | — | manual |

- **OpenCode and VS Code are launch adapters, not sync targets.** crossby can launch them (and hand off *to* them), but neither has its own sync writer, so a sync never targets them directly. (One shared-file caveat: Copilot's MCP config lives at `.vscode/mcp.json`, so a sync *to Copilot* does write into that workspace file — as the Copilot target, not a VS Code one.)
- **The Antigravity IDE consumes the CLI's configuration transitively.** It reads the same project-level `.agents/` layout as **Antigravity CLI** (`AGENTS.md`, `.agents/skills`, `.agents/agents`, `.agents/mcp_config.json`), so syncing to `antigravity-cli` provisions the IDE too. There is no separate IDE sync target.
- **"✓ auto" vs "manual" handoff.** For CLI targets, crossby launches the tool with the handoff summary pre-loaded as the initial prompt. GUI tools (VS Code, Antigravity IDE) can't take an initial message, so crossby **writes the handoff file and prints its path for you to open by hand** — it does not launch them with the context loaded.

Per-tool flag mappings and adapter internals live in [CONTRIBUTING.md](https://github.com/ivanviragine/crossby/blob/main/CONTRIBUTING.md#tool-reference).

## Documentation

- [Sync](https://github.com/ivanviragine/crossby/blob/main/docs/sync.md) — what gets synced, strategies, manual-fix blocks, revocation.
- [Scenes](https://github.com/ivanviragine/crossby/blob/main/docs/scenes.md) — task-shaped scenes, session-scoped launches, isolated worktrees, authoring.
- [Handoff](https://github.com/ivanviragine/crossby/blob/main/docs/handoff.md) — continue a session in another tool.
- [Ask](https://github.com/ivanviragine/crossby/blob/main/docs/ask.md) — ask another agent, consultations, read-only profiles, the event journal.
- [Panels](https://github.com/ivanviragine/crossby/blob/main/docs/panels.md) — a lead consulting several members at once.
- [Python API](https://github.com/ivanviragine/crossby/blob/main/docs/python-api.md) — `crossby.api`, persona folders, what each read-only profile blocks.
- [Launch](https://github.com/ivanviragine/crossby/blob/main/docs/launch.md) — launch flags, autonomy modes, model translation, the Codex sandbox.
- [Headless](https://github.com/ivanviragine/crossby/blob/main/docs/headless.md) — managed headless sessions, the verified support matrix, subagent readiness.
- [Plan mode](https://github.com/ivanviragine/crossby/blob/main/docs/plan-mode.md) — native plan mode, collected plan sessions, interactive planning.
- [Browser terminal](https://github.com/ivanviragine/crossby/blob/main/docs/ui.md) — the browser terminal, `crossby ui`.
- [Configuration](https://github.com/ivanviragine/crossby/blob/main/docs/configuration.md) — `.crossby.yml`, updating installed tools, the agent runbook.
- [CONTRIBUTING.md](https://github.com/ivanviragine/crossby/blob/main/CONTRIBUTING.md) — architecture, how to add a new tool, per-tool flag reference, release process.
- Evidence and audits: [unattended headless sessions](https://github.com/ivanviragine/crossby/blob/main/docs/unattended-headless-verification.md), [brokered sessions](https://github.com/ivanviragine/crossby/blob/main/docs/brokered-headless-verification.md), [native plan launch](https://github.com/ivanviragine/crossby/blob/main/docs/native-plan-launch-verification.md), [Codex terminal plan](https://github.com/ivanviragine/crossby/blob/main/docs/codex-terminal-plan-verification.md), [isolated scene launches](https://github.com/ivanviragine/crossby/blob/main/docs/isolated-scene-launches.md), [MCP activation](https://github.com/ivanviragine/crossby/blob/main/docs/mcp-activation-discovery.md), [MCP environment references](https://github.com/ivanviragine/crossby/blob/main/docs/mcp-environment-references.md).

## Contributing

Issues and PRs welcome. See [CONTRIBUTING.md](https://github.com/ivanviragine/crossby/blob/main/CONTRIBUTING.md) for development setup and architecture.

## License

MIT
