Observed since 20 Oct, 21:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A general-purpose coordination protocol and CLI for multiple AI coding agents working on one repository.
A general-purpose coordination protocol and artifact generator for multiple AI coding agents working on one repository.
Agent Collab is a repository orchestration protocol for AI coding agents, automation workflows, and human coordinators. It gives a team of agents a shared operating model for working on the same codebase without overwriting each other, losing context, duplicating work, or merging unreviewed changes.
The core idea is simple:
This repository is both:
SKILL.md as the agent-facing entry point for runtimes that support skill-style instructions.agent-collab command for creating standardized .agent/ coordination files.AI agents are effective at focused coding tasks, but multi-agent work fails quickly when agents share one working directory or rely on hidden chat state. Common failure modes include:
Agent Collab addresses these failures by making coordination explicit, durable, and reviewable.
.agent/ repository stateagent-collab/
pyproject.toml
SKILL.md
README.md
agents/
openai.yaml
references/
artifacts-and-templates.md
quality-review-testing-merge.md
role-playbooks.md
security-and-escalation.md
worktree-and-branch-protocol.md
src/
agent_collab/
cli.py
coordination.py
tests/
test_cli.py
test_coordination.py
SKILL.mdThe agent-facing runtime instructions. Any compatible agent runtime can load this file, and humans can also use it as the concise operating guide.
agents/openai.yamlOptional runtime metadata for platforms that read skill catalog metadata. It is not required for standalone use.
references/Detailed playbooks that keep SKILL.md concise while preserving a comprehensive protocol.
src/agent_collab/The installable Python package. cli.py contains the Typer CLI and coordination.py contains the artifact-generation logic.
Install the CLI directly from GitHub:
python3 -m pip install "git+https://github.com/egesabanci/agent-collab.git"
Or clone this repository wherever you keep shared agent instructions or workflow tools:
git clone git@github.com:egesabanci/agent-collab.git
cd agent-collab
Then install the CLI from the local checkout:
python3 -m pip install .
For local development, install it in editable mode:
python3 -m pip install -e .
Use it in any of these ways:
SKILL.md.agent-collab CLI to create .agent/ coordination artifacts.Example agent prompt:
Use Agent Collab to coordinate multiple coding agents safely on this repository task.
From the repository where agents will collaborate, initialize the coordination directory:
agent-collab init
Create a task:
agent-collab new-task \
--id TASK-001 \
--title "API Client Refactor" \
--owner coordinator \
--risk medium \
--check lint \
--check typecheck \
--check tests \
--check build
Create role worktrees:
git fetch origin
git worktree add ../repo-implementer -b agent/impl/TASK-001-api-client-refactor origin/main
git worktree add ../repo-reviewer -b agent/review/TASK-001-api-client-refactor origin/main
git worktree add ../repo-tester -b agent/test/TASK-001-api-client-refactor origin/main
After implementation, create a handoff:
agent-collab handoff \
--task TASK-001-api-client-refactor \
--role implementer \
--branch agent/impl/TASK-001-api-client-refactor \
--worktree ../repo-implementer
Create review and test reports:
agent-collab review \
--task TASK-001-api-client-refactor \
--branch agent/impl/TASK-001-api-client-refactor
agent-collab test-report \
--task TASK-001-api-client-refactor \
--branch agent/impl/TASK-001-api-client-refactor
Prepare merge readiness:
agent-collab merge-recommendation \
--task TASK-001-api-client-refactor \
--recommendation needs_changes \
--risk medium \
--human-approval-required yes
.agent/ DirectoryAgent Collab creates and uses a .agent/ directory in the target repository:
.agent/
README.md
status.json
tasks/
handoffs/
decisions/
reviews/
test-reports/
risks/
protocols/
scratch/
This directory is the durable memory layer for the agent team.
.agent/status.jsonTracks the active task, current phase, protected branches, assigned agents, and merge readiness.
Only a coordinator agent or explicitly assigned agent should update this file. If ownership is unclear, write a handoff or risk note instead of racing on shared state.
.agent/tasks/Contains scoped task definitions with:
.agent/handoffs/Contains structured handoffs between roles.
A valid handoff answers:
.agent/decisions/Contains ADRs for architectural decisions.
Use ADRs for changes to:
.agent/reviews/Contains reviewer output. Reviewers must inspect the diff, not just final files.
Reviews cover:
.agent/test-reports/Contains verification evidence:
.agent/risks/Contains conflicts, blockers, high-risk notes, and human decision requests.
Use this directory when two agents touch overlapping files or when a decision needs human approval.
.agent/protocols/Contains task-specific protocols, especially file ownership maps for parallel work.
Agent Collab defines a small set of roles. Use only the roles needed for the task.
| Role | Purpose |
|---|---|
| Coordinator | Scope, sequencing, assignment, worktree routing, merge recommendation |
| Architect | Design, boundaries, ADRs, risk analysis, test strategy |
| Implementer | Scoped code changes, tests, commits, implementation handoff |
| Reviewer | Diff review for correctness, architecture, security, reliability, maintainability |
| Tester | Verification, reproduction, smoke tests, test reports |
| Documentation | README, docs, examples, migration notes, operational notes |
| Integration | Conflict resolution, branch freshness, final checks, merge readiness |
Every agent should begin by confirming:
Before editing, an agent should run:
git status
git branch --show-current
git log --oneline -5
Before handoff, an agent should run:
git status
git diff
git diff --stat
The CLI is built with Typer and installed as agent-collab.
Run from the target repository root:
agent-collab <command>
Or pass an explicit target:
agent-collab <command> --root /path/to/repo
The command examples below assume the package is installed in your current Python environment.
initCreate the .agent/ directory structure.
agent-collab init \
--project example-project \
--phase planning \
--protected-branches main,master,production,staging
new-taskCreate a task file.
agent-collab new-task \
--id TASK-002 \
--title "Improve checkout error handling" \
--owner implementer \
--risk high \
--check lint \
--check tests \
--check build
handoffCreate a role handoff.
agent-collab handoff \
--task TASK-002-improve-checkout-error-handling \
--role implementer \
--branch agent/impl/TASK-002-improve-checkout-error-handling \
--worktree ../repo-implementer \
--status needs_review \
--next-agent reviewer
adrCreate an architecture decision record.
agent-collab adr \
--number 1 \
--title "Use Server-Side API Wrapper"
reviewCreate a review template.
agent-collab review \
--task TASK-002-improve-checkout-error-handling \
--branch agent/impl/TASK-002-improve-checkout-error-handling \
--status changes_requested \
--recommendation request_changes
test-reportCreate a test report template.
agent-collab test-report \
--task TASK-002-improve-checkout-error-handling \
--branch agent/impl/TASK-002-improve-checkout-error-handling \
--recommendation needs_fix
conflictCreate a conflict note.
agent-collab conflict \
--task TASK-002-improve-checkout-error-handling \
--title "Checkout API and Billing Boundary" \
--type architectural \
--requires-human yes
file-ownershipCreate a file ownership map.
agent-collab file-ownership \
--task TASK-002-improve-checkout-error-handling
human-decisionCreate a human decision note.
agent-collab human-decision \
--task TASK-002-improve-checkout-error-handling \
--title "Choose Billing Retry Policy" \
--risk high
merge-recommendationCreate a final merge recommendation.
agent-collab merge-recommendation \
--task TASK-002-improve-checkout-error-handling \
--recommendation needs_human_decision \
--risk high \
--human-approval-required yes
Agent Collab expects one worktree per agent role or independently owned task slice.
Example:
repo/
../repo-architect/
../repo-implementer-api/
../repo-implementer-ui/
../repo-reviewer/
../repo-tester/
../repo-integration/
Recommended branch names:
agent/architect/TASK-002-api-client-refactor
agent/impl/TASK-002-api-client-refactor
agent/impl-frontend/TASK-002-api-client-refactor
agent/impl-backend/TASK-002-api-client-refactor
agent/review/TASK-002-api-client-refactor
agent/test/TASK-002-api-client-refactor
agent/docs/TASK-002-api-client-refactor
agent/integration/TASK-002-api-client-refactor
Parallel work is safest when agents own different parts of the system.
Good split:
Agent A: backend API route
Agent B: frontend UI state
Agent C: documentation
Agent D: tests
Risky split:
Agent A: auth middleware
Agent B: API client
Agent C: session handling
Agent D: routing layer
Risky splits require a file ownership map and explicit integration plan.
A task is merge-ready only when:
Agent Collab treats these areas as high risk:
High-risk changes require focused review and often human approval.
If a secret is committed, stop and escalate. Do not merely delete it in a later commit and continue.
Agent Collab is not:
It is a protocol and artifact generator that makes multi-agent work more explicit, inspectable, and recoverable.
If your agent runtime provides a package or skill validator, run it against the repository root. At minimum, validate the frontmatter and metadata YAML:
python3 - <<'PY'
from pathlib import Path
import yaml
skill = Path("SKILL.md").read_text()
yaml.safe_load(skill.split("---", 2)[1])
yaml.safe_load(Path("agents/openai.yaml").read_text())
print("metadata ok")
PY
Validate the package and CLI with:
python3 -B -m py_compile src/agent_collab/*.py
agent-collab --help
Run the unit test suite:
python3 -m pip install -e ".[dev]"
python3 -m pytest
Smoke-test artifact generation in a temporary directory:
tmpdir="$(mktemp -d)"
agent-collab init --root "$tmpdir" --project demo
agent-collab new-task --root "$tmpdir" --id TASK-001 --title "Demo Task"
find "$tmpdir/.agent" -maxdepth 2 -type f | sort
rm -rf "$tmpdir"
Keep SKILL.md concise and agent-facing. Put detailed protocol material in references/, and keep deterministic, repeatable generation behavior in src/agent_collab/.
When changing the protocol:
SKILL.md only if the runtime entry point changes.src/agent_collab/coordination.py when templates or artifact names change, and src/agent_collab/cli.py when command behavior changes.A general-purpose coordination protocol for multiple AI coding agents working on one repository with worktree isolation, structured handoffs, review, testing, and merge readiness.
Agent Collab is released under the MIT License. See LICENSE.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 30 May 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f4cff116a1a213d4a435100c6006c7e8a9f5ebeb4010b1359019fef240733ec8