ruflo

🎫 Claims & Work Coordination

/docs/development-tools/claims--work-coordination

The Claims system manages who is working on what β€” whether human or agent. It prevents conflicts, enables handoffs, and balances work across your team.

Why Use Claims?

ProblemSolution
Two agents working on the same fileClaims prevent duplicate work
Agent stuck on a taskMark as stealable, another agent takes over
Need to hand off workStructured handoff with context
Unbalanced workloadAutomatic rebalancing across agents

How Claims Work

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        CLAIMS LIFECYCLE                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚ UNCLAIMED│───▢│ CLAIMED  │───▢│ STEALABLE│───▢│ HANDED OFF  β”‚   β”‚
β”‚  β”‚         β”‚    β”‚          β”‚    β”‚          β”‚    β”‚             β”‚   β”‚
β”‚  β”‚ Open forβ”‚    β”‚ Agent or β”‚    β”‚ Stuck or β”‚    β”‚ New owner   β”‚   β”‚
β”‚  β”‚ claimingβ”‚    β”‚ human    β”‚    β”‚ abandonedβ”‚    β”‚ continues   β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚       β”‚              β”‚                β”‚               β”‚            β”‚
β”‚       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜            β”‚
β”‚                           COMPLETED                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Claims Commands

CommandWhat It DoesExample
issues listSee all issues and their statusnpx ruflo@latest issues list
issues claimClaim an issue for yourself/agentnpx ruflo@latest issues claim #123 --as coder-1
issues releaseRelease your claimnpx ruflo@latest issues release #123
issues handoffHand off to another workernpx ruflo@latest issues handoff #123 --to reviewer
issues statusUpdate progress on claimed worknpx ruflo@latest issues status #123 --progress 75
issues stealableList abandoned/stuck issuesnpx ruflo@latest issues stealable
issues stealTake over stealable issuenpx ruflo@latest issues steal #123
issues loadView agent workloadsnpx ruflo@latest issues load
issues rebalanceRedistribute work evenlynpx ruflo@latest issues rebalance --dry-run
issues boardVisual board viewnpx ruflo@latest issues board

Visual Board View

bash
npx ruflo@latest issues board
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        CLAIMS BOARD                                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   UNCLAIMED   β”‚    ACTIVE     β”‚   STEALABLE   β”‚     COMPLETED       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ #127 Add auth β”‚ #123 Fix bug  β”‚ #120 Refactor β”‚ #119 Update docs    β”‚
β”‚ #128 Tests    β”‚   (coder-1)   β”‚   (stale 2h)  β”‚ #118 Security fix   β”‚
β”‚               β”‚ #124 API work β”‚               β”‚ #117 Performance    β”‚
β”‚               β”‚   (reviewer)  β”‚               β”‚                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Handoff Workflow

When you need to pass work to someone else:

bash
# 1. Request handoff with context
npx ruflo@latest issues handoff #123 \
  --to security-architect \
  --reason "Needs security review" \
  --progress 80

# 2. Target accepts handoff
npx ruflo@latest issues accept #123 --as security-architect

# 3. Work continues with full context

Load Balancing

bash
# View current load
npx ruflo@latest issues load

# Output:
# Agent          | Claims | Load  | Status
# ---------------+--------+-------+--------
# coder-1        | 3      | 85%   | πŸ”΄ Overloaded
# coder-2        | 1      | 25%   | 🟒 Available
# reviewer       | 2      | 50%   | 🟑 Normal
# security-arch  | 0      | 0%    | 🟒 Available

# Auto-rebalance
npx ruflo@latest issues rebalance

MCP Tools

ToolDescription
claims_claimClaim an issue
claims_releaseRelease a claim
claims_handoffRequest handoff
claims_accept-handoffAccept handoff
claims_statusUpdate status
claims_listList claims
claims_stealableList stealable
claims_stealSteal issue
claims_loadGet load info
claims_boardVisual board
claims_rebalanceRebalance work