Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghrah_core-0.1.0.tar.gz (307.3 kB view details)

Uploaded Source

Built Distribution

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

ghrah_core-0.1.0-py3-none-any.whl (191.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghrah_core-0.1.0.tar.gz
  • Upload date:
  • Size: 307.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ghrah_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf33ff9a34a2658087403a079e42db3935791319f46ec70fc9273ce6e0573ffa
MD5 340e6155256173363531b8b2e1aedaba
BLAKE2b-256 91026e7e1371e1c04479b31d0bb853ab81e90a67ddd57a6726789f42917510fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghrah_core-0.1.0.tar.gz:

Publisher: publish.yml on ghrah/ghrah-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ghrah_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 191.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ghrah_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9803d816496c94b4f615623399ee737d525e86be4e2492eca6e96c2c201486e
MD5 7ce74ae2ae6d7d7e32ee3dea233138fa
BLAKE2b-256 61dbeecdaca093b533152da62c87e8c896ab40a079f8d697fb6637a4138f3b9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghrah_core-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ghrah/ghrah-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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