Open protocol and toolkit for semantic integration in multi-agent software development.
Project description
CoProgrammer
CoProgrammer is an open protocol and toolkit for multi-agent software development in the AI coding era.
CoProgrammer 同时支持中文团队协作场景:PR 分支消化报告可以用
zh-CN 输出,也可以通过仓库变量切回英文。
The project starts from one practical belief:
AI-era merging is not only a text conflict problem. It is a semantic integration problem.
When several humans and AI agents work in parallel, the hard part is no longer choosing one side of a merge conflict. The hard part is understanding what each branch learned, preserving the useful insight, discarding noise, and rebuilding the smallest safe patch on top of the current main branch.
Where CoProgrammer Sits
CoProgrammer is not another parallel-agent orchestrator. It is the missing layer between orchestrators and the merge queue:
UPSTREAM agent runtimes & orchestrators
(Conductor, Sculptor, Vibe Kanban, Claude Squad,
Codex, Copilot Cloud Agent, OpenHands, ...)
→ produce parallel branches
│
COPROGRAMMER integration & governance layer
protocol → telemetry → conflict forecast →
branch digest → integration plan →
minimal patch → integration record → policy update
│
DOWNSTREAM landing infrastructure
(Merge Queue / Merge Trains / Mergify / Graphite,
CI, CODEOWNERS, branch protection)
Orchestrators solve "run N agents in parallel without stepping on each other."
CoProgrammer solves "when N branches come back, decide what deserves to reach
main, and rebuild it safely under main-branch constraints." See
docs/ORCHESTRATOR_INTEGRATION.md for concrete hookup recipes.
Core Loop
CoProgrammer organizes collaboration as a continuous loop:
- Protocol before coding: define main-branch principles, module boundaries, shared contracts, protected files, and agent permissions.
- Telemetry during coding: agents publish heartbeats, contract changes, current file ownership, experiments, and blockers.
- Digest after coding: a feature branch is summarized by intent, core contribution, noise, contract changes, risks, and integration plan.
- Semantic integration: instead of directly merging a large AI branch, an
integration patch is rebuilt from latest
mainunder main-branch constraints. - Validation and feedback: tests, contract checks, owner review, and merge records update the protocol for the next cycle.
Repository Map
.
├── docs/ Research route, framework, and MVP design
├── protocols/ Human-readable collaboration protocols
├── research/ Structured research leads and prior-art data
├── schemas/ JSON schemas for machine-readable agent artifacts
├── templates/ Task, heartbeat, digest, and integration templates
├── src/coprogrammer/ First CLI scaffold
├── tests/ Unit tests for the CLI scaffold
├── AGENTS.md Minimal stable instructions for coding agents
├── .coprogrammer.json Project policy config
└── .github/ PR template, issue templates, CI, and PR digest workflow
Start with:
docs/COORDINATION_LIFECYCLE.mdfor the before/during/after collaboration loop: project covenant, Manager Plane synchronization, and post-PR semantic integration;docs/ECOSYSTEM_EXTENSION_STRATEGY.mdfor the research method and MCP, skill, plugin, GitHub automation, and open-source library integration plan;docs/PLUGIN_QUICKSTART.mdfor installing and using the repo-local CoProgrammer Codex plugin;docs/COMPREHENSIVE_RESEARCH_PLAN.mdfor the research program and six-week sprint;docs/RESEARCH_UPDATE_2026-05-25.mdfor the latest Manager Plane evidence update;docs/RESEARCH_PROTOCOL.mdfor how to capture and evaluate research leads;docs/FAILURE_TAXONOMY.mdfor the failure modes CoProgrammer targets;docs/RESEARCH_LANDSCAPE.mdfor current tool landscape and gaps;docs/OPEN_SOURCE_SCAN.mdfor adjacent open-source projects and reusable features;docs/FEATURE_GAP_MATRIX.mdfor product-level comparison;docs/DISCUSSIONS.mdfor discussion categories and research intake;docs/ARCHITECTURE.mdfor the system architecture;docs/MANAGER_PLANE.mdfor the cloud/self-hosted control plane hypothesis;docs/MANAGER_API_SKETCH.mdfor the first Manager API surface;docs/EVENT_LOG_PROTOTYPE.mdfor the local Manager Plane prototype;docs/AGENT_RUNTIME_INTEROP.mdfor integrating with Codex, Copilot, OpenHands, and other runtimes;docs/CONTEXT_FILE_STRATEGY.mdfor keepingAGENTS.mdsmall and structured state separate;docs/INTEGRATION_PATCH_DESIGN.mdfor the minimal-patch reconstruction design;docs/MODEL_ROUTING_POLICY.mdfor routing simple work tocodex-5.3and high-risk work to review;docs/HIGH_STAR_PROJECT_SCAN_2026-05-26.mdfor high-star project patterns to borrow;docs/FRAMEWORK.mdfor the research framework;docs/ORCHESTRATOR_INTEGRATION.mdfor feeding Conductor, Sculptor, Vibe Kanban, and cloud-agent branches into CoProgrammer;docs/STRATEGY_MEMO_2026-06-10.mdfor the latest positioning and priority decisions;docs/EVAL_PLAN.mdfor the AgenticFlict-based evaluation plan;ACKNOWLEDGMENTS.mdfor the projects we learn from and how we credit them.
Install (pick your surface)
CoProgrammer ships one core through several thin wrappers — use whichever
your stack already speaks (details: docs/DISTRIBUTION_STRATEGY.md):
MCP server (Claude Code, Codex, Cursor, any MCP client):
{ "mcpServers": { "coprogrammer": {
"command": "uvx", "args": ["coprogrammer", "mcp", "serve"] } } }
Tools exposed: digest_branch, manager_status, manager_forecast,
lease_request, heartbeat, contract_propose.
Agent Skills (SKILL.md open standard — Claude Code, Codex CLI, Gemini
CLI, Copilot, Cursor, 35+ tools): copy plugins/coprogrammer/skills/* into
your agent's skills directory.
GitHub Action (PR branch digest, zero setup):
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: QIU-Guanzong/CoProgrammer@v0
with: { language: zh-CN }
CLI: pipx install coprogrammer (or from source:
python -m pip install -e .).
Codex plugin: codex plugin marketplace add <this repo> — see
docs/PLUGIN_QUICKSTART.md.
First MVP
The first useful version is a Branch Digest Bot:
- reads a PR diff and commit history;
- detects contract-sensitive files and architecture risk signals;
- generates a branch digest draft;
- asks reviewers to approve an integration plan before merging;
- keeps direct AI-generated mega-branches out of
main.
The first GitHub Actions version is included in
.github/workflows/pr-digest.yml. It generates branch-digest.md, uploads it
as an artifact, and updates a stable PR comment for same-repository PRs.
This repository already contains a minimal local CLI prototype:
python -m coprogrammer digest --base origin/main --head HEAD --output branch-digest.md
python -m coprogrammer digest --base origin/main --head HEAD --language zh-CN
python -m coprogrammer digest --base origin/main --working-tree
python -m coprogrammer config validate
python -m coprogrammer agents check
python -m coprogrammer manifest validate templates/change-manifest.json
python -m coprogrammer integration-plan validate templates/integration-plan.json
python -m coprogrammer heartbeat new --agent agent-a --task "Implement login API"
python -m coprogrammer manager lease request --holder agent-a --pattern "src/api/**"
python -m coprogrammer manager contract propose --proposer agent-a --kind api --name "POST /login" --summary "Add login endpoint"
python -m coprogrammer manager forecast --base origin/main --fail-on-conflict
python -m coprogrammer manager status
Language can also be controlled by COPROGRAMMER_LANGUAGE=en|zh-CN.
For local development:
python -m pip install -e .
python -m unittest discover -s tests
Project Goals
- Create an open protocol for AI-assisted multi-agent collaboration.
- Make branch intent, contracts, and insights first-class artifacts.
- Reduce merge conflicts by forecasting ownership and contract collisions early.
- Preserve useful experiments without merging noisy generated code.
- Help reviewers inspect integration plans instead of massive raw diffs.
Non-Goals
- CoProgrammer is not a replacement for Git, GitHub, GitLab, or CI.
- CoProgrammer does not blindly auto-merge AI output.
- CoProgrammer does not treat formatting churn, dependency upgrades, and feature logic as the same kind of change.
Status
This is an early research and tooling scaffold. The current focus is:
- protocol design;
- branch digest format;
- lightweight CLI;
- GitHub Action integration;
- project policy and risk scoring;
- later: semantic integration bot and multi-agent orchestrator.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coprogrammer-0.1.0.tar.gz.
File metadata
- Download URL: coprogrammer-0.1.0.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
023d1c7c8a1efecc92a599dd0dbf412b91e7518b69f6823c03f61e9eb63d0dfd
|
|
| MD5 |
10ad854369a3293bc1ed172b7b788989
|
|
| BLAKE2b-256 |
bd9c5f776d448393988ec89847bb1b57793a48422b2fad59af7287865d9d97fb
|
Provenance
The following attestation bundles were made for coprogrammer-0.1.0.tar.gz:
Publisher:
release.yml on QIU-Guanzong/CoProgrammer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coprogrammer-0.1.0.tar.gz -
Subject digest:
023d1c7c8a1efecc92a599dd0dbf412b91e7518b69f6823c03f61e9eb63d0dfd - Sigstore transparency entry: 1773109775
- Sigstore integration time:
-
Permalink:
QIU-Guanzong/CoProgrammer@2d16b251c8b30f4483d236b6ab368ad1b080fd2e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QIU-Guanzong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2d16b251c8b30f4483d236b6ab368ad1b080fd2e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file coprogrammer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: coprogrammer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bf3788b81de004e594ea5e8567b8aac6533d71064806dd3c5659786aaee4583
|
|
| MD5 |
9656aba20bb909b88314be530ea47922
|
|
| BLAKE2b-256 |
88bcc47159d79ccdbf1a612912838dab833083704ada84aaf75b06688522edf4
|
Provenance
The following attestation bundles were made for coprogrammer-0.1.0-py3-none-any.whl:
Publisher:
release.yml on QIU-Guanzong/CoProgrammer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coprogrammer-0.1.0-py3-none-any.whl -
Subject digest:
0bf3788b81de004e594ea5e8567b8aac6533d71064806dd3c5659786aaee4583 - Sigstore transparency entry: 1773109841
- Sigstore integration time:
-
Permalink:
QIU-Guanzong/CoProgrammer@2d16b251c8b30f4483d236b6ab368ad1b080fd2e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QIU-Guanzong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2d16b251c8b30f4483d236b6ab368ad1b080fd2e -
Trigger Event:
workflow_dispatch
-
Statement type: