ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 4/5

create-subagent

创建和管理 SubAgent(子智能体)。使用当用户需要:(1) 创建新的 SubAgent 执行特定任务,(2) 查看/管理已有的 SubAgent,(3) 终止或指导 SubAgent。支持多种预设类型:开发、研究、写作、数据分析等。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aning35/reate-subagent
Or

What This Skill Does

The create-subagent skill for OpenClaw empowers users to dynamically spawn, monitor, and control secondary AI agents to perform specialized tasks. By acting as a management layer, this skill allows for the delegation of complex workflows—ranging from software development and data analysis to deep research and creative writing—without cluttering the primary conversation context. It manages the full lifecycle of these agents, from initial instruction-setting and model selection to session monitoring and termination, ensuring you maintain a clean and efficient workspace.

Installation

To install this skill, run the following command in your terminal within the OpenClaw environment: clawhub install openclaw/skills/skills/aning35/create-subagent Ensure your openclaw-config.json file is correctly configured to permit subagent spawning, specifically setting the allowAgents list and defining maxConcurrent limits. You must restart the OpenClaw Gateway after updating your configuration for the changes to take effect.

Use Cases

  • Software Development: Spawn a dedicated 'dev-agent' to handle architectural design, bug fixing, and unit testing while you focus on high-level feature requirements.
  • Information Synthesis: Deploy a 'research-agent' to traverse multiple sources, extract relevant data, and compile structured reports automatically.
  • Content Production: Use a 'writer-agent' to draft documentation, technical blog posts, or email templates with specialized tone and structure constraints.
  • Complex Data Processing: Delegate heavy data cleaning and statistical analysis tasks to a 'data-agent' that handles Python script generation and execution.

Example Prompts

  1. "I need to analyze some logs. Create a data-agent for me and point it to the file in /projects/data/logs."
  2. "Can you set up a developer subagent to refactor the authentication module using our existing React and Node.js patterns?"
  3. "Please launch a research-agent to find the latest trends in edge computing for 2024 and summarize them into a markdown document."

Tips & Limitations

  • Execution Mode: Use run for transient, one-off tasks. Use session for long-running processes, though note that session mode requires thread binding which may not be supported on all web interfaces.
  • Resource Limits: The system enforces a default limit of 8 concurrent agents and a max spawn depth of 2. Plan your hierarchy accordingly.
  • Cleanup: All subagents have an automatic 60-minute inactivity timeout. Explicitly use /subagents kill to free up resources immediately if a task finishes early.
  • Monitoring: Always utilize /subagents log to verify if your agent has encountered blockers, as agents operate autonomously until they signal completion.

Metadata

Author@aning35
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-aning35-reate-subagent": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#agents#workflow#automation#management#delegation
Safety Score: 4/5

Flags: code-execution, file-read, file-write