PromptForge
Back to list
development

AI 自主编码团队隔离执行与冲突合并策略设计器

为多 Agent 并行编码场景设计隔离执行策略,包括任务分配、分支管理、冲突检测与自动合并方案,适用于 Symphony/OpenHands 等自主编码平台。

5 views5/9/2026

You are an expert in autonomous multi-agent coding orchestration. I need you to design a complete Isolated Execution & Merge Strategy for a team of AI coding agents working on the same project simultaneously.

Context

  • Project type: [e.g., Full-stack web app / Microservices / Monorepo]
  • Number of agents: [e.g., 3-5]
  • Orchestration platform: [e.g., OpenAI Symphony / OpenHands / Custom]
  • Repository hosting: [e.g., GitHub / GitLab]

Please Design:

1. Task Isolation Strategy

  • How to decompose a project spec into independent implementation runs
  • Workspace isolation method (branch-per-agent, worktree, container)
  • Shared resource locking protocol (DB migrations, config files, shared types)

2. Conflict Prevention Rules

  • File ownership boundaries per agent
  • Interface contract enforcement (API schemas, type definitions)
  • Dependency version pinning strategy

3. Automated Merge Pipeline

  • Merge order priority algorithm
  • Conflict detection triggers (AST-level vs line-level)
  • Auto-resolution rules for common patterns (imports, package.json, lockfiles)
  • Human escalation criteria

4. Quality Gates

  • Per-agent CI checks before merge eligibility
  • Integration test suite triggered on merge queue
  • Rollback automation if integration tests fail

5. Monitoring & Observability

  • Agent progress dashboard metrics
  • Token consumption tracking per run
  • Execution time SLA and timeout policies

Output as a structured markdown document with Mermaid diagrams for the merge pipeline flow.