[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116262":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":15,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":12,"starSnapshotCount":12,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},116262,"tri-agent-orchestrator","abhigyan6\u002Ftri-agent-orchestrator","abhigyan6","Multi-agent orchestration framework & skill coordinating Google Antigravity, Anthropic Claude Code, and OpenAI Codex.",null,"Python",55,0,53,5,1,43,"MIT License",false,"main",true,[],"2026-11-12 16:59:53","2026-11-22 15:57:21","# 🛸 Tri-Agent Orchestrator\n\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n[![Agents](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAgents-Antigravity%20%7C%20Claude%20Code%20%7C%20Codex-purple.svg)](#agent-matrix)\n[![Platform](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatform-macOS%20%7C%20Linux-black.svg)](#installation)\n\n> **Multi-agent orchestration framework and universal agent skill coordinating Google Antigravity (`agy`), Anthropic Claude Code (`claude`), and OpenAI Codex (`codex`).**\n\n---\n\n## 🌟 Why Tri-Agent Orchestration?\n\nNo single AI coding assistant is optimal for every phase of software engineering. Complex software requires diverse cognitive strengths:\n\n* **Google Antigravity (`agy`)** excels at deep codebase reconnaissance, multimodal architecture design, complex dependency analysis, and adversarial edge-case auditing.\n* **Anthropic Claude Code (`claude`)** excels at nuanced semantic reasoning, high-taste code craftsmanship, domain modeling, and surgical refactoring.\n* **OpenAI Codex (`codex`)** excels at rapid execution, test harness generation, terminal build commands, CI\u002FCD pipeline authoring, and deterministic regression fixes.\n\n**Tri-Agent Orchestrator** connects all three into a synchronized pipeline using standardized inter-agent contracts (`HANDOFF.md`), preventing hallucination cascades and delivering production-ready, verified code.\n\n---\n\n## 🔄 Core Architecture\n\n```mermaid\nflowchart LR\n    subgraph Phase1[\"Phase 1: Architecture & Spec\"]\n        AGY[\"🪐 Google Antigravity\\n(Chief Architect & Auditor)\"]\n    end\n\n    subgraph Phase2[\"Phase 2: Core Craftsmanship\"]\n        CLAUDE[\"🧠 Anthropic Claude Code\\n(Lead Software Craftsman)\"]\n    end\n\n    subgraph Phase3[\"Phase 3: Reliability & Ops\"]\n        CODEX[\"⚡ OpenAI Codex\\n(Test & Deployment Engineer)\"]\n    end\n\n    AGY -->|\"docs\u002Ftri-agent\u002FSPEC.md\\n+ HANDOFF.md\"| CLAUDE\n    CLAUDE -->|\"Source Code\\n+ HANDOFF.md\"| CODEX\n    CODEX -->|\"Verified Tests\\n+ GitHub PR\"| Production([Production PR])\n```\n\n---\n\n## 📊 Agent Specialization Matrix\n\n| Agent CLI | Primary Role | Cognitive Superpower | Responsibilities in Workflow |\n| :--- | :--- | :--- | :--- |\n| **`agy`** (Antigravity) | **Chief Architect & Auditor** | Multimodal analysis, dependency graphs, security modeling | • System architecture & RFC drafting\u003Cbr>• Adversarial edge-case discovery\u003Cbr>• Visual UI\u002FUX verification |\n| **`claude`** (Claude Code) | **Lead Software Craftsman** | Architectural taste, clean abstractions, contextual refactoring | • Domain logic & API implementation\u003Cbr>• Technical debt refactoring\u003Cbr>• Clean code patterns & documentation |\n| **`codex`** (Codex CLI) | **Reliability & Ops Engineer** | Fast execution, test generation, build systems, bash tooling | • Unit & integration test suites\u003Cbr>• Linting & typecheck fixes\u003Cbr>• Git commits & PR preparation |\n\n---\n\n## 🚀 Quickstart in 60 Seconds\n\n### 1. Clone & Setup\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fabhigyan6\u002Ftri-agent-orchestrator.git\ncd tri-agent-orchestrator\n```\n\n### 2. Verify Your Environment\nCheck if all three agent CLIs and developer tools are ready:\n```bash\n.\u002Fbin\u002Ftri-agent doctor\n```\n\nOutput:\n```text\n=======================================================\n 🛸 Tri-Agent Orchestrator: Environment Doctor\n=======================================================\n\nCoding Agents Status:\n  ✅ Google Antigravity (agy)          : 1.5.4\n  ✅ Anthropic Claude Code (claude)    : 2.1.322\n  ✅ OpenAI Codex (codex)              : 0.167.0\n\nStatus Summary:\n  🎉 All 3 agent CLIs (Antigravity, Claude Code, Codex) are active and ready!\n```\n\n### 3. Register the Skill Globally\nInstall or symlink the skill so Antigravity, Claude Code, and Codex can use it natively:\n```bash\n.\u002Fscripts\u002Finstall-skill.sh\n```\n\n---\n\n## 🧪 Running the Tests\n\n```bash\npython3 -m unittest discover -s tests -v\n```\n\nThe suite uses only the standard library and does not invoke any agent CLI.\n\n---\n\n## 📋 The Inter-Agent Handoff Contract (`HANDOFF.md`)\n\nWhenever an agent concludes its phase, it produces or updates `HANDOFF.md` in the repository root:\n\n```markdown\n# Tri-Agent Handoff Contract\n\n## Metadata\n- **Workflow ID:** `wf-20261110-a9f3b1`\n- **Active Feature:** `auth-middleware`\n- **Current Phase:** `Phase 1: Architecture & Specification`\n- **Completed By:** `agy`\n- **Next Agent:** `claude`\n- **Timestamp:** `2026-11-10T16:00:00Z`\n\n## What Was Done\n- Designed RS256 token rotation architecture.\n- Outlined CSRF defense and SameSite=Strict cookie invariants.\n\n## Key Files & Artifacts\n- Specification: `docs\u002Ftri-agent\u002FSPEC-auth.md`\n\n## Critical Constraints & Decisions\n- Token expiration: 15 minutes access, 7 days refresh.\n- No third-party heavy dependencies; use native Web Crypto or jose.\n\n## Verification Checklist for Next Agent\n- [ ] Implement `src\u002Fmiddleware\u002Fauth.ts` matching `SPEC-auth.md`.\n- [ ] Export `AuthRequest` and `TokenPayload` types.\n- [ ] Update `HANDOFF.md` and set Next Agent to `codex`.\n```\n\n---\n\n## 🛠️ Tri-Agent CLI Usage\n\nThe repository includes a dedicated CLI helper (`bin\u002Ftri-agent`):\n\n```bash\n# Check system health across all 3 agent CLIs\ntri-agent doctor\n\n# Install the skill to ~\u002F.agents\u002Fskills, ~\u002F.claude\u002Fskills, and ~\u002F.codex\u002Fskills\ntri-agent install-skill\n\n# Summarize the handoff in the current project (metadata + checklist progress); --raw prints the full file\ntri-agent handoff status\n\n# Initialize a new handoff contract\ntri-agent handoff create --feature \"rate-limiter\" --completed agy --next claude\n\n# Run a workflow: relay (default), debate, or audit\ntri-agent run --workflow relay --prompt \"Build modern auth middleware with JWT rotation\"\ntri-agent run --workflow debate --prompt \"Choose a session store for the cart\"\ntri-agent run --workflow audit --feature uploads --prompt \"Harden the file upload endpoint\"\n\n# Preview the exact commands without invoking any agent\ntri-agent run --workflow relay --prompt \"Build file upload component\" --dry-run\n```\n\n**Requirements:** Python 3.9+ (standard library only, no `pip install` step).\n\n## 🛡️ Safety Model\n\nEvery stage is checked before the next agent starts. A run stops at the first violation, and `tri-agent run` exits non-zero so it can gate scripts and CI.\n\n| Check | What it enforces |\n| :--- | :--- |\n| **Artifacts** | Each step's expected files (for example `docs\u002Ftri-agent\u002FSPEC-\u003Cfeature>.md`) exist and are non-empty. |\n| **Handoff** | `HANDOFF.md` was rewritten by this step, with the expected `Completed By` and `Next Agent`. A stale file from an earlier run does not count. |\n| **Write scope** | The read-only-by-intent auditor may only change `docs\u002Ftri-agent\u002F` and `HANDOFF.md`. Any other git-visible change stops the run. |\n| **Concurrency** | A lock at `tmp\u002Ftri-agent\u002Frun.lock` stops a second run in the same repository. A stale lock from a dead process is taken over. |\n| **Audit trail** | Every agent's prompt and output is saved under `tmp\u002Ftri-agent\u002Fruns\u002F\u003Ctimestamp>-\u003Cfeature>\u002F`. |\n\nThe write-scope check is **detection, not prevention**. An agent can still edit a forbidden file during its turn. The run then stops and reports the path, but the edit stays in the working tree for you to review or revert.\n\n**Permissions for headless runs.** Each step passes the agent's own permission mode:\n\n| Agent | Edit steps | Command |\n| :--- | :--- | :--- |\n| Claude Code | `--permission-mode acceptEdits` | `--print` |\n| Codex | `--sandbox workspace-write` | `exec` |\n| Antigravity | `--mode accept-edits` | `--print` |\n\nEdits are allowed, but **shell commands are not auto-approved**. Headless Claude Code and Antigravity deny tool calls such as running tests unless you allow them. Antigravity's denial message points to `permissions.allow` in its `settings.json`. Granting that is a security decision for you, so this tool does not do it. Before relying on unattended test runs, do one supervised run per agent and confirm the test step actually executes; this has not been verified end to end.\n\n**Output size.** Each agent call is limited to 600 seconds by default. Change it with `--timeout`.\n\n---\n\n## 📂 Repository Structure\n\n```\ntri-agent-orchestrator\u002F\n├── SKILL.md                            # Universal Agent Skill definition\n├── README.md                           # Documentation & architecture guide\n├── LICENSE                             # MIT License\n├── init-repo.sh                        # Git initialization and GitHub push script\n├── bin\u002F\n│   └── tri-agent                       # Executable CLI orchestrator\n├── lib\u002F\n│   ├── agents.py                       # CLI invocation wrappers for agy, claude, codex\n│   ├── __init__.py\n│   ├── orchestrator.py                 # Handoff contracts, skill installation, environment checks\n│   ├── templates.py                    # Renders templates\u002F files with {{PLACEHOLDER}} values\n│   └── workflows.py                    # Relay \u002F debate \u002F audit stage planning and execution\n├── workflows\u002F\n│   ├── 01-relay-pipeline.md            # Research -> Build -> Verify pipeline\n│   ├── 02-parallel-debate.md           # Multi-agent architecture consensus\n│   └── 03-redteam-audit.md             # Implementation & adversarial red-team audit\n├── templates\u002F\n│   ├── HANDOFF.template.md             # Handoff contract (single source of truth)\n│   └── AGENT_SPEC.template.md          # Architectural spec schema template\n├── examples\u002F\n│   ├── auth-middleware-walkthrough.md  # Auth middleware walkthrough\n│   └── file-upload-spec-walkthrough.md # File upload walkthrough\n├── .github\u002Fworkflows\u002F\n│   └── ci.yml                          # Tests on Python 3.9 and 3.12, dry-run smoke test\n├── tests\u002F\n│   └── test_tri_agent.py               # Unit tests (standard library only)\n└── scripts\u002F\n    └── install-skill.sh                # Cross-agent skill installation (delegates to bin\u002Ftri-agent)\n```\n\n---\n\n## 🤝 Prompting the Agents\n\nOnce the skill is active, you can invoke your workflows naturally:\n\n### In Antigravity:\n```text\n\"Run the tri-agent workflow to research and build a modern auth middleware for my app.\"\n```\n\n### In Claude Code:\n```text\n\"Read HANDOFF.md and implement the components outlined in docs\u002Ftri-agent\u002FSPEC.md.\"\n```\n\n### In OpenAI Codex:\n```text\n\"Check HANDOFF.md, write unit and edge-case tests for the new auth middleware, and verify they all pass.\"\n```\n\n---\n\n## 📄 License\n\nDistributed under the [MIT License](LICENSE).\n","Tri-Agent Orchestrator 是一个面向软件工程全周期的多智能体协同编排框架，通过标准化交接协议（HANDOFF.md）串联 Google Antigravity（架构与安全审计）、Anthropic Claude Code（语义建模与代码重构）和 OpenAI Codex（测试生成与部署交付）三类专业 AI 编程助手。其核心特点是分阶段职责划分、跨代理契约化通信、防幻觉级协同验证，支持从系统设计、核心实现到可靠性加固的端到端自动化。适用于中大型代码库的智能协作开发、AI 辅助技术方案评审、高可信度代码生成等工程化场景。",2,"2026-11-24 04:53:20","CREATED_QUERY"]