ai-comm 0.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-comm
3
+ Version: 0.2.4
4
+ Summary: Cross-AI CLI communication tool for kitty terminal
5
+ Project-URL: Homepage, https://github.com/a322655/ai-comm
6
+ Project-URL: Repository, https://github.com/a322655/ai-comm
7
+ Author: WindFade
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: ai,cli,communication,kitty,terminal
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Utilities
17
+ Requires-Python: >=3.13
18
+ Requires-Dist: typer>=0.15.0
19
+ Description-Content-Type: text/markdown
20
+
21
+ # ai-comm
22
+
23
+ Cross-AI CLI communication tool for [Kitty terminal](https://sw.kovidgoyal.net/kitty/). Enables AI assistants running in separate Kitty windows to communicate with each other.
24
+
25
+ ## Why ai-comm?
26
+
27
+ When working with multiple AI coding assistants, you may want them to collaborate—code review across models, second opinions on architecture, or delegating specialized tasks.
28
+
29
+ **Why terminal text instead of MCP or black magic?**
30
+
31
+ - **Stability**: AI CLI tools evolve rapidly, with many still at 0.x and frequently introducing breaking changes. Terminal UI, being user-facing, remains far more stable.
32
+ - **Lightweight**: MCP tools consume significant context (often tens of thousands of tokens at startup) and can cause attention dilution. ai-comm uses simple shell commands with minimal overhead.
33
+ - **No infrastructure**: Each AI CLI maintains its own context. No need for external services like Redis to synchronize state across tools.
34
+ - **Composability**: Shell pipelines and REPL patterns combine naturally, leveraging what CLIs already do well.
35
+
36
+ ## Setup
37
+
38
+ ### 1. Install ai-comm
39
+
40
+ ```bash
41
+ # From PyPI
42
+ uv tool install ai-comm
43
+
44
+ # Or from GitHub
45
+ uv tool install git+https://github.com/a322655/ai-comm.git
46
+ ```
47
+
48
+ ### 2. Configure Kitty
49
+
50
+ Enable remote control in `~/.config/kitty/kitty.conf`:
51
+
52
+ ```conf
53
+ allow_remote_control socket-only
54
+ listen_on unix:/tmp/kitty-${USER}
55
+ ```
56
+
57
+ ### 3. Configure Your AI
58
+
59
+ Add instructions to your AI’s project file (`CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, etc.) or skills system. An example Claude Code skill is provided in [`skills/ai-comm/`](skills/ai-comm/).
60
+
61
+ ## Usage
62
+
63
+ 1. **Open multiple AI CLIs** in separate Kitty windows:
64
+
65
+ ```bash
66
+ claude # Window 1
67
+ codex # Window 2
68
+ gemini # Window 3
69
+ ```
70
+
71
+ 2. **Ask your AI to collaborate**:
72
+
73
+ > “Use ai-comm to ask Codex to review src/main.py”
74
+
75
+ The AI discovers available windows and sends the request:
76
+
77
+ ```bash
78
+ ai-comm list-ai-windows
79
+ # ID CLI CWD
80
+ # 11 codex /home/user/project
81
+ # 21 gemini /home/user/project
82
+
83
+ ai-comm send "Review src/main.py for bugs" -w 11
84
+ # Returns Codex's response
85
+ ```
86
+
87
+ 3. **For long responses**, instruct the target AI to write to a file:
88
+
89
+ ```bash
90
+ ai-comm send "Write analysis to report_$(date +%Y%m%d_%H%M%S).md" -w 11
91
+ ```
92
+
93
+ ## Supported CLIs
94
+
95
+ | CLI | Notes |
96
+ |-----|-------|
97
+ | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | — |
98
+ | [Codex CLI](https://github.com/openai/codex) | — |
99
+ | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | — |
100
+ | [Aider](https://aider.chat/) | Auto-prefixes `/ask` |
101
+ | [Cursor Agent](https://cursor.sh/) | — |
102
+ | [OpenCode](https://github.com/opencode-ai/opencode) | Uses export for responses |
103
+
104
+ ## Troubleshooting
105
+
106
+ **“Window not found”**: Ensure the AI CLI is running in Kitty and remote control is enabled. Run `ai-comm list-ai-windows` to verify.
107
+
108
+ **Empty responses**: For long outputs, ask the AI to write to a file instead of returning directly.
109
+
110
+ **“Kitty I/O timeout”**: Check if Kitty is responsive; try restarting it.
111
+
112
+ ## Development
113
+
114
+ ```bash
115
+ git clone https://github.com/a322655/ai-comm.git
116
+ cd ai-comm
117
+ uv sync
118
+
119
+ uv run ai-comm --help
120
+ uv run ruff check src/
121
+ uv run mypy src/
122
+ ```
123
+
124
+ ### Adding a New CLI
125
+
126
+ 1. Add entry in `src/ai_comm/registry.py`
127
+ 2. Create adapter in `src/ai_comm/adapters/<name>.py` (class `{Name}Adapter`)
128
+ 3. Add detection in `src/ai_comm/kitten/ai_comm_kitten.py`
129
+
130
+ ## License
131
+
132
+ MIT
@@ -0,0 +1,29 @@
1
+ ai_comm/__init__.py,sha256=K0EjJFSp3zTu3OynEBoI0tokrRwmDT6rWucgUcoGxc0,81
2
+ ai_comm/cli.py,sha256=AJPZtRHHdlaZj-ueeeY8WZaG4F5rm0hUZNmc8HVZKjI,2673
3
+ ai_comm/kitten_client.py,sha256=DrDIK80zejjAIwXtF1Gh_4aSZikwPEmc3WLjSigScTw,5866
4
+ ai_comm/polling.py,sha256=FpsJN1D_Tzp8HAeQkq__z14mdg6P3K4FDYROczYoYbU,2272
5
+ ai_comm/registry.py,sha256=OIuh6FRUfRNpE9J_Z0A9BZNnr4F7Qf_2aROz5uko3Ug,1972
6
+ ai_comm/adapters/__init__.py,sha256=9kOZZzwuwJY22cwJHKRNGN_l4Dc7Lk4LltgqqbrLVaI,933
7
+ ai_comm/adapters/aider.py,sha256=b68UMXtmaZFoIzhKMNQzo3YkcMfPLF3N2cCLOltZNgM,1796
8
+ ai_comm/adapters/base.py,sha256=kyuIisauBjKCUYkH84Ih0Q75NQJkTdr34rtZ3D5WQeU,4195
9
+ ai_comm/adapters/claude.py,sha256=KjRG5YxNNt6S8KRtbG5GP4TUN7vjtRRHwVI5j5YjBRQ,2242
10
+ ai_comm/adapters/codex.py,sha256=qqUJ_ubZtZtkbieFN0ehQc3fFDTFTFOyoNJ_24A84gs,1541
11
+ ai_comm/adapters/cursor.py,sha256=vJzv-FqvRu91E4FL7TUqHYzi6HqcBR5aXLDVBFZ8iM4,1987
12
+ ai_comm/adapters/gemini.py,sha256=JCFVXFK3Bad7n1otMUCFru3t_-ysIYkdQcHQDfwSYsk,1568
13
+ ai_comm/adapters/generic.py,sha256=B_3JW2K-ADna-xKJ6W7iuav9WVCR_7TWh6vNZhABM1g,1507
14
+ ai_comm/adapters/opencode.py,sha256=rp4pNlzQD650ux0EYpUSNPu75Dgb-1kCrhryllyoyDs,4532
15
+ ai_comm/commands/__init__.py,sha256=AJB7gJ6-ML91qe4JSSHUZcjAhrvDbrzRXPf46SfieIE,285
16
+ ai_comm/commands/response.py,sha256=pirqMij2KtL1sJzbZYlaYtkl34lB2Bolrgz4YNT_N38,3219
17
+ ai_comm/commands/send.py,sha256=GEXE22lpkxyA8VLHK6eabXJScqK2dm6ZEEkxOFVsDQI,3427
18
+ ai_comm/commands/window.py,sha256=QBXXI5BnojMxbAB311WyUqFu8LlOVmdL62cCC9Eafig,1077
19
+ ai_comm/kitten/ai_comm_kitten.py,sha256=gO6EbshmH3ABqOlMoa_7afPPdWTu1Uhk-GShY38FnVI,8268
20
+ ai_comm/parsers/__init__.py,sha256=Bzm6rOgBax_sbEf4teXXbM0q0WHvGldNU3hSzIHmdA8,579
21
+ ai_comm/parsers/base.py,sha256=geuSRJxMKVCJDMKlKUlyB_KdZDoZuZYS5NwbWL_yDKc,3518
22
+ ai_comm/parsers/utils.py,sha256=46UzBHWzmRaUCQvfAfwC0ef2WctHy7qHplFcDaucrzs,1238
23
+ ai_comm/services/__init__.py,sha256=1BI4r1c56ByPl-juqBYfA8OjTh_stZ-mPpw23YRaXys,143
24
+ ai_comm/services/interaction.py,sha256=l8BNJNM5l16TZ6xDAUgbqOQpoCHLWmf-Su9ToM39Du4,3554
25
+ ai_comm-0.2.4.dist-info/METADATA,sha256=j6yjB3ezg1jz-_sqMkDKA1IRT5RyzLaD5kS4HCT26Uw,4151
26
+ ai_comm-0.2.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
27
+ ai_comm-0.2.4.dist-info/entry_points.txt,sha256=C1o6yRE4qzTgSS6A3c1bMZg76-JdJXKBAGu7Y-WZP3E,45
28
+ ai_comm-0.2.4.dist-info/licenses/LICENSE,sha256=Ii8GHNFlMpbN8cYuvjeDr3NLegvkINaGuJ7jqz9VjKs,1065
29
+ ai_comm-0.2.4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ai-comm = ai_comm.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 WindFade
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.