Skip to main content

CLI share system - command deduplication, task queue, smart merge

Project description

thegent-cli-share

CLI share system for multi-agent orchestration - command deduplication, task queue, smart merge, and coordination.

Architecture

This crate follows Hexagonal Architecture (Ports & Adapters) with Clean Architecture layers.

xDD Methodologies Applied

  • TDD: Tests written first
  • DDD: Bounded contexts for command cache, task queue, smart merge
  • SOLID: Single responsibility per module
  • CQRS: Separate command and query interfaces
  • EDA: Domain events for state changes

Domain Services

Command Deduplication

Prevents duplicate command execution across agents using SHM-based locks.

Task Queue

Maildir-style queue for distributed task processing.

Smart Merge

Mergiraf-style AST-aware merging for conflict resolution.

Coordination

HLC-based distributed coordination.

Installation

pip install thegent-cli-share

CLI Usage

# Command deduplication
thegent-cli-share lock-acquire <cmd_hash>
thegent-cli-share lock-release <cmd_hash> --pid <pid>
thegent-cli-share lock-list

# Task queue
thegent-cli-share queue-enqueue <command> --priority high
thegent-cli-share queue-list

Python API

from thegent_cli_share.adapters.dedup import InMemoryLockAdapter

adapter = InMemoryLockAdapter()
lock = adapter.acquire("cmd_hash", pid=1234)

License

MIT

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

relaypy-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

relaypy-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file relaypy-0.1.0.tar.gz.

File metadata

  • Download URL: relaypy-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for relaypy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4de3cf70ef5dc0a049c186548fcc6ba7137e6fee9a27c1503556d46cc0b45fd8
MD5 e90be684f075fead1b7198f605ca1b7d
BLAKE2b-256 539a15205d28161b5331828cc785c8e439f9b6431f5ee25e19f4bd2351659f67

See more details on using hashes here.

File details

Details for the file relaypy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: relaypy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for relaypy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3651e1aced3b3ce8daae2b49addf6d96c5ac3578cf759a358aceeb32d3f8357
MD5 92ec6c7f3c4464abc07b08a319fd8405
BLAKE2b-256 e1dc4e69e78a8699aee160e547681baa57fb613c4f5106075047e4c6fd484ce4

See more details on using hashes here.

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