Onelevenvy/flock

Rust
macOSWindowsLinux

A desktop multi-agent harness built with Rust, Tauri, and React, powered by langgraph-rust.

agentlangchainlanggraphllmmuti-agentopenaireact-flowworkflowaichatbotdeekseekmcp
スター成長
スター
1.1k
フォーク
143
週間成長
+1
Issue
0
5001k
2024年9月2025年5月2026年1月2026年9月
成果物crates.io
README

Flock

A desktop multi-agent harness built with Rust, Tauri, and React, powered by langgraph-rust.

Visual Workflow | Multi-Agent Harness | Built-in Agent | Safe Sandbox & VNC | Cross-Platform | Any API Key

English | 简体中文

Flock Main Screenshot Flock Chat Screenshot Flock Automation Screenshot Flock Assistants Screenshot Flock Workflow Screenshot

Note: This project is built on top of langgraph-rust, which is my personal Rust implementation of the LangGraph framework.

Refactoring History: Flock has been completely rewritten from the ground up. The original version was a Python-based application using LangGraph, LangChain, and FastAPI as the backend. The current version is a native desktop application with a Rust backend, powered by Tauri for the desktop shell. This rewrite brings significant improvements in performance, reliability, and user experience.

Legacy Code: The original Python codebase is preserved in the legacy/python branch for reference.


📋 Quick Navigation

Multi-Agent Harness & Workflow · Core Features · Architecture · Quick Start


🤝 Multi-Agent Harness & Workflow — Visual Orchestration for AI Agents

Flock is more than just a chat client. It's a comprehensive multi-agent harness combined with a powerful Visual Workflow Editor. It orchestrates and runs AI agents locally or inside sandbox containers to read/write files, execute bash commands, browse the web, and run complex pipelines. You see everything the agent does, and you're always in control.

Capability / Feature Traditional Chat Clients Flock (Multi-Agent Harness)
Visual Workflow Builder No Yes — ReactFlow editor with 10+ node types & streaming execution
AI Operating on Files Limited or No Yes — Built-in agent with full filesystem, grep, and glob access
Multi-Step Autonomy No Yes — Autonomous LangGraph-rust execution loop with approval prompts
Scheduled Task Automation No Yes — Native Cron scheduler for 24/7 unattended workflows
Multi-Agent Collaboration No Yes — Auto-detects & orchestrates multiple agents in team networks
Open Source & Extensible Rarely Yes — Free, built with Rust & Tauri, fully extensible

🌟 Core Features

🕸️ Visual Workflow Editor (ReactFlow Engine)

  • Drag-and-Drop Canvas: Design complex pipelines visually by connecting custom agent and logic nodes.
  • 10 Node Types Shipped:
    • start & answer: Define workflow inputs and final delivery parameters.
    • llm & agent: Pure inference nodes and tool-enabled LangGraph agents.
    • classifier & ifelse: Semantic routing routers and conditional branch checkers.
    • code: Custom JS/Python code runners to execute arbitrary transformations.
    • human: Interactive interrupts asking for manual feedback or input.
    • plugin & parameter_extractor: Expose custom tools/plugins and extract structured data.
  • Version Control & Execution History: Easily manage multiple versions of your visual workflows, track historical execution paths, and debug states incrementally.

👥 Human-in-the-Loop (HITL) & Safe Interaction

  • Interactive Tool Approvals: Crucial actions (like writing files, running bash scripts, or modifying configurations) require explicit user approval before execution. You can inspect the plan, approve, or deny on the fly.
  • VNC Screen Takeover: Directly interact with sandboxed browser and OS interfaces. When the agent gets stuck on captchas, you can take over mouse/keyboard controls seamlessly.
  • Workflow Breakpoints (human node): Place manual intervention checkpoints in the visual flow to request human decisions, form submissions, or variable modifications before proceeding.

🌐 Browser Automation & Computer Use

  • Playwright Browser: Scrape web data, click links, and bypass forms using an isolated browser execution engine.
  • Computer Use: Command virtual desktops using OS-level commands (xdotool). The agent monitors framebuffer screen feeds and handles mouse/keyboard events.

🤖 Built-in Agent — Zero Configuration

  • Out of the box: No external CLI tools to download or configure. Paste any API Key (OpenAI, Gemini, Anthropic Claude, AWS Bedrock, or Ollama/local) and start immediately.
  • Skill Extensions: Extensible via YAML-frontmatter prompts that support Hot-Reloading on file changes.

🔒 Safe Sandbox Environment

  • Isolated Environment: Executes risky shell scripts and code execution safely inside isolated environment containers.
  • VNC Streaming: Stream sandbox desktops directly into the UI via WebSockets for full visual inspection of the running environment.

🔌 MCP & Scheduled Tasks

  • MCP (Model Context Protocol): Connect to third-party MCP servers once; all assistants and workflows automatically inherit the newly exposed schemas and tools.
  • Scheduled Cron Tasks: Set it once, the agent executes scheduled tasks on autopilot. Supports standard cron syntax for automated system maintenance, daily file aggregation, or report generation.

🏗️ Architecture

graph TD
    UI[Tauri Desktop UI - React + Mantine] <-->|IPC / Tauri Command| TauriHost[src-tauri Core]
    TauriHost <-->|IPC Interface / JSON Protocol| AgentEngine[flock-agent - LangGraph Core]
    AgentEngine -->|Graph State Machine| StateGraph[langgraph-rust]
    AgentEngine <-->|SQLite Checkpointer| DB[(SQLite Database)]
    AgentEngine <-->|Discovery / Frontmatter| Skills[flock-skills]
    
    AgentEngine <-->|Tool Execution| Registry[flock-tools - Tool Registry]
    Registry <-->|Local Host| Builtin[Built-in Tools: Bash, Files, Grep]
    Registry <-->|Model Context Protocol| MCP[MCP Server Registry]
    Registry <-->|Isolated Container| Sandbox[Sandbox Client]
    
    Sandbox <-->|X11 / VNC Server| VNC[x11vnc + websockify] <-->|Websocket Stream| UI
    Sandbox <-->|Playwright / xdotool| Browser[Browser & OS Controls]

Module Breakdown

Crate Directory Purpose
flock-core crates/flock-core Shared configuration schemas, SQLite DB models, encryption utilities, and IPC channels.
flock-agent crates/flock-agent The core agent executor loop, LangGraph state engine, checkpointer, and memory system.
flock-workflow crates/flock-workflow Workflow node logic and JSON-to-LangGraph AST compiler.
flock-tools crates/flock-tools Built-in and sandboxed tools, VNC web socket proxies, and sandbox managers.
flock-skills crates/flock-skills System prompts loader supporting variable injection and watcher-based hot-reload.
flock-ui flock-ui React application featuring Zustand, i18next, and ReactFlow editor.

🚀 Quick Start

Prerequisites

  • Rust: 1.77.2 or later
  • Node.js: 18.x or later

Install & Run

  1. Clone the Repository

    git clone https://github.com/Onelevenvy/flock.git
    cd flock
    
  2. Install Frontend Dependencies

    cd flock-ui
    npm install
    
  3. Start Development App

    npm run tauri dev
    
  4. Run Backend Tests

    cargo test --workspace
    

📄 License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

関連リポジトリ
Snailclimb/JavaGuide

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

JavaScriptnpminterviewApache License 2.0javainterview
javaguide.cn
158.4k46.1k
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

TypeScriptnpmskillOtheraigpt
dify.ai
155.1k24.5k
TauricResearch/TradingAgents

TradingAgents: Multi-Agents LLM Financial Trading Framework

PythonPyPIApache License 2.0agentfinance
arxiv.org/pdf/2412.20138
103.4k19.9k
OpenHands/OpenHands

🙌 OpenHands: AI-Driven Development

TypeScriptnpmcliMIT Licenseagentartificial-intelligence
openhands.dev
86.9k11.4k
koala73/worldmonitor

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

TypeScriptnpmGNU Affero General Public License v3.0aidashboard
worldmonitor.app
85.9k13k
Leonxlnx/taste-skill

Taste-Skill - gives your AI good taste. stops the AI from generating boring, generic slop

JavaScriptnpmskillMIT Licenseagentai
tasteskill.dev
85.5k5.8k
lobehub/lobehub

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

TypeScriptnpmskillOtherchatgptopenai
lobehub.com
82.3k15.9k
bytedance/deer-flow

An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of tasks that could take minutes to hours.

PythonPyPIMIT Licenseagentagentic
deerflow.tech
82.1k11.3k
dair-ai/Prompt-Engineering-Guide

🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.

MDXMIT Licensedeep-learningprompt-engineering
promptingguide.ai
78.1k8.6k
datawhalechina/hello-agents

📚 《从零开始构建智能体》——从零开始的智能体原理与实践教程

PythonPyPItutorialOtheragenttutorial
hello-agents.datawhale.cc
77.8k9.7k
shareAI-lab/learn-claude-code

Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1

PythonPyPItutorialMIT Licenseagentclaude-code
learn.shareai.run
76.4k12.3k
unslothai/unsloth

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4, MiniMax-H3, Gemma 4, FLUX and more.

PythonPyPIApache License 2.0fine-tuningllama
unsloth.ai/docs
75.9k6.9k