interagent-framework 0.1.2__tar.gz → 0.3.0__tar.gz

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.
Files changed (43) hide show
  1. {interagent_framework-0.1.2/src/interagent_framework.egg-info → interagent_framework-0.3.0}/PKG-INFO +109 -141
  2. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/README.md +106 -138
  3. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/pyproject.toml +3 -3
  4. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/__init__.py +4 -4
  5. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/cli.py +412 -117
  6. interagent_framework-0.3.0/src/interagent/constants.py +129 -0
  7. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/messaging.py +16 -14
  8. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/session.py +40 -13
  9. interagent_framework-0.3.0/src/interagent/templates/agents_guide.md +172 -0
  10. interagent_framework-0.3.0/src/interagent/templates/roles_template.md +59 -0
  11. interagent_framework-0.3.0/src/interagent/transport/__init__.py +32 -0
  12. interagent_framework-0.3.0/src/interagent/transport/base.py +37 -0
  13. interagent_framework-0.3.0/src/interagent/transport/config.py +47 -0
  14. interagent_framework-0.3.0/src/interagent/transport/git.py +368 -0
  15. interagent_framework-0.3.0/src/interagent/transport/http.py +72 -0
  16. interagent_framework-0.3.0/src/interagent/transport/local.py +71 -0
  17. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/validator.py +56 -41
  18. interagent_framework-0.3.0/src/interagent/watchdog.py +197 -0
  19. {interagent_framework-0.1.2 → interagent_framework-0.3.0/src/interagent_framework.egg-info}/PKG-INFO +109 -141
  20. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent_framework.egg-info/SOURCES.txt +7 -0
  21. interagent_framework-0.1.2/src/interagent/constants.py +0 -49
  22. interagent_framework-0.1.2/src/interagent/templates/agents_guide.md +0 -127
  23. interagent_framework-0.1.2/src/interagent/watchdog.py +0 -140
  24. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/LICENSE +0 -0
  25. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/MANIFEST.in +0 -0
  26. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/examples/README.md +0 -0
  27. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/examples/basic_workflow.py +0 -0
  28. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/examples/cli_session.bat +0 -0
  29. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/examples/cli_session.sh +0 -0
  30. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/examples/parallel_workflow.py +0 -0
  31. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/setup.cfg +0 -0
  32. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/locking.py +0 -0
  33. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/task.py +0 -0
  34. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/templates/__init__.py +0 -0
  35. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/templates/ai_context.md +0 -0
  36. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/templates/review_request.md +0 -0
  37. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/templates/task_delegation.md +0 -0
  38. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/templates/update_prompt.md +0 -0
  39. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent/utils.py +0 -0
  40. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent_framework.egg-info/dependency_links.txt +0 -0
  41. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent_framework.egg-info/entry_points.txt +0 -0
  42. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent_framework.egg-info/requires.txt +0 -0
  43. {interagent_framework-0.1.2 → interagent_framework-0.3.0}/src/interagent_framework.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: interagent-framework
3
- Version: 0.1.2
4
- Summary: A framework for Claude Code and Kimi Code collaboration
3
+ Version: 0.3.0
4
+ Summary: Multi-agent AI collaboration framework (Claude, Kimi, Gemini, Codex, and more)
5
5
  Author: gutohuida
6
6
  License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/gutohuida/InterAgentFramework
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/gutohuida/InterAgentFramework#rea
9
9
  Project-URL: Repository, https://github.com/gutohuida/InterAgentFramework
10
10
  Project-URL: Issues, https://github.com/gutohuida/InterAgentFramework/issues
11
11
  Project-URL: Changelog, https://github.com/gutohuida/InterAgentFramework/blob/master/CHANGELOG.md
12
- Keywords: claude,kimi,collaboration,agents,ai,code
12
+ Keywords: claude,kimi,gemini,codex,collaboration,agents,ai,code,multi-agent
13
13
  Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Operating System :: OS Independent
@@ -40,16 +40,13 @@ Dynamic: license-file
40
40
 
41
41
  > **A collaboration framework for Claude Code and Kimi Code**
42
42
 
43
- InterAgent lets Claude Code and Kimi Code work together on the same project.
44
- After a one-time setup, you orchestrate everything through **natural language prompts** —
45
- no manual CLI commands required during your session.
43
+ InterAgent lets Claude Code and Kimi Code work together on the same project — on the same machine or across machines. After a one-time setup, you orchestrate everything through **natural language prompts** — no manual CLI commands required during your session.
46
44
 
47
45
  ---
48
46
 
49
47
  ## How It Works
50
48
 
51
- InterAgent creates a shared `.interagent/` directory that both agents use as a
52
- communication channel. The user acts as the messenger, passing relay prompts between agents.
49
+ InterAgent creates a shared `.interagent/` directory that both agents use as a communication channel. The user acts as the messenger, passing relay prompts between agents.
53
50
 
54
51
  ```
55
52
  You (setup once)
@@ -81,8 +78,7 @@ Claude (runs CLI via Bash automatically)
81
78
  └─ [reviews Kimi's work and continues]
82
79
  ```
83
80
 
84
- **The only manual step is pasting the relay prompt into Kimi.** Both agents handle
85
- all CLI commands themselves — you just have a conversation.
81
+ **The only manual step is pasting the relay prompt into Kimi.** Both agents handle all CLI commands themselves — you just have a conversation.
86
82
 
87
83
  ---
88
84
 
@@ -108,8 +104,7 @@ This creates:
108
104
 
109
105
  ### 3. Fill in project context
110
106
 
111
- Edit `.interagent/shared/context.md` and paste in your project description, current state,
112
- and any constraints. Both agents read this at the start of every task.
107
+ Edit `.interagent/shared/context.md` and paste in your project description, current state, and any constraints. Both agents read this at the start of every task.
113
108
 
114
109
  ### 4. Start working — just prompt Claude
115
110
 
@@ -118,126 +113,45 @@ From this point, use natural language. Claude handles the CLI:
118
113
  > "Claude, read `.interagent/AGENTS.md` to understand how we're collaborating,
119
114
  > then delegate the database schema design to Kimi."
120
115
 
121
- Claude will run `interagent quick` and `interagent relay` via Bash, then show you
122
- a prompt to paste into Kimi Code.
116
+ Claude will run `interagent quick` and `interagent relay` via Bash, then show you a prompt to paste into Kimi Code.
123
117
 
124
118
  ---
125
119
 
126
- ## Prompt-First Workflow
120
+ ## Cross-Machine Collaboration (v0.2.0+)
127
121
 
128
- ### Delegating to Kimi
122
+ By default, InterAgent works on a single machine via the local `.interagent/` directory. If your collaborator is on a different machine, enable **Git transport** with one command:
129
123
 
130
- Just tell Claude what to assign. No CLI needed.
131
-
132
- **You → Claude:**
133
- > "Delegate the user authentication module to Kimi. It should include login, logout,
134
- > JWT tokens, and password reset. See PLAN.md for the API design."
135
-
136
- **Claude does automatically:**
137
124
  ```bash
138
- interagent quick --to kimi "Implement user authentication: login, logout, JWT tokens, password reset. See PLAN.md §3 for API design."
139
- interagent relay --agent kimi
140
- ```
141
-
142
- **Claude shows you:**
143
- ```
144
- ====================================================================
145
- RELAY PROMPT FOR KIMI
146
- ====================================================================
147
- Copy and paste this to the agent:
148
-
149
- @kimi - You have work in the InterAgent collaboration system.
150
-
151
- Your role: delegate
152
- Collaboration guide: read .interagent/AGENTS.md for commands, workflow, and protocol.
153
- Project context: read .interagent/shared/context.md before starting.
154
-
155
- [TASK] You have 1 new task(s):
156
- - Implement user authentication (task-a3f2c1)
157
- ...
158
- ====================================================================
125
+ interagent transport setup --type git
159
126
  ```
160
127
 
161
- **You:** paste that into Kimi Code.
162
-
163
- ---
164
-
165
- ### Kimi Receiving Work
128
+ This creates an orphan branch (`interagent/collab`) on your git remote. Messages and tasks are synced through it using git plumbing — your working tree and current branch are never touched.
166
129
 
167
- When Kimi receives the relay prompt, it:
168
- 1. Reads `.interagent/AGENTS.md` for the full collaboration guide and command reference
169
- 2. Reads `.interagent/shared/context.md` for project context
170
- 3. Runs `interagent inbox --agent kimi` to see the task
171
- 4. Does the work
172
- 5. Reports back via `interagent msg send --to claude --subject "Done" --message "..."`
130
+ ### How to set up cross-machine
173
131
 
174
- All of this happens automatically — Kimi doesn't need to be told how the system works
175
- because AGENTS.md explains it.
176
-
177
- ---
178
-
179
- ### Getting Kimi's Work Back to Claude
180
-
181
- When Kimi is done:
182
-
183
- **You → Claude:**
184
- > "Kimi is done."
185
-
186
- **Claude does automatically:**
187
132
  ```bash
188
- interagent inbox --agent claude
189
- interagent summary
190
- ```
191
-
192
- Claude reviews Kimi's messages and completed tasks, then continues reviewing or
193
- assigns the next task.
133
+ # Both developers run this (same git remote required):
134
+ interagent transport setup --type git --remote origin
194
135
 
195
- ---
136
+ # Check status
137
+ interagent transport status
196
138
 
197
- ### Asking for a Status Check
139
+ # Force-fetch latest messages
140
+ interagent transport pull
198
141
 
199
- **You Claude:**
200
- > "What's the current state of the project?"
201
-
202
- **Claude does automatically:**
203
- ```bash
204
- interagent status
205
- interagent summary
142
+ # Revert to local-only
143
+ interagent transport disable
206
144
  ```
207
145
 
208
- ---
209
-
210
- ### Cross-Agent Sub-Agent Requests
146
+ All existing commands (`quick`, `inbox`, `relay`, `task`, etc.) work identically — transport is transparent.
211
147
 
212
- Either agent can ask the other to run one of their specialized sub-agents.
148
+ ### Start watching for incoming messages
213
149
 
214
- **Example — Claude asking Kimi to do web research:**
215
-
216
- Claude writes `.interagent/shared/agent-request-research.md`:
217
- ```
218
- Kimi: research latest best practices for JWT refresh token rotation (2026)
219
- Write summary to: .interagent/shared/jwt-research.md
150
+ ```bash
151
+ interagent-watch
220
152
  ```
221
153
 
222
- Then Claude tells you: *"Tell Kimi to check `.interagent/shared/` for a new request."*
223
-
224
- You paste one message into Kimi. Kimi handles it. No further orchestration needed.
225
-
226
- ---
227
-
228
- ## Setup for New Projects (Using the Kickoff Template)
229
-
230
- If you use the [project kickoff template](https://github.com/gutohuida/InterAgentFramework),
231
- the generated `CLAUDE.md` automatically includes the multi-agent workflow rules:
232
-
233
- - Claude checks for `.interagent/session.json` on every session start
234
- - If found, Claude reads `AGENTS.md` and `context.md` automatically
235
- - Claude runs all `interagent` commands via Bash without being asked
236
-
237
- This means on any future session, you can start with:
238
- > "Check the InterAgent session and tell me what's pending."
239
-
240
- And Claude will handle the rest.
154
+ Automatically adapts to the active transport. For git transport, polls every 10 seconds instead of 5.
241
155
 
242
156
  ---
243
157
 
@@ -278,19 +192,22 @@ interagent inbox --agent kimi # Check Kimi's inbox
278
192
  interagent msg send --to claude --subject "Done" --message "Implemented X"
279
193
  ```
280
194
 
281
- ### Template Maintenance
195
+ ### Transport (cross-machine)
282
196
 
283
- Keep your project kickoff template current with new AI capabilities:
197
+ ```bash
198
+ interagent transport setup --type git # Enable git transport
199
+ interagent transport status # Show active transport
200
+ interagent transport pull # Force immediate fetch
201
+ interagent transport disable # Revert to local
202
+ ```
203
+
204
+ ### Template Maintenance
284
205
 
285
206
  ```bash
286
207
  interagent update-template --agent claude --template-path ~/projects/template.txt
287
- interagent update-template --agent kimi --template-path ~/projects/template.txt
288
208
  interagent update-template --agent claude --focus "sub-agents"
289
209
  ```
290
210
 
291
- The generated prompt instructs the agent to search for new best practices,
292
- review the current template, apply improvements, and write a `TEMPLATE_UPDATE.md`.
293
-
294
211
  ---
295
212
 
296
213
  ## What Gets Created on Init
@@ -311,32 +228,73 @@ review the current template, apply improvements, and write a `TEMPLATE_UPDATE.md
311
228
  └── agents/ # Agent status files
312
229
  ```
313
230
 
314
- `.interagent/AGENTS.md` is the key file. Both Claude and Kimi read it on every
315
- session start to understand their roles, available commands, and the collaboration protocol.
231
+ `.interagent/AGENTS.md` is the key file. Both Claude and Kimi read it on every session start to understand their roles, available commands, and the collaboration protocol.
316
232
 
317
233
  ---
318
234
 
319
- ## Safety Features
235
+ ## Prompt-First Workflow
320
236
 
321
- **File locking** prevents race conditions when both agents work simultaneously.
322
- Tasks and messages use file-based mutexes with a 5-minute automatic timeout.
237
+ ### Delegating to Kimi
323
238
 
324
- **Schema validation** all JSON state files are validated before saving.
325
- Agent names, task statuses, and required fields are enforced.
239
+ Just tell Claude what to assign. No CLI needed.
326
240
 
327
- **Input sanitization** — string length limits and type coercion before any write.
241
+ **You Claude:**
242
+ > "Delegate the user authentication module to Kimi. It should include login, logout,
243
+ > JWT tokens, and password reset. See PLAN.md for the API design."
244
+
245
+ **Claude does automatically:**
246
+ ```bash
247
+ interagent quick --to kimi "Implement user authentication: login, logout, JWT tokens, password reset. See PLAN.md §3 for API design."
248
+ interagent relay --agent kimi
249
+ ```
250
+
251
+ **Claude shows you:**
252
+ ```
253
+ ====================================================================
254
+ RELAY PROMPT FOR KIMI
255
+ ====================================================================
256
+ Copy and paste this to the agent:
257
+
258
+ @kimi - You have work in the InterAgent collaboration system.
259
+
260
+ Your role: delegate
261
+ Collaboration guide: read .interagent/AGENTS.md for commands, workflow, and protocol.
262
+ Project context: read .interagent/shared/context.md before starting.
263
+
264
+ [TASK] You have 1 new task(s):
265
+ - Implement user authentication (task-a3f2c1)
266
+ ...
267
+ ====================================================================
268
+ ```
269
+
270
+ **You:** paste that into Kimi Code.
328
271
 
329
272
  ---
330
273
 
331
- ## Watchdog (Optional)
274
+ ### Getting Kimi's Work Back to Claude
275
+
276
+ When Kimi is done:
332
277
 
333
- Run in a separate terminal to get notifications when tasks or messages change:
278
+ **You Claude:**
279
+ > "Kimi is done."
334
280
 
281
+ **Claude does automatically:**
335
282
  ```bash
336
- interagent-watch
283
+ interagent inbox --agent claude
284
+ interagent summary
337
285
  ```
338
286
 
339
- Useful if you want to know when Kimi has finished without actively checking.
287
+ ---
288
+
289
+ ## Safety Features
290
+
291
+ **File locking** — prevents race conditions when both agents work simultaneously. Tasks and messages use file-based mutexes with a 5-minute automatic timeout.
292
+
293
+ **Schema validation** — all JSON state files are validated before saving. Agent names, task statuses, and required fields are enforced.
294
+
295
+ **Input sanitization** — string length limits and type coercion before any write.
296
+
297
+ **Conflict-free git sync** — GitTransport appends files with UUID-suffixed names; two machines can never produce the same filename. Push conflicts are retried automatically.
340
298
 
341
299
  ---
342
300
 
@@ -352,6 +310,18 @@ In peer mode, both agents can assign tasks to each other.
352
310
 
353
311
  ---
354
312
 
313
+ ## Roadmap
314
+
315
+ | Phase | Status | Description |
316
+ |---|---|---|
317
+ | Local transport | Done | Single-machine via `.interagent/` filesystem |
318
+ | Git transport | Done (v0.2.0) | Cross-machine via orphan branch, zero infra |
319
+ | InterAgent Hub | Planned | MCP server for multi-team collaboration, web dashboard |
320
+
321
+ The Hub (Phase 3) will be an **MCP server** — Claude Code and Kimi Code connect to it as a native MCP tool provider, enabling real-time delivery without polling and a web dashboard for project oversight. See [ROADMAP.md](ROADMAP.md) for the full plan.
322
+
323
+ ---
324
+
355
325
  ## Installation Options
356
326
 
357
327
  ```bash
@@ -369,25 +339,22 @@ pip install -e .
369
339
  ## FAQ
370
340
 
371
341
  **Q: Do I need to run CLI commands during my session?**
372
- No. After `interagent init`, just talk to Claude. It runs all `interagent` commands
373
- via Bash automatically. The only manual step is pasting the relay prompt into Kimi.
342
+ No. After `interagent init`, just talk to Claude. It runs all `interagent` commands via Bash automatically. The only manual step is pasting the relay prompt into Kimi.
374
343
 
375
344
  **Q: How does Kimi know how to use the system?**
376
- `interagent init` writes `.interagent/AGENTS.md` — a complete guide covering commands,
377
- workflow, and protocol. The relay prompt tells Kimi to read it before starting work.
345
+ `interagent init` writes `.interagent/AGENTS.md` — a complete guide covering commands, workflow, and protocol. The relay prompt tells Kimi to read it before starting work.
378
346
 
379
347
  **Q: Should I commit `.interagent/` to Git?**
380
- Partially. The `.gitignore` included with the project excludes runtime state
381
- (tasks, messages, session.json) but keeps AGENTS.md and README.md.
382
- This gives you documentation without committing transient data.
348
+ Partially. The `.gitignore` excludes runtime state (tasks, messages, session.json, transport.json) but keeps AGENTS.md and README.md. This gives you documentation without committing transient data.
383
349
 
384
350
  **Q: Can I use this with just Claude (no Kimi)?**
385
- Yes — just skip the relay step. The session, task, and summary commands are
386
- useful even for single-agent projects to track progress.
351
+ Yes — just skip the relay step. The session, task, and summary commands are useful even for single-agent projects to track progress.
352
+
353
+ **Q: Do both developers need the same git remote for cross-machine sync?**
354
+ Yes. Git transport requires a shared remote (e.g. `origin`). One developer runs `interagent transport setup --type git` to create the orphan branch, then the other runs the same command to connect to it.
387
355
 
388
356
  **Q: What if Kimi doesn't have terminal access?**
389
- The relay prompt includes the task details inline, so Kimi can read and respond
390
- without running any commands. The collaboration is less structured but still works.
357
+ The relay prompt includes the task details inline, so Kimi can read and respond without running any commands. The collaboration is less structured but still works.
391
358
 
392
359
  ---
393
360
 
@@ -396,6 +363,7 @@ without running any commands. The collaboration is less structured but still wor
396
363
  - **GitHub:** https://github.com/gutohuida/InterAgentFramework
397
364
  - **PyPI:** https://pypi.org/project/interagent-framework/
398
365
  - **Issues:** https://github.com/gutohuida/InterAgentFramework/issues
366
+ - **Roadmap:** [ROADMAP.md](ROADMAP.md)
399
367
 
400
368
  ---
401
369