Metadata-Version: 2.5
Name: crossby
Version: 0.75.0
Summary: One interface to every coding agent: ask another agent read-only, hand sessions between tools, and share hooks, MCP servers and skills across Claude Code, Codex, Cursor, Copilot, OpenCode and Antigravity.
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: agent-skills,ai,antigravity,claude-code,cli,codex,coding-agents,cursor,github-copilot,hooks,mcp,multi-agent,opencode
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

**One interface to every coding agent.**

Ask another agent a question from inside the one you are using, in a session that is verified read-only. Hand a live session from Cursor to Copilot. Write a hook once and let it guard every agent. Share hooks, MCP servers, permissions, subagents and skills across tools. From your terminal or from Python.

Claude Code · Codex CLI · Cursor · GitHub Copilot CLI · OpenCode · Antigravity CLI

| | |
| --- | --- |
| **Ask** | `crossby ask codex "Is there a race in invalidate()?"`: one question to another agent, read-only |
| **Continue** | `crossby handoff --from claude --to codex`: carry a session into another tool |
| **Launch** | `crossby launch --tool cursor --plan`: one set of flags for every tool |
| **Carry** | `crossby sync --from claude`: your setup, translated into each tool's format, and revocable |
| **Guard** | `crossby.hooks`: one hook script, every agent's hook format |
| **Build** | `crossby.api`: headless, plan and read-only sessions on every CLI |

## Install

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

Requires Python 3.11+. Run `crossby` with no arguments for an interactive menu.

## Ask another agent

```bash
crossby ask codex "Is there a race in src/cache.py invalidate()?"
git diff | crossby ask claude -
```

The answer comes from a fresh session under that tool's own read-only mode, and crossby reports which channels were really blocked (`enforced`, `not_enforced` or `unknown`) instead of assuming. `--require-blocked CHANNEL` refuses to start unless a channel is blocked. [More](https://github.com/ivanviragine/crossby/blob/main/docs/ask.md)

For multi-agent consultations and panels, see [Comitia](https://github.com/ivanviragine/comitia).

## Continue in another tool

```bash
crossby handoff --from claude --to codex
```

Crossby summarizes a session from Claude Code, Cursor, Codex, Copilot, or Antigravity CLI and starts the other tool with it. [More](https://github.com/ivanviragine/crossby/blob/main/docs/handoff.md)

## Launch any tool the same way

```bash
crossby launch --tool codex --model gpt-6-sol --effort high --plan
crossby launch --scene pr-review    # only the skills, agents and MCP servers this task needs
```

Model, effort, plan mode and autonomy (`--accept-edits`, `--auto`, `--yolo`) map to each tool's own flags. [Launch](https://github.com/ivanviragine/crossby/blob/main/docs/launch.md) · [Scenes](https://github.com/ivanviragine/crossby/blob/main/docs/scenes.md)

## Carry your setup

```bash
crossby sync --plan --from claude    # see what would be written
crossby sync --from claude
```

Hooks, MCP servers, permissions and subagents are translated into each tool's own format, with Codex TOML, environment-variable syntax and auth headers handled. crossby removes only what it wrote itself. [More](https://github.com/ivanviragine/crossby/blob/main/docs/sync.md)

## One guard, every agent

Claude Code, Codex, Cursor, Copilot and Antigravity CLI each send a hook its input in their own shape and expect the decision back in their own. `crossby.hooks` reads all five and answers in the right one, and a deny exits non-zero wherever the tool allows it, so a guard fails closed.

```python
import sys

from crossby.hooks import AIToolID, HookDecision, emit_decision, output_dialect_for, parse_event

event = parse_event(sys.stdin.read())
tool = AIToolID(sys.argv[1])    # registered per tool: guard.py claude, guard.py cursor, ...
blocked = event.is_write and "migrations/" in (event.file_path or "")
decision = HookDecision.deny("migrations/ is generated.") if blocked else HookDecision.allow()

out = emit_decision(decision, output_dialect_for(tool), event=event.event)
sys.stdout.write(out.stdout)
sys.stderr.write(out.stderr)
sys.exit(out.exit_code)
```

[Hooks](https://github.com/ivanviragine/crossby/blob/main/docs/hooks.md)

## Build on it

```python
from pathlib import Path

from crossby.api import AskRequest, CliBackend, ProjectWorkspace, ask

result = ask(AskRequest(backend=CliBackend(tool="codex"), prompt="Review this diff", workspace=ProjectWorkspace(path=Path("."))))
print(result.text, result.restrictions)
```

Unattended and brokered headless sessions, native plan collection and persona folders, on every CLI, with tested minimum versions. [Python API](https://github.com/ivanviragine/crossby/blob/main/docs/python-api.md) · [Headless sessions](https://github.com/ivanviragine/crossby/blob/main/docs/headless.md) · [Plan mode](https://github.com/ivanviragine/crossby/blob/main/docs/plan-mode.md)

## Honest by default

crossby tells you what was enforced and what was not, never deletes what it did not write, and refuses only what you asked it to require.

## 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) — questions, instructions files, and read-only profiles.
- [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.
- [Hooks](https://github.com/ivanviragine/crossby/blob/main/docs/hooks.md) — `crossby.hooks`, one guard script for every agent's hook dialect.
- [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
