|
| 1 | +# commitprompt: Autonomous Multi-Agent Workflow |
| 2 | + |
| 3 | +> Based on the [AAHP Protocol](https://github.com/homeofe/AAHP). |
| 4 | +> This file documents how agents collaborate on this project autonomously. |
| 5 | +
|
| 6 | +--- |
| 7 | + |
| 8 | +## Agent Roles |
| 9 | + |
| 10 | +| Agent | Model | Role | Responsibility | |
| 11 | +| ---------- | --------------------------- | ----------- | -------------------------------------------------- | |
| 12 | +| 🔭 Sonar | perplexity/sonar-pro | Researcher | npm ecosystem, git tooling docs, OSS gaps | |
| 13 | +| 🏛️ Opus | anthropic/claude-opus-4-6 | Architect | ADRs, module design, CLI interface decisions | |
| 14 | +| ⚙️ Sonnet | anthropic/claude-sonnet-4-6 | Implementer | Code, tests, commits, pushes | |
| 15 | +| 💬 ChatGPT | openai-codex/gpt-5.3-codex | Reviewer | Edge cases, error handling, UX of CLI output | |
| 16 | + |
| 17 | +--- |
| 18 | + |
| 19 | +## Pipeline Phases |
| 20 | + |
| 21 | +### 1: Research (Sonar) |
| 22 | +Reads `NEXT_ACTIONS.md`. Searches for: existing tools in the space, relevant npm packages, git diff API docs. Writes findings to `LOG.md`. |
| 23 | + |
| 24 | +### 2: Architecture (Opus) |
| 25 | +Reads Sonar findings. Decides: module structure, algorithm design, CLI interface, dependencies. Writes ADR to `LOG.md` with numbered instructions for Sonnet. |
| 26 | + |
| 27 | +### 3: Implementation (Sonnet) |
| 28 | +Reads ADR. Creates feature branch. Writes code + tests. Runs `npm run build` and `npm test`. Commits and pushes. Updates `STATUS.md` and `DASHBOARD.md`. |
| 29 | + |
| 30 | +### 4: Discussion Round (Opus + ChatGPT) |
| 31 | +Both review the branch. Opus checks architectural adherence. ChatGPT checks edge cases and UX. Findings in `LOG.md`. |
| 32 | + |
| 33 | +### 5: Fix (Sonnet) |
| 34 | +Applies review findings. Re-runs tests. Pushes. Updates `DASHBOARD.md` and `TRUST.md`. |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## Autonomy Boundaries |
| 39 | + |
| 40 | +| Allowed ✅ | Not allowed ❌ | |
| 41 | +| --------------------------------------- | ------------------------------------------- | |
| 42 | +| Write code, tests, docs | Push to `main` | |
| 43 | +| Create and push feature branches | Add runtime deps without LOG.md entry | |
| 44 | +| Run `npm install`, `npm test`, `tsc` | Write credentials or secrets into files | |
| 45 | +| Make architecture decisions | Publish to npm without human approval | |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +## Notification Rule |
| 50 | + |
| 51 | +**Notify project owner only when a full task is done**, not on phase transitions. |
| 52 | +Format: `✅ commitprompt [feature] done - Branch: feat/... - Tests: X/X` |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +*This project is an AAHP case study - the workflow IS the product documentation.* |
0 commit comments