DEV Community

Cover image for Openclaw Multiagent
Ayush Anand
Ayush Anand

Posted on

Openclaw Multiagent

OpenClaw Challenge Submission 🦞

This is a submission for the OpenClaw Challenge.

What I Built

What if you want to build something but you don’t even have access to your laptop?

I built a workflow where you can create a Pull Request directly from Telegram, trigger tests, and request code review β€” all without opening GitHub or your IDE.

The system uses Telegram as the interface and agents behind the scenes to execute development tasks. Instead of manually writing code, pushing commits, and opening PRs, you can just send a command in Telegram and the agents handle the rest.

Key capabilities:

Discuss Architecture before making any changes
Create PRs from Telegram commands
Automatically run repository tests
Request reviewers
Track PR status

This effectively turns Telegram into a remote development assistant.

How I Used OpenClaw

OpenClaw powers the automation layer behind the system.

I designed a multi-agent workflow where each agent is responsible for a specific development task. These agents invoke OpenCode sessions to interact with the repository, analyze the codebase, and execute development actions.

Instead of a single AI doing everything, the system uses specialized agents coordinated through an orchestrator, making the workflow more modular and scalable.

Agents in the System

  1. Code Agent

Generates and edits code
Implements features and fixes bugs
Writes and updates documentation
Applies architectural patterns

  1. Plan Agent

Breaks down complex tasks into smaller steps
Creates execution strategies
Validates feasibility of approaches
Routes tasks to specialized agents

  1. Review Agent

Analyzes code for quality issues
Identifies anti-patterns and potential bugs
Provides improvement suggestions
Validates code against best practices

  1. Debug Agent

Investigates errors and failing workflows
Traces issues within the codebase
Suggests fixes and workarounds
Validates fixes by running tests

  1. Architect Agent

Designs system architecture
Defines component interfaces
Plans migrations and refactors
Ensures scalability and maintainability

  1. Orchestrator Agent (hs-maestro)

Coordinates multi-step workflows
Manages collaboration between agents
Tracks progress across tasks
Handles retries and recovery when failures occur
Workflow

When a command is triggered from Telegram, the Orchestrator Agent coordinates the workflow:

The Plan Agent breaks down the request.
The Code Agent generates or modifies code.
The Review Agent analyzes the changes.
The Debug Agent resolves failures if tests break.
The Architect Agent ensures the solution aligns with system design.

Each step is executed through OpenCode sessions powered by OpenClaw, allowing agents to safely interact with the repository and development environment.

Demo

OpenClaw Multi-Agent System

Real agent definitions powering the automation workflow.

Multi-Agent Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚         USER REQUEST            β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                  β”‚
                                  β–Ό
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚      HS-MAESTRO                 β”‚
                    β”‚   Orchestrates entire workflow  β”‚
                    β”‚   Dispatches to agents          β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                  β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚                           β”‚
                    β–Ό                           β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   PLANNER AGENT     β”‚   β”‚   MYCROFT AGENT     β”‚
        β”‚   Creates plan      β”‚   β”‚   Researches/       β”‚
        β”‚   Decomposes tasks  β”‚   β”‚   Investigates      β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚
                   β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   CODER AGENT       β”‚
        β”‚   Implements code   β”‚
        β”‚   Writes tests      β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚
                   β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   REVIEWER AGENT    β”‚
        β”‚   Checks quality    β”‚
        β”‚   Finds issues      β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚
                   β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   CRITIC AGENT      │◄── "Prove it to me"
        β”‚   Gatekeeper        β”‚    "Show me evidence"
        β”‚   Blocks until      β”‚    "Why not alternative?"
        β”‚   convinced         β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚ (approved)
                   β”‚
                   β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   BACK TO MAESTRO   β”‚
        β”‚   Create PR         β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The Agents

1. HS-Maestro Agent (Orchestrator) ⭐ FIRST

…

What I Learned

ClawCon Michigan

Top comments (0)