Zing Forum

Reading

Enju (槐): Enabling Collaboration Between Humans, AI Agents, and Computational Tasks on a Single Workflow Graph

Enju is an innovative DAG workflow system that treats human judgment, autonomous AI agent decisions, and computational tasks as equal work units. It implements version control and audit trails via Git, providing a new solution for complex multi-party collaboration.

Enju工作流系统DAGAI智能体人机协作Git原生MCP协议任务编排
Published 2026-05-25 18:14Recent activity 2026-05-25 18:21Estimated read 7 min
Enju (槐): Enabling Collaboration Between Humans, AI Agents, and Computational Tasks on a Single Workflow Graph
1

Section 01

Enju (槐): Guide to the Human-AI Collaborative Workflow System

Enju is an innovative DAG workflow system that treats human judgment, autonomous AI agent decisions, and computational tasks as equal work units. It implements version control and audit trails via Git, providing a new solution for complex multi-party collaboration. Original author/maintainer: tamerh; Source platform: GitHub; Original link: https://github.com/tamerh/enju; v1.0.0 released on May 21, 2026.

2

Section 02

Project Background: Addressing Pain Points in Human-AI Collaboration

In modern AI-driven development processes, traditional workflow systems (e.g., Snakemake, Nextflow) excel at pure computational tasks but cannot integrate human judgment and autonomous AI decisions. Enju (Japanese for "槐") emerged as a DAG workflow system that treats humans, AI agents, and computational tasks as equal "task performers", enabling collaboration on a single workflow graph.

3

Section 03

Core Design Philosophy: Unified Tasks and Dynamic Collaboration

Enju's core design includes: 1. Unified task units: Abstract human questions/reviews, autonomous AI work, and computational tasks into "tasks"; 2. Dynamic graph structure: Tasks can generate new tasks during execution (e.g., reviews trigger revisions); 3. Event-driven state machine: State changes trigger notifications (notify relevant personnel when human judgment is needed; AI tasks can be claimed); 4. Output-neutral coordinator: Only manages states and prompts, does not interfere with outputs; execution is distributed; 5. Native Git integration: Contributions are recorded as Git commits; attribution/audit are done via Git, no separate system needed.

4

Section 04

State Machine and Architecture: Fine-Grained Management and Layered Design

State Machine: Task state transitions are pending→ready→claimed→running→review→done. Special states include retry, failed, skipped, parked, enabling fine-grained observation and control.

Architecture: Divided into four layers—Coordinator layer (core DAG state machine, manages states and events); Client layer (Fat Client supports MCP protocol, CLI, Web interface, handles compute/answer/review/vote tasks); Execution layer (LLM agents, computational agents, container executors run in parallel); Storage layer (Git repository stores workflow definitions and outputs; uses branches to manage different workflows).

5

Section 05

Practical Application Cases: Validated Effects Across Multiple Scenarios

Enju has three reference workflows: 1. Mustache template engine development: 6 Claude Sonnet agents iteratively improved, 136/136 compliance tests passed; 2. Nanopore genome assembly: 13 containerized tasks distributed across two machines, Git used as data transfer mechanism; 3. PRISMA systematic review: 4 Claude Sonnet agents + 2 human review nodes, completed comprehensive analysis of 14 RCTs.

6

Section 06

Technical Highlights: Modularity and Usability

Enju's technical highlights include: 1. Modular design: Codebase is modular, with over 1800 tests covering edge cases, concurrency, and parallelism; 2. Single binary distribution: Built-in MCP, CLI, Web interface, easy to deploy; 3. Cross-platform support: Provides installation script and precompiled binaries, one-line installation (curl -fsSL https://raw.githubusercontent.com/tamerh/enju/main/install.sh | sh); 4. Academic endorsement: Accompanying design paper preprint (sugi.bio/enju).

7

Section 07

Applicable Scenarios: Which Fields Can Use Enju?

Enju is suitable for: 1. AI-assisted software development (multi-AI collaboration + human review); 2. Scientific research workflows (mixed computation and human judgment); 3. Content moderation and quality control (AI generation + human oversight); 4. Crowdsourcing and collaborative research (multi-party participation + review nodes); 5. Automated report generation (integrated data collection/analysis/writing/review).

8

Section 08

Summary and Outlook: A New Paradigm for Future Collaboration

Enju treats humans and AI as first-class citizens in workflows. It solves attribution and audit issues in hybrid collaboration via native Git integration, representing a new workflow paradigm. As AI capabilities improve, Enju will become key infrastructure connecting humans and machines, serving as a framework for organizations' future work methods. It is suitable for AI team collaboration, complex workflow automation, or projects requiring strict auditing.