Skip to content

kunpeng-ai-lab/agent-collaboration-sop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Collaboration SOP

Created and maintained by kunpeng-ai-lab.

Official site: kunpeng-ai.com

English article: Why Multi-Agent Engineering Needs ACS

Agent Collaboration SOP, abbreviated as ACS, is a vendor-neutral workflow for two-agent engineering collaboration. It works with Codex, Claude Code, OpenClaw, Hermes, and other coding agents that can read project files, edit code, run tests, and produce handoffs.

What ACS Solves

ACS is designed for teams that use one agent as the Executor and another as the Reviewer.

It prevents common failures:

  • the Executor self-approves its own work
  • the Reviewer only runs tests and misses architecture or goal drift
  • Owner decisions are lost in chat history
  • scope changes slip into implementation without approval
  • tests pass but the work violates the approved design
  • public, upstream, or customer-visible claims lack screenshots or ledger proof

Default Collaboration Model

ACS defaults to single-responsibility collaboration.

Role Responsibility
Owner Final decision maker for goals, scope, phase entry, release, upstream PRs, and business boundaries
Executor Agent Designs within approved scope, implements, self-tests, documents, and writes handoff
Reviewer Agent Reviews design, code, tests, architecture, goal alignment, evidence, safety, and reports consensus to Owner

Cross-review mode is an advanced variant and should be used only when the Owner explicitly assigns it.

Communication Routing

Long-term route:

Executor -> Reviewer -> Owner
Owner -> Reviewer -> Executor
  • Executor does not directly communicate with Owner during normal execution.
  • Executor messages to Owner are routed through Reviewer.
  • Owner instructions to Executor are routed through Reviewer.
  • Reviewer consolidates Owner intent, ACS constraints, and review expectations.

See docs/communication-routing.md.

Every formal ACS message must include a Message ID such as 202605061145-E01. See docs/message-id-rules.md. Receivers should check for duplicate Message IDs before acting.

Formal messages should be copied as one complete fenced code block. If a client cannot preserve Markdown fences, use the fallback ACS message envelope: <<<ACS_MESSAGE_BEGIN>>> as the first line and <<<ACS_MESSAGE_END>>> as the last line. See docs/message-envelope-rules.md.

Long handoffs should not be copied through chat. Write the full handoff to a project file and send only a short path-based notification. See docs/file-first-handoff-rules.md.

Mandatory ACS Invocation

Before project work, sync ACS according to docs/acs-sync-rules.md:

cd <ACS 本地路径>
git pull origin main
git rev-parse --short HEAD

Every development/design task from Reviewer to Executor must include:

请遵循 ACS 项目(<ACS 本地路径>)规范进行(<设计/编码>)。

Every review request from Executor to Reviewer must include:

请按照 ACS 项目(<ACS 本地路径>)规范进行(<测试/审核>)。

Replace <ACS 本地路径> with the real local ACS clone path. Replace <设计/编码> or <测试/审核> with the actual task type, such as 设计, 编码, 设计/编码, 测试, 审核, or 测试/审核.

If an agent has already stored an older ACS wording in memory or local rules, it must replace that wording with the templates above.

When latest ACS is explicitly requested, the ACS version changed, or new ACS redlines may affect the task, complete docs/acs-adoption-check.md. Syncing only proves files were updated; Adoption Check proves the agent read the relevant files, summarized the delta, and updated its behavior.

Quick Start

  1. Clone ACS:
git clone git@github.com:kunpeng-ai-lab/agent-collaboration-sop.git E:\workspace\agent-collaboration-sop
  1. Copy templates into the target project:
templates/project-sop.md -> docs/PROJECT_SOP.md
templates/executor-handoff.md -> docs/<phase>-executor-handoff.md
templates/reviewer-report.md -> docs/<phase>-reviewer-report.md
templates/owner-consensus-report.md -> docs/<phase>-owner-consensus-report.md
templates/evidence-ledger.md -> docs/<work-item>-evidence-ledger.md
  1. Ask the Owner the initialization questions in docs/initialization-questionnaire.md.

  2. Record project name, project short name, Owner title, Executor short name, Reviewer short name, ACS local path, scope, non-scope, exit criteria, and redline rules in docs/PROJECT_SOP.md.

  3. Start work only after the approved phase is clear.

Reviewer Quality Bar

The Reviewer must check more than whether the code runs.

Reviewer must review:

  • project goal alignment
  • approved design and plan alignment
  • architecture and module boundaries
  • decoupling and dependency direction
  • test coverage, including failure paths
  • security, credentials, redaction, and leakage risk
  • evidence ledger and screenshots
  • release, deployment, upstream, and customer-visible risk
  • whether important code and module methods are human-debuggable

See:

Case Studies And Anti-Patterns

ACS learns from phase closures.

  • case-studies/ stores sanitized standard collaboration cases.
  • anti-patterns/ stores sanitized examples of surface-level compliance.
  • templates/case-study-summary.md is the required summary template.
  • docs/public-content/ stores sanitized public-source material for website articles, community posts, screenshot briefs, and case-library contribution calls.

These materials must be redacted before commit. They are for reusable learning, not for exposing private project details.

Reviewer redaction approval is mandatory. A case study or anti-pattern cannot be committed, published, shared, or reused until the Reviewer records redaction approval in the case file and source project evidence/review ledger.

Project Structure

agent-collaboration-sop/
  README.md
  CONTRIBUTING.md
  SKILL.md
  docs/
    communication-routing.md
    acs-adoption-check.md
    message-id-rules.md
    initialization-questionnaire.md
    protocol.md
    naming-rules.md
    reviewer-quality-bar.md
    reviewer-testing-playbook.md
    reviewer-evidence-gates.md
    reviewer-product-validation.md
    case-study-redaction.md
    technical-design-rules.md
    engineering-governance.md
  templates/
    project-sop.md
    executor-handoff.md
    reviewer-report.md
    owner-consensus-report.md
    evidence-ledger.md
    case-study-summary.md
  case-studies/
  anti-patterns/
  adapters/
    codex.md
    claude-code.md
    openclaw.md
    hermes.md
  examples/
    single-responsibility-example.md

License

MIT.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors