Agent Framework Upgrade Guide: Multimodal Inputs and Sub-Agent Orchestration
This guide explains how to upgrade an unnamed open-source agent framework RC release for multimodal inputs and sub-agent orchestration. It covers version and source verification, native image input, external Coding Agent Profile Bundles, non-interactive permissions, multi-instance isolation and sandboxing, concurrent tool calls, task receipts, troubleshooting, and a staged migration and selection checklist.
1. Confirm the Version and Source
The source material describes an unnamed open-source agent framework RC release. It does not provide the project name, version number, release date, or changelog link. Before upgrading, fill in these four items and use the official changelog as the source of truth. Commands and configuration in this article use angle-bracket placeholders such as <framework command> and <version>, and do not represent real interfaces.
Checklist:
- Official project repository address and RC version number
- Release date and interval since the previous version
- Changelog entries related to multimodal input, sub-agents, and concurrency
- Current runtime environment version and dependency list
2. Integrate Multimodal Input
The new version allows the model adapter to enable native image requests. Images enter the model context in their original form and do not need to be converted into text descriptions first. This preserves details in layouts, charts, and screenshots. Before integration, confirm the following conditions:
- Whether the model in use supports image input. Supported image formats and size limits are subject to the model’s official documentation.
- Whether the adapter has a native image switch. Field names are subject to the official configuration documentation; the following example is illustrative only:
adapter:model: <model-name>native_image_request: true # Placeholder field; refer to official documentationimage:max_size_mb: <limit>formats: [png, jpg, webp] # Use formats actually supported by the model
- The entry point for mixed text-and-image commands. After planning-style commands receive images, confirm whether the images are written to logs or session history. Screenshots may contain keys, internal domains, and user data, so redact sensitive information before input.
Fallback: if the model does not support native images, or if an image exceeds the size limit, fall back to the path of “convert to text with OCR or manual description first.” Record the reason in logs during fallback to avoid silent information loss.
3. Integrate External Coding Agents as Profile Bundles
The main framework can install external Coding Agents on demand as Profile Bundles and call them as sub-agents. Unused agents do not occupy the runtime environment, but third-party code and dependencies are introduced with them and must be managed as supply chain risk.
Pre-installation checks:
- Bundle source and signature or hash verification result
- Dependency list and licenses
- Declared permission scope, including readable and writable file paths, accessible network domains, and executable commands
Example manifest; fields are illustrative only, so refer to the framework specification:
name: <bundle-name>version: <x.y.z>entry: <startup-entry>permissions:filesystem: [<working-directory>] # List only required pathsnetwork: [<allowed-domains>]exec: false
The install command has the form <framework command> bundle install <bundle-name>@<version>. After installation, use <framework command> bundle list to confirm the version and status.
Applicability boundary: sub-agent interfaces are defined uniformly by the framework, so the main workflow code does not need to be rewritten separately for each agent. If an agent requires interactive confirmation, it is not suitable for unattended workflows.
4. Non-Interactive Permissions, Multiple Instances, and Sandboxing
Non-interactive permission mode is suitable for batch processing and CI pipelines. However, it removes human confirmation, so the impact of incorrect authorization is amplified. Follow these principles:
- Least privilege: open only the directories and commands required by the task; do not grant global write permissions.
- Sandbox execution: run sub-agents in containers or under restricted users, isolated from host credentials.
- Instance isolation: each named instance uses an independent working directory and session storage to avoid state contamination.
- Resource quotas: set CPU, memory, and concurrent task limits for each instance; use values appropriate for the machine specification.
- Audit logs: record instance name, trigger user, executed commands, changed files, and exit status. Set log retention according to compliance requirements.
Acceptance method: in a test repository, have two instances modify different files. Check that neither instance reads the other’s context, and confirm that writes to unauthorized paths are rejected.
5. Concurrent Tool Calls and Task Receipts
When web_search-style tools support concurrent queries, end-to-end latency is roughly equal to the slowest request. With serial execution, latency is the sum of all requests. Concurrency also introduces new issues, so configure the following:
- Concurrency limit: limit the number of in-flight requests to avoid triggering provider rate limits. Set the limit according to provider quotas.
- Rate limiting and backoff: on 429 or similar errors, retry with exponential backoff and set a maximum retry count.
- Timeout: set an independent timeout for each query. Mark timed-out branches as failed instead of blocking the entire task.
- Idempotency: retried queries should be safe to repeat. Write operations whose results are unconfirmed should not be retried directly.
After a sub-agent completes a task, it wakes the parent task through a receipt mechanism. Receipts may be lost, so the parent task must do the following:
- Assign a unique ID to each subtask, include that ID in the receipt, and deduplicate by ID in the parent task.
- Set a receipt timeout. After timeout, switch to polling the sub-task status.
- Execute compensation when wake-up fails, such as redelivering the receipt or marking the task for manual handling.
6. Troubleshooting Checklist
- Image does not enter context: check whether the model supports images, whether the adapter switch is enabled, and whether the image exceeds the size limit.
- Bundle cannot be called after installation: check the entry path in the manifest, whether dependencies are complete, and whether permissions include required paths.
- Sub-agent write is rejected: review permission-denied records in the audit log and confirm whether the least-privilege configuration is too restrictive.
- Parent task hangs for a long time: check whether the receipt arrived. If it did not, confirm whether polling fallback is enabled.
- Many concurrent requests fail: lower the concurrency limit and check whether rate limiting was triggered.
7. Migration and Selection Checklist
Introduce changes in the following order, and proceed to the next step only after each step passes acceptance:
- Unify the sub-agent integration protocol and validate the call chain on a read-only task. Acceptance criteria: receipts return correctly and logs are complete.
- Enable concurrent tool calls and test on non-production data. Acceptance criteria: error rate and rate-limit count are within an acceptable range, and every retry is recorded.
- Enable non-interactive permissions and multiple instances, starting in a sandbox. Acceptance criteria: unauthorized operations are rejected and instance state is isolated.
- Integrate multimodal input, starting with a single scenario such as error screenshots. Acceptance criteria: the model correctly uses image content and sensitive information has been redacted.
When selecting a framework, evaluate the following four questions: Does the framework publish a changelog? Do Bundles have a signing mechanism? Are permission declarations auditable? Is the fallback path configurable? If any of these is missing, evaluate alternatives before adoption.
