-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy pathccb
More file actions
executable file
·41 lines (32 loc) · 961 Bytes
/
ccb
File metadata and controls
executable file
·41 lines (32 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
"""
ccb (Claude Code Bridge) - Unified AI Launcher
Supports Claude + Codex / Claude + Gemini / all three simultaneously
Uses tmux as the project UI backend
"""
import sys
import os
from pathlib import Path
script_dir = Path(__file__).resolve().parent
sys.path.insert(0, str(script_dir / "lib"))
from stdio_runtime import setup_windows_encoding
from terminal_runtime.backend_env import get_backend_env
from cli.entrypoint import run_cli_entrypoint
setup_windows_encoding()
backend_env = get_backend_env()
if backend_env and not os.environ.get("CCB_BACKEND_ENV"):
os.environ["CCB_BACKEND_ENV"] = backend_env
VERSION = "7.1.1"
GIT_COMMIT = "release"
GIT_DATE = "2026-05-31"
def main():
return run_cli_entrypoint(
sys.argv[1:],
version=VERSION,
script_root=script_dir,
cwd=Path.cwd(),
stdout=sys.stdout,
stderr=sys.stderr,
)
if __name__ == "__main__":
sys.exit(main())