A standardized protocol for consistent, trackable, and collaborative work between humans and AI agents
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 AI Collaboration "Wild West":
A standardized protocol that provides:
promachos init establishes the protocol# Install globally (recommended)
npm install -g promachos
# Verify installation
promachos --version
# Or use without installation
npx promachos init
Requirements: Node.js 16+ and npm 7+. See INSTALL.md for detailed installation instructions.
# In your project directory
cd /path/to/your/project
promachos init --auto # Establish protocol structure
promachos start --copy # Generate structured AI prompt
Paste the generated prompt into any AI assistant. The AI now understands your project structure, history, and collaboration expectations.
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?"
promachos init # Interactive protocol setup
promachos init --auto # Auto-detect project and establish protocol
promachos init --type react # Specify project type for protocol
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 limits
promachos status # Show current protocol state
promachos status --json # Machine-readable output
promachos status --verbose # Detailed collaboration history
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 editor
promachos build # Build complete protocol prompt
promachos build --minimal # Token-optimized version
promachos build --output ./collaboration-state.txt
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 codebase
| 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 |
When you run promachos init, it creates an AI instructions file in your project root that coding assistants automatically discover:
CLAUDE.md with protocol instructionsCOPILOT.md for Copilot awarenessCHATGPT.md for GPT integrationCURSOR.md for Cursor IDEAI_ASSISTANT.md for any AI toolWhen 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?"
Promachos establishes protocols for:
# 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!
# 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..."
$ 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?"
.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 expected
~/.config/promachos/config.yaml)Organization-wide collaboration standards that apply to all projects.
# Example enterprise configuration
governance:
require_approval: ["database_changes", "security_updates"]
audit_trail: true
compliance_mode: "strict"
allowed_ai_models: ["gpt-4", "claude-3"]
promachos init --type custom
# Then define custom collaboration rules in .promachos/project.md
# In package.json (team standard)
{
"scripts": {
"ai": "promachos start --copy",
"ai-handoff": "promachos status --verbose",
"ai-review": "promachos start --minimal"
}
}
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
Promachos optimizes collaboration for different contexts:
promachos init consistently across teamcontext.mdpromachos status for team standupspromachos start when taking over workWhen you receive a Promachos prompt, you should:
Governance & Compliance:
Team Efficiency:
Scalability:
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
git clone https://github.com/ramigb/promachos.git
cd promachos
npm install
chmod +x bin/promachos.js
# Test protocol implementation
./bin/promachos.js init --auto
MIT License - see LICENSE file for details.
Promachos Protocol: Making AI collaboration predictable, trackable, and scalable
JavaScript
87.7%
Python
12.3%
A standardized protocol for consistent, trackable, and collaborative work between humans and AI agents
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 AI Collaboration "Wild West":
A standardized protocol that provides:
promachos init establishes the protocol# Install globally (recommended)
npm install -g promachos
# Verify installation
promachos --version
# Or use without installation
npx promachos init
Requirements: Node.js 16+ and npm 7+. See INSTALL.md for detailed installation instructions.
# In your project directory
cd /path/to/your/project
promachos init --auto # Establish protocol structure
promachos start --copy # Generate structured AI prompt
Paste the generated prompt into any AI assistant. The AI now understands your project structure, history, and collaboration expectations.
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?"
promachos init # Interactive protocol setup
promachos init --auto # Auto-detect project and establish protocol
promachos init --type react # Specify project type for protocol
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 limits
promachos status # Show current protocol state
promachos status --json # Machine-readable output
promachos status --verbose # Detailed collaboration history
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 editor
promachos build # Build complete protocol prompt
promachos build --minimal # Token-optimized version
promachos build --output ./collaboration-state.txt
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 codebase
| 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 |
When you run promachos init, it creates an AI instructions file in your project root that coding assistants automatically discover:
CLAUDE.md with protocol instructionsCOPILOT.md for Copilot awarenessCHATGPT.md for GPT integrationCURSOR.md for Cursor IDEAI_ASSISTANT.md for any AI toolWhen 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?"
Promachos establishes protocols for:
# 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!
# 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..."
$ 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?"
.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 expected
~/.config/promachos/config.yaml)Organization-wide collaboration standards that apply to all projects.
# Example enterprise configuration
governance:
require_approval: ["database_changes", "security_updates"]
audit_trail: true
compliance_mode: "strict"
allowed_ai_models: ["gpt-4", "claude-3"]
promachos init --type custom
# Then define custom collaboration rules in .promachos/project.md
# In package.json (team standard)
{
"scripts": {
"ai": "promachos start --copy",
"ai-handoff": "promachos status --verbose",
"ai-review": "promachos start --minimal"
}
}
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
Promachos optimizes collaboration for different contexts:
promachos init consistently across teamcontext.mdpromachos status for team standupspromachos start when taking over workWhen you receive a Promachos prompt, you should:
Governance & Compliance:
Team Efficiency:
Scalability:
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
git clone https://github.com/ramigb/promachos.git
cd promachos
npm install
chmod +x bin/promachos.js
# Test protocol implementation
./bin/promachos.js init --auto
MIT License - see LICENSE file for details.
Promachos Protocol: Making AI collaboration predictable, trackable, and scalable
JavaScript
87.7%
Python
12.3%