Overview
Message a self-hosted OpenClaw agent about a failing Android build, let it rerun the build in its workspace, read the logs and recent commits, and prepare a fix on a branch for you to review.
Problem or Objective
- Which agents turn an issue report into a fix?
- Which agents take on multi-step tasks in the background and report back when they finish or need approval?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- OpenClaw · Gradle · Android SDK · Telegram
- Prerequisites
- A machine running the OpenClaw gateway with the Android build toolchain, a checkout of the repository, a model provider and a chat channel.
How It Works
Set up OpenClaw on a build machine or server that already has the Android SDK, Gradle and a checkout of the app, connect a chat channel such as Telegram, and either turn on sandboxing or set tools.exec.mode and tighten the host approvals file so commands need approval. When CI reports a failed build, paste the job name, the failing step and the issue or ticket text into the chat. Ask OpenClaw to rerun the failing Gradle task in its workspace, read the build output, check the commits since the last green build and point to the change it thinks broke things. Have it reply with that explanation before editing anything. If you agree, let it make the smallest fix on a new branch, rerun the build and the unit tests, and report the result with the diff. You review the branch and merge it through your normal pull request process.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up OpenClaw.
- Connect the toolsConnect the tools this workflow relies on: OpenClaw, Gradle, Android SDK, Telegram.
- Check the prerequisitesA machine running the OpenClaw gateway with the Android build toolchain, a checkout of the repository, a model provider and a chat channel.
- Gather your detailsCollect what the prompt asks for: Failing CI job, Step that failed, Issue or ticket text, Path of the checkout on the build machine, Last commit with a passing build.
- Run the starter promptPaste the starter prompt below into OpenClaw and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.openclaw.ai before you rely on it.
Practical Starter Prompt: Diagnose a failing Android build
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
The CI job [Failing CI job] failed at the step [Step that failed]. Context from the ticket: [Issue or ticket text]. In the [Path of the checkout on the build machine] checkout, rerun that Gradle task, read the full build output and list the commits since [Last commit with a passing build]. Reply with the error, the change you think caused it and your evidence, and wait for my go-ahead before editing anything. After I approve, make the smallest fix on a new branch, rerun the build and unit tests, and send me the diff and results. Do not push to the main branch or merge.Approve the diagnosis before OpenClaw edits code. It works on a branch only; you review the diff and merge through your usual pull request process.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The OpenClaw docs describe a gateway that connects chat apps to AI coding agents with tool use, and the exec tool page says it runs shell commands in the workspace, without approvals by default on the gateway unless you set an exec mode and tighten host approvals, and tells agents to reuse repositories already in the workspace. The pages do not mention Android builds or how often the agent finds the right cause, so each diagnosis needs your own check.
Limitations and Considerations
The exec tool page notes that sandboxing is off by default, that host exec on the gateway runs without approvals unless you set tools.exec.mode and tighten the host approvals file, and that exec can create, edit or delete files wherever the host or sandbox allows, so set up sandboxing or approvals before connecting a build machine. Keep merge rights with people and give the agent no access to signing keys or release credentials. Telegram needs a bot token to connect. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)openclaw.ai
Related Videos
About openclaw/openclaw
395k signal: Openclaw claims full OS control, but who audits its unattended actions (opens in a new tab)
Walkthrough of openclaw by Repo Radar: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)About openclaw/openclaw
Top 10 AI GitHub Repos Blowing Up Right Now — Dec 4, 2026 (opens in a new tab)
Walkthrough of openclaw by AINews-GitHubHuggingFace: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- OpenClaw 🦞 (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- A single Gateway process on your own machine or a server becomes the bridge between messaging apps and AI coding agents.
- OpenClaw is built for coding agents with tool use, sessions, memory and multi-agent routing.
- Exec tool (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 27 Nov 2026, 09:29 UTC
What this source supports
- The exec tool runs shell commands in the workspace and is a mutating shell surface that can create, edit or delete files wherever the selected host or sandbox filesystem permits.
- Sandboxing is off by default; enable sandboxing or use host=gateway with approvals.
- No-approval host exec is the default for gateway and node (mode=full); for approvals or allowlist behaviour, set tools.exec.mode and tighten the host approvals file.
- Shared agent instructions direct agents to reuse repositories already in their workspace.
- Chat channels - OpenClaw (opens in a new tab)
Project documentation · docs.openclaw.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Telegram is suggested as the first channel to connect because it needs a bot token and no plugin install.

