🧩

coding-agent

Delegate complex coding tasks to Codex, Claude Code, OpenCode, or Pi agents running in background processes with full file access.

作者 OpenClawv1.0.0
Coding Agents & IDEsProductivityAI PoweredOpen SourceAutomationCLIDeveloper Tool
正在连接 VM...
正在连接 VM...
npx clawhub@latest install coding-agent
99当前安装数
v1.0.0版本

Coding Agent lets you offload real engineering work — building features, reviewing PRs, and refactoring codebases — to capable AI coding agents running as background processes. Instead of handling complex, multi-file tasks inline, you spawn a dedicated agent in the right directory and let it work autonomously while you stay in the loop.Supports four agents: Codex (OpenAI), Claude Code (Anthropic), OpenCode, and Pi. Each runs with the correct execution mode — PTY for interactive agents, --print --permission-mode bypassPermissions for Claude Code — so you don't have to remember the flags.Best suited for: building or creating new features, reviewing pull requests in isolated temp directories, refactoring large codebases, and any iterative coding task that requires exploring a file tree.

工作原理

The skill orchestrates coding agents through the bash tool with precise parameters:Choose your agent — Codex, Claude Code, OpenCode, or Pi, based on the task or user preference.Set the working directory — The agent is scoped to a specific folder using workdir, keeping it focused and preventing it from reading unrelated files.Launch in background — Use background:true to get a sessionId and continue interacting while the agent works.Monitor progress — Use process tool actions (log, poll) to check output without interrupting the agent.Interact if needed — Use submit or write to respond to agent prompts, or kill to terminate.Auto-notify on completion — Agents can be instructed to fire a wake event when finished, so you're notified in seconds rather than waiting for a heartbeat.

核心功能

Multi-agent support — Works with Codex, Claude Code, OpenCode, and Pi; each launched with the correct flags and PTY settings.Background execution — Long-running tasks run asynchronously via background:true, returning a session ID for monitoring.Parallel workstreams — Launch multiple agents simultaneously across git worktrees to fix several issues or review multiple PRs at once.Safe PR review — PRs are always checked out in temp directories or git worktrees, never in the live project folder.Process management — Full control via process tool actions: log, poll, write, submit, send-keys, and kill.Completion notifications — Agents can trigger an immediate wake event (openclaw system event) when done, eliminating polling delays.Workdir isolation — Agents are scoped to a specific directory so they stay focused and don't wander into unrelated project areas.

系统要求

Coding Agent CLI (required) — At least one supported agent must be installed and accessible on your PATH. Supports: claude (Claude Code by Anthropic), codex (OpenAI Codex CLI), opencode, pi (@mariozechner/pi-coding-agent).LLM API Credentials (required per agent) — Each agent uses its own credentials configured in its respective config file or environment. Codex uses ~/.codex/config.toml; Claude Code uses your Anthropic credentials; Pi supports OpenAI, Anthropic, and other providers via --provider flag.Git (required for Codex) — Codex refuses to run outside a trusted git repository. A git init in a temp directory is sufficient for scratch work.GitHub CLI — gh (optional) — Required only when posting PR review comments or creating pull requests via gh pr comment or gh pr create.

使用场景

Feature development — Spawn a Codex or Claude Code agent in your project directory with --full-auto or bypassPermissions to build an entire feature end-to-end while you work on something else.Parallel PR review — Clone multiple PRs into temp directories and deploy a Codex agent per PR simultaneously, then post structured review comments back to GitHub.Large-scale refactoring — Use background mode with a focused workdir to let an agent work through a multi-file refactor, monitoring progress via process action:log.Parallel bug fixing — Create git worktrees for multiple open issues, launch one agent per worktree, monitor them in parallel, and push branches when each completes.

安装方式

1
Run in your terminal
npx clawhub@latest install coding-agent
or
2
Click the Install button at the top of this page for one-click setup

常见问题

评价

0 条评价

登录后撰写评价

暂无评价。来分享你的使用体验吧!