Metadata-Version: 2.4
Name: hybrid-groups
Version: 0.0.6
Summary: A multi-user, multi-agent collaboration platform
Author-email: Martin Krasser <martin@gradion.ai>, Christoph Stumpf <chris@gradion.ai>
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: <3.14,>=3.11
Requires-Dist: aioconsole<0.9,>=0.8.1
Requires-Dist: aiodocker<0.25,>=0.24.0
Requires-Dist: aiofiles<25,>=24.1.0
Requires-Dist: aiohttp<4,>=3.11.16
Requires-Dist: bcrypt<5,>=4.3.0
Requires-Dist: cryptography<46,>=45.0.3
Requires-Dist: datasets<4,>=3.6.0
Requires-Dist: fastapi[all]<0.116,>=0.115.12
Requires-Dist: gitingest<0.2,>=0.1.4
Requires-Dist: google-genai<2,>=1.21.1
Requires-Dist: markdown-to-mrkdwn<0.3,>=0.2.0
Requires-Dist: mcp<2,>=1.12.2
Requires-Dist: pydantic-ai<0.4,>=0.3.3
Requires-Dist: pygithub<3,>=2.6.1
Requires-Dist: rich<15,>=14.0.0
Requires-Dist: slack-bolt<2,>=1.23.0
Requires-Dist: tinydb<5,>=4.8.2
Description-Content-Type: text/markdown

# Hybrid Groups

<p align="left">
    <a href="https://gradion-ai.github.io/hybrid-groups/"><img alt="Website" src="https://img.shields.io/website?url=https%3A%2F%2Fgradion-ai.github.io%2Fhybrid-groups%2F&up_message=online&down_message=offline&label=docs"></a>
    <a href="https://pypi.org/project/hybrid-groups/"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/hybrid-groups?color=blue"></a>
    <a href="https://github.com/gradion-ai/hybrid-groups/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/gradion-ai/hybrid-groups"></a>
    <a href="https://github.com/gradion-ai/hybrid-groups/actions"><img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/gradion-ai/hybrid-groups/test.yml"></a>
    <a href="https://github.com/gradion-ai/hybrid-groups/blob/main/LICENSE"><img alt="GitHub License" src="https://img.shields.io/github/license/gradion-ai/hybrid-groups?color=blueviolet"></a>
</p>

<div align="left">
  <a href="https://www.youtube.com/watch?v=OxOmRsNin4o">
    <img src="https://raw.githubusercontent.com/gradion-ai/hybrid-groups/main/docs/images/overview/video.jpg" alt="Watch the video" style="width: 50%;">
  </a>
</div>

## Overview

[*Hybrid Groups*](https://gradion-ai.github.io/hybrid-groups/) is a multi-user, multi-agent collaboration platform that enables users to interact with both agents and other users in group chats on Slack and GitHub. Agents act and respond according to each user's identity, preferences and privileges, enabling secure access to a user's private resources while collaborating in a team.

<table>
<tr>
<td><a href="https://gradion-ai.github.io/hybrid-groups/images/overview/overview-1.png" target="_blank"><img src="https://gradion-ai.github.io/hybrid-groups/images/overview/overview-1.png" alt="Hybrid Groups" /></a></td>
<td><a href="https://gradion-ai.github.io/hybrid-groups/images/overview/overview-2.png" target="_blank"><img src="https://gradion-ai.github.io/hybrid-groups/images/overview/overview-2.png" alt="Hybrid Groups" /></a></td>
<td><a href="https://gradion-ai.github.io/hybrid-groups/images/overview/overview-3.png" target="_blank"><img src="https://gradion-ai.github.io/hybrid-groups/images/overview/overview-3-crop.png" alt="Hybrid Groups" /></a></td>
</tr>
</table>

## Quickstart

> [!NOTE]
> The full quickstart guide is [here](https://gradion-ai.github.io/hybrid-groups/quickstart).

1. Configure the app type to install and run, `slack` or `github`:
    ```bash
    export APP_TYPE=slack # or "github"
    ```

2. Setup the app (prints the setup URL to follow in the output) - **only required once per app**:
    ```bash
    docker run --rm -it \
        -v "$(pwd)/.data-docker":/app/.data \
        -p 8801:8801 \
        ghcr.io/gradion-ai/hybrid-groups:latest \
        setup $APP_TYPE
    ```
    **Important**: when running the container on a remote host, supply the hostname or IP address via the `--host` parameter. After setting up the Slack app, add it to any Slack channels you want it to be active in. You can do this from the channel's menu under `Open channel details` -> `Integrations` -> `Add apps`.

3. Run the server:
    ```bash
    docker run --rm -it \
        -v "$(pwd)/.data-docker":/app/.data \
        ghcr.io/gradion-ai/hybrid-groups:latest \
        server $APP_TYPE
    ```
    To enable [user channels](https://gradion-ai.github.io/hybrid-groups/app-server/#slack) in Slack, append the `--user-channel slack` option.

4. Verify that your installation works. For example, activate the `weather` agent via background reasoning by entering

    ```markdown
    how's the weather in vienna?
    ```

    in the channel where the Slack app was added

    <a href="https://gradion-ai.github.io/hybrid-groups/images/quickstart/quickstart-1.png" target="_blank"><img src="https://gradion-ai.github.io/hybrid-groups/images/quickstart/quickstart-1.png" class="thumbnail"></a>

    or in the description of a new GitHub issue:

    <a href="https://gradion-ai.github.io/hybrid-groups/images/quickstart/quickstart-2.png" target="_blank"><img src="https://gradion-ai.github.io/hybrid-groups/images/quickstart/quickstart-2.png" class="thumbnail"></a>

    For directly mentioning the `weather` agent in Slack, use `@weather` at the beginning of a message, in GitHub use `@hybrid-groups/weather` (and replace `hybrid-groups` with the GitHub app name you've chosen).
