Skip to main content

AI-powered project collaboration framework with three-mode CLI (IDE/interactive/agent)

Project description

VibeCollab

PyPI version Python 3.9+ License: MIT

English | 中文文档 | GitHub


  • What it is: A configurable AI collaboration protocol framework with built-in knowledge capture (Insight) and MCP Server.
  • Pain it solves: Turns chaotic AI-assisted development into structured, auditable, and reusable collaboration workflows.
  • Get started: Copy the text below and send it to your AI assistant (Cursor / CodeBuddy / Cline / ...):

Read https://raw.githubusercontent.com/flashpoint493/VibeCollab/master/skill.md and follow the instructions.

That's all you need — the AI will install VibeCollab, initialize your project, and connect to your IDE automatically.


Manual Setup

pip install vibe-collab
vibecollab init -n "MyProject" -d generic -o ./my-project
cd my-project
vibecollab hooks install              # Install pre-commit consistency checks
vibecollab mcp inject --ide cursor   # or: cline / codebuddy / all

That's it. Your AI assistant now follows structured collaboration protocols, captures reusable Insights, and maintains project context automatically. The pre-commit hook ensures every commit passes consistency checks.


Who This Is For / Not For

For

  • Teams using AI assistants (Cursor, Cline, CodeBuddy, etc.) for daily development
  • Projects that need auditable decision trails and knowledge accumulation across sessions
  • Multi-role / multi-Agent environments requiring context isolation and conflict detection
  • Anyone tired of repeating the same context setup at the start of every AI conversation

Not For

  • One-off scripts or throwaway prototypes where process overhead isn't worth it
  • Projects that don't use AI-assisted development at all
  • Environments that cannot tolerate any workflow conventions (fully free-form only)

What It Does

VibeCollab generates a CONTRIBUTING_AI.md collaboration protocol from a single project.yaml config, then connects to your AI IDE via MCP Server. During development, it provides:

  • Onboarding: AI reads project context, progress, and past decisions automatically
  • Insight System: Captures reusable knowledge from development sessions (tag search + semantic search)
  • Task Management: Dialogue-driven task lifecycle (validate → solidify → rollback)
  • Protocol Checking: Auto-verifies that AI follows collaboration rules
  • Multi-Role: Isolated contexts per role/agent (DEV/QA/ARCH/PM/TEST/DESIGN) with cross-role conflict detection

This project uses its own generated collaboration rules for development (meta-implementation), and integrates with the llmstxt.org standard.


Features

MCP Server + AI IDE Integration (v0.9.1)

  • MCP Server (vibecollab mcp serve): Standard Model Context Protocol, auto-connects to Cursor/Cline/CodeBuddy
  • One-command config injection (vibecollab mcp inject): Zero manual setup
  • 16 Tools: insight_search, insight_add, insight_suggest, check, onboard, next_step, search_docs, task_list, task_create, task_transition, session_save, guard_check, guard_list_rules, roadmap_status, roadmap_sync, project_prompt
  • Resources: Auto-exposes CONTRIBUTING_AI.md, CONTEXT.md, DECISIONS.md
  • Prompts: Auto-injects project context and protocol rules at conversation start

Insight Knowledge Capture

  • Signal-driven suggestions (v0.9.2): Recommends candidate Insights from git diffs / doc changes / task transitions
  • Semantic search (v0.9.0): Vector-indexed docs + Insights, pure-Python zero-dependency fallback
  • Tag + weight lifecycle: Decay/reward mechanism, derived tracing, cross-developer sharing

Collaboration Engine

  • Pattern Engine: 27+ Jinja2 templates → CONTRIBUTING_AI.md, manifest-controlled
  • Template Overlay: Override any section via .vibecollab/patterns/
  • Decision Tiers: S/A/B/C levels with review requirements
  • Audit Log: Append-only JSONL with SHA-256 integrity

Multi-Role (v0.11.0)

  • Context isolation per developer/agent
  • Cross-developer conflict detection (file, task, dependency)
  • Role-based permissions (file_patterns, can_create_task_for, can_transition_to)
  • Dynamic skill registration from Insights
  • Shared Insight statistics and provenance tracing

Git Hooks + Guard Protection (v0.11.0)

  • Pre-commit hooks (vibecollab hooks install): Auto-run vibecollab check before every commit
  • Guard Protection Engine: File operation interception with configurable rules (block/warn/allow)
  • MCP Guard Tools: guard_check and guard_list_rules for file operation protection
  • Role permission enforcement: Task create/transition checks against role permissions
  • Quality gate: Blocks commits with insight fingerprint mismatches or protocol errors

Execution Plan (v0.10.7)

  • Unified execution engine: vibecollab plan run is the sole entry point for ALL automation workflows
  • 3 host adapters: file_exchange (file polling), subprocess (CLI tools), auto (keyboard simulation)
  • Auto adapter: --host auto:cursor drives IDE via keyboard simulation — hands-free automation
  • File exchange protocol: vibecollab sends instructions, IDE AI executes with tool-use, writes response back
  • YAML-driven workflows: Define plans with cli, assert, wait, prompt, and loop actions
  • Goal-based termination: Loop continues until check_command passes or max_rounds reached
  • Verbose logging: --verbose/-v for timestamped per-step/per-round execution logs

Architecture Overview

VibeCollab is built on 5 core pillars:

# Pillar Key Commands Purpose
1 Strict Consistency Checking check, health Protocol compliance, doc freshness, Insight integrity, Guard protection
2 Multi-Role + Milestone Scheduling task, roadmap, role Role-isolated contexts, ROADMAP<->Task sync, permissions
3 Complete Document-Aligned Context onboard, session_save CONTEXT/DECISIONS/CHANGELOG/PRD — auto-restored every conversation
4 Insight Knowledge System insight add/search/suggest Capture, index, retrieve reusable knowledge across sessions
5 Autonomous Loop / Self-Iteration plan run, auto Unified execution engine with 3 host adapters

Workflow

1. Setup              pip install vibe-collab && vibecollab init
                             ↓
2. Connect IDE        vibecollab mcp inject --ide cursor
                             ↓
3. Conversation       onboard → read CONTEXT/DECISIONS/ROADMAP → Insight search
        ↓
4. Dev Loop           TaskManager (create → transition → solidify)
        ↓                    ↓
5. Knowledge          Insight add/suggest → reusable knowledge captured
        ↓
6. Session End        Update CONTEXT + CHANGELOG → check → session_save → git commit
        ↓
7. Automation         plan run --host file_exchange  (IDE file polling)
   (optional)         plan run --host auto:cursor    (keyboard simulation)
                      plan run --host subprocess     (CLI tools like aider)

Install

# Basic
pip install vibe-collab

# With MCP Server support (recommended for AI IDE integration)
pip install vibe-collab

# With semantic search (sentence-transformers backend)
pip install vibe-collab[embedding]

# All optional dependencies
pip install vibe-collab[embedding,llm]

Quick Start

Initialize a New Project

# Generic project
vibecollab init -n "MyProject" -d generic -o ./my-project

# Multi-role mode
vibecollab init -n "MyProject" -d generic -o ./my-project --multi-dev

# Game project (with GM command injection)
vibecollab init -n "MyGame" -d game -o ./my-game

# Web project (with API doc injection)
vibecollab init -n "MyWebApp" -d web -o ./my-webapp

Generated Project Structure

my-project/
├── CONTRIBUTING_AI.md         # AI collaboration rules
├── llms.txt                   # Project context (llmstxt.org standard)
├── project.yaml               # Project config (single source of truth)
└── docs/
    ├── CONTEXT.md             # Current context (updated every session)
    ├── DECISIONS.md           # Decision records
    ├── CHANGELOG.md           # Changelog
    ├── ROADMAP.md             # Roadmap + iteration backlog
    └── QA_TEST_CASES.md       # Product QA test cases

AI IDE Integration

Recommended: MCP Server + IDE Rule/Instructions for seamless per-conversation integration

Cursor

pip install vibe-collab
vibecollab mcp inject --ide cursor

VSCode + Cline

pip install vibe-collab
vibecollab mcp inject --ide cline

CodeBuddy

pip install vibe-collab
vibecollab mcp inject --ide codebuddy

Without MCP

vibecollab prompt --compact --copy   # Copy context to clipboard
Approach Token Efficiency Protocol Compliance Setup Team Sharing
MCP + IDE Rule High High One-time Via git
MCP + Custom Instructions High High One-time Manual sync
vibecollab prompt paste Medium Medium Every time N/A
Manual doc reading Low Low None N/A

CLI Reference

vibecollab --help                              # Help
vibecollab --version                           # Show version
vibecollab init -n <name> -d <domain> -o <dir> # Init project
vibecollab generate -c <config>                # Generate collaboration rules
vibecollab validate -c <config>                # Validate config
vibecollab upgrade                             # Upgrade protocol to latest

# MCP Server
vibecollab mcp serve                           # Start MCP Server (stdio)
vibecollab mcp inject --ide all                # Inject config to all IDEs

# Agent Guidance
vibecollab onboard [-d <role>]                  # AI onboarding
vibecollab next                                # Smart action suggestions
vibecollab prompt [--compact] [--copy]         # Generate LLM context prompt

# Semantic Search
vibecollab index [--rebuild]                   # Index docs and Insights
vibecollab search <query>                      # Semantic search

# Insight Knowledge Capture
vibecollab insight add --title --tags --category
vibecollab insight search --tags/--semantic
vibecollab insight suggest                     # Signal-driven recommendations
vibecollab insight list/show/use/decay/check/delete/bookmark/trace/who/stats

# Task Management
vibecollab task create/list/show/suggest/transition/solidify/rollback

# Roadmap Integration
vibecollab roadmap status/sync/parse

# Multi-Role (v0.11.0)
vibecollab role whoami/list/status/switch/permissions/init/sync/conflicts

# Git Hooks (v0.11.0)
vibecollab hooks install [-t TYPE] [--force]   # Install Git hooks
vibecollab hooks uninstall [-t TYPE] [--all]   # Remove hooks
vibecollab hooks run <hook_type>               # Manual hook execution
vibecollab hooks status [--json]               # Hook status overview
vibecollab hooks list                          # List installed hooks

# Execution Plan (v0.10.7)
vibecollab plan run <plan.yaml> [-v] [--dry-run] [--json]
vibecollab plan run <plan.yaml> --host auto:cursor  # Auto adapter
vibecollab plan validate <plan.yaml>           # Validate plan syntax

# Auto Driver Shortcuts (v0.10.7 — delegates to plan run)
vibecollab auto list                           # List preset automation plans
vibecollab auto init <plan.yaml> [--ide cursor] # Create .bat launcher
vibecollab auto status                         # Check running status
vibecollab auto stop                           # Stop running process

# Config Management
vibecollab config setup                        # Interactive LLM config wizard
vibecollab config show                         # Show current config
vibecollab config set <key> <value>            # Set config value

# Health & Checking
vibecollab check [--no-insights] [--strict] [--guards/--no-guards]  # Protocol compliance
vibecollab health [--json]                     # Health score (0-100)

Protocol Upgrade

pip install --upgrade vibe-collab
cd your-project
vibecollab upgrade          # Upgrade protocol
vibecollab upgrade --dry-run  # Preview changes

How it works: Your project.yaml config is preserved (project name, custom roles, confirmed decisions, domain extensions). The built-in Jinja2 templates are updated to the latest version and re-rendered.

Upgrade flow:
  [User config: project.yaml] ──→ [Pattern Engine: Jinja2] ──→ [CONTRIBUTING_AI.md]
       ↑ preserved                     ↑ updated
  project name                    new protocol sections
  custom roles                    manifest control
  confirmed decisions             local template overlay

Core Concepts

Vibe Development Philosophy

The conversation itself is the most valuable artifact -- don't rush to produce results, plan together step by step.

  • AI is a collaboration partner, not just an executor
  • Align understanding before writing code
  • Every decision is a result of shared thinking
  • The dialogue itself is part of the design process

Task Units

Development progresses by dialogue-driven task units, not calendar dates.

Task Unit:
├── ID: TASK-{role}-{seq}       # e.g. TASK-DEV-001
├── role: DESIGN/ARCH/DEV/PM/QA/TEST
├── feature: {related module}
├── status: TODO → IN_PROGRESS → REVIEW → DONE
└── dialogue_rounds: {rounds to complete}

Decision Tiers

Tier Type Scope Review
S Strategic Overall direction Must have human approval
A Architecture System design Human review
B Implementation Specific approach Quick confirm
C Detail Naming, params AI decides autonomously

FAQ

How is this different from Cursor Rules / .cursorrules? Cursor Rules are IDE-specific and static. VibeCollab generates rules from a structured project.yaml config, supports multiple IDEs via MCP, includes knowledge capture (Insights), task management, and multi-role coordination. Rules evolve with your project via vibecollab upgrade.

Does this modify my code? No. VibeCollab generates collaboration protocol documents and provides tools for AI assistants. It does not modify your application source code.

Do I need an LLM API key? No. All features (init, generate, check, MCP Server, Insights, Tasks, Execution Plan, Auto Driver) work entirely offline. No LLM API key is required.

Can I use it with an existing project? Yes. Run vibecollab init in your project root. It creates project.yaml and docs/ alongside your existing files without touching them.

What if my IDE doesn't support MCP? Use vibecollab prompt --compact --copy to generate a context text and paste it into any AI conversation.


License

MIT


Born from game development practice -- using collaboration protocols to build a collaboration protocol generator. Current version v0.11.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vibe_collab-0.11.0.tar.gz (248.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibe_collab-0.11.0-py3-none-any.whl (279.1 kB view details)

Uploaded Python 3

File details

Details for the file vibe_collab-0.11.0.tar.gz.

File metadata

  • Download URL: vibe_collab-0.11.0.tar.gz
  • Upload date:
  • Size: 248.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vibe_collab-0.11.0.tar.gz
Algorithm Hash digest
SHA256 dffe2af077dfaf3e52111fc835139999e41bdfed863f232ffe08559ec9f96be4
MD5 009d070fdcb4503e5031ead317e478de
BLAKE2b-256 726a9d7d8ad0f8ea13dfef2b43f2e3acc3709321e2a7160d6f92a37038aaa1bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for vibe_collab-0.11.0.tar.gz:

Publisher: publish.yml on flashpoint493/VibeCollab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vibe_collab-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: vibe_collab-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 279.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vibe_collab-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26d4610ed988d8560325c472ec85392e6523dcce6c7f3bd468f0c8276ac2dc15
MD5 987363c6ec58b79da28f59dfc691f1b5
BLAKE2b-256 0c1be51fd5cbdbca38ac6e63173969879febd9e8853bce952cafac2c0d70f93d

See more details on using hashes here.

Provenance

The following attestation bundles were made for vibe_collab-0.11.0-py3-none-any.whl:

Publisher: publish.yml on flashpoint493/VibeCollab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page