General Distributed Agent Cluster Framework
Project description
Jiuxia/ghrah
This is an Alpha version framework that can be used for proof of concept, it is not production-ready and may have numerous breaking updates
A general-purpose distributed agent cluster framework
Can be used to build a secure, auditable runtime core for various workloads, ranging from single agents to agent cluster systems
Quick Start
Install Dependencies
uv sync
Configure Agentconf
Use the Agentconf TUI to configure your LLM provider, model, and Agent
uv run agentconf
Run Examples
uv run python examples/simple_chat.py
Or run other examples under the examples directory
Project Structure
src/ghrah/
├── core/ # Core abstractions: config, messages, events, exceptions, HITL, CommandSender
├── agents/ # Agent implementations: ActorAgent base class
├── chat/ # LLM interaction layer: ChatMessage, ContentBlock, ChatFormat
│ └── format/ # Format adapters: OpenAIFormat, AnthropicFormat
├── abilities/ # Ability system: Ability interface, hooks, executors, built-in abilities
│ └── builtin/ # Built-in abilities: conversation, file operations, task termination, cluster operations, etc.
├── context/ # Context management: ActionChain, StateManager, MessageStore, window policies
│ └── persistence/# Persistence backends: JSON, SQLite, in-memory, remote
├── llm/ # LLM integration: LLMFactory (agentconf → ChatFormat)
└── communication/ # Communication layer: Router, Registry, Supervisor
Documentation
For full usage documentation, see the docs/ directory:
| Document | 中文 | English |
|---|---|---|
| Installation & Quick Start | getting-started.md | getting-started_en.md |
| Core Concepts | core-concepts.md | core-concepts_en.md |
| Ability System | ability-system.md | ability-system_en.md |
| Hook Mechanism | hook-mechanism.md | hook-mechanism_en.md |
| Context Management | context-management.md | context-management_en.md |
| Multi-Agent Communication | multi-agent.md | multi-agent_en.md |
| Persistence & Window Management | persistence.md | persistence_en.md |
| Built-in Ability Reference | builtin-abilities.md | builtin-abilities_en.md |
| Configuration Reference | configuration.md | configuration_en.md |
| Error Handling | error-handling.md | error-handling_en.md |
| Architecture & Flow Diagrams | architecture.md | architecture_en.md |
| Chat Interaction Layer | chat-module.md | chat-module_en.md |
| Dual-Mode Architecture | distributed-mode.md | distributed-mode_en.md |
| HITL Human-in-the-Loop | hitl.md | hitl_en.md |
Development
# Install optional-dependencies
uv sync --extra dev
# Run tests
uv run pytest tests/ -v
# Lint
uv run ruff check src/ tests/
License
Apache 2.0
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 ghrah_core-0.1.1.tar.gz.
File metadata
- Download URL: ghrah_core-0.1.1.tar.gz
- Upload date:
- Size: 305.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b38e886d2425fd5c89c2aa7fe9f235287635d84d22ea1839e1147be5c7c3255a
|
|
| MD5 |
b6fc940fd1d03418d9eaa3fb5ab43d02
|
|
| BLAKE2b-256 |
26d1bf4a66f6ed2a2de211793e6a64addbe2b62a62e7abd55811d801e2b5d319
|
Provenance
The following attestation bundles were made for ghrah_core-0.1.1.tar.gz:
Publisher:
publish.yml on ghrah/ghrah-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghrah_core-0.1.1.tar.gz -
Subject digest:
b38e886d2425fd5c89c2aa7fe9f235287635d84d22ea1839e1147be5c7c3255a - Sigstore transparency entry: 1625645550
- Sigstore integration time:
-
Permalink:
ghrah/ghrah-core@1e539cd61b48cc903fb9c8b5a1ec1632638ffe6b -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ghrah
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1e539cd61b48cc903fb9c8b5a1ec1632638ffe6b -
Trigger Event:
push
-
Statement type:
File details
Details for the file ghrah_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ghrah_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 189.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd13ccec5a53e498a62f9859663e654a17d07b611ef351f2f9e4f0d6a188a4fe
|
|
| MD5 |
3d9e6a825cd618991f08efdc5d953d71
|
|
| BLAKE2b-256 |
8007ef110a3808d21e9ff6cd693b310266b5abd3b3b9aa53c36b8fe55aff61ae
|
Provenance
The following attestation bundles were made for ghrah_core-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on ghrah/ghrah-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghrah_core-0.1.1-py3-none-any.whl -
Subject digest:
cd13ccec5a53e498a62f9859663e654a17d07b611ef351f2f9e4f0d6a188a4fe - Sigstore transparency entry: 1625645553
- Sigstore integration time:
-
Permalink:
ghrah/ghrah-core@1e539cd61b48cc903fb9c8b5a1ec1632638ffe6b -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ghrah
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1e539cd61b48cc903fb9c8b5a1ec1632638ffe6b -
Trigger Event:
push
-
Statement type: