🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

agent-council

by @abeltennyson

Complete toolkit for creating autonomous AI agents and managing Discord channels for OpenClaw. Use when setting up multi-agent systems, creating new agents,...

Versionv1.0.0
⚑ When to Use
TriggerAction
- **Creative agents** - Image generation, writing, design
- **Task automation** - Scheduled monitoring, reports, alerts
- **Multi-agent systems** - Coordinated team of specialized agents
- **Discord organization** - Structured channels for different agent domains
πŸ’‘ Examples

Research agent:

scripts/create-agent.sh \
  --name "Watson" \
  --id "watson" \
  --emoji "πŸ”¬" \
  --specialty "Deep research and competitive analysis" \
  --model "skillboss/pilot" \
  --workspace "$HOME/agents/watson" \
  --discord-channel "1234567890"

Image generation agent:

scripts/create-agent.sh \
  --name "Picasso" \
  --id "picasso" \
  --emoji "🎨" \
  --specialty "Image generation and editing specialist" \
  --model "skillboss/pilot" \
  --workspace "$HOME/agents/picasso" \
  --discord-channel "9876543210"

Health tracking agent:

scripts/create-agent.sh \
  --name "Nurse Joy" \
  --id "nurse-joy" \
  --emoji "πŸ’Š" \
  --specialty "Health tracking and wellness monitoring" \
  --model "skillboss/pilot" \
  --workspace "$HOME/agents/nurse-joy" \
  --discord-channel "5555555555"

βš™οΈ Configuration

Discord Category ID

Option 1: Command line

python3 scripts/setup-channel.py \
  --name channel-name \
  --context "Purpose" \
  --category-id "1234567890"

Option 2: Environment variable

export DISCORD_CATEGORY_ID="1234567890"
python3 scripts/setup-channel.py --name channel-name --context "Purpose"

Finding Discord IDs

Enable Developer Mode:

  • Settings β†’ Advanced β†’ Developer Mode
  • Copy IDs:

  • Right-click channel β†’ Copy ID
  • Right-click category β†’ Copy ID
  • πŸ“‹ Tips & Best Practices

    When to use Discord bindings:

  • βœ… Domain-specific agents (research, health, images)
  • βœ… User wants direct access to agent
  • βœ… Agent should respond to channel activity
  • When to use sessions_send:

  • βœ… Programmatic coordination
  • βœ… Main agent delegates to specialists
  • βœ… Need response in same session
  • When to use sessions_spawn:

  • βœ… Long-running tasks (>5 minutes)
  • βœ… Complex multi-step work
  • βœ… Want isolation from main session
  • βœ… Background processing
  • Example: Research Workflow

    // Main agent receives request: "Research competitor X"

    // 1. Check if Watson is active const agents = sessions_list({ kinds: ["agent"] })

    // 2. Delegate to Watson sessions_send({ label: "watson", message: "Research competitor X: products, pricing, market position. Write findings to memory/research-X.md" })

    // 3. Watson works independently: // - Searches web // - Analyzes data // - Updates memory file // - Reports back when done

    // 4. Main agent retrieves results const results = Read("agents/watson/memory/research-X.md")

    // 5. Share with user "Research complete! Watson found: [summary]"

    Communication Flow

    Main Agent (You) ↔ Specialized Agents:

    User Request
        ↓
    Main Agent (Claire)
        ↓
    sessions_send("watson", "Research X")
        ↓
    Watson Agent
        ↓
    
  • Uses web_search
  • Uses web_fetch
  • Updates memory files
  • ↓ Responds to main session ↓ Main Agent synthesizes and replies

    Discord-Bound Agents:

    User posts in #research channel
        ↓
    Watson Agent (bound to channel)
        ↓
    
  • Sees message directly
  • Responds in channel
  • No main agent involvement
  • Hybrid Approach:

    User: "Research X" (main channel)
        ↓
    Main Agent delegates to Watson
        ↓
    Watson researches and reports back
        ↓
    Main Agent: "Done! Watson found..."
        ↓
    User: "Show me more details"
        ↓
    Main Agent: "@watson post your full findings in #research"
        ↓
    Watson posts detailed report in #research channel
    

    View on ClawHub
    TERMINAL
    clawhub install abel-agent-council

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’