Newsroom Wire

CN China11-13 14:54⏱ 10 min read

openJiuwen Releases RSI-Native AgentOS That Lets Agents Freely Transform and Keep Iterating

Whatever feature you want, have the Agent build it itself.

When using WorkSwarm, if you want to add a new feature, can you just tell the Agent your need, let it build the feature itself, then install and try it?

This question maps exactly to the extensibility discussed in the HyperAgent architecture breakdown. It is one of the eight characteristics openJiuwen proposed for HyperAgent: moving from 'developer-friendly' to 'RSI-friendly'.

The extension mechanism must both make it easy for developers to plug in new capabilities and let the Agent improve its own capabilities based on task feedback. Once a change is made, it still has to be installed into the app and tried in a real task to see whether the problem is solved and what to change in the next round.

openJiuwen's RSI-native AgentOS provides a runtime environment for exactly this kind of recursive self-improvement (RSI).

It provides different types of extension points across the UI, gateway, server side and Agent execution, covering the full runtime lifecycle. New features can be hot-plugged, without modifying the app's existing code when plugging in. Extension packages can be managed by version, and a problematic new version can be rolled back.

WorkSwarm is built on exactly this extension mechanism. It is an Agent application built on openJiuwen's RSI-native AgentOS. An Agent can package a new feature into an extension bundle the AgentOS can load; once the same bundle is installed into WorkSwarm, it is called a system plugin.

After enabling it in 'My Extensions', you can go back to the task at hand and try it; wherever it does not feel right, tell the Agent what to change. This is what openJiuwen calls 'Agent WYSIWYG' - what the Agent thinks up is what you get.

For a quick chat with the Agent or delegating a small errand on the fly, a desktop pet that can converse on the desktop is enough; for tasks that require looking things up back and forth or handling in several steps, open the workbench.

WorkSwarm has no desktop pet form by default - so can you have the Agent add one itself?

Tell the Agent the need directly, for example: 'Add a desktop pet to WorkSwarm - I want to click once on the desktop to chat with you.'

The Agent can generate an extension bundle from your description and install it into WorkSwarm as an 'application form' system plugin. The RSI-native AgentOS behind WorkSwarm is responsible for loading the extension so the system plugin takes effect on the workbench.

After the system plugin is enabled, one click of the toggle button collapses the workbench, leaving only the desktop pet on the desktop.

You can choose a little bee, or switch to a capsule style. To send a message, click open the desktop pet; if you need the workbench mid-conversation, double-click the pet to go back, with the conversation still there.

In the previous section, WorkSwarm turned itself into a desktop pet once a system plugin was enabled. Where does this new feature hook in, and how does it run?

Let's first look at how openJiuwen's RSI-native AgentOS divides up the UI, gateway and Agent execution.

The web client renders the interface and receives user actions; the Gateway handles access and request forwarding; at the Agent layer, the AgentServer manages sessions while the Harness organizes task execution and tool calls.

All three layers have extension entry points: you can add features to the UI as well as adjust how requests are handled and how tasks are executed.

The Client can add buttons, panels and settings; the Gateway can plug in authentication or adjust request routing; the AgentServer can handle sessions, messages and server-side commands.

Further into the execution stage, a Swarm can customize collaboration rules for multiple Agents and track task progress; an Agent can adjust prompts and connect tools, MCP services or sub-Agents.

These changes are delivered via extension bundles. The manifest.json in a bundle specifies the package ID, version, dependencies and code entry points. When the UI is involved, it can also declare where a component should appear - in the input area, the sidebar or the settings page.

An overview of openJiuwen RSI-native AgentOS extension capabilities: left side shows the extension bundle directory and manifest; right side shows extension capabilities across the five stages of Client, Gateway, AgentServer, Swarm and Agent

With extension bundles in hand, the runtime still needs to know who should load them and when the code inside gets called. At install time, the system reads and checks the manifest and stores the bundle by package ID and version. At load time, the Gateway and AgentServer each pick the bundles they run, decide the versions and order to load, then register the handler functions in the extension code onto their respective event buses.

When a user clicks a UI button, the gateway receives a request, or the Agent starts assembling a prompt, the corresponding component emits an event. The event bus finds and invokes a matching handler. The handler can take part in the current flow, or call capabilities the component has made open via Ops. When the UI needs refreshing, the extension can also send the data required for the update back to the web client.

How openJiuwen RSI-native AgentOS extension bundles take effect: the flow from installing a bundle and selecting a version to loading code, registering handlers, then responding to events and updating the UI on demand

When choosing an extension point, first decide at which moment you want to step in, then check which Operation capabilities (Ops) the corresponding component has made open.

A quick reference of extension events and Operation capabilities: left side lists the various extension events; right side lists the Operation capabilities (Ops) handlers can call, with supported and planned entries distinguished in the table

openJiuwen's RSI-native AgentOS has opened up multiple classes of extension events. Below are the common trigger moments for each class.

Which Ops a handler can call depends on which component it runs in. Here are several commonly used capability classes.

The full list and usage of extension bundle structures, events and Ops can be found in openJiuwen's extension development documentation.

Thanks to the RSI-native AgentOS extension mechanism, WorkSwarm can take in system plugins built by the Agent. For any feature you want, just tell the Agent the need directly.

After installation, enable it in 'My Extensions', try it, then adjust based on feedback. If a system plugin causes a failure, you can also restore the previous configuration from a checkpoint and continue debugging.

When building a system plugin for the first time, you can converse with the Agent through the development Skill and debug as you go.

For example, to build Token Weather, you can say: 'Add a status bar above the input box showing the current session's token usage, using sunny, cloudy and other weather cues to indicate occupancy.' The Agent can write the code to the need, package it and install it into WorkSwarm.

Once the Token Weather system plugin is enabled you can try it out. If the status bar takes up too much space, follow up with: 'Make it more compact, keep the usage percentage.' The Agent modifies the system plugin per the feedback and reloads it, letting you try again.

You can also hand-write the system plugin's declaration and code, then pack them into a ZIP. If there are dependencies, state the dependencies and version requirements in the declaration; WorkSwarm checks them at load time.

System plugins generated through the development Skill install into WorkSwarm automatically. There are three ways to install manually.

Under 'My Extensions -> System Plugins', you can view the status of installed system plugins, and enable or disable them.

After installation, once you confirm a system plugin is enabled, you can verify the feature. Take Token Weather: open a conversation, first check whether the status bar appears above the input box, then send a message. After the Agent finishes replying, see whether the usage in the status bar has updated.

If, say, a page fails to open after enabling, you can pick a checkpoint from before the failure and restore the system plugin configuration as it was then. After rolling back, reopen the problematic page, confirm it works normally, and continue debugging.

With the RSI-native AgentOS extension capabilities, you can adjust the app UI to your own habits, view an individual Agent's working process, and tune how it does things.

When a task requires multiple Agents to complete together, how the team divides work and hands off can also be customized per project needs. When the app connects into an enterprise environment, access management and how Agents run can be adjusted to deployment requirements.

Frontend UI extensions can change how an Agent app looks and interacts. The Agent can adjust the theme to your preferences, or add buttons, status bars or panels at reserved page slots, putting frequently viewed information and common actions within easy reach.

In WorkSwarm, to change the UI style you can tell the Agent: 'Make several animated themes for the workbench - I want to switch between them in settings.' The Agent generates theme background extension bundles from the description. After installing into WorkSwarm and enabling the corresponding system plugin, picking a theme on the settings page switches the workbench to the corresponding dynamic background.

Single-Agent extensions can hook into session management, task execution and other stages. For example, one can visualize session state and context usage, letting users see clearly how the Agent is working.

At the execution stage, extensions can also supplement context as the task requires, adjust working rules in the prompt, or register new tools for the Agent.

In WorkSwarm, if you want to know where a long conversation's context is being spent, you can have the Agent generate a system plugin for context monitoring.

Once enabled, the panel shows input token count and window occupancy, and estimates how much is taken by the system prompt, skills, tool definitions and messages respectively.

You can also compare input usage across individual model requests, check the status and elapsed time of tool calls, and review usage summaries and session messages from recent turns.

When multiple Agents work on a task together, extensions can write the project's own division-of-labor and handoff conventions into the collaboration rules. After a task starts, extensions can also receive notifications of state changes, tracking who is working on which task and how far along it is.

For example, after a task is split among several Agents, if you want to see how far each has gotten, use the extension development Skill to have the Agent generate a team collaboration visualization bundle from your description.

After installing into WorkSwarm and enabling the corresponding system plugin, in cluster mode you can see team members, the tasks each is responsible for, and the dependencies between tasks in one view. If a task is still waiting, you can follow the dependencies to find which prerequisite work is not yet done.

When an enterprise adopts it, the RSI-native AgentOS extension capabilities can be used to adjust account access and the Agents' runtime environment to deployment needs.

In distributed deployment, the Gateway and AgentServer can run separately. Enterprises can choose which AgentServer the Gateway connects to based on business needs, and load the required extensions on each side respectively.

For example, plug authentication into the Gateway side or adjust request routing; on the AgentServer side, supplement sessions with project context, or adjust server-side command parameters and how execution results are handled. When isolated execution is needed, a third-party sandbox can also be connected via an adapter, letting the Agent run commands and code in a chosen environment.

In WorkSwarm, a Gateway login system plugin can add a login page to the app entry and validate credentials before requests enter the business flow. Once enabled, users who are not logged in see the login page, and protected requests are blocked. After login, the browser carries the credentials, and requests that pass validation continue to be processed.

In WorkSwarm, when creating a new single-Agent session, system plugins can offer three Harness options: Claude Code (CC), Codex and openJiuwen. After choosing, the selected Harness executes this session's tasks and invokes tools, and the frontend UI switches accordingly.

While working on a task, the Agent can also start modifying itself. It can turn an improvement it has in mind into an extension bundle the RSI-native AgentOS can load, install it into WorkSwarm and enable it as a system plugin.

Back in the task it tries the change, then adjusts the UI and capabilities based on feedback. System plugins that prove useful can be reused in the next task. This is what openJiuwen calls 'Agent WYSIWYG' - what the Agent thinks up is what you get.

As more stages open up to extensions, personal usage habits, team collaboration rules and enterprise operating requirements can all become the basis for an Agent to adjust itself.

Out of the box it has a default look; what it becomes later, it can work out by itself, one real job at a time.

Welcome to try WorkSwarm: build a new feature you want together with the Agent, install your first system plugin, then share how it works out with the community!

Related resources

WorkSwarm try-out entry: https://openjiuwen.com/workswarm

WorkSwarm GitHub repository: https://github.com/openJiuwen-ai/jiuwenswarm

openJiuwen Harness documentation: https://github.com/openJiuwen-ai/jiuwenswarm/blob/develop/docs/zh/Harness.md

openJiuwen extension development documentation: https://gitcode.com/openJiuwen/jiuwenswarm/tree/releases%2F0.2.9.beta3/docs/zh/extension

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…