promachos
v1.0.1
Published
Standardized protocol for human-AI collaboration - making AI assistance predictable, trackable, and scalable
Maintainers
Readme
PROMACHOS
Human-AI Collaboration Protocol
A standardized protocol for consistent, trackable, and collaborative work between humans and AI agents
🎯 What is Promachos?
Promachos is a collaboration protocol that establishes a standardized "contract" between humans and AI agents. Think of it as the "Git workflow" for AI-assisted development - providing structure, consistency, and accountability for teams working with LLMs.
🚨 The Problem We Solve
The AI Collaboration "Wild West":
- Teams improvise different ways to work with AI
- No standard handoff procedures between team members
- Context gets lost between AI sessions
- Inconsistent quality of AI assistance
- No audit trail of AI decisions and changes
- Difficult to scale AI adoption across organizations
🎯 The Promachos Solution
A standardized protocol that provides:
- 🤝 Consistent Collaboration - Standard structure for human-AI interaction
- 🔄 Seamless Handoffs - Team members can pick up where others left off
- 📊 Progress Continuity - Maintain context across multiple AI sessions
- 📋 Audit Trail - Track all AI decisions and changes
- ⚙️ Team Standards - Enforce consistent AI assistance quality
- 🏢 Organizational Governance - Scalable framework for enterprise AI adoption
- 🤖 AI Agent Integration - Auto-discovery for Claude, Copilot, Cursor, etc.
✨ Protocol Features
- 🚀 Zero-Friction Onboarding -
promachos initestablishes the protocol - 🔍 Smart Context Detection - Auto-discovers project structure and needs
- 📊 State Management - Persistent tracking of AI collaboration progress
- 📋 Universal AI Compatibility - Works with ChatGPT, Claude, Copilot, etc.
- 🎨 Flexible Implementation - Adapts to any team workflow
- 💻 Cross-Platform - Consistent experience across environments
🚀 Quick Start
Installation
# Install globally (recommended)
npm install -g promachos
# Verify installation
promachos --version
# Or use without installation
npx promachos initRequirements: Node.js 16+ and npm 7+. See INSTALL.md for detailed installation instructions.
Establish the Protocol (30 seconds)
# In your project directory
cd /path/to/your/project
promachos init --auto # Establish protocol structure
promachos start --copy # Generate structured AI promptPaste the generated prompt into any AI assistant. The AI now understands your project structure, history, and collaboration expectations.
The Protocol in Action
Before Promachos:
Human: "Hey ChatGPT, can you help me refactor this React component?"
AI: "Sure! Can you share the code and tell me what you want to change?"
Human: *copies random files, loses context*With Promachos:
Human: *pastes structured prompt*
AI: "I see you're working on the auth module (65% complete). Based on the context, you were implementing OAuth integration. The tests are failing on line 47. Should I continue where you left off or would you like me to review the current progress first?"📖 Protocol Commands
Establish Protocol Structure
promachos init # Interactive protocol setup
promachos init --auto # Auto-detect project and establish protocol
promachos init --type react # Specify project type for protocolGenerate Collaboration Prompt
promachos start # Create structured AI prompt
promachos start --copy # Copy to clipboard
promachos start --browser # Open browser with prompt
promachos start --minimal # Compact prompt for token limitsMonitor Collaboration State
promachos status # Show current protocol state
promachos status --json # Machine-readable output
promachos status --verbose # Detailed collaboration historyConfigure Protocol Behavior
promachos config # Show protocol configuration
promachos config behavior.verbosity # Get AI interaction preference
promachos config cli.auto_copy true # Set collaboration preference
promachos config --edit # Open protocol config in editorExport Protocol State
promachos build # Build complete protocol prompt
promachos build --minimal # Token-optimized version
promachos build --output ./collaboration-state.txt📂 Protocol Structure
After establishing the protocol, Promachos creates:
your-project/
├── .promachos/ # Protocol state directory
│ ├── config.yaml # Collaboration rules & preferences
│ ├── project.md # Standardized project description
│ ├── context.md # Human-AI interaction history
│ ├── progress.json # Quantified collaboration progress
│ ├── tasks.json # Structured task tracking
│ ├── artifacts/ # AI-generated outputs
│ │ └── build_*/ # Protocol state snapshots
│ └── logs/ # Collaboration audit trail
└── [your project files] # Your actual codebaseProtocol Files Explained
| File | Purpose | Who Updates |
|------|---------|-------------|
| config.yaml | AI behavior rules & team preferences | Humans |
| project.md | Structured project context | Humans + AI |
| context.md | Decision history & key insights | AI (supervised) |
| progress.json | Quantified progress metrics | AI |
| tasks.json | Structured task breakdown | Humans + AI |
🤖 AI Agent Integration
Auto-Discovery for Coding Assistants
When you run promachos init, it creates an AI instructions file in your project root that coding assistants automatically discover:
- Claude Code: Creates
CLAUDE.mdwith protocol instructions - GitHub Copilot: Creates
COPILOT.mdfor Copilot awareness - ChatGPT: Creates
CHATGPT.mdfor GPT integration - Cursor: Creates
CURSOR.mdfor Cursor IDE - Generic: Creates
AI_ASSISTANT.mdfor any AI tool
How It Works
- Automatic Detection: AI agents see the instructions file immediately
- Protocol Awareness: The AI understands it should follow Promachos Protocol
- State Management: AI knows where to find and update protocol files
- Consistent Behavior: Same quality regardless of which AI tool you use
Example: Claude Code
When Claude Code opens a project with Promachos:
Claude: "I see CLAUDE.md - I acknowledge the Promachos Protocol is active.
Let me check .promachos/progress.json... You're 45% complete on the auth module.
Should I continue where the last session left off?"🎯 Supported Collaboration Contexts
Promachos establishes protocols for:
- Frontend Projects: React, Vue, Angular, Svelte, Next.js
- Backend Systems: Node.js, Express, Python, Django, Flask
- Mobile Development: React Native, Flutter
- Languages: JavaScript, TypeScript, Python, Java, Go, Rust, PHP, Ruby
- Any codebase: Universal protocol adaptable to any technology
💡 Team Collaboration Examples
Scenario 1: Team Handoff
# Developer A (Monday)
$ cd user-auth-feature
$ promachos init --auto
$ promachos start --copy
[Works with AI assistant, makes progress]
# Developer B (Tuesday)
$ promachos start
📊 Protocol State: user-auth-feature
📊 Previous Context: OAuth integration 60% complete
📊 Last Session: Added JWT middleware, tests failing
📋 Structured handoff prompt ready!Scenario 2: Multi-Session Complex Work
# Week 1: Architecture Planning
$ promachos start
AI: "I see this is a new e-commerce platform. Let's start with the database schema..."
# Week 2: Implementation
$ promachos start
AI: "Continuing from last week's architecture. The user service is complete. Should I proceed with the payment integration as planned?"
# Week 3: Testing & Refinement
$ promachos start
AI: "The payment system is now integrated. I notice 3 remaining test failures. Based on our progress tracking, we're 85% complete..."Scenario 3: Code Review with AI
$ promachos start
AI: "I see 47 changed files since last session. The authentication module looks good, but I notice potential security issues in the password reset flow. Should I provide specific recommendations?"⚙️ Protocol Configuration
Collaboration Rules (.promachos/config.yaml)
project:
name: my-app
type: react
framework: React
behavior:
verbosity: balanced # How detailed should AI responses be?
explain_reasoning: true # Should AI explain its decisions?
ask_before_execute: true # Require human approval for changes?
max_context_size: 8000 # Token limit for AI context
collaboration:
update_progress: true # AI should update progress.json
track_decisions: true # Log important decisions to context.md
require_task_breakdown: true # AI must break work into tasks
quality:
code_review_level: standard # thoroughness of AI code review
test_requirements: true # AI must consider test coverage
documentation_level: standard # level of documentation expectedTeam Standards (~/.config/promachos/config.yaml)
Organization-wide collaboration standards that apply to all projects.
Protocol Governance
# Example enterprise configuration
governance:
require_approval: ["database_changes", "security_updates"]
audit_trail: true
compliance_mode: "strict"
allowed_ai_models: ["gpt-4", "claude-3"]🔧 Advanced Protocol Usage
Custom Collaboration Patterns
promachos init --type custom
# Then define custom collaboration rules in .promachos/project.mdTeam Workflow Integration
# In package.json (team standard)
{
"scripts": {
"ai": "promachos start --copy",
"ai-handoff": "promachos status --verbose",
"ai-review": "promachos start --minimal"
}
}Enterprise Integration
import { Promachos } from 'promachos';
// Programmatic protocol management
const promachos = new Promachos('./project');
await promachos.init({
auto: true,
governance: 'enterprise',
auditLevel: 'strict'
});
const collaborationState = await promachos.build({ minimal: true });
// Send to approved AI models only🎨 Protocol Optimization
Promachos optimizes collaboration for different contexts:
- Standard Protocol: ~3,000-4,000 tokens (full context & history)
- Minimal Protocol: ~2,000-2,500 tokens (essential context only)
- Smart Context: Automatically includes relevant previous decisions
- Token Budget: Respects AI model limits while preserving critical context
🤝 Collaboration Best Practices
For Teams Adopting Promachos:
- Establish Protocol: Use
promachos initconsistently across team - Maintain State: Let AI update protocol files after significant work
- Document Decisions: Important choices get saved to
context.md - Regular Status: Use
promachos statusfor team standups - Clean Handoffs: Always run
promachos startwhen taking over work
For AI Assistants:
When you receive a Promachos prompt, you should:
- Acknowledge Protocol: Confirm you understand the structured context
- Check Progress: Review current status and previous decisions
- Follow Rules: Respect the collaboration preferences in config.yaml
- Update State: Maintain progress.json and context.md throughout work
- Structured Output: Save deliverables to artifacts/ directory
🏢 Enterprise & Team Adoption
Why Organizations Choose Promachos
Governance & Compliance:
- Audit trails for all AI interactions
- Standardized approval workflows
- Compliance with security policies
- Risk management for AI-generated code
Team Efficiency:
- Consistent AI assistance quality
- Reduced onboarding time for AI tools
- Knowledge preservation across team members
- Measurable productivity improvements
Scalability:
- Organization-wide standards
- Integration with existing workflows
- Support for multiple AI models
- Cross-project collaboration patterns
Implementation Roadmap
Phase 1: Pilot team adopts Promachos protocol Phase 2: Establish organization-wide standards Phase 3: Integration with CI/CD and governance tools Phase 4: Custom enterprise features and compliance
🛠️ Protocol Development
Contributing to the Protocol
git clone https://github.com/ramigb/promachos.git
cd promachos
npm install
chmod +x bin/promachos.js
# Test protocol implementation
./bin/promachos.js init --autoProtocol Evolution
- Fork the repository
- Propose protocol improvements
- Test with real team scenarios
- Submit detailed pull request
- Community review and adoption
📄 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
- Inspired by teams struggling with inconsistent AI collaboration
- Built for the era of AI-assisted software development
- Designed to bring order to the "Wild West" of AI tooling
- Thank you to early adopters who helped refine the protocol
The Future of Human-AI Collaboration Starts Here
Promachos Protocol: Making AI collaboration predictable, trackable, and scalable
