跪拜 Guibai
← All articles
AI Programming

TeamAgentX Turns AI Coding Into a Group Chat Where Agents Hand Off Tasks Like a Dev Team

By 前端小付 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Single-agent coding tools burn expensive tokens on every subtask and leave no visibility into parallel work. TeamAgentX shows a practical path to multi-agent development where cost, context, and convergence are managed explicitly — not just demoed — and where the runtime is a chat group a human can interrupt at any point.

Summary

TeamAgentX replaces the single-agent coding paradigm with a group-chat interface where specialized AI assistants — architect, engineers, tester, reviewer — hand off tasks to each other. Each assistant gets its own model, system prompt, skills, and isolated memory per project, so a high-reasoning model can decompose work while cheaper models handle execution. The system enforces structured task handoffs via `mention_agents` tool calls instead of parsing natural-language @-mentions, and it limits dispatch depth, fan-out, and callbacks to prevent runaway agent loops.

A core design rule is that whichever agent dispatches parallel tasks is responsible for collecting results and deciding the next step, creating a converge pattern: decomposition → execution → summarization → verification → completion. The author reports a 50% token reduction by routing thinking work to expensive models and CRUD, testing, and documentation to cheaper ones. The project also exposes the full collaboration trail — tool calls, task queues, scheduling decisions — so a developer can see who is working, waiting, or blocked, rather than staring at a spinner.

Beyond coding, the same group-chat model runs a fully automated math-video pipeline that posts daily to Douyin and a CI/CD group that simulates browser uploads when a platform lacks an API. The repository ships with importable team templates, and the server maintains per-group execution queues with pause and resume.

Takeaways
— Each AI assistant in a group gets its own model, system prompt, skills, tools, and per-project isolated memory, preventing context pollution across projects.
— Task handoffs use structured `mention_agents` tool calls that explicitly register the target assistant and task, rather than relying on natural-language @-mentions.
— Dispatch depth, fan-out, and total chain budget are capped, and limited callbacks are permitted to stop infinite agent loops while allowing necessary rework.
— The agent that dispatches parallel tasks is responsible for collecting results and deciding the next step, enforcing a converge pattern.
— Routing architecture and review work to expensive models while handing CRUD, testing, and documentation to cheaper models cut token costs by 50% in the author's tests.
— The system exposes tool calls, execution status, task queues, scheduling records, and handoff trails so a developer can see exactly what each agent is doing.
— Team templates are importable from the official site, and the server maintains per-group execution queues supporting pause and resume.
— Beyond coding, the same group-chat model runs a fully automated math-video pipeline that posts daily to Douyin and a CI/CD group that simulates browser uploads when a platform lacks an API.
Conclusions

Multi-agent systems fail less from concurrency problems than from uncontrolled fan-out; the hard engineering is convergence, not parallelism.

Structured handoffs (tool calls vs. parsing chat text) turn agent-to-agent delegation from a brittle NLP problem into a deterministic system call, which is the difference between a demo and a tool that finishes jobs.

Per-project memory isolation for the same agent identity solves a context-pollution problem that most single-agent tools ignore because they assume one project per session.

The group-chat runtime model accepts that software development is not a fixed DAG — rework, parallel exploration, and human interruption are first-class events, not exceptions.

Using model-price tiering as a deliberate cost-control lever inside a multi-agent system is an under-exploited strategy; most tools either use one model or leave the choice entirely to the user.

Concepts & terms
mention_agents tool call
A structured function call an AI agent makes to hand off a task to another agent, explicitly registering the target assistant and task description, instead of relying on natural-language @-mentions in chat text.
task lineage and fan-out control
A mechanism that tracks the parent-child relationships of dispatched tasks and enforces limits on how deep and how wide an agent can delegate, preventing exponential agent sprawl and infinite callback loops.
group-chat-style multi-agent collaboration
A runtime model where AI agents collaborate inside a persistent chat group that represents a project, with dynamic task handoffs and human interruption, as opposed to a pre-defined DAG workflow.
From the discussion

The discussion centers on a practical integration headache: the latest Claude Code version breaks DeepSeek streaming, forcing a local downgrade. One user reports the stream drops, another says it works fine, and a third confirms that manually downgrading the SDK after locating its install directory fixes the problem, linking a CSDN guide. A separate question asks whether domestic Chinese AI tools are supported at all.

— Claude Code's latest version causes DeepSeek stream drops, but the issue may be environment-specific — one user reproduces it, another does not.
— Manually downgrading the SDK after finding its install directory resolves the streaming problem.
— The project currently lacks a way to pin or specify an SDK version during installation.
— Support for domestic Chinese AI tools is unclear or absent.
Featured comments
笺千言

Hey, currently the latest version of Claude has some issues when connecting to DeepSeek — it keeps dropping the stream. So I'm using Claude version 2.1.220 locally. But I found it's not using my local CLI, so I installed the SDK. However, the SDK installs the latest version 2.1.227 by default. Is there a way to specify an SDK version? The issue was closed, so I can't file one.

前端小付

You're saying DeepSeek has a bug in the latest Claude Code version? I tried it and it works fine for me — no stream drops.

笺千言  → 前端小付  · 1 likes

I already found the SDK installation directory, and after downgrading it works normally. I'm not sure if it's a Windows-specific issue or something else. This is an article I found while troubleshooting a few days ago — you can refer to it: https://blog.csdn.net/iwannbe_vv/article/details/163500136

用户966870908082

Doesn't it support domestic AI tools?

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗