openJiuwen's RSI Native AgentOS Lets Agents Self-Modify via Hot-Pluggable Extensions
openJiuwen's RSI Native AgentOS provides a runtime for recursive self-improvement where agents generate, install, and iterate extensions across client, gateway, and agent layers, demonstrated via WorkSwarm's desktop pet and token monitoring plugins with versioned rollback.
Reading font

openJiuwen has released an RSI (Recursive Self-Improvement) Native AgentOS that enables agents to modify their own capabilities by creating and loading extension packages at runtime. The system is designed to support the full lifecycle of extensions: they can be hot-plugged without changing the host application code, versioned, and rolled back if a new version causes faults.
Architecture and Extension Points
The AgentOS splits the request flow into three layers: Web Client (UI, user interaction), Gateway (request ingress and routing), and Agent Layer (AgentServer for session management and Harness for task execution and tool calls). Each layer exposes extension entry points, covering five stages:
Client – add buttons, panels, settings.
Gateway – inject auth or adjust routing.
AgentServer – handle sessions, messages, server commands.
Swarm – customize multi-agent collaboration rules and track task progress.
Agent – adjust prompts, register tools, MCP services, or sub-agents.
Extensions are packaged with a manifest.json declaring ID, version, dependencies, and code entry points. UI extensions also declare component placement (input area, sidebar, settings page).
Extension Loading and Event Bus
On install, the system validates the manifest and stores the package by ID and version. On load, Gateway and AgentServer select the packages they run, determine version order, and register handler functions to their respective event buses. When a user clicks a UI button, the gateway receives a request, or an agent starts assembling a prompt, the corresponding component emits an event; the event bus invokes the matching handler. Handlers can participate in the current flow or call Ops (operations) exposed by the component, such as reading session data, registering tools, querying team info, updating the workbench UI, making HTTP requests via the gateway, or accessing authorized resources and state.
WorkSwarm as a Reference Application
WorkSwarm is an agent application built on this AgentOS. Extensions built for the AgentOS become system plugins when loaded into WorkSwarm. The article walks through a concrete example: a user asks the agent to add a desktop pet mode. The agent generates an extension package that adds a "application form" system plugin. After enabling it in "My Extensions", the workbench can collapse into a floating desktop pet (bee or capsule style) that retains chat history when switching back.
Developing, Installing, and Rolling Back System Plugins
3.1 Conversational Development with an Agent
Users can chat with an agent (using a development skill) to iteratively create a plugin. Example: "Add a status bar above the input showing token usage with weather metaphors." The agent writes code, packages, and installs it. The user tests it, then asks for a more compact version; the agent updates the plugin and reloads it.
3.2 Installation Methods
Place unpacked plugin files in the install directory; WorkSwarm loads them on restart.
Install from the Extensions sidebar (System Plugins tab).
Run /extension install in the WorkSwarm chat to install a local plugin.
Enabled plugins appear in "My Extensions → System Plugins" where they can be toggled.
3.3 Fault Recovery via Archived Configurations
If a plugin breaks a page, the user can select a pre-failure archive point to restore the previous plugin configuration, then continue debugging.
Use Cases Enabled by the Extension System
4.1 Frontend UI Customization
Agents can generate theme packs with animated backgrounds. Users switch themes in settings; the workbench updates dynamically.
4.2 Agent Harness Adjustment
Extensions can surface session state and context usage. A context-monitoring plugin shows input token count, window occupancy, and breakdown by system prompt, skills, tool definitions, and messages. It also lets users compare per-request token usage, inspect tool call status and latency, and review recent turn summaries.
4.3 Swarm Collaboration Enhancement
Teams can encode project-specific division of labor and handoff rules into collaboration rules. A visualization plugin renders team members, their tasks, and dependencies in cluster mode, allowing users to trace blocking tasks.
4.4 Enterprise Integration Adaptation
Gateway and AgentServer can run separately. Enterprises can load different extensions on each side: e.g., gateway-side auth and routing, AgentServer-side session context enrichment or command handling. For isolated execution, an adapter can connect third-party sandboxes. WorkSwarm includes a Gateway login plugin that adds a login page and validates credentials before requests enter the business flow.
Conclusion
The RSI Native AgentOS turns agents into self-improving actors: they produce loadable extensions, deploy them as system plugins, test them in real tasks, and iterate based on feedback. As more extension points open, personal preferences, team conventions, and enterprise requirements become the basis for continuous agent evolution. The article invites readers to try WorkSwarm, build their first system plugin, and share results with the community.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.