Skip to main content

From Data Queries to an Operations Partner: Huibo Technology Builds Xiaohui Claw with Qoder Cloud Agents

Huibo Technology leverages Qoder Cloud Agents to build Xiaohui Claw, combining Skills, 82 MCP tools, and Multi-Agent orchestration for data queries, reports, and marketing workflows. With tenant isolation and human confirmation, operations data tasks move from hours of waiting to self-service in minutes.

Back
A brand operations team's day often begins with a stack of repetitive tasks: export yesterday's business data, take screenshots, and post a short performance summary to a group chat. During major promotional campaigns, this alone can consume twenty minutes every day. Huibo Technology has handed this work to Xiaohui Claw, an AI operations assistant built with Qoder Cloud Agents (QCA). It handles repetitive data preparation, information sharing, and scheduled reporting, leaving the operations team more time for work that requires judgment and decision-making. This article explains how Huibo integrated it with QCA, the pitfalls encountered along the way, and the results achieved.

1. Huibo Technology and Xiaohui Claw

Beijing Huibo Technology is an AI-driven provider of omnichannel digital consumer operations services. It has spent 13 years working in e-commerce and retail, serving more than 2,000 leading brands across industries. Xiaohui Claw is positioned as Huibo's "dedicated AI operations team for e-commerce and retail brands." It is not another data query tool, but an operations partner that can examine data, perform analysis, schedule tasks, and send messages. Its four core scenarios are natural-language data queries, intelligent reports, business alerts, and operational diagnostics. An additional execution loop turns diagnostic findings into visual marketing workflows, which run automatically after user confirmation. It also supports groups of agents that identify opportunities around recurring purchases, trial-to-full-size product conversions, first purchases after membership enrollment, re-engaging lapsed customers, and post-purchase membership enrollment. They first produce analysis, recommendations, and draft marketing workflows, followed by human confirmation and execution through business systems.

2. Architecture Evolution and Platform Selection

2.1 From Prompt Engineering to Workflow, Then Harness

Xiaohui Claw did not start in its current form. Huibo went through three stages. The first was prompt engineering: business rules, metric definitions, and output formats were all written into prompts, turning a general-purpose model into an "all-in-one consultant." But the model could not access enterprise data, increasingly crowded context diluted its attention, and it forgot everything when the connection was lost. The second stage was workflow orchestration. To make execution controllable and auditable, Huibo encoded it into nodes and connections, building an integration platform, a marketing workflow canvas, and a reporting center. From 2025 onward, it implemented a complete workflow stack: intent recognition, slot extraction, branching and routing, API orchestration, and response-template assembly. After more than six months in operation, two bottlenecks became clear. First, maintenance costs grew faster than linearly. More fundamentally, what the system could answer was fixed on the day the workflow was designed. If a user's question fell outside the predefined branches, the only response was "not supported yet." That led to the third stage, the current approach: leveraging QCA to build an agent runtime system and give agents an "operating system." In Workflow, control flow lives in diagrams drawn by developers, with the model filling in a few nodes. Harness reverses this: the model directs control flow, while engineering provides the runtime, tools, constraints, and feedback. In Huibo's internal analogy, an agent is the decision-making unit—the worker—while the harness is the surrounding runtime and mechanisms: the factory and its operating rules.

2.2 Five Pain Points, One Root Cause

Before changing approaches, the operations team faced five main pain points:
  • Waiting for data. Ad hoc requests such as "aggregate member GMV by day for August 26" did not fit any predefined node. They had to wait for an analyst, taking anywhere from hours to days.
  • Reconciling metric definitions. The same metric could have different definitions in a commerce analytics platform and a store's own reporting. Workflows could neither understand the semantics nor verify the interpretation.
  • Manually filling reports. Disconnected workflows made people the glue between systems. Recurring monitoring reports, weekly reports, and monthly reports all relied on manual data transfers.
  • Fragmented platforms. A unified view across Taobao, Tmall, JD.com, and Douyin required people to log in to each platform and piece the data together.
  • A high barrier to analysis. Member segmentation and audience selection require open-ended reasoning that a workflow canvas cannot express. Small and midsize merchants also cannot afford dedicated data teams.
All five pain points pointed to the same conclusion: the problem was not a lack of workflows. The workflow form itself could not accommodate open-ended intent. Solving this systematically required a different execution architecture, not hundreds more flowcharts.

2.3 Responsibilities of Qoder Cloud Agents and Huibo

QCA provides Xiaohui Claw's execution runtime. It handles agent execution, sessions, event streams, file processing, and automated task scheduling. Huibo is responsible for product interaction, the AI gateway, Skills, the MCP data tool layer, the Yunqianzai omnichannel data platform, tenant and permission governance, and human-in-the-loop controls. Together, these capabilities let Xiaohui Claw call business tools, continue executing complex tasks, and return files or structured results, while leaving key decisions to business users.

2.4 The Qoder Cloud Agents Architecture

Huibo views a large language model as a high-performance "bare CPU," with QCA's four-layer runtime model serving as its operating system: Environment is the isolated process space, Session is memory, Event is a recoverable interrupt, and Skills and tools are program libraries that can be added as needed. The main execution path is natural language → intent recognition → report parameter orchestration → data tool calls → Skill processing → streamed delivery. The tool layer wraps 82 MCP tools, packaged once and shared across the system.

3. Engineering Practices and Lessons Learned

3.1 Why Use the Forward Mode API in Qoder Cloud Agents?

The enterprise agent requirement: reduce the cost of building infrastructure in-house. Huibo seriously evaluated building its own Harness. To bring it into production, the team would have needed to implement the agent loop, tool execution sandboxes, persistent connections and reconnection, context compression, Skill loading, multi-tenant isolation, credential management, event streams, rate limiting, and billing. Each represented a quarter-scale engineering effort, and stability would have been difficult to get right on the first attempt. Compress context at the wrong moment, and a long-running task starts forgetting key information; leave a gap in sandbox isolation, and enterprise customers' data could leak across tenants. As a business-focused company, Huibo knew customers would not notice if this infrastructure worked well, but failures would become production incidents. It chose cloud-managed infrastructure and QCA. Avoiding the cost of building infrastructure was only the surface-level benefit. Several important capabilities in Forward Mode ultimately drove the choice. Initially, the team treated Template as a place to store a system prompt. In practice, it encapsulates a complete set of resources: Environment, Skills, Vaults, Models, and System Prompt. Xiaohui Claw's Skills are packaged and versioned independently by domain: data queries, spreadsheet filling, workflow orchestration, and performance insights each have their own Skill package. Basic-tier customers receive only data queries; flagship-tier customers receive the full set. This distinction is configured at the Template level without code branches. A QCA Skill has two layers: a "shell" and an immutable version snapshot. Omitting version when associating a Skill follows the latest version; specifying a version pins it. Internal Templates follow latest, while customer Templates are pinned to validated versions. This is how the team manages staged rollouts. Identity is the unit of multi-tenant isolation. Huibo serves enterprises, so customer data must remain completely isolated. Traditionally, this meant building a user system, data domains, and a permission layer, then carefully maintaining the mappings among all three. The hard part was not initial implementation, but keeping it correct over time. QCA builds this in: one enterprise account can create an Identity for each customer, and memory stores, files, and credentials are invisible across Identities. When starting a session, the application passes both template_id and identity_id. The former determines "what it can do," while the latter determines "who it is and which isolation domain it belongs to." Identity also supports independent configuration: customers sharing one Template can have different models, Skill settings, and budgets without duplicating Templates. Vaults manage customers' data API keys on the platform, so application code holds no customer secrets. This significantly reduced compliance effort during security reviews. Session-level sandbox isolation, SSE event streams, file uploads and mounting, persistent memory, memory consolidation (Dreams), scheduled tasks, Webhooks, and IM channel integrations were all on the team's original in-house development list. Each is now available through an API call. The benefits of IM integration and scheduling were the most immediate. Xiaohui Claw uses QCA's Schedules and Channels for automated tasks such as daily store reports and weekly customer segmentation reports. After customers scan a code to bind their accounts, the agent joins their WeCom and Feishu group chats, executes tasks on schedule, and sends the results. Huibo did not write a single line of integration code for these two capabilities.

3.2 Six Practical Engineering Lessons

First, map concepts before designing interfaces. Fully align with QCA's four-layer runtime model—Agent / Environment / Session / Event—so session management, message records, and automated tasks fit naturally. Use remote event IDs as synchronization fingerprints for message records to avoid rework. Second, a reversible rollout matters more than switching everything at once. When migrating from in-house orchestration to QCA, keep both paths running and use a server-side rollout switch. If something goes wrong, switch back immediately. Third, reconnection is a first-class requirement, not just error handling. Deep analysis tasks can run for tens of minutes or even hours. Conversations use SSE streaming, and resume mode reconnects to an ongoing task after a page refresh or session switch. Fourth, putting security constraints in place early creates a strong foundation of trust in commercial discussions. Nine non-negotiable rules were established at the start of integration: enforce isolation of merchant data; minimize data; require verifiable sources for performance metrics; apply three-level confirmation gates; make write operations idempotent; minimize SMS use; allow automated tasks to generate drafts only; never trust frontend identity claims on the server; and prevent the frontend from connecting directly to external AI services. Fifth, govern prompts as product assets. A Template is a versioned combination of system prompt, model, Skills, and tools. Every change follows a configuration-managed process that supports auditing, rollback, and staged rollout. Sixth, minimize tool exposure. Having 82 MCP tools does not mean exposing all of them. Use scenario-specific allowlists and denylists to grant only the necessary access. Dynamically injected managed tools default to generating drafts only.

3.3 Lessons from Three Skills

The three Skills addressed different problems, yet the pitfalls were remarkably similar. One principle ties them together: if a program can determine correctness, never leave it to the model's self-assessment. If it cannot, preserve a traceable intermediate state so the result can be checked afterward. Data queries: route more than 100 reports through a single Skill. The challenge was not the number of reports, but their overlapping semantics, differing parameter schemas, and terms that pointed to entirely different report families depending on the dimension. The solution was layered documentation loaded on demand: the entry point explains only "how to find the rules," and the applicable rules are loaded only after a match. The knowledge base can therefore exceed ten thousand lines, while a single query brings only a little over two hundred lines—about 2%—into context. That amount does not grow with the number of reports. Another principle is that correct report selection comes before getting a result. Retrieving data does not mean routing was correct. Numbers produced under the wrong metric definition are more dangerous than no numbers at all, because users may put them straight into a report. Spreadsheet filling: treat it as a long-running task. A user uploads a blank spreadsheet, and the agent identifies headers, routes to reports, queries data, fills cells, validates the result, and delivers a finished file. Three typical failures emerged: context compression discarded key mappings, larger data volumes caused widespread misalignment, and the agent falsely declared completion at the end of a long task. The common cause was not insufficient model capability, but putting information into context that did not belong there. The response was to externalize all key facts into workspace files, fix metric definitions before execution, and require a stated source for every value to be written. Values with unknown sources can only be recorded as exceptions. A related "failure interpretation rule" came from a real incident: when a platform's member API failed to return a response, the agent told the user, "this brand has no membership program," and the user accepted it. From then on, an API failure could only mean that the current route had not verified the information; it could not become a business conclusion. Online marketing: write operations reach real consumers. Here, a hallucination does not merely put the wrong number in a cell—it can send 100,000 real SMS messages. Huibo split the work into independent read and write Skills, granting only the write Skill permission to update orchestration state files. One significant rework came from validating workflow connections against a manually maintained allowlist. After launch, it blocked many valid connections, and around thirty node types were missing entirely, making the generated workflows unusable. A validator intended to prevent hallucinations became a source of failures because of manual transcription: whenever an authoritative source is paired with a human-written summary elsewhere, the summary will drift over time. The fix was to establish a single source of truth, generating validation rules directly from original backend configuration with a script and removing the manual summary. Another lesson was to write gate-script error messages for agents to understand. Return statuses must distinguish "rule violation" from "environment error"; otherwise, an agent may mistake an environment issue for a business problem and repeatedly modify an already correct plan.

3.4 Reducing Complex Task Costs with Qoder Cloud Agents Multi-Agent Orchestration

The first version attached all Skills to one Template and used a single agent for every task. The outcome was predictable: a user asked about repeat purchase rates, then uploaded a spreadsheet to fill, then requested a re-engagement workflow. Rules, tool responses, and intermediate states from all three tasks accumulated in the same context. Around the fortieth conversation turn, rules started crossing domain boundaries: the model applied one domain's field names to another domain's parameters. The underlying problem was not a weak model, but every task sharing one context budget. The second version leveraged QCA's Multi-Agent orchestration. A Coordinator uses a state-of-the-art (SOTA) model to handle conversation, understand intent, break down tasks, and summarize results. Three execution subagents use lower-cost models in the Qwen3.8-Flash tier. QCA's key design is that all threads within a Session share the same environment and file system, while each Thread has its own conversation history. The documentation describes the latter as a limitation, but it was exactly what Huibo needed: context isolation means domain isolation, long contexts no longer pollute the main agent, and the file system becomes the shared workspace for handoffs between threads. Multi-Agent orchestration lets cost-effective models handle complex tasks that previously required SOTA models for reliable execution, significantly reducing task execution costs.

4. Results and Progress to Date

Huibo Technology leveraged Qoder Cloud Agents to build Xiaohui Claw and move from Prompt to Harness. The shift delivered measurable business benefits: operations data tasks went from "hours waiting in a queue" to "self-service in minutes," allowing people to move from execution back to decision-making. The original article reports the following results:
MetricChange
Time to prepare data for a single multi-store business monitoring reportFrom 1 person-day to 20 minutes
Report metric-definition accuracyv1: 35% → v2: 95%
First-attempt success rate for marketing workflow orchestrationv2.4: 30% → v2.7: 87%
Effort to integrate one additional report into a SkillWorkflow era: 3 person-days → Harness era: 1 person, 1 hour
Execution-side model costDown 90% after switching to a lower-cost model tier
Average productivity improvement5×
Average reduction in delivery timeApproximately 80%