# Repository Briefing: dataelement/bisheng
> Source: https://repoforai.com/repo/dataelement/bisheng (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/dataelement/bisheng
- **Official Docs / Website**: http://www.bisheng.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (99/100 · Maintenance 35/35 · Adoption 24/25 · Releases 20/20 · License 20/20)
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 12,489 ★ total (+17 24h / +71 7d) · 2,066 forks
- **Topics**: `agent`, `ai`, `chatbot`, `dsh`, `dsh-plugin`, `enterprise`, `finetune`, `genai`, `gpt`, `langchian`, `llm`, `llmdevops`
- **When to Use**: Best for: Teams with an operations owner that need permission-aware knowledge retrieval, human-reviewed document workflows, and governed publishing of internal apps in one workspace. Skip if: You want a managed chatbot builder, can only support a lightweight runtime, or require verified offline operation before evaluating every configured model and tool.

## Overview
```text
### Architecture & Core Mechanics
BISHENG is a Python-based enterprise workspace, not just an agent library. The self-hosted stack separates the frontend, backend, and background-worker service (`backend_worker`). Docker Compose brings up MySQL, Redis, MinIO, OpenFGA, Elasticsearch, and Milvus. At the application layer, one workflow graph can combine conversation, automated processing, and pauses for human input. Task mode is a separate interaction pattern: a main agent plans work, tracks progress, and delegates independent research to parallel sub-agents.

The DSH-based desktop client consumes enterprise models, API/MCP tools, skills, and knowledge spaces granted to the signed-in employee. Hosted apps have a separate lifecycle: a developer submits an app manifest declaring its runtime, resource tier, models, and knowledge bases; the platform runs checks and builds the app for approval. After publication, it supplies the visitor’s identity so the app can use platform models and retrieve knowledge within that visitor’s permissions.

### Key Capabilities & Differentiators
Task mode accepts files, knowledge bases, tools, and skills as context, pauses when it needs user input, and can deliver HTML, Markdown, PowerPoint, Excel, or Word files. Built-in skill packs cover Word, Excel, PowerPoint, and HTML reports; teams can also import skills from local sources or GitHub. Report citations can link to the cited passage. In the visual workflow builder, loops, parallel execution, batch runs, and human checkpoints make document review and fixed-format reporting practical without splitting chat and automation into separate flows.

Knowledge spaces support inherited and overridden permissions at space, folder, and file level, with grants to individuals, departments, or groups. Users can ask questions against a single document or a whole space. On desktop, Work handles materials within approved local folders and produces editable Office files. Enterprise model calls in Chat and Work share the user’s credits ledger, while administrators manage model access, monthly credits, and usage records.

### Trade-offs & Limitations
Compared with evaluating Dify Cloud or Coze as a managed option, the case for BISHENG is control over the deployment and a combination of file-level knowledge permissions, desktop work in approved folders, and an approval path for hosted apps. The cost is a larger operational footprint: backups and restores must account for persistent data and objects, search services need capacity planning, and upgrades can span multiple services. For a handful of API-backed chatbots, that footprint is difficult to justify.

For a production pilot, verify that permission changes are reflected in retrieval, that hosted apps receive the correct visitor identity, and that document ingestion does not crowd out interactive workloads. Treat secret scanning and review as gates, not proof of runtime isolation. Apache-2.0 provides a permissive basis for adapting the platform; it does not resolve the licensing, data handling, or compliance terms of models, tools, and other connected services.

### Hardware & Deployment Guide
Start with at least 8 CPU cores, 32 GB RAM, Bash, Docker, and Docker Compose (V2 recommended). Run `bash docker/install.sh` from the checkout root before starting Compose directly. The script generates `docker/.env` from `docker/.env.example` if needed, preserves an existing file, validates configuration, and pulls prebuilt images rather than compiling the checkout. In `docker/`, check `docker compose ps` and `docker compose logs -f backend backend_worker`. The UI is on port 3001; restrict initial access until the intended administrator registers, since the first account becomes admin. Then configure models. OnlyOffice is optional, and a self-hosted platform does not by itself imply offline model calls or tools.

Prefer the listed stable release, v3.0.2, for an initial production evaluation unless a tested prerelease feature is required. The 3.1 prerelease line includes work on shared daily chat and Deep Research conversations. For installations already upgraded to `v3.1.0-alpha1`, `v3.1.0-alpha1-fix` fixes repeated login redirects at the Vibe app entry and changes listing queries to filter visible apps before sorting and pagination, while retaining the final permission check. The patch adds no migration step but requires coordinated updates of the frontend, backend/worker, and enabled Vibe services, particularly the backend and `app-proxy`.
```

## Key Capabilities
```text
- Workflow execution: Loops, parallel branches, batch runs, and human checkpoints can coexist with multi-turn chat in one graph.
- Retrieval permissions: Space, folder, and file share a permission model with inheritance, overrides, and grants to users, departments, or groups.
- Agent deliverables: The main agent delegates independent research to parallel sub-agents and can generate Office files or reports with citations linked to source passages.
- Desktop workspace: Chat uses authorized enterprise resources; Work operates in approved local directories and produces editable Office files.
- Application publishing: CLI submission is followed by preflight checks, secret scanning, build, and review; published apps receive the visitor’s identity.
- Runtime footprint: Docker Compose starts a stack with MySQL, Redis, MinIO, OpenFGA, Elasticsearch, and Milvus; OnlyOffice is optional.
```

## Quick Start / Clone
```bash
cd docker
docker compose ps
docker compose logs -f backend backend_worker
```
