ClaudeCodeMod

All shelves / Marketplaces

kiitsun-e/ralph-borg

kiitsun-e/ralph-borg · 0 stars · 1 plugin

Marketplace Turn specs into working code with parallel Claude agents. Ralph Loop meets Borg efficiency - one branch per feature, one agent per phase.

Install

In Claude Code
/plugin marketplace add kiitsun-e/ralph-borg

Run inside Claude Code, then install plugins from it. Check the repo's README before you run it.

Open the repo

Plugins 1

After adding the marketplace, install one with /plugin install <name>@ralph-borg.

  1. 1ralph-borgSpec-driven development with parallel agent orchestration/plugin install ralph-borg@ralph-borgv0.2.6

Files

README.md

ralph-borg

ralph-borg

Spec-driven development with parallel agent orchestration for Claude Code.

"Resistance is futile. Your specs will be assimilated."

Vision

Anyone with Claude Code + an empty repo + a SPEC.md can go from idea to implemented features using parallel agent orchestration.

Prerequisites

Required:

  • Git repository - Your project must be a git repo (git init)
  • Claude Code CLI - Installed and working
  • Bash 4.0+ and Git 2.0+
  • gh CLI (optional) - For creating pull requests

If you don't have a git repo yet:

mkdir my-project && cd my-project
git init

Installation

Option 1: Via Claude Code Marketplace (Recommended)
# Add the marketplace
/plugin marketplace add kiitsun-e/ralph-borg

# Install the plugin
/plugin install ralph-borg

Scripts are automatically available within Claude Code sessions. To run borg commands directly in your terminal, run /ralph-borg:borg-setup and follow the instructions.

Updating

To get the latest version:

/plugin marketplace update ralph-borg
/plugin update ralph-borg
Option 2: Manual Installation

Clone the repository:

git clone https://github.com/kiitsun-e/ralph-borg ~/.claude/plugins/ralph-borg

Use the plugin with Claude Code:

claude --plugin-dir ~/.claude/plugins/ralph-borg

Scripts are automatically added to PATH within Claude Code sessions. For terminal usage, run /ralph-borg:borg-setup.

Option 3: Development Mode

For local development, use the --plugin-dir flag:

claude --plugin-dir /path/to/ralph-borg

Quick Start

# 1. Initialize your project for spec-driven development
/ralph-borg:init my-project

# 2. Edit specs/SPEC.md to describe your product vision
# (manually edit the file)

# 3. Create a detailed feature spec via interview
/ralph-borg:feature user-auth

# 4. Implement the feature with parallel agents
/ralph-borg:implement user-auth

# 5. Check progress
/ralph-borg:status

# 6. Review and merge changes
borg diff user-auth
borg merge user-auth --pr

User Workflows

Workflow A: Full Scaffolding (New Projects)

For users starting from scratch:

# Create and initialize project
mkdir my-app && cd my-app && git init

# Full scaffolding
/ralph-borg:init my-app        # Creates specs/, SPEC.md, CLAUDE.md
# Edit specs/SPEC.md with your vision
/ralph-borg:feature auth       # Interview -> specs/auth.md
/ralph-borg:implement auth     # Build with parallel agents
Workflow B: Bring Your Own Spec (Proactive Planners)

For users who prefer to create their own specifications:

# You already have a git repo with your own specs/SPEC.md
# Just initialize borg for parallel agent orchestration
borg init .

# Extract features from YOUR spec via interview
/ralph-borg:feature user-auth

# Implement
/ralph-borg:implement user-auth

What goes in your SPEC.md:

  • Product vision and goals
  • Feature descriptions
  • Technical stack preferences
  • Constraints and non-goals
Workflow C: Implementation Only

For users with existing specs who just want orchestration:

# You have specs/feature.implementation.md already
borg init .
borg-ralph loop my-feature specs/my-feature.implementation.md
Entry Points Summary
You have... Start with...
Empty repo /ralph-borg:init
Your own SPEC.md borg init . then /ralph-borg:feature
Feature specs (.md) /ralph-borg:implement
Implementation plans (.implementation.md) borg-ralph loop directly

Commands

/ralph-borg:init

Initialize a spec-ready project structure.

/ralph-borg:init [project-name]

Creates:

  • specs/SPEC.md - Product vision and requirements (source of truth)
  • specs/README.md - Index and workflow guide
  • CLAUDE.md - Project instructions
/ralph-borg:feature

Create a feature specification through interactive interview.

/ralph-borg:feature <feature-name>

Produces:

  • specs/<feature-name>.md - What to build
  • specs/<feature-name>.implementation.md - How to build it (phases)
/ralph-borg:implement

Run the borg-ralph loop to implement a feature.

/ralph-borg:implement <feature-name>

This spawns isolated agents (one per phase) that work in parallel branches.

/ralph-borg:status

Show progress of all feature implementations.

/ralph-borg:status
/ralph-borg:status <feature-name>  # Detailed view
/ralph-borg:borg-setup

Display instructions for adding borg scripts to your terminal PATH.

/ralph-borg:borg-setup

Use this if you want to run borg or borg-ralph commands directly in your terminal (outside of Claude Code).

How It Works

┌──────────────────────────────────────────────────────────────────────────────┐
│  1. /ralph-borg:init            → specs/SPEC.md, specs/README.md, CLAUDE.md  │
│  2. User edits specs/SPEC.md    → Define product vision                      │
│  3. /ralph-borg:feature auth    → specs/auth.md + auth.implementation.md     │
│  4. /ralph-borg:implement auth  → borg-ralph loop on isolated branch         │
│  5. borg merge auth --pr        → PR created, feature complete               │
└──────────────────────────────────────────────────────────────────────────────┘
The Refinement Flow
specs/SPEC.md (explores options)
    ↓
Feature Spec (makes opinionated choices)
    ↓
Implementation Plan (phased tasks)
    ↓
Implementation (builds it)
    ↓
Update CLAUDE.md + SPEC.md (reflect reality)

Scripts

The plugin includes two shell scripts that power the orchestration:

borg

Multi-agent orchestration tool for running isolated Claude Code agents.

borg init .              # Initialize workspace
borg spawn my-task       # Spawn an agent
borg status              # Show all agents
borg logs my-task        # View agent output
borg diff my-task        # Show changes
borg merge my-task --pr  # Create PR
borg clean               # Cleanup
borg-ralph

Phase-based implementation loop (Ralph Loop methodology).

borg-ralph loop <slot> specs/feature.implementation.md
borg-ralph status specs/feature.implementation.md

Features:

  • Parses phases from implementation spec
  • Spawns fresh agent per phase (clean context)
  • Updates checkboxes on completion
  • 10-minute timeout per phase
  • Tracks costs across phases

Directory Structure

After using ralph-borg, your project will have:

your-project/
├── CLAUDE.md                        # Project instructions
├── specs/
│   ├── SPEC.md                      # Product vision (source of truth)
│   ├── README.md                    # Index and workflow guide
│   ├── user-auth.md                 # Feature spec
│   └── user-auth.implementation.md  # Implementation phases
├── src/                             # Your code
└── .borg/                           # Borg workspace (gitignored)
    ├── reference.git/
    ├── slots/
    ├── state/
    └── logs/

Plugin Structure

ralph-borg/
├── .claude-plugin/
│   ├── plugin.json          # Plugin manifest
│   └── marketplace.json     # Marketplace catalog
├── commands/
│   ├── init.md              # Initialize project
│   ├── feature.md           # Create feature spec
│   ├── implement.md         # Run implementation loop
│   ├── status.md            # Show progress
│   └── borg-setup.md        # Terminal PATH setup
├── hooks/
│   └── hooks.json           # SessionStart hook for PATH setup
├── skills/
│   └── spec-workflow/       # Interview skill for specs
├── scripts/
│   ├── borg                 # Multi-agent orchestration
│   ├── borg-ralph           # Ralph Loop wrapper
│   └── setup-path.sh        # Auto-configure PATH
└── README.md

Environment Variables

Variable Default Description
BORG_HOME ~/.borg Workspace directory
BORG_PHASE_TIMEOUT 600 Timeout per phase (seconds)

Troubleshooting

borg command not found

If you get "borg command not found" in your terminal:

/ralph-borg:borg-setup  # Run in Claude Code, follow the instructions

This adds the scripts to your shell PATH. Note: Within Claude Code sessions, the PATH is configured automatically.

Agent seems stuck
borg logs <feature-name> -f  # Follow logs
borg status --watch          # Monitor status
Phase failed

Check the logs, then either:

  • Fix the issue and re-run /ralph-borg:implement
  • Manually complete the task and update the checkbox
Want to restart
borg clean <feature-name>    # Remove agent workspace
# Reset checkboxes in .implementation.md
/ralph-borg:implement <feature-name>

License

MIT

Facts

Kind
Marketplace
Repo
kiitsun-e/ralph-borg
Group
Uncategorized
Stars
0
Marketplace name
ralph-borg
Owner
kiitsun-e
Language
Shell
Created
2026-01-16
Last push
2026-01-16
Forks
1
Plugins
1

Next on this shelf

  1. 2317kimcharli/ck-skillskimcharli/ck-skills0
  2. 2318kimliss/claude-code-inhandkimliss/claude-code-inhand0
  3. 2319king8fisher/claude-code-marketplaceking8fisher/claude-code-marketplace0
  4. 2320kojott/claude-notify-telegramkojott/claude-notify-telegram0
  5. 2321kokuyouwind/claude-pluginskokuyouwind/claude-plugins0
  6. 2322koromiko/my_claudecode_marketplacekoromiko/my_claudecode_marketplace0