Goal: Transform the experimental protocols in this repository into a reusable, standalone CLI tool.
User Journey: A developer runs collaborate --prompt "..." in any git repository, and a team of AI agents (Gemini, Claude, Codex) autonomously iterates to achieve the goal.
The collaborate tool acts as the Orchestrator. It replaces the manual "Human in the Loop" from Phase 0.
$ cd my-new-project
$ collaborate init
> Initialized .collab/ directory (events, tasks, reviews).
$ collaborate --prompt "Create a Python web scraper for news.ycombinator.com"
> [Orchestrator] Created Task T-001: "Create Scraper"
> [Gemini] Claimed T-001.
> [Gemini] Wrote src/scraper.py.
> [Gemini] Completed T-001. Requesting Review from Claude.
> [Claude] Reviewing T-001...
> [Claude] Review Failed: Missing requirements.txt.
> [Gemini] Re-claiming T-001. Fixing issues...
> ...
> [System] Goal Achieved.We are moving from Project-Internal Scripts to a External Tool.
| Feature | Current Prototype (Phase 0) | Target Product (CLI) |
|---|---|---|
| Orchestration | Human runs collaborate status, prompts agents manually |
CLI runs the loop and invokes backends via API |
| State Storage | .collab/events.jsonl |
.collab/events.jsonl (hidden dir) |
| Agent Identity | Simulated via export AGENT_NAME |
Real API Clients (Vertex AI, Anthropic, OpenAI) |
| Protocol | AGENTS.md (Human read) |
Hardcoded into the CLI logic |
- Design: Define the CLI structure (Python/Go?). [DONE]
- Refactor: Move logic into a proper library structure. [DONE]
- API Integration: Connect real LLM backends (Anthropic, OpenAI, Google). [DONE]
- The Loop: Implement the main event loop. [DONE]
- Autonomous Mode: Implement continuous execution and next-task proposal. [DONE]
- Parallel Sub-tasks: Allowing multiple agents to work on independent parts of a project simultaneously.
- Git Integration: Native branch-based collaboration (Option C from orchestrator design).
- Streaming Output: Providing real-time visibility into the agent's "thought" process.
- Context Pruning: Smarter management of project context for large codebases.