Tech is political: The people under attack in Palestine 🇵🇸, Iran 🇮🇷, and Lebanon 🇱🇧 are people like us. They’re our brothers and sisters, too. Read up on their history, scrutinize what you’re told, and demand that they be respected. Hide

Frontend Dogma

Human–Agent Team Collaboration: From Managed-Agents Principles to Multica Practice

on , tagged , , , , (share this post, e.g., on Mastodon or on Bluesky)

I. Managed-Agents Principles

1.1 Background: From Monolithic to Fully Managed

As large language models continue to advance in tool-use and autonomous decision-making, AI agents have gradually penetrated various R&D scenarios. However, monolithic agents commonly suffer from tight architectural coupling, high operational overhead, inability to collaborate as a team, and difficulty reusing and accumulating capabilities. The root causes are:

Against this backdrop, managed agents (fully managed agents) have emerged as a new engineering paradigm. The core idea is:

Decouple the agent’s decision logic from its underlying runtime infrastructure. The platform takes over unified orchestration, runtime management, session handling, and secure sandboxing across the full chain.

Developers only need to focus on the agent’s business goals and capability definitions; underlying scheduling, resources, and operations are handled by the managed layer.

Currently, mainstream vendors such as Anthropic and OpenAI have successively launched managed-agents services. The open-source project Multica is a benchmark implementation of managed agents for team-based collaboration, bridging the gap from managed theory to production R&D and enabling integrated management of human–agent hybrid teams.

1.2 Core Concept: Decoupling the “Brain” from the “Hands”

Managed-agents definition: A fully managed infrastructure for building, deploying, and running AI agents at scale. The core design revolves around component decoupling and layered abstraction, addressing pain points in long-cycle AI agent development and production deployment.

Managed-agents design philosophy: Completely separate an agent’s “decision capability” (the model as the “brain”), “execution capability” (tools/sandbox as the “hands”), and “memory capability” (persistent sessions as memory).

Drawing on operating-system layering concepts, the agent architecture is restructured so each module evolves independently, improving overall system stability. This solves problems in traditional agent development such as tightly coupled agent code and environment crashes causing task interruptions.

Managed-agents core modules:

[No image text provided by the source.]

1.3 Architecture Design: Four Foundational Objects

A standardized managed-agents system consists of four entities—agent, environment, session, and events—which form the foundation of the entire architecture:

1.4 Workflow: Full Lifecycle of Managed Execution

Managed-agents task execution flow:

II. Multica Introduction

2.2 Multica Core Features

a. Agent as Team Member (agent role-based hosting):

Implements the agent entity definition from managed agents. Each agent has its own profile, name, and identity. It appears alongside human developers on the project board and in issue comments. Humans can assign board issues directly to the corresponding agent, just as they would assign tasks to an employee. The agent can comment autonomously, update task status, and flag blocking reasons, enabling unified personnel (human + AI) management.

b. Local Daemon + Cloud-Controlled Dual-Layer Runtime (Environment implementation):

Follows the managed-agents environment-isolation specification:

c. Full-Chain Task Lifecycle Hosting (full-process Session management):

Follows the managed-agents session lifecycle: task enqueue → agent claims and dispatches → local sandbox starts execution → real-time progress reporting → block/success status change → execution archiving. The full process pushes runtime logs via WebSocket in real time. Developers do not need to stand watch; they only intervene at code review and exception-blocking nodes.

d. Skill Library Accumulation (Events value reuse):

III. Multica Deployment in Practice

3.1 Mode Selection

DimensionMultica Cloud (Cloud SaaS Mode)Self-Host (Private Deployment)
Control-service ownershipMultica officially operates the cloud service (frontend + Go backend + PostgreSQL database). Workspace, task data, and event logs are stored on the vendor’s cloud server at multica.ai.Full-stack service (Web / backend / PG+pgvector) deployed on the enterprise’s own server or data center. 100% of data remains in-house; no third-party data storage.
Deployment responsibilityUser only installs the local CLI + daemon; no server-side deployment needed.Ops personnel deploy the full service using Docker Compose; team members install the CLI separately and point it to the self-hosted address.
Deployment time5 minutes to connect a single machine, ready to use out of the box at multica.ai.Service deployment takes ~10 min; team nodes are connected in batches.
Data securitySensitive business data (code, credentials) remains local; task metadata and board records are stored in Multica Cloud. Suitable for non-classified projects.Full-chain data never leaves the enterprise intranet. Meets financial and government compliance requirements for data-sovereignty.
Operational costOfficial team handles service upgrades, database backups, high availability, and security patches. Users only maintain the local daemon and AI tools.Enterprise bears its own server ops, version upgrades, data backups, and troubleshooting.
CustomizationPlatform configuration is fixed; underlying parameters, database, domain, and permission rules cannot be modified.Supports custom domains, intranet access, permission policies, database configuration, enterprise SSO integration, and internal Git/Webhook integration.
Applicable scenariosIndividual developers, small startup teams, rapid validation of managed-agents adoption, temporary experimentation with agent collaboration workflows.Medium-to-large enterprises, classified R&D teams, private-compliance projects, scenarios requiring integration with internal CI/CD systems.
ScalingAdd new member runtimes directly from the web UI; no service changes needed.Install the CLI on a new development machine and point it to the self-hosted service address for horizontal scaling.

The execution layer is identical in both modes (local daemon + local AI tools execute tasks). Only the control service (backend, board, database, workspace) deployment location differs, perfectly aligning with the managed-agents core design principle of decoupling the control layer from the runtime.

Choose based on actual needs:

3.2 Prerequisites

There is only one prerequisite: you already have at least one AI programming tool installed locally (Claude Code, Codex, OpenCode, Pi, etc.). The daemon will auto-detect them on startup. If none are installed, the daemon will refuse to start.

My computer has Claude Code, Codex, and OpenCode installed. The following examples use these three.

3.3 Cloud Mode Deployment

Step 1: Register a Cloud account:

Visit Multica—Project Management for Human + Agent Teams to register an account, create a workspace, and enter the board.

Step 2: Install the agent daemon (CLI or desktop client):

Step 3: Start the daemon and connect to the control plane:

3.4 Self-Host Mode Deployment

Step 1: Clone the project and one-click start the backend:

Run the following commands in your terminal. This will:

For production use, refer to the documentation to customize security configuration, email, ports, etc.

git clone https://github.com/multica-ai/multica.git
cd multica
make selfhost

After startup, access the following service addresses:

Step 2: First login and workspace creation:

Visit http://localhost:3000 and perform the following actions:

Step 3: Start the daemon and connect to the control plane:

Same as step 3 in cloud mode; omitted here.

IV. Human–Agent Team Collaboration Case Study

4.1 Team Organization Design

For human–agent team collaboration, the first step is to perform team organization design based on business scenarios, defining team roles and responsibilities. Here we use “full-stack project iterative development” as the business scenario to practice a multi-role agent team collaboration.

For the R&D requirement delivery process, the general stages are requirement analysis, solution design, code development, code review, requirement testing, and project deployment.

Among these, “requirement analysis, solution design, and code development” are long-duration, low-risk tasks suitable for agent roles. The other stages are relatively high-risk; in the short term (as in this case study), they remain handled by humans, with future consideration for handing them off to agents.

Based on the above division of labor, the specific team organization design is as follows:

The former handles “requirement analysis, solution design, and code development” work; the latter handles “code review, requirement testing, and project deployment” work.

Agent role details:

Agent role instructions:

### Core Positioning

The team’s sole external interaction entry point and full-process chief scheduler. Bears the core responsibilities of “task decomposition, progress tracking, and result aggregation.” The anchor of the entire squad.

### Detailed Responsibilities

1. Receives raw user requirements, decomposes vague, broad requirements into reasonably granular, independently executable standardized subtasks, and pushes them in orderly sequence according to role division without overstepping work assignments.
2. Tracks each role’s task progress throughout. When tasks are blocked or outputs do not meet requirements, automatically triggers rescheduling to ensure the process does not stall, and synchronizes information at each node to prevent information gaps.
3. Finally aggregates the planner’s solution documents and the engineer’s execution results, integrating them into a complete deliverable with clear logic and strong readability, and uniformly outputs it to the user.
4. Manages global conversation context, filters invalid interactions, compresses redundant information, improves collaboration efficiency, and reduces unnecessary resource consumption.

### Authority Boundaries

Only responsible for scheduling and aggregation. Does not participate in specific solution design or write execution code. All concrete work is delegated to the corresponding roles. Never oversteps boundaries.
### Core Positioning

Core solution output. Bears the core responsibilities of “information research and complex task solution design.” The central hub connecting requirements to implementation.

### Detailed Responsibilities

1. Based on tasks decomposed by the coordinator, completes external information retrieval, industry solution collection, competitive analysis, and dependency information collation, outputting objective, neutral research conclusions without mixing in subjective prejudgments.
2. Based on research results, outputs structured, implementable complete solutions: including overall framework decomposition, module interface definitions, path selection comparisons, execution step sequencing, and potential risk annotations. Solutions clearly distinguish must-do items from optional items, leaving clear room for subsequent execution.
3. After outputting a solution, performs feasibility verification independently. When information is missing, clearly annotates the uncertain scope, does not fabricate conclusions, and does not pass erroneous guidance to subsequent execution.

### Authority Boundaries

Only outputs design solutions. Does not participate in concrete implementation. When requirements change, only modifies the solution; does not overstep to modify execution results.
### Core Positioning

Core executor of long-cycle tasks. Bears the core responsibility of “long-duration, independent complex task execution.” The problem-solver who transforms paper solutions into actual results.

### Detailed Responsibilities

1. Strictly follows the design solution output by the planner, independently completes code development, feature debugging, configuration modification, and other implementation work. Does not require coordinator involvement in details throughout, and supports long-duration offline/background execution.
2. After completing development, automatically performs basic functional self-testing, independently fixes syntax errors, simple logic defects, dependency conflicts, and other common problems. Only when encountering solution-level conflicts or design flaws does it return the problem to the coordinator for rescheduling and replanning.
3. After execution completes, outputs a clear delivery checklist: including change records, environment dependency descriptions, deployment and startup steps, and clearly annotates content requiring manual user adjustment, leaving no untraceable black-box modifications.

### Authority Boundaries

Only executes within the scope of the design solution. Does not modify the overall framework on its own or extend extra functionality beyond the requirement scope. All out-of-bound requirements are uniformly returned to the coordinator for reprocessing; no private solution adjustments.

Multica system screenshots:

Taking Mozi as an example, configuration includes: runtime (local MacMini + OpenCode) + agent model (DeepSeek) + skills (design-taste-frontend) + instructions, etc.

[No image text provided by the source.]

Multica Runtime: My computer has Claude, Codex, and OpenCode installed; as shown below, all are detected as available.

4.2 Team Collaboration Rules

Team collaboration rules are carried by squad instructions. Squad instructions are injected into the leader agent’s prompt when it processes issues assigned to that squad. They provide the Leader with team-wide guidance, collaboration norms, or context that should be followed for every task.

Squad instruction design:

## Squad Positioning

A professional multi-agent framework for closed-loop, implementation-oriented complex tasks. Clear division of labor without redundancy. Adapted to the full flow of “requirement → design → implementation → delivery.”

### Role 1: Lead Coordinator—Xiao He

Core functions: Task decomposition → Progress tracking → Result aggregation

* Sole external interface. Receives raw user requirements and decomposes them into standardized subtasks.
* Schedules tasks by process, tracks progress, and automatically reschedules when blocked.
* Aggregates planning + execution results, organizes them, and outputs to the user.
* Manages context and filters redundant information.
Mandatory boundary: Only schedules and aggregates. Does not design solutions or write execution code.

### Role 2: Strategic Planner—Zhang Liang

Core functions: Information research → Complex task solution design

* Based on decomposed tasks, completes information retrieval, competitive/technical research, and outputs objective conclusions.
* Outputs structured, implementable solutions: including framework decomposition, interface definitions, selection comparisons, execution sequencing, and risk annotations.
* Self-verifies solution feasibility. Clearly annotates missing information; does not fabricate content.
Mandatory boundary: Only outputs design solutions. Does not perform implementation or respond directly to users.

### Role 3: R&D Engineer—Mozi

Core functions: Long-duration independent execution of complex implementation tasks

* Strictly follows the design solution to independently complete implementation, supporting background long-cycle execution.
* Performs basic self-testing independently and fixes simple problems. Only reports solution-level problems to the coordinator for rescheduling.
* Delivers a clear checklist: including change records, dependency descriptions, usage steps, and annotations for manual adjustments.
Mandatory boundary: Only executes within the solution scope. Does not modify architecture or extend beyond requirements.

## Standard Flow

User initiates requirement → Xiao He decomposes and schedules → Zhang Liang researches and outputs solution → Mozi independently executes → Xiao He aggregates and integrates → Deliver to user

## Exception Rules

* Research lacks information: Zhang Liang → Xiao He → User supplements, re-research.
* Solution has flaws: Mozi → Xiao He → Zhang Liang adjusts solution.
* Result does not meet requirements: User → Xiao He judges problem node → Corresponding role adjusts and re-outputs.

4.3 Case Scenario

The following case quickly demonstrates the Multica system’s operating mechanisms, including multi-agent scheduling, session isolation, event tracing, and skills.

Case scenario description:

[No image text provided by the source.]

Multica process analysis:

The Multica flow is shown in the figure below. The core steps are:

Multica core step diagram:

(This post is a machine-made, human-reviewed, and authorized translation of xuxueli.com/­blog/­?blog=ai/­multica.)