Sub-Agent Collaboration | LanMate User Guide
Using the Qianxin edition of LanMate?View Qianxin Edition User Guide

Sub-Agent Collaboration

Mechanism

The main agent creates sub-agents for sub-tasks:

Model Tiering

Settings > Models > Sub-agent tiers:

Tier Best For
Simple Retrieval, formatting, validation
Standard Daily coding, writing, analysis
Hard Complex reasoning, architecture, multi-file refactoring

Unconfigured tiers follow the parent session model.

Sub-Agent Discipline

Two guardrails hold in every mode: dangerous operations always require confirmation, and sub-agent deletion is always forbidden.

Sub-Agent Roles and Tool Whitelists

Read-only roles can be assigned when dispatching sub-agents:

Role Purpose
explore Read-only explorer, small-model tier by default; great for mapping code structure
review Read-only code review

You can also restrict which tools a sub-agent may use—give it only what it needs. Its permissions never exceed the main session’s.

Worktree Isolation and Snapshots

Coding sub-agents run in their own worktrees, so their changes never touch your main directory. Output is snapshot-protected and recoverable even after cleanup. See Git Worktrees.

Example

Do three things simultaneously: 1) Research competitor pricing 2) Organize monthly expenses 3) Write a product update announcement

Three sub-agents execute in parallel; the main agent aggregates.

External Sub-Agents

Supports external agents (Codex / Claude Code) via ACP protocol.