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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4de3cf70ef5dc0a049c186548fcc6ba7137e6fee9a27c1503556d46cc0b45fd8
|
|
| MD5 |
e90be684f075fead1b7198f605ca1b7d
|
|
| BLAKE2b-256 |
539a15205d28161b5331828cc785c8e439f9b6431f5ee25e19f4bd2351659f67
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3651e1aced3b3ce8daae2b49addf6d96c5ac3578cf759a358aceeb32d3f8357
|
|
| MD5 |
92ec6c7f3c4464abc07b08a319fd8405
|
|
| BLAKE2b-256 |
e1dc4e69e78a8699aee160e547681baa57fb613c4f5106075047e4c6fd484ce4
|