Agent Protocol Upgrades: Skill Delegation and Background Task Execution

    This article explains how agent protocols are evolving beyond simple tool lists to support skills, background task delegation, interactive confirmation, and direct file uploads. It covers how servers can deliver domain knowledge alongside capabilities, how asynchronous execution reduces latency and context usage, and how to keep humans in control of high-risk actions. Developers will find practical guidance on capability granularity, context budgeting, reliability, security boundaries, observability, and cloud-side integration.

    1. Introduction: The Limits of the Tool-Calling Paradigm

    In the early days of connecting agents to external systems, the dominant approach was the “tool list” model: abstract the capabilities of an external system into a set of functions, and tell the model what it can do through names and descriptions. This solved the question of “whether a capability exists,” but not “how to do the task correctly.” When business scenarios involve compliance review, multi-step orchestration, or internal enterprise standards, short descriptions cannot carry domain knowledge. The model often has to figure out the workflow through trial and error, and the context window gets crowded out by large amounts of intermediate information.

    The latest protocol-level evolution targets this bottleneck directly: it expands “capability declaration” into a combination of “capability + methodology” and fills two gaps: asynchronous execution and human interaction. The following sections cover four dimensions.

    2. Skill-Based Extension: Delivering Domain Knowledge Alongside Capabilities

    The core change is that the server can attach structured “skill” content when exposing tools. This content includes domain knowledge, best practices, and multi-step workflow instructions. Compared with traditional tool descriptions, skills have three characteristics:

    1. Layered: General-purpose skills and scenario-specific skills can coexist, and even provide differentiated operating guidance by user or organization.
    2. Loaded on demand: The model reads the body of a skill only when it determines the skill is needed, avoiding stuffing all instructions into the context at once.
    3. Synced from the server: Skill updates are published centrally by the server; clients do not need to install or upgrade plugins separately.

    From an engineering perspective, this moves “prompt engineering” from the client up to the server, with the protocol specification governing how skills are discovered and loaded. A schematic skill declaration structure is shown below (structure only, not a concrete interface):

    1. {
    2. "tools": [{ "name": "query_catalog", "description": "Query the product catalog" }],
    3. "skills": [{
    4. "name": "storefront_layout",
    5. "when_to_use": "When generating or adjusting the storefront homepage layout",
    6. "body": "Step 1: Confirm the target audience; Step 2: Choose a layout template; Step 3: Validate accessibility..."
    7. }]
    8. }

    The key design point is “metadata stays resident, body loads lazily.” Metadata is small and can remain in the context long-term; the body is injected only when the scenario matches and can be released after the task finishes.

    3. Background Task Delegation: From Synchronous Blocking to Asynchronous Orchestration

    Tool calls used to be synchronous: until one call returned, the agent’s execution flow was blocked. For long-running batch processing, builds, and data analysis operations, this meant a lot of idle waiting. The task mechanism lets the agent delegate long-running work, or even a complete sub-process, to the server backend, continue advancing other branches, and retrieve the result after completion.

    This brings two direct benefits: first, lower end-to-end latency, since multiple independent tasks can run in parallel; second, lower context usage, since intermediate logs do not need to stay resident the whole time, and only the task identifier and final summary need to be kept.

    A typical asynchronous orchestration skeleton looks like this:

    1. handle = submit_task(server="analytics", action="rebuild_index", params=params)
    2. # Do not block; continue processing other branches
    3. result = await_task(handle, timeout=1800, poll_interval=5)
    4. if result.status == "succeeded":
    5. use(result.summary)

    Practical recommendations: set an idempotency key for tasks to avoid duplicate writes from retries; define timeout and cancellation semantics for long tasks; write large results to external media such as object storage, and return only the reference and summary to the model.

    4. Interactive Information Requests: Returning Key Decisions to Humans

    The higher the degree of automation, the more important it is to set “human gates” at critical points. Interactive requests allow the server to pause during execution and ask the user for confirmation, authorization, or additional information through a form or link, then resume from the interruption point after receiving a response instead of rolling back and starting over.

    Applicable scenarios include: creating billing resources, executing irreversible data changes, deleting code repositories or datasets, and batch operations that exceed a threshold. Taking “delete repository” as an example, a safe approach is to require the user to manually type the target name for secondary confirmation:

    1. {
    2. "type": "form",
    3. "prompt": "Enter the repository name to delete for confirmation",
    4. "field": { "name": "repo_name", "required": true }
    5. }

    Design considerations: paused states need timeout and expiration policies; request content should be minimized to avoid asking for sensitive information unrelated to the current operation; all confirmation actions should leave an audit trail.

    5. Direct File Upload: A Data Channel That Bypasses the Context Window

    Large files such as PDFs, spreadsheets, and images are expensive and inefficient to pass through the model context. The direct file upload capability lets the client write a file directly to the server, and the model holds only a reference identifier. This is the same idea as “externalizing large results,” viewed from both ends: input does not enter the context, and output returns only a summary. In implementation, it is recommended to combine object storage, chunked uploads, and checksums to ensure reliable and reproducible transfers.

    6. Open Specification and Ecosystem Significance

    The above capabilities belong to an open protocol specification and its extensions, not to a single client. Any compatible client and server can implement them, which ensures ecosystem portability and avoids locking capabilities into one implementation. From an industry perspective, the value of the protocol lies in unifying the interface contract for “how agents connect to external data and systems,” so that a server can be implemented once and reused by multiple clients.

    7. Engineering Implementation Checklist

    • Capability granularity: Keep tools small and orthogonal, and delegate complex flows to skill orchestration; avoid overloading a single tool with too many responsibilities.
    • Context budget: Set injection limits and eviction policies for skill bodies and task logs.
    • Reliability: Have the full set of task idempotency, retry backoff, and timeout cancellation.
    • Security boundaries: Enforce requests for destructive operations, apply least privilege, and keep sensitive information out of logs.
    • Observability: Build logging services and monitoring alerts for skill hit rate, task success rate, and request response time.
    • Cloud-side integration: Use a container platform to host the server, a message queue for task distribution, and object storage for files and large results, forming a complete pipeline.

    With the general-purpose capabilities of cloud platforms such as Baidu AI Cloud, these patterns can be implemented relatively smoothly: deploy the protocol server on a container platform, decouple task scheduling with a message queue, carry files and results with object storage, and ensure observability with logging and monitoring systems.

    8. Conclusion

    The direction of protocol evolution is clear: from “knowing what it can do” to “knowing how to do it right,” and further to “being able to work asynchronously, pause to ask, and upload files directly.” The goal is to grow the agent from a single-point tool user into a collaborator that can be entrusted with complex work. For developers, the real barrier is not the interface itself, but how to divide capabilities, constrain the context, and design the human-machine boundary.