Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@aigentic/claims

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aigentic/claims

Issue claiming and work coordination module for Claude Flow V3

alpha
latest
Source
npmnpm
Version
3.0.0-alpha.8
Version published
Maintainers
1
Created
Source

@claude-flow/claims

npm version npm downloads License: MIT

Issue claiming and work coordination for human-agent collaboration.

What is this?

This package provides a complete system for coordinating work between humans and AI agents:

  • Issue Claiming - Claim issues to work on, preventing conflicts
  • Handoffs - Transfer work between humans and agents seamlessly
  • Work Stealing - Automatically reassign stalled work
  • Load Balancing - Distribute work evenly across agents

Installation

npm install @claude-flow/claims

Or install via Claude Flow CLI:

npx claude-flow plugins install @claude-flow/claims

Quick Start

Claim an Issue

import { ClaimsService } from '@claude-flow/claims';

const claims = new ClaimsService();

// Human claims an issue
await claims.claim({
  issueId: 'ISSUE-123',
  claimant: 'human:alice',
  context: 'Working on the authentication fix'
});

// Agent claims an issue
await claims.claim({
  issueId: 'ISSUE-456',
  claimant: 'agent:coder-1:coder',
  context: 'Implementing new feature'
});

Release a Claim

await claims.release({
  issueId: 'ISSUE-123',
  claimant: 'human:alice',
  reason: 'Completed the work'
});

Handoff Between Human and Agent

// Human hands off to agent
await claims.handoff({
  issueId: 'ISSUE-123',
  from: 'human:alice',
  to: 'agent:coder-1:coder',
  reason: 'Need AI to continue implementation',
  progress: 40
});

// Agent accepts handoff
await claims.acceptHandoff({
  issueId: 'ISSUE-123',
  claimant: 'agent:coder-1:coder'
});

Update Claim Status

await claims.updateStatus({
  issueId: 'ISSUE-123',
  status: 'review-requested',
  progress: 80,
  note: 'Ready for code review'
});

MCP Tools (17 Tools)

Core Claiming (7 tools)

ToolDescription
claims_claimClaim an issue for work
claims_releaseRelease a claimed issue
claims_handoffRequest handoff to another claimant
claims_accept-handoffAccept a pending handoff
claims_statusUpdate claim status
claims_listList claims by criteria
claims_boardVisual board view of all claims

Work Stealing (4 tools)

ToolDescription
claims_mark-stealableMark issue as available for stealing
claims_stealSteal a stealable issue
claims_stealableList all stealable issues
claims_contest-stealContest a steal attempt

Load Balancing (3 tools)

ToolDescription
claims_loadGet agent load information
claims_rebalanceSuggest or apply load rebalancing
claims_swarm-overviewOverview of swarm workload

Additional (3 tools)

ToolDescription
claims_historyGet claim history for an issue
claims_metricsGet claiming metrics
claims_configGet/set claims configuration

Claim Statuses

StatusDescription
activeCurrently being worked on
pausedTemporarily paused
blockedBlocked by external dependency
review-requestedReady for review
handoff-pendingHandoff requested, awaiting acceptance
stealableAvailable for other agents to take
completedWork finished

Work Stealing

When work stalls, issues can be marked as stealable:

// Mark issue as stealable
await claims.markStealable({
  issueId: 'ISSUE-123',
  reason: 'overloaded',
  preferredTypes: ['coder', 'reviewer'],
  context: 'Need someone to continue the implementation'
});

// Another agent steals the issue
await claims.steal({
  issueId: 'ISSUE-123',
  stealer: 'agent:coder-2:coder'
});

Steal Reasons

  • timeout - Work has been idle too long
  • overloaded - Current owner has too much work
  • blocked - Work is blocked and owner can't proceed
  • voluntary - Owner voluntarily releasing
  • rebalancing - System rebalancing workload
  • abandoned - Owner is no longer available

Load Balancing

Automatically distribute work across agents:

// Get current agent loads
const loads = await claims.getAgentLoads();

// Preview rebalancing suggestions
const suggestions = await claims.rebalance({ dryRun: true });

// Apply rebalancing
await claims.rebalance({
  dryRun: false,
  targetUtilization: 0.7
});

Event Sourcing

All claim operations are event-sourced (ADR-007):

// Events emitted
- ClaimCreated
- ClaimReleased
- ClaimStatusUpdated
- HandoffRequested
- HandoffAccepted
- HandoffRejected
- ClaimMarkedStealable
- ClaimStolen
- ClaimContested

CLI Commands

# Claim an issue
npx claude-flow claims claim --issue ISSUE-123 --claimant "human:alice"

# Release a claim
npx claude-flow claims release --issue ISSUE-123

# View claims board
npx claude-flow claims board

# List stealable issues
npx claude-flow claims stealable

# Rebalance workload
npx claude-flow claims rebalance --dry-run

Configuration

# claude-flow.config.yaml
claims:
  autoExpiration:
    enabled: true
    idleTimeout: 3600000  # 1 hour
    checkInterval: 300000  # 5 minutes
  workStealing:
    enabled: true
    contestWindow: 30000  # 30 seconds
  loadBalancing:
    targetUtilization: 0.7
    maxIssuesPerAgent: 5

License

MIT

Keywords

claude-flow

FAQs

Package last updated on 21 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts