THINKINGOS
A I L a b o r a t o r y
Blog materials reflect our practical experience and R&D hypotheses. Where effects are mentioned, outcomes depend on project context, data quality, architecture, and implementation process.
Back to blog
AI Agents
November 20, 2026 15 min
TaoCoder AI Agents Agent Orchestration Manager Mode Script Hooks Async Memory

TaoCoder 3.2.1: From an Autonomous Agent to a Self-Organizing Agent System

TaoCoder 3.2.1: a manager spawns child tasks, answers their questions and collects their reports — the execution loop runs agent-to-agent. Script hooks as deterministic quality gates, asynchronous update and repair cycles, and tolerant parsing for reliability on weak models.

TaoCoder 3.2.1: From an Autonomous Agent to a Self-Organizing Agent System

An autonomous AI coding agent is no longer rare. What is rare is autonomy that scales. In version 3.2.1 (2026-11-20) TaoCoder stopped being “a single worker that keeps itself busy” and became a system where a manager agent spawns child tasks, watches them, answers their questions and collects their reports, while the human talks only to the manager. The execution loop closed “agent-to-agent”. Around this core sit script hooks for deterministic checks, asynchronous memory cycles that no longer block work, and parsing robustness that holds reliability on weak models.

The problem: the ceiling of a single agent

The autonomy of one agent runs into three hard limits.

  1. One context window and one serial action stream. The agent works step by step. While it waits for a model response or a command result, it idles. There is no parallelism — only a queue.
  2. The human stays in the loop on every hard decision. Even in autonomous mode the agent escalates to the human when it hits ambiguity. Formally it is “autonomous”; in practice it asks for confirmation at every non-obvious step.
  3. A single point of failure. If the context drops, the memory cycle stalls or parsing breaks, the whole task freezes. There is neither redistribution nor self-healing.

For autonomy to stop being a showroom feature, four things are required: parallelism (several workers), delegation (splitting work into subtasks), inter-agent communication (a worker asks the manager, not the human) and deterministic quality gates (checks that do not rely on model judgment).

This is exactly the shift the industry described in 2026. Addy Osmani (Anthropic, Claude Code, March 2026) documents the move from a “conductor” — a single agent you direct — to an “orchestrator”: a team of agents where planning, spawning, supervision, verification, integration and retrospection are split across roles, with quality gates between them. TaoCoder 3.2.1 implements this “factory model” (Plan / Spawn / Monitor / Verify / Integrate / Retro) natively — not as a roadmap promise, but as a working loop.

The core of the release: agent orchestration

Tools: create, inspect, control

Orchestration starts with four tools.

  • new_task — launches a child task with preloaded context, an explicit role mode (TAO·MODES), provider and model. The child can run in the background and, importantly, can be flagged as a manager (agent_management). The tool returns the CHAT id of the created task; a separate action=list_modes lists the available modes.
  • taocoder_tasks — read-only view: running tasks and history, task details (context, messages, report) and the provider/model catalog. It mutates nothing and needs no approval.
  • taocoder_task_control — send a message to another task, pause, resume or cancel it, change its provider/model, adopt or release it. Every mutation is explicitly approved.
  • taocoder_manage_schedule — creates and edits scheduled runs, including runs that belong to a manager.

Separately — foreground safety: creating or controlling a child never hijacks the chat the user currently has open. Orchestration does not turn into chat takeover.

// The manager spawns a child task in the background and flags it as a manager
const childChat = await new_task({
  spec: "Run the payment module integration tests and fix the failures",
  role_mode: "developer",
  provider: "openrouter",
  model: "flash-model",
  background: true,
  agent_management: true,   // the child can spawn its own children
});
// childChat is the chat id used for further control

Agent-to-agent management

The keyword of the release is manager mode. Any mode can be flagged as a manager: it spawns children, watches their state, answers their questions and collects their reports. The execution loop runs agent-to-agent, and the human is addressed by the manager — and only when the manager itself cannot decide.

  • Manager inbox. Child questions, final reports (attempt_completion) and failures are routed to the nearest manager ancestor. Every event leaves a row in the chat of BOTH tasks and survives a window reload.
  • Blocking questions with a deadline. A child waits for the answer: 10 minutes at depth 1, halved per additional manager level, floor 60 seconds. The human can still answer directly in the child’s chat — the FIRST answer wins, and a late manager answer is discarded with a visible note.
  • Non-blocking reports. Reports and failures are fire-and-forget, so a child never stays alive just to deliver its result.
  • Predictive limits. At most 3 manager levels above a task, 5 live children per manager, 20 descendants per root and one open question per child. A refused spawn, adopt or reparent is reported in the chat.
  • Scheduled children. A schedule can carry a management link (manager chat id, chain, depth, manager runs, and the policy for a lost manager — reparent to a living ancestor or the human, run unmanaged, or skip). Every run reports through the same inbox even after the creating agent has finished, and the link survives a window restart.
  • Secrets stay local. Secret input is never routed to a manager.
LimitValueWhy
Manager levels above a task≤ 3Deep chains degrade and are hard to debug
Live children per manager≤ 5A manager cannot lead a dozen well
Descendants per root≤ 20Protection against explosive tree growth
Open questions per child1One question — one answer, no races
Answer deadline10 min, /2 per level, ≥ 60 sA child never hangs forever

How it maps onto the industry “factory model”

Factory model phaseWhat it doesTaoCoder 3.2.1 mechanism
Plansplit work into subtasksthe manager decomposes and calls new_task
Spawnlaunch the workersnew_task with preloaded context and role
Monitorwatch the statetaocoder_tasks (read-only) + manager inbox
Verifycheck the resultattempt_completion hands the report to the manager; script hooks act as quality gates
Integrateassemble the resultthe manager collects the children’s reports and reconciles them via taocoder_task_control
Retropreserve the experiencethe update cycle compresses the run into the external Task Context

Script hooks: deterministic checks without an LLM

Orchestration raises a question: who checks the quality of the children’s work? If you check it with model judgment, you pay in tokens again and risk hallucination again. The release’s answer is script hooks (run_script): an arbitrary external command that runs on task lifecycle events.

  • Trigger points. A hook fires on stage_enter, stage_exit, tool_call and task_start. You can, for example, forbid leaving a stage until the linter or the build passes green.
  • Typed parameters. script_path (absolute path, the file must exist), command, result_mode, an optional tool_name filter, timeout_seconds (1–600, default 300) and an optional llm_message.
  • Exit-code verdict. 0 means pass and is interpreted together with result_mode; the hook context arrives on stdin and the working directory is the workspace root.
  • Fail-open execution errors. A missing file, a spawn error, a timeout or a cancel is logged and the action continues. An infrastructure failure of the hook must not break the task.
  • Test run from the UI. A hook can be executed from the Tao·Modes screen before anyone starts relying on it.
{
  "hook": "run_script",
  "on": "stage_exit",
  "script_path": "/abs/path/check_all.sh",
  "result_mode": "exit_code",
  "timeout_seconds": 300
}

The idea is simple: a quality gate that neither burns tokens nor hallucinates. The hook runs check_all.sh, static analysis or a security scan and blocks a stage transition on a non-zero exit code. This is the Verify phase of the factory model, made deterministic.

Asynchronous update cycle: memory does not block work

The memory cycle (update cycle) used to run in the main loop: to get the next prompt, the agent waited for the knowledge-extraction LLM call to finish. In 3.2.1 this moved to the background.

  • Opt-in flag. taoCoderUpdateCycleAsyncEnabled (off by default) moves memory extraction out of the main loop — the turn prompt is returned immediately instead of waiting for the model call.
  • Frozen boundaries. Extraction runs on a history snapshot, knowledge is applied atomically under the task lock, and history trimming plus the kernel swap happen only at the NEXT turn boundary.
  • Single-flight and deadline. At most one concurrent extraction per task with fencing, an absolute deadline against a silent stream, and ONE collapsed chat row updated in place.
  • sync / async / defer policy. While a flight is in the air the trigger is skipped entirely — a busy slot can no longer provoke a duplicate synchronous cycle; a manual Refresh is not consumed while deferred.
  • Unchanged default. With the flag off the synchronous path behaves exactly as before.

The practical effect: turn latency stops depending on memory-extraction time. The agent works, memory catches up in the background.

Parsing robustness: reliability on weak models

The update cycle parses the model’s JSON answer. On weak models the format “drifts” — and that used to take down the whole cycle. Now parsing is tolerant of defects.

  • Explicit output contract. The cycle prompt now states the exact JSON shape and the allowed keys, so weak models stop guessing the format.
  • Tolerant parsing. Prose around the object, markdown fences, comments, trailing commas, single and typographic quotes, NaN and a truncated tail are recovered instead of failing the cycle.
  • Partial acceptance. A partially damaged answer no longer kills the cycle — every valid element is still applied.
  • Retry and diagnostics. A format error triggers a retry with a corrective hint; repairs, normalizations and dropped items are listed in the expandable cycle details.
  • Atomic failure. On a total parse failure the Task Context file stays byte-for-byte unchanged.

This is the foundation of autonomy: if the memory cycle crashes on malformed JSON, the whole system degrades. Format tolerance is the insurance on which cheap-model reliability rests.

Asynchronous repair cycle: the plan heals in the background

The self-healing planner (repair cycle) fixes the implementation plan when it drifts out of sync. In 3.2.1 it also moved to the background.

  • Same flag. Plan self-healing reuses taoCoderUpdateCycleAsyncEnabled and the existing timeout — no new settings.
  • Background planning. The repair planner runs on a deep-cloned history snapshot with an absolute deadline and shares the single-flight slot with the update cycle, instead of blocking prompt assembly.
  • One invalidation. The flight is finalized at the next turn boundary with exactly one kernel invalidation, so the repaired kernel is used in the prompt of that same turn.

Tool and chat fixes

The release closes a set of defects that quietly undermined trust in the agent.

  • XML parameter parity. Optional parameters declared in a tool spec but missing from the parser whitelist were silently swallowed (search_in_file lost use_regex, case_sensitive, before, after). A global guard test now checks parity for every tool and model variant.
  • REST connections. manage_connections no longer writes an empty config while reporting success; string parameters (headers, query_params, path_params, body) are parsed and serialized correctly.
  • Task Context continuation. Answering a question, switching a stage or marking exit criteria no longer starts a NEW task inside the same chat.
  • Parameter value normalization. Enum values are trimmed and lower-cased, booleans accept strings, and id works as an alias of item_id.
  • Chat rows. Async update/repair flights show one row refreshed in place, management events render as their own row type and survive a reload, and failure/cancellation events still reach an aborted task’s chat.

What changed compared to 3.0.1 / 3.1.0

Dimension3.0.1 / 3.1.03.2.1
Execution modelone autonomous agentmanager + a team of children
Who answers the agentthe humanthe manager (the human only when the manager cannot decide)
Parallelisman action queueup to 5 live children per manager
Quality gatesmodel judgmentdeterministic script hooks
Memory cycleblocks the turnasynchronous, non-blocking
Memory parsingcrashes on malformed JSONtolerant, partial acceptance

Differentiators against competitors

The market caught up through 2026: Cursor has subagents and background agents, GitHub Copilot has been running multiple agents in Workspace since autumn 2026, and Claude Code has hooks and Agent Teams. So the honest question is not “do they have orchestration” but “how much of it is assembled into a single loop”.

CapabilityCursor / CopilotClaude CodeTaoCoder 3.2.1
Spawning child tasksyes (subagents, background agents)yes (subagents, Agent Teams)native, with roles, providers and models
Agent-to-agent controlpartialyes (cross-session)manager + event inbox
Blocking questions with a deadline——yes, “first answer wins”
Deterministic quality hookspartialyes (hooks)run_script on lifecycle events
Asynchronous memory——update + repair in the background

The difference is not the presence of individual features — competitors have them. The difference is that in TaoCoder 3.2.1 the manager, its children, their questions, reports, hooks and memory live in one closed loop with role modes and explicit providers, rather than being stitched together from scattered mechanisms by hand.

What’s next

  • Task-tree observability: real-time visualization of “manager → children” chains and their statuses.
  • Balancing policies: automatic provider/model selection per child role, so the manager itself decides where a cheap model suffices and where a frontier model is needed.
  • A growing library of ready-made hooks: typical quality gates (tests, linters, secret scanners) out of the box.

Bottom line

  • Autonomy stopped being a showroom feature. The execution loop runs agent-to-agent: the manager spawns children, answers their questions and collects reports; the human steps in only when the manager itself cannot decide.
  • Orchestration is native. new_task, taocoder_tasks, taocoder_task_control, taocoder_manage_schedule — the full set for the factory model Plan / Spawn / Monitor / Verify / Integrate / Retro.
  • Quality is deterministic. Script hooks set gates that do not rely on model judgment and do not burn tokens.
  • Memory does not slow things down. Asynchronous update and repair cycles are moved out of the main loop; tolerant parsing holds reliability on weak models.

TaoCoder 3.2.1 is not “yet another assistant version”. It is the transition from a single autonomous worker to a self-organizing system of agents, where autonomy scales instead of hitting the ceiling of one context.


THINKING•OS AI Lab — an R&D lab and systems integrator. We build scalable B2B and B2C platforms on our own AI engines, RAG servers and messengers. The portfolio holds 13+ AI platforms.

Read more: https://thinkingos.tech/blog Contact: https://thinkingos.tech/contacts

AI Agents

Need an autonomous AI agent?

Share the task, and we will suggest an architecture, control layer, and rollout path.

Discuss a project