$ show openJiuwen-ai/jiuwenswarm
JiuwenSwarm is a multi-agent AI orchestration platform that runs as a set of distributed services: an AgentServer (WebSocket-based), a Gateway for multi-channel IM integration, a sandboxed execution environment (JiuwenBox), and a skill development pipeline. It enables teams of AI agents (leader/teammates) to collaborate on complex tasks, with skill retrieval and orchestration via the Symphony system. The system supports multiple frontends: web (React), TUI (terminal), and IM channels (Feishu, WeCom, DingTalk, Telegram, Discord, Slack, WeChat, Xiaoyi). The architecture is modular with an extension system, but many components are tightly coupled and some parts remain incomplete (e.g., SkillDev stages marked as '待实现'). The codebase is actively maintained but shows signs of drift: multiple monkeypatches, hardcoded paths, and a large dependency surface. The core strength lies in its agent orchestration logic, sandbox security, and multi-channel integration, while the skill evaluation and retrieval subsystems are functional but not yet production-ready across all stages.
The LLM identified 4 files worth highlighting for reuse:
Provides DNS-based private IP validation to prevent SSRF attacks. Exposes `is_private_ip(hostname)`, `url_safe(url)`, and `DISABLE_SSRF_PROTECTION` env override. Self-contained, uses only standard library (socket, ipaddress, urllib). Easily extractable into any Python project needing outbound URL safety.
Implements a streaming guard for the A2UI protocol that buffers incomplete A2UI blocks and falls back to plain text rendering if finalization fails. Uses a timeout-based repair strategy. Self-contained, depends only on the A2UI model and a few internal types. Reusable for any streaming protocol that needs incomplete message handling and graceful degradation.
Provides 5-field and 7-field cron expression normalization, ISO datetime to cron conversion, and validation. Handles week day alpha normalization, special characters, and edge cases. Pure functions with no external dependencies. Reusable in any scheduling system that needs cron expression manipulation.
Implements bidirectional conversion between ACP JSON-RPC, A2A SendMessage, and the internal E2A envelope format. Functions such as `envelope_from_acp_jsonrpc`, `envelope_from_a2a_send_message`, and `e2a_response_to_agent_chunk` are self-contained, using only standard dataclasses and typing. Reusable for any system that needs to bridge multiple agent communication protocols.