The-Claude-Protocol  by AvivK5498

Enforcement-first orchestration for LLM code agents

Created 5 months ago
332 stars

Top 82.2% on SourcePulse

GitHubView on GitHub
Project Summary

The Claude Protocol addresses the inherent lack of structure, traceability, and persistent context management in unsupervised AI coding agent sessions, particularly with Claude Code. It provides an "enforcement-first orchestration layer" that wraps Claude Code, ensuring every agent action is tracked, decisions are logged, and tasks are managed via a robust, git-native system. This benefits developers using Claude Code by preventing common pitfalls like accidental code commits to main branches, lost session context, and unclear audit trails, thereby simplifying complex multi-agent development workflows.

How It Works

The system employs an orchestrator (Co-Pilot) that investigates, plans, and delegates tasks via Task() but does not write code directly. "Supervisors," tailored to specific tech stacks (e.g., React, Python, Next.js), execute these tasks within isolated git worktrees (.worktrees/bd-BD-XXX). Core to the system are "beads," which are git-native tickets representing units of work, where one bead equates to one task, one worktree, and one pull request. Dependencies between beads can be enforced, ensuring sequential execution. A key differentiator is the inclusion of 13 "hooks" across five lifecycle events that actively block invalid actions (e.g., preventing code edits on the main branch, enforcing worktree isolation, blocking commits without verification), rather than merely issuing warnings. This enforcement-first approach, combined with an investigation-first delegation strategy and self-documenting prompts, ensures high fidelity and traceability.

Quick Start & Requirements

  • Primary Install: Use npx skills add AvivK5498/The-Claude-Protocol or install the beads-orchestration CLI globally via npm install -g beads-orchestration. The integrated skill guides through setup, scans the tech stack, and automatically creates necessary supervisors.
  • Prerequisites: Claude Code with hooks support, Node.js (for npx), Python 3 (for bootstrap), and the beads CLI (installed automatically). For delegating read-only agents to external providers like Codex or Gemini, the Codex CLI (codex login), optionally Gemini CLI, and uv are required.
  • Links: npm package.

Highlighted Details

  • Enforcement: 13 hooks across 5 lifecycle events actively block invalid actions, such as git commit --no-verify, prevent closing epics with open children, and enforce worktree isolation.
  • Investigation-First: The orchestrator is designed to read actual source files before delegating tasks, inspired by Cursor's multi-agent research.
  • Self-Documenting Workflow: Dispatch prompts are automatically captured as bead comments, and agents log insights into a persistent knowledge base (.beads/memory/recall.sh) for session-to-session recall.
  • Traceability: Closed beads are immutable, bug fixes create new, linked beads, and each fix is processed in its own worktree and PR, ensuring a complete audit trail.
  • Kanban UI: An integrated Kanban UI provides visual task management and GitOps capabilities directly within the browser.

Maintenance & Community

No specific details regarding notable contributors, sponsorships, or community channels (e.g., Discord, Slack) were found in the provided README.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: The MIT license generally permits commercial use and linking within closed-source projects without significant restrictions.

Limitations & Caveats

The system primarily targets macOS and Linux environments. It relies on Claude Code having specific hooks support, which may require a particular setup or version. While the user-facing workflow is simplified, the underlying system involves considerable complexity. Utilizing external AI providers necessitates additional CLI setup and authentication.

Health Check
Last Commit

4 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
156 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.