← 返回
未分类

claudecode-cli

Delegate coding tasks to Claude Code CLI with sensible defaults. Use when: (1) building/creating new features or apps, (2) refactoring code, (3) debugging, (4) writing tests, (5) code review, (6) any programming task that benefits from Claude Code capabilities. Automatically uses --print --permission-mode bypassPermissions for smooth non-interactive execution.
Delegate coding tasks to Claude Code CLI with sensible defaults. Use when: (1) building/creating new features or apps, (2) refactoring code, (3) debugging, (4) writing tests, (5) code review, (6) any programming task that benefits from Claude Code capabilities. Automatically uses --print --permission-mode bypassPermissions for smooth non-interactive execution.
user_bbc7674c
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 137
下载
💾 6
安装
1
版本
#latest

概述

Claude Coder

One-shot coding agent using Claude Code CLI. Clean, simple, no interactive prompts.

Quick Start

# Basic usage
claude --permission-mode bypassPermissions --print "Your task here"

Required parameters:

  • --permission-mode bypassPermissions — skips confirmation dialogs
  • --print — non-interactive mode, full tool access, outputs result

Usage Pattern

One-Shot Task (Foreground)

# In a project directory
cd /path/to/project && claude --permission-mode bypassPermissions --print "Add error handling to the API calls"

Background Task

For longer tasks, run in background:

bash workdir:/path/to/project background:true command:"claude --permission-mode bypassPermissions --print 'Build a REST API for todos'"

Monitor with:

process action:list
process action:log sessionId:XXX
process action:poll sessionId:XXX

Project Directory

Default behavior: Run in the current working directory or specify via workdir:

# Specify project directory
bash workdir:~/my-project command:"claude --permission-mode bypassPermissions --print 'Your task'"

# Or cd first
cd ~/my-project && claude --permission-mode bypassPermissions --print "Your task"

Common Tasks

Building New Features

claude --permission-mode bypassPermissions --print "Add a dark mode toggle to the navbar component"

Refactoring

claude --permission-mode bypassPermissions --print "Refactor the auth module to use dependency injection"

Debugging

claude --permission-mode bypassPermissions --print "Debug why the login form isn't submitting. Check network requests and form validation."

Writing Tests

claude --permission-mode bypassPermissions --print "Write unit tests for the UserService class with 80% coverage"

Code Review

claude --permission-mode bypassPermissions --print "Review the changes in src/api/ and suggest improvements"

Auto-Notify on Completion

For background tasks, add a wake trigger:

bash workdir:~/project background:true command:"claude --permission-mode bypassPermissions --print 'Build feature X.

When done, run: openclaw system event --text \"Done: Feature X built\" --mode now'"

Key Differences from Other Agents

AgentPTY RequiredFlags
------------------------------------------------------------
Claude Code❌ No--print --permission-mode bypassPermissions
Codex/Pi✅ Yespty:true

Rules

  1. Always use --print --permission-mode bypassPermissions — ensures smooth execution
  2. Never use PTY for Claude Code — it breaks the flow
  3. Set workdir — keeps agent focused on the right project
  4. Be specific in prompts — Claude Code works best with clear instructions
  5. Monitor background tasks — use process action:log to check progress

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-04-18 17:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Markdown转HTML

user_bbc7674c
Convert Markdown files to beautiful HTML web pages with syntax highlighting. Use when the user wants to transform Markdo
★ 1 📥 226
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,104
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,013